@alfadocs/ui-kit-debug 1.103.1 → 1.105.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{ai-credits-exhausted-notice-CwZnSACy.js → ai-credits-exhausted-notice-Lws3113e.js} +2 -2
- package/dist/_chunks/{ai-credits-exhausted-notice-CwZnSACy.js.map → ai-credits-exhausted-notice-Lws3113e.js.map} +1 -1
- package/dist/_chunks/{ai-permission-notice-VNh3W57L.js → ai-permission-notice-BkgcGmu8.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-VNh3W57L.js.map → ai-permission-notice-BkgcGmu8.js.map} +1 -1
- package/dist/_chunks/{alert-9kEwDza3.js → alert-C4WKViaS.js} +59 -50
- package/dist/_chunks/alert-C4WKViaS.js.map +1 -0
- package/dist/_chunks/{anamnesis-summary-rows-B9HqOGd7.js → anamnesis-summary-rows-QhbDdY7b.js} +4 -4
- package/dist/_chunks/{anamnesis-summary-rows-B9HqOGd7.js.map → anamnesis-summary-rows-QhbDdY7b.js.map} +1 -1
- package/dist/_chunks/{audio-recorder-BOm2FgEu.js → audio-recorder-BlDozxdU.js} +2 -2
- package/dist/_chunks/{audio-recorder-BOm2FgEu.js.map → audio-recorder-BlDozxdU.js.map} +1 -1
- package/dist/_chunks/{auth-form-parts-B3GWChvG.js → auth-form-parts-DVHfqnp6.js} +2 -2
- package/dist/_chunks/{auth-form-parts-B3GWChvG.js.map → auth-form-parts-DVHfqnp6.js.map} +1 -1
- package/dist/_chunks/{balance-badge-cell-DGFm2jfP.js → balance-badge-cell-wJ6cTD_h.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DGFm2jfP.js.map → balance-badge-cell-wJ6cTD_h.js.map} +1 -1
- package/dist/_chunks/{calendar-appointment-editor-dialog-DqyATSh3.js → calendar-appointment-editor-dialog-D8DblVjW.js} +8 -8
- package/dist/_chunks/{calendar-appointment-editor-dialog-DqyATSh3.js.map → calendar-appointment-editor-dialog-D8DblVjW.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-YWKV8Kjq.js → care-plan-card-DMjlYlFc.js} +2 -2
- package/dist/_chunks/{care-plan-card-YWKV8Kjq.js.map → care-plan-card-DMjlYlFc.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-CApivtMW.js → care-plan-entry-card-3hguBW45.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-CApivtMW.js.map → care-plan-entry-card-3hguBW45.js.map} +1 -1
- package/dist/_chunks/{contact-profile-card-uExd3pKC.js → contact-profile-card-CAL66GaH.js} +120 -111
- package/dist/_chunks/contact-profile-card-CAL66GaH.js.map +1 -0
- package/dist/_chunks/{data-table-C5uN4ato.js → data-table-zXBxFYpJ.js} +761 -715
- package/dist/_chunks/data-table-zXBxFYpJ.js.map +1 -0
- package/dist/_chunks/{date-range-picker-B_j4VQlV.js → date-range-picker-DCADIR8o.js} +2 -2
- package/dist/_chunks/{date-range-picker-B_j4VQlV.js.map → date-range-picker-DCADIR8o.js.map} +1 -1
- package/dist/_chunks/{date-time-picker-cwsWiB4q.js → date-time-picker-CT2bC7-A.js} +2 -2
- package/dist/_chunks/{date-time-picker-cwsWiB4q.js.map → date-time-picker-CT2bC7-A.js.map} +1 -1
- package/dist/_chunks/{document-preview-U8H6tnDJ.js → document-preview-BalyZqnn.js} +2 -2
- package/dist/_chunks/{document-preview-U8H6tnDJ.js.map → document-preview-BalyZqnn.js.map} +1 -1
- package/dist/_chunks/{document-scanner-Bf3VUp00.js → document-scanner-5p-Uu8dy.js} +2 -2
- package/dist/_chunks/{document-scanner-Bf3VUp00.js.map → document-scanner-5p-Uu8dy.js.map} +1 -1
- package/dist/_chunks/{entity-summary-BKfR4Vws.js → entity-summary-BbqqYqF1.js} +2 -2
- package/dist/_chunks/{entity-summary-BKfR4Vws.js.map → entity-summary-BbqqYqF1.js.map} +1 -1
- package/dist/_chunks/{error-summary-mGxIyDAY.js → error-summary-DxNhwf_G.js} +2 -2
- package/dist/_chunks/{error-summary-mGxIyDAY.js.map → error-summary-DxNhwf_G.js.map} +1 -1
- package/dist/_chunks/{face-scheme-DdVLQ5dP.js → face-scheme-e2M2HJGz.js} +2 -2
- package/dist/_chunks/{face-scheme-DdVLQ5dP.js.map → face-scheme-e2M2HJGz.js.map} +1 -1
- package/dist/_chunks/{file-manager-CnGBVX_q.js → file-manager-BDKe59sg.js} +2 -2
- package/dist/_chunks/{file-manager-CnGBVX_q.js.map → file-manager-BDKe59sg.js.map} +1 -1
- package/dist/_chunks/{forgot-password-form-CeTb5p-x.js → forgot-password-form-vfCO2-Tt.js} +4 -4
- package/dist/_chunks/{forgot-password-form-CeTb5p-x.js.map → forgot-password-form-vfCO2-Tt.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-CM0zQSDE.js → freemium-paywall-BDeq9QWR.js} +2 -2
- package/dist/_chunks/{freemium-paywall-CM0zQSDE.js.map → freemium-paywall-BDeq9QWR.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-CXcDKQqC.js → gestational-age-calculator-AnaH00nk.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CXcDKQqC.js.map → gestational-age-calculator-AnaH00nk.js.map} +1 -1
- package/dist/_chunks/{hcg-doubling-BJFR3onB.js → hcg-doubling-DdyUt4gz.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BJFR3onB.js.map → hcg-doubling-DdyUt4gz.js.map} +1 -1
- package/dist/_chunks/{heatmap-Cz0Krieg.js → heatmap-D4qqpCEj.js} +1550 -1547
- package/dist/_chunks/{heatmap-Cz0Krieg.js.map → heatmap-D4qqpCEj.js.map} +1 -1
- package/dist/_chunks/{help-me-write-templates-ra5a__Yy.js → help-me-write-templates-YmceSxf5.js} +3 -3
- package/dist/_chunks/{help-me-write-templates-ra5a__Yy.js.map → help-me-write-templates-YmceSxf5.js.map} +1 -1
- package/dist/_chunks/info-tip-C-MPkShR.js +266 -0
- package/dist/_chunks/info-tip-C-MPkShR.js.map +1 -0
- package/dist/_chunks/{kit-extensions-C4o_tFN4.js → kit-extensions-BOnTM4Yf.js} +3 -3
- package/dist/_chunks/{kit-extensions-C4o_tFN4.js.map → kit-extensions-BOnTM4Yf.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-BRek9kz7.js → link-cell-renderer-C8vfCOEp.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-BRek9kz7.js.map → link-cell-renderer-C8vfCOEp.js.map} +1 -1
- package/dist/_chunks/{login-dev-card-D5BV5j1i.js → login-dev-card-Cz1Clugq.js} +3 -3
- package/dist/_chunks/{login-dev-card-D5BV5j1i.js.map → login-dev-card-Cz1Clugq.js.map} +1 -1
- package/dist/_chunks/{marketplace-app-shell-BsctSegT.js → marketplace-app-shell-C-4QF6mp.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-BsctSegT.js.map → marketplace-app-shell-C-4QF6mp.js.map} +1 -1
- package/dist/_chunks/{notes-panel-BjTpaz8d.js → notes-panel-SlzUL8in.js} +4 -4
- package/dist/_chunks/{notes-panel-BjTpaz8d.js.map → notes-panel-SlzUL8in.js.map} +1 -1
- package/dist/_chunks/{notice-group-DkYzKyAZ.js → notice-group-B-trhof8.js} +3 -3
- package/dist/_chunks/{notice-group-DkYzKyAZ.js.map → notice-group-B-trhof8.js.map} +1 -1
- package/dist/_chunks/{patient-details-BXM3dRKb.js → patient-details-wMgTFtpp.js} +2 -2
- package/dist/_chunks/{patient-details-BXM3dRKb.js.map → patient-details-wMgTFtpp.js.map} +1 -1
- package/dist/_chunks/{patient-field-row--dCDO5oB.js → patient-field-row-Bhm2Ig1P.js} +2 -2
- package/dist/_chunks/{patient-field-row--dCDO5oB.js.map → patient-field-row-Bhm2Ig1P.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-DB7fv-Tr.js → patient-summary-card-DMdPPG3n.js} +2 -2
- package/dist/_chunks/{patient-summary-card-DB7fv-Tr.js.map → patient-summary-card-DMdPPG3n.js.map} +1 -1
- package/dist/_chunks/{payment-automation-upsell-BPF0c-5D.js → payment-automation-upsell-u5EuFyCY.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-BPF0c-5D.js.map → payment-automation-upsell-u5EuFyCY.js.map} +1 -1
- package/dist/_chunks/{payment-form-PBuh8PIa.js → payment-form-C-s1x-bU.js} +2 -2
- package/dist/_chunks/{payment-form-PBuh8PIa.js.map → payment-form-C-s1x-bU.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-DlceXkfW.js → pdf-viewer-BnBKdx0y.js} +2 -2
- package/dist/_chunks/{pdf-viewer-DlceXkfW.js.map → pdf-viewer-BnBKdx0y.js.map} +1 -1
- package/dist/_chunks/{practice-profile-hero-BAvGdQmt.js → practice-profile-hero-Bb4YyxHA.js} +31 -29
- package/dist/_chunks/practice-profile-hero-Bb4YyxHA.js.map +1 -0
- package/dist/_chunks/{practice-results-ChBP9x2r.js → practice-results-BXz01sti.js} +485 -445
- package/dist/_chunks/practice-results-BXz01sti.js.map +1 -0
- package/dist/_chunks/{pregnancy-dating-D0Kf9s7s.js → pregnancy-dating-D6dLkMpl.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-D0Kf9s7s.js.map → pregnancy-dating-D6dLkMpl.js.map} +1 -1
- package/dist/_chunks/{progress-notice-DiHWZ8Ms.js → progress-notice-F7ao70ZP.js} +2 -2
- package/dist/_chunks/{progress-notice-DiHWZ8Ms.js.map → progress-notice-F7ao70ZP.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-BQ95uFCd.js → radiograph-panel.agent-0ngF2sGS.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-BQ95uFCd.js.map → radiograph-panel.agent-0ngF2sGS.js.map} +1 -1
- package/dist/_chunks/{registration-form-JzzTomhd.js → registration-form-CEJRUS9G.js} +3 -3
- package/dist/_chunks/{registration-form-JzzTomhd.js.map → registration-form-CEJRUS9G.js.map} +1 -1
- package/dist/_chunks/{reserved.agent-BxD0gnbt.js → reserved.agent-C-C9cvO5.js} +2 -2
- package/dist/_chunks/{reserved.agent-BxD0gnbt.js.map → reserved.agent-C-C9cvO5.js.map} +1 -1
- package/dist/_chunks/{reset-password-form-DDdGEoIL.js → reset-password-form-B0acanDD.js} +4 -4
- package/dist/_chunks/{reset-password-form-DDdGEoIL.js.map → reset-password-form-B0acanDD.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-F04przIt.js → rich-text-editor-C3nANKZt.js} +2 -2
- package/dist/_chunks/{rich-text-editor-F04przIt.js.map → rich-text-editor-C3nANKZt.js.map} +1 -1
- package/dist/_chunks/{send-registration-link-form-DHCQpA4C.js → send-registration-link-form-Nn0jf65G.js} +3 -3
- package/dist/_chunks/{send-registration-link-form-DHCQpA4C.js.map → send-registration-link-form-Nn0jf65G.js.map} +1 -1
- package/dist/_chunks/{sign-document-B5qZhthO.js → sign-document-CQZVzfpk.js} +2 -2
- package/dist/_chunks/{sign-document-B5qZhthO.js.map → sign-document-CQZVzfpk.js.map} +1 -1
- package/dist/_chunks/{signature-request-DB6kePIm.js → signature-request-DtLph5Z4.js} +3 -3
- package/dist/_chunks/{signature-request-DB6kePIm.js.map → signature-request-DtLph5Z4.js.map} +1 -1
- package/dist/_chunks/stat-group-DSNnzkbW.js +107 -0
- package/dist/_chunks/stat-group-DSNnzkbW.js.map +1 -0
- package/dist/_chunks/{switch-D--x7n6h.js → switch-DO6uC4HJ.js} +40 -36
- package/dist/_chunks/switch-DO6uC4HJ.js.map +1 -0
- package/dist/_chunks/{task-editor-BiPGFXtB.js → task-editor-CmXcj6cC.js} +4 -4
- package/dist/_chunks/{task-editor-BiPGFXtB.js.map → task-editor-CmXcj6cC.js.map} +1 -1
- package/dist/_chunks/{tasks-panel-iVeuu9a8.js → tasks-panel-CFo5uIHx.js} +3 -3
- package/dist/_chunks/{tasks-panel-iVeuu9a8.js.map → tasks-panel-CFo5uIHx.js.map} +1 -1
- package/dist/_chunks/{theme-toggle-jZRbAidE.js → theme-toggle-Czq3K9jB.js} +2 -2
- package/dist/_chunks/{theme-toggle-jZRbAidE.js.map → theme-toggle-Czq3K9jB.js.map} +1 -1
- package/dist/_chunks/{time-picker-DSt-ns5F.js → time-picker-DDr5vhwQ.js} +344 -332
- package/dist/_chunks/time-picker-DDr5vhwQ.js.map +1 -0
- package/dist/_chunks/{tooth-scheme-Bd7xECuj.js → tooth-scheme-C-ALCHaV.js} +2 -2
- package/dist/_chunks/{tooth-scheme-Bd7xECuj.js.map → tooth-scheme-C-ALCHaV.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-CmqGGYCy.js → use-appointment-details-read-VI26Z-pc.js} +3 -3
- package/dist/_chunks/{use-appointment-details-read-CmqGGYCy.js.map → use-appointment-details-read-VI26Z-pc.js.map} +1 -1
- package/dist/_chunks/{voice-control-panel-BGJjUwnY.js → voice-control-panel-B0TUZAiP.js} +3 -3
- package/dist/_chunks/{voice-control-panel-BGJjUwnY.js.map → voice-control-panel-B0TUZAiP.js.map} +1 -1
- package/dist/_chunks/{warning-stack-3S7e2q07.js → warning-stack-Dx7cpj10.js} +2 -2
- package/dist/_chunks/{warning-stack-3S7e2q07.js.map → warning-stack-Dx7cpj10.js.map} +1 -1
- package/dist/_chunks/week-availability-CsTiwtYj.js +318 -0
- package/dist/_chunks/week-availability-CsTiwtYj.js.map +1 -0
- package/dist/_chunks/weekly-hours-editor-BsVsgeOc.js +252 -0
- package/dist/_chunks/weekly-hours-editor-BsVsgeOc.js.map +1 -0
- package/dist/_chunks/{workflow-map-B1jf6QaB.js → workflow-map-DWk-rZse.js} +2 -2
- package/dist/_chunks/{workflow-map-B1jf6QaB.js.map → workflow-map-DWk-rZse.js.map} +1 -1
- package/dist/_chunks/{workflow-webhook-action-B_52rH7O.js → workflow-webhook-action-DILFqAVd.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-B_52rH7O.js.map → workflow-webhook-action-DILFqAVd.js.map} +1 -1
- package/dist/ag-grid.css +5 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts +8 -0
- package/dist/components/contact-profile-card/contact-profile-card.d.ts.map +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +6 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/header-min-width.d.ts +21 -0
- package/dist/components/data-table/header-min-width.d.ts.map +1 -0
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/heatmap/heatmap.d.ts +5 -0
- package/dist/components/heatmap/heatmap.d.ts.map +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/info-tip/info-tip.d.ts +10 -0
- package/dist/components/info-tip/info-tip.d.ts.map +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notice-group/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +7 -0
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +13 -0
- package/dist/components/practice-results/practice-results.d.ts.map +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/progress-notice/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stat-group/index.d.ts +3 -0
- package/dist/components/stat-group/index.d.ts.map +1 -0
- package/dist/components/stat-group/index.js +8 -0
- package/dist/components/stat-group/index.js.map +1 -0
- package/dist/components/stat-group/stat-group.d.ts +23 -0
- package/dist/components/stat-group/stat-group.d.ts.map +1 -0
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch.d.ts +2 -0
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/week-availability/index.d.ts +3 -0
- package/dist/components/week-availability/index.d.ts.map +1 -0
- package/dist/components/week-availability/index.js +10 -0
- package/dist/components/week-availability/index.js.map +1 -0
- package/dist/components/week-availability/week-availability.d.ts +68 -0
- package/dist/components/week-availability/week-availability.d.ts.map +1 -0
- package/dist/components/weekly-hours-editor/index.d.ts +3 -0
- package/dist/components/weekly-hours-editor/index.d.ts.map +1 -0
- package/dist/components/weekly-hours-editor/index.js +9 -0
- package/dist/components/weekly-hours-editor/index.js.map +1 -0
- package/dist/components/weekly-hours-editor/weekly-hours-editor.d.ts +42 -0
- package/dist/components/weekly-hours-editor/weekly-hours-editor.d.ts.map +1 -0
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/i18n/locales/ar.d.ts +34 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +34 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +34 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +34 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +34 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +34 -0
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +34 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +34 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +34 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +34 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +34 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +34 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +34 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +34 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +34 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +34 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +34 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +34 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +34 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +34 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +34 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +34 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +34 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +34 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +34 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +34 -0
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +34 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +34 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +34 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +34 -0
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +34 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +34 -0
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +34 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +34 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +34 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +34 -0
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +885 -867
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +34 -0
- package/dist/locales/de.json +34 -0
- package/dist/locales/el.json +34 -0
- package/dist/locales/en.json +34 -0
- package/dist/locales/es.json +34 -0
- package/dist/locales/fr.json +34 -0
- package/dist/locales/hi.json +34 -0
- package/dist/locales/it.json +34 -0
- package/dist/locales/ja.json +34 -0
- package/dist/locales/nl.json +34 -0
- package/dist/locales/pl.json +34 -0
- package/dist/locales/pt.json +34 -0
- package/dist/locales/ro.json +34 -0
- package/dist/locales/ru.json +34 -0
- package/dist/locales/sq.json +34 -0
- package/dist/locales/sv.json +34 -0
- package/dist/locales/tr.json +34 -0
- package/dist/locales/zh.json +34 -0
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +2 -2
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +3 -1
- package/package.json +13 -1
- package/dist/_chunks/alert-9kEwDza3.js.map +0 -1
- package/dist/_chunks/contact-profile-card-uExd3pKC.js.map +0 -1
- package/dist/_chunks/data-table-C5uN4ato.js.map +0 -1
- package/dist/_chunks/info-tip-1Xsq9GLi.js +0 -230
- package/dist/_chunks/info-tip-1Xsq9GLi.js.map +0 -1
- package/dist/_chunks/practice-profile-hero-BAvGdQmt.js.map +0 -1
- package/dist/_chunks/practice-results-ChBP9x2r.js.map +0 -1
- package/dist/_chunks/switch-D--x7n6h.js.map +0 -1
- package/dist/_chunks/time-picker-DSt-ns5F.js.map +0 -1
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { jsx as d, jsxs as
|
|
2
|
-
import { useMemo as z, forwardRef as
|
|
3
|
-
import { S as
|
|
4
|
-
import { E as
|
|
5
|
-
import { c as
|
|
1
|
+
import { jsx as d, jsxs as q } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as z, forwardRef as $, useState as L, useCallback as G, useEffect as B, useRef as _, createContext as Ge, useContext as Fe, isValidElement as qt, cloneElement as Wt, useImperativeHandle as jt } from "react";
|
|
3
|
+
import { S as Bt } from "./skeleton-tTWJpvAq.js";
|
|
4
|
+
import { E as $t } from "./empty-state-DwJ5YNzz.js";
|
|
5
|
+
import { c as Ut } from "./index-D2ZczOXr.js";
|
|
6
6
|
import { useTranslation as A } from "react-i18next";
|
|
7
|
-
import { useGridFilter as
|
|
8
|
-
import { ModuleRegistry as
|
|
9
|
-
import { I as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { T as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import { S as
|
|
29
|
-
import {
|
|
30
|
-
import { u as
|
|
31
|
-
import { u as
|
|
32
|
-
import {
|
|
7
|
+
import { useGridFilter as Ht, AgGridReact as Kt } from "ag-grid-react";
|
|
8
|
+
import { ModuleRegistry as Qt, AllCommunityModule as Xt } from "ag-grid-community";
|
|
9
|
+
import { I as Yt } from "./icon-button-group-mXvYDaba.js";
|
|
10
|
+
import { u as Zt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
11
|
+
import { B as ce } from "./button-DohK_Ak_.js";
|
|
12
|
+
import { I as oe } from "./icon-button-S8_weU3g.js";
|
|
13
|
+
import { P as Te } from "./popover-CN5IsOeS.js";
|
|
14
|
+
import { C as Jt } from "./checkbox-a7Sh-dXb.js";
|
|
15
|
+
import { T as ea } from "./text-input-B6iAgCr3.js";
|
|
16
|
+
import { T as He } from "./tag-DOZGz0fT.js";
|
|
17
|
+
import { D as xe } from "./dropdown-menu-CqxBthww.js";
|
|
18
|
+
import { X as Qe } from "./x-B5YnXwCz.js";
|
|
19
|
+
import { R as ta } from "./refresh-cw-DnI0cLFC.js";
|
|
20
|
+
import { S as Ie } from "./search-QbWPlY5f.js";
|
|
21
|
+
import { c as aa } from "./createLucideIcon-DhHxpK9K.js";
|
|
22
|
+
import { G as ra } from "./grip-vertical-onSb1JXO.js";
|
|
23
|
+
import { P as na } from "./printer-rkK0T1gi.js";
|
|
24
|
+
import { F as Xe } from "./file-text-5yv6r2ls.js";
|
|
25
|
+
import { D as Ce } from "./download-CfYKJO_j.js";
|
|
26
|
+
import { F as oa } from "./file-spreadsheet-DmwyfV4O.js";
|
|
27
|
+
import ia from "i18next";
|
|
28
|
+
import { S as Ye } from "./state-backed-text-input-DVETOhSS.js";
|
|
29
|
+
import { S as la } from "./select-BBDRYxJl.js";
|
|
30
|
+
import { u as sa } from "./registry-DvAUVLHh.js";
|
|
31
|
+
import { u as da } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
32
|
+
import { u as ca } from "./use-theme-CYGyzFgZ.js";
|
|
33
|
+
import { f as ua } from "./intl-locale-FWh-Y5_3.js";
|
|
33
34
|
/**
|
|
34
35
|
* @license lucide-react v1.22.0 - ISC
|
|
35
36
|
*
|
|
36
37
|
* This source code is licensed under the ISC license.
|
|
37
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
38
39
|
*/
|
|
39
|
-
const
|
|
40
|
+
const pa = [
|
|
40
41
|
["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" }],
|
|
41
42
|
["path", { d: "m14.3 19.6 1-.4", key: "11sv9r" }],
|
|
42
43
|
["path", { d: "M15 3v7.5", key: "7lm50a" }],
|
|
@@ -49,50 +50,77 @@ const oa = [
|
|
|
49
50
|
["path", { d: "m21.7 19.4-.9-.3", key: "1qgwi9" }],
|
|
50
51
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
51
52
|
["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
|
|
52
|
-
],
|
|
53
|
-
function
|
|
54
|
-
|
|
53
|
+
], ma = aa("columns-3-cog", pa), fa = 52;
|
|
54
|
+
function ga(e) {
|
|
55
|
+
let t = "";
|
|
56
|
+
for (const n of e.split(/\s+/))
|
|
57
|
+
n.length > t.length && (t = n);
|
|
58
|
+
return t;
|
|
59
|
+
}
|
|
60
|
+
function Ze(e, t) {
|
|
61
|
+
return t ? e.map((n) => {
|
|
62
|
+
if ("children" in n && n.children)
|
|
63
|
+
return { ...n, children: Ze(n.children, t) };
|
|
64
|
+
const a = n;
|
|
65
|
+
if (!a.wrapHeaderText || typeof a.headerName != "string") return a;
|
|
66
|
+
const i = ga(a.headerName);
|
|
67
|
+
if (!i) return a;
|
|
68
|
+
const s = Math.ceil(t(i)) + fa;
|
|
69
|
+
return s > (a.minWidth ?? 0) ? { ...a, minWidth: s } : a;
|
|
70
|
+
}) : e;
|
|
71
|
+
}
|
|
72
|
+
function ba(e) {
|
|
73
|
+
return (t) => {
|
|
74
|
+
const n = document.createElement("span");
|
|
75
|
+
n.className = "ag-header-cell-text", n.textContent = t, n.style.cssText = "position:absolute;visibility:hidden;white-space:nowrap;inline-size:auto;", e.appendChild(n);
|
|
76
|
+
const a = n.getBoundingClientRect().width;
|
|
77
|
+
return n.remove(), a;
|
|
78
|
+
};
|
|
55
79
|
}
|
|
56
|
-
|
|
57
|
-
|
|
80
|
+
const ha = "yyyy-mm-dd hh:mm";
|
|
81
|
+
function Ta(e) {
|
|
82
|
+
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: ha } : String(e);
|
|
83
|
+
}
|
|
84
|
+
async function ya(e, t, n) {
|
|
85
|
+
const { default: a } = await import("./index-CpVcVNBu.js"), i = [
|
|
58
86
|
e.map((s) => ({
|
|
59
87
|
value: s,
|
|
60
88
|
fontWeight: "bold",
|
|
61
89
|
textColor: n.text,
|
|
62
90
|
backgroundColor: n.fill
|
|
63
91
|
})),
|
|
64
|
-
...t.map((s) => s.map(
|
|
92
|
+
...t.map((s) => s.map(Ta))
|
|
65
93
|
];
|
|
66
|
-
return
|
|
94
|
+
return a(i, { sheet: "Sheet1" }).toBlob();
|
|
67
95
|
}
|
|
68
|
-
function
|
|
69
|
-
if (!
|
|
70
|
-
const t = e, n = t.props.className ?? "",
|
|
71
|
-
return
|
|
96
|
+
function xa(e) {
|
|
97
|
+
if (!qt(e)) return e;
|
|
98
|
+
const t = e, n = t.props.className ?? "", a = /\bsize-|\bw-|\bh-/.test(n) ? n : `${n} ds:size-4`.trim();
|
|
99
|
+
return Wt(t, { className: a, size: t.props.size ?? 16 });
|
|
72
100
|
}
|
|
73
|
-
const
|
|
101
|
+
const Je = Ge(null);
|
|
74
102
|
function Q(e) {
|
|
75
|
-
const t =
|
|
103
|
+
const t = Fe(Je);
|
|
76
104
|
if (!t)
|
|
77
105
|
throw new Error(
|
|
78
106
|
`${e} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
|
|
79
107
|
);
|
|
80
108
|
return t;
|
|
81
109
|
}
|
|
82
|
-
function
|
|
110
|
+
function wa({
|
|
83
111
|
getApi: e,
|
|
84
112
|
selectionCount: t,
|
|
85
113
|
onPrint: n,
|
|
86
|
-
markColumnsUserTouched:
|
|
114
|
+
markColumnsUserTouched: a,
|
|
87
115
|
children: i
|
|
88
116
|
}) {
|
|
89
117
|
const s = z(
|
|
90
|
-
() => ({ getApi: e, selectionCount: t, onPrint: n, markColumnsUserTouched:
|
|
91
|
-
[e, t, n,
|
|
118
|
+
() => ({ getApi: e, selectionCount: t, onPrint: n, markColumnsUserTouched: a }),
|
|
119
|
+
[e, t, n, a]
|
|
92
120
|
);
|
|
93
|
-
return /* @__PURE__ */ d(
|
|
121
|
+
return /* @__PURE__ */ d(Je.Provider, { value: s, children: i });
|
|
94
122
|
}
|
|
95
|
-
const
|
|
123
|
+
const Ca = [
|
|
96
124
|
"data-table-toolbar",
|
|
97
125
|
// Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
|
|
98
126
|
// Actions cluster on narrow screens. From `sm` (≥640px) we switch to
|
|
@@ -104,24 +132,24 @@ const pa = [
|
|
|
104
132
|
// No card surface: the toolbar sits directly on the page background,
|
|
105
133
|
// matching the header-tools layout the Patients / Care Plan List
|
|
106
134
|
// patterns established (the old bg-card + border + shadow bar is gone).
|
|
107
|
-
].join(" "),
|
|
108
|
-
({ className: e, children: t, ...n },
|
|
135
|
+
].join(" "), et = $(
|
|
136
|
+
({ className: e, children: t, ...n }, a) => /* @__PURE__ */ d(
|
|
109
137
|
"div",
|
|
110
138
|
{
|
|
111
|
-
ref:
|
|
139
|
+
ref: a,
|
|
112
140
|
role: "toolbar",
|
|
113
|
-
className: [
|
|
141
|
+
className: [Ca, e ?? ""].join(" ").trim(),
|
|
114
142
|
...n,
|
|
115
143
|
children: t
|
|
116
144
|
}
|
|
117
145
|
)
|
|
118
146
|
);
|
|
119
|
-
|
|
120
|
-
const
|
|
121
|
-
({ className: e, children: t, ...n },
|
|
147
|
+
et.displayName = "DataTable.Toolbar";
|
|
148
|
+
const tt = $(
|
|
149
|
+
({ className: e, children: t, ...n }, a) => /* @__PURE__ */ d(
|
|
122
150
|
"div",
|
|
123
151
|
{
|
|
124
|
-
ref:
|
|
152
|
+
ref: a,
|
|
125
153
|
className: [
|
|
126
154
|
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
127
155
|
// `grow` lets FilterBar absorb the free space; `min-w-0` lets the
|
|
@@ -136,12 +164,12 @@ const Xe = U(
|
|
|
136
164
|
}
|
|
137
165
|
)
|
|
138
166
|
);
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
({ className: e, children: t, ...n },
|
|
167
|
+
tt.displayName = "DataTable.Toolbar.FilterBar";
|
|
168
|
+
const at = $(
|
|
169
|
+
({ className: e, children: t, ...n }, a) => /* @__PURE__ */ d(
|
|
142
170
|
"div",
|
|
143
171
|
{
|
|
144
|
-
ref:
|
|
172
|
+
ref: a,
|
|
145
173
|
className: [
|
|
146
174
|
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
147
175
|
"ds:ms-auto",
|
|
@@ -152,66 +180,66 @@ const Ye = U(
|
|
|
152
180
|
}
|
|
153
181
|
)
|
|
154
182
|
);
|
|
155
|
-
|
|
156
|
-
const
|
|
157
|
-
({ label: e, onExport: t, intent: n = "outline", ...
|
|
158
|
-
const { t: s } = A("ui"), { getApi:
|
|
159
|
-
const m =
|
|
183
|
+
at.displayName = "DataTable.Toolbar.Actions";
|
|
184
|
+
const Ne = $(
|
|
185
|
+
({ label: e, onExport: t, intent: n = "outline", ...a }, i) => {
|
|
186
|
+
const { t: s } = A("ui"), { getApi: g } = Q("DataTable.Toolbar.ExportCsv"), l = G(() => {
|
|
187
|
+
const m = g();
|
|
160
188
|
m && (t ? t(m) : m.exportDataAsCsv());
|
|
161
|
-
}, [
|
|
189
|
+
}, [g, t]);
|
|
162
190
|
return /* @__PURE__ */ d(
|
|
163
|
-
|
|
191
|
+
oe,
|
|
164
192
|
{
|
|
165
193
|
ref: i,
|
|
166
194
|
type: "button",
|
|
167
195
|
intent: n,
|
|
168
|
-
icon: /* @__PURE__ */ d(
|
|
196
|
+
icon: /* @__PURE__ */ d(Ce, { "aria-hidden": !0 }),
|
|
169
197
|
tooltip: e ?? s("dataTable.exportCsv"),
|
|
170
198
|
onClick: l,
|
|
171
|
-
...
|
|
199
|
+
...a
|
|
172
200
|
}
|
|
173
201
|
);
|
|
174
202
|
}
|
|
175
203
|
);
|
|
176
|
-
|
|
177
|
-
function
|
|
204
|
+
Ne.displayName = "DataTable.Toolbar.ExportCsv";
|
|
205
|
+
function re(e, t = [30, 30, 30]) {
|
|
178
206
|
if (typeof document > "u") return t;
|
|
179
207
|
const n = document.createElement("div");
|
|
180
208
|
n.className = "theme-light", n.style.position = "absolute", n.style.visibility = "hidden";
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
const i = getComputedStyle(
|
|
209
|
+
const a = document.createElement("span");
|
|
210
|
+
a.style.color = `var(${e})`, n.appendChild(a), document.body.appendChild(n);
|
|
211
|
+
const i = getComputedStyle(a).color;
|
|
184
212
|
document.body.removeChild(n);
|
|
185
213
|
const s = i.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
|
|
186
214
|
return s ? [Number(s[1]), Number(s[2]), Number(s[3])] : t;
|
|
187
215
|
}
|
|
188
|
-
async function
|
|
216
|
+
async function rt(e, t) {
|
|
189
217
|
if (!e) return;
|
|
190
|
-
const [{ jsPDF: n }, { default:
|
|
218
|
+
const [{ jsPDF: n }, { default: a }] = await Promise.all([
|
|
191
219
|
import("./jspdf.es.min-BW7y6yhl.js").then((w) => w.j),
|
|
192
220
|
import("./jspdf.plugin.autotable-CSiDNyPn.js")
|
|
193
|
-
]), s = (e.getColumns() ?? []).filter((w) => w.isVisible()),
|
|
221
|
+
]), s = (e.getColumns() ?? []).filter((w) => w.isVisible()), g = [
|
|
194
222
|
s.map((w) => e.getDisplayNameForColumn(w, null) ?? "")
|
|
195
223
|
], l = [];
|
|
196
224
|
e.forEachNodeAfterFilterAndSort((w) => {
|
|
197
225
|
if (!w.data) return;
|
|
198
|
-
const p = s.map((
|
|
226
|
+
const p = s.map((T) => {
|
|
199
227
|
const S = e.getCellValue({
|
|
200
228
|
rowNode: w,
|
|
201
|
-
colKey:
|
|
229
|
+
colKey: T,
|
|
202
230
|
useFormatter: !0
|
|
203
231
|
});
|
|
204
232
|
return S == null ? "" : String(S);
|
|
205
233
|
});
|
|
206
234
|
l.push(p);
|
|
207
235
|
});
|
|
208
|
-
const m =
|
|
209
|
-
|
|
210
|
-
head:
|
|
236
|
+
const m = re("--muted", [240, 240, 240]), f = re("--foreground", [30, 30, 30]), u = re("--card-foreground", [30, 30, 30]), h = re("--card", [250, 250, 250]), v = new n({ orientation: "landscape" });
|
|
237
|
+
a(v, {
|
|
238
|
+
head: g,
|
|
211
239
|
body: l,
|
|
212
|
-
headStyles: { fillColor: m, textColor:
|
|
240
|
+
headStyles: { fillColor: m, textColor: f },
|
|
213
241
|
bodyStyles: { textColor: u },
|
|
214
|
-
alternateRowStyles: { fillColor:
|
|
242
|
+
alternateRowStyles: { fillColor: h },
|
|
215
243
|
styles: {
|
|
216
244
|
font: "helvetica",
|
|
217
245
|
fontSize: 10,
|
|
@@ -219,43 +247,43 @@ async function Ze(e, t) {
|
|
|
219
247
|
}
|
|
220
248
|
}), v.save(t.fileName);
|
|
221
249
|
}
|
|
222
|
-
const
|
|
223
|
-
({ label: e, onClick: t, fileName: n, intent:
|
|
224
|
-
const { t:
|
|
225
|
-
const
|
|
250
|
+
const ke = $(
|
|
251
|
+
({ label: e, onClick: t, fileName: n, intent: a = "outline", ...i }, s) => {
|
|
252
|
+
const { t: g } = A("ui"), { getApi: l } = Q("DataTable.Toolbar.ExportPdf"), m = G(() => {
|
|
253
|
+
const f = l();
|
|
226
254
|
if (t) {
|
|
227
|
-
t(
|
|
255
|
+
t(f);
|
|
228
256
|
return;
|
|
229
257
|
}
|
|
230
|
-
|
|
258
|
+
rt(f, {
|
|
231
259
|
fileName: n ?? "data-table-export.pdf"
|
|
232
260
|
});
|
|
233
261
|
}, [l, t, n]);
|
|
234
262
|
return /* @__PURE__ */ d(
|
|
235
|
-
|
|
263
|
+
oe,
|
|
236
264
|
{
|
|
237
265
|
ref: s,
|
|
238
266
|
type: "button",
|
|
239
|
-
intent:
|
|
240
|
-
icon: /* @__PURE__ */ d(
|
|
241
|
-
tooltip: e ??
|
|
267
|
+
intent: a,
|
|
268
|
+
icon: /* @__PURE__ */ d(Xe, { "aria-hidden": !0 }),
|
|
269
|
+
tooltip: e ?? g("dataTable.exportPdf"),
|
|
242
270
|
onClick: m,
|
|
243
271
|
...i
|
|
244
272
|
}
|
|
245
273
|
);
|
|
246
274
|
}
|
|
247
275
|
);
|
|
248
|
-
|
|
249
|
-
const
|
|
250
|
-
({ label: e, intent: t = "outline", ...n },
|
|
276
|
+
ke.displayName = "DataTable.Toolbar.ExportPdf";
|
|
277
|
+
const Pe = $(
|
|
278
|
+
({ label: e, intent: t = "outline", ...n }, a) => {
|
|
251
279
|
const { t: i } = A("ui"), { onPrint: s } = Q("DataTable.Toolbar.Print");
|
|
252
280
|
return /* @__PURE__ */ d(
|
|
253
|
-
|
|
281
|
+
oe,
|
|
254
282
|
{
|
|
255
|
-
ref:
|
|
283
|
+
ref: a,
|
|
256
284
|
type: "button",
|
|
257
285
|
intent: t,
|
|
258
|
-
icon: /* @__PURE__ */ d(
|
|
286
|
+
icon: /* @__PURE__ */ d(na, { "aria-hidden": !0 }),
|
|
259
287
|
tooltip: e ?? i("dataTable.print"),
|
|
260
288
|
onClick: s,
|
|
261
289
|
...n
|
|
@@ -263,15 +291,15 @@ const Ne = U(
|
|
|
263
291
|
);
|
|
264
292
|
}
|
|
265
293
|
);
|
|
266
|
-
|
|
267
|
-
const
|
|
268
|
-
const { t: n } = A("ui"), { getApi:
|
|
269
|
-
return
|
|
270
|
-
const l =
|
|
294
|
+
Pe.displayName = "DataTable.Toolbar.Print";
|
|
295
|
+
const nt = ({ placeholder: e, debounceMs: t = 150 }) => {
|
|
296
|
+
const { t: n } = A("ui"), { getApi: a } = Q("DataTable.Toolbar.QuickSearch"), [i, s] = L(""), g = _(void 0);
|
|
297
|
+
return B(() => (g.current && window.clearTimeout(g.current), g.current = window.setTimeout(() => {
|
|
298
|
+
const l = a();
|
|
271
299
|
l && l.setGridOption("quickFilterText", i);
|
|
272
300
|
}, t), () => {
|
|
273
|
-
|
|
274
|
-
}), [i, t,
|
|
301
|
+
g.current && window.clearTimeout(g.current);
|
|
302
|
+
}), [i, t, a]), // Slot wrapper caps the search at a sensible legible width on desktop —
|
|
275
303
|
// without this, TextInput's `w-full` lets the QuickSearch absorb the
|
|
276
304
|
// entire FilterBar row and push trailing Actions onto a second line at
|
|
277
305
|
// 1024 / 1280 / 1440. `min-w-0` lets the slot shrink below `24rem` when
|
|
@@ -279,93 +307,93 @@ const Je = ({ placeholder: e, debounceMs: t = 150 }) => {
|
|
|
279
307
|
// `--toolbar-search-max` token in the kit yet — see this component's
|
|
280
308
|
// summary for a follow-up note recommending we add one.
|
|
281
309
|
/* @__PURE__ */ d("div", { className: "ds:w-full ds:max-w-[24rem] ds:min-w-0", children: /* @__PURE__ */ d(
|
|
282
|
-
|
|
310
|
+
ea,
|
|
283
311
|
{
|
|
284
312
|
type: "search",
|
|
285
313
|
size: "sm",
|
|
286
314
|
onChange: (l) => s(l.target.value),
|
|
287
315
|
placeholder: e ?? n("dataTable.quickSearch.placeholder", "Search…"),
|
|
288
|
-
startAdornment: /* @__PURE__ */ d(
|
|
316
|
+
startAdornment: /* @__PURE__ */ d(Ie, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
289
317
|
clearable: !0,
|
|
290
318
|
onClear: () => s(""),
|
|
291
319
|
"aria-label": n("dataTable.quickSearch.label", "Quick search")
|
|
292
320
|
}
|
|
293
321
|
) });
|
|
294
322
|
};
|
|
295
|
-
|
|
296
|
-
const
|
|
297
|
-
({ onRefresh: e, label: t, intent: n = "outline", ...
|
|
323
|
+
nt.displayName = "DataTable.Toolbar.QuickSearch";
|
|
324
|
+
const Ae = $(
|
|
325
|
+
({ onRefresh: e, label: t, intent: n = "outline", ...a }, i) => {
|
|
298
326
|
const { t: s } = A("ui");
|
|
299
327
|
return /* @__PURE__ */ d(
|
|
300
|
-
|
|
328
|
+
oe,
|
|
301
329
|
{
|
|
302
330
|
ref: i,
|
|
303
331
|
type: "button",
|
|
304
332
|
intent: n,
|
|
305
|
-
icon: /* @__PURE__ */ d(
|
|
333
|
+
icon: /* @__PURE__ */ d(ta, { "aria-hidden": !0 }),
|
|
306
334
|
tooltip: t ?? s("dataTable.refresh", "Refresh"),
|
|
307
335
|
onClick: e,
|
|
308
|
-
...
|
|
336
|
+
...a
|
|
309
337
|
}
|
|
310
338
|
);
|
|
311
339
|
}
|
|
312
340
|
);
|
|
313
|
-
|
|
314
|
-
function
|
|
341
|
+
Ae.displayName = "DataTable.Toolbar.Refresh";
|
|
342
|
+
function va(e, t) {
|
|
315
343
|
if (!e || typeof e != "object") return "";
|
|
316
|
-
const n = e,
|
|
344
|
+
const n = e, a = typeof n.type == "string" ? n.type : "", i = (l) => t(
|
|
317
345
|
`dataTable.agGrid.${l}`,
|
|
318
346
|
t(`dataTable.numberFilter.operators.${l}`, l)
|
|
319
347
|
);
|
|
320
|
-
if (
|
|
321
|
-
const s = typeof n.filter == "string" || typeof n.filter == "number",
|
|
322
|
-
return
|
|
348
|
+
if (a === "blank" || a === "notBlank") return i(a);
|
|
349
|
+
const s = typeof n.filter == "string" || typeof n.filter == "number", g = typeof n.filterTo == "string" || typeof n.filterTo == "number";
|
|
350
|
+
return a === "inRange" && (s || g) ? s && g ? `${n.filter} – ${n.filterTo}` : s ? `${t("dataTable.numberFilter.from", "From")} ${n.filter}` : `${t("dataTable.numberFilter.to", "To")} ${n.filterTo}` : s ? a ? `${i(a)} ${n.filter}` : String(n.filter) : typeof n.dateFrom == "string" ? typeof n.dateTo == "string" && n.dateTo ? `${n.dateFrom} – ${n.dateTo}` : String(n.dateFrom) : Array.isArray(n.values) ? n.values.map(String).join(", ") : "";
|
|
323
351
|
}
|
|
324
|
-
const
|
|
325
|
-
const { t: e } = A("ui"), { getApi: t } = Q("DataTable.Toolbar.FilterChips"), [n,
|
|
352
|
+
const ot = () => {
|
|
353
|
+
const { t: e } = A("ui"), { getApi: t } = Q("DataTable.Toolbar.FilterChips"), [n, a] = L([]), [i, s] = L(""), g = G(() => {
|
|
326
354
|
const u = t();
|
|
327
355
|
if (!u) {
|
|
328
|
-
|
|
356
|
+
a([]), s("");
|
|
329
357
|
return;
|
|
330
358
|
}
|
|
331
|
-
const
|
|
332
|
-
for (const
|
|
333
|
-
const S = v.find((C) => C.getColId() ===
|
|
359
|
+
const h = u.getFilterModel() ?? {}, v = u.getColumns() ?? [], w = [];
|
|
360
|
+
for (const T of Object.keys(h)) {
|
|
361
|
+
const S = v.find((C) => C.getColId() === T), R = u.getDisplayNameForColumn(S, null) ?? T;
|
|
334
362
|
w.push({
|
|
335
|
-
colId:
|
|
363
|
+
colId: T,
|
|
336
364
|
headerName: R,
|
|
337
|
-
text:
|
|
365
|
+
text: va(h[T], e)
|
|
338
366
|
});
|
|
339
367
|
}
|
|
340
|
-
|
|
368
|
+
a(w);
|
|
341
369
|
const p = u.getGridOption("quickFilterText");
|
|
342
370
|
s(typeof p == "string" ? p : "");
|
|
343
371
|
}, [t, e]);
|
|
344
|
-
if (
|
|
372
|
+
if (B(() => {
|
|
345
373
|
let u;
|
|
346
|
-
const
|
|
347
|
-
p.addEventListener("filterChanged",
|
|
374
|
+
const h = (p) => g(), v = (p) => {
|
|
375
|
+
p.addEventListener("filterChanged", h), g(), u = () => p.removeEventListener("filterChanged", h);
|
|
348
376
|
}, w = t();
|
|
349
377
|
if (w)
|
|
350
378
|
v(w);
|
|
351
379
|
else {
|
|
352
380
|
const p = window.setInterval(() => {
|
|
353
|
-
const
|
|
354
|
-
|
|
381
|
+
const T = t();
|
|
382
|
+
T && (window.clearInterval(p), v(T));
|
|
355
383
|
}, 50);
|
|
356
384
|
u = () => window.clearInterval(p);
|
|
357
385
|
}
|
|
358
386
|
return () => u == null ? void 0 : u();
|
|
359
|
-
}, [t,
|
|
387
|
+
}, [t, g]), n.length + (i ? 1 : 0) === 0) return null;
|
|
360
388
|
function m(u) {
|
|
361
|
-
const
|
|
362
|
-
|
|
389
|
+
const h = t();
|
|
390
|
+
h && (h.setColumnFilterModel(u, null), h.onFilterChanged());
|
|
363
391
|
}
|
|
364
|
-
function
|
|
392
|
+
function f() {
|
|
365
393
|
const u = t();
|
|
366
394
|
u && (u.setFilterModel(null), u.setGridOption("quickFilterText", ""), s(""));
|
|
367
395
|
}
|
|
368
|
-
return /* @__PURE__ */
|
|
396
|
+
return /* @__PURE__ */ q(
|
|
369
397
|
"div",
|
|
370
398
|
{
|
|
371
399
|
role: "group",
|
|
@@ -373,7 +401,7 @@ const et = () => {
|
|
|
373
401
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
374
402
|
children: [
|
|
375
403
|
i && /* @__PURE__ */ d(
|
|
376
|
-
|
|
404
|
+
He,
|
|
377
405
|
{
|
|
378
406
|
label: `${e("dataTable.quickSearch.label", "Quick search")}: ${i}`,
|
|
379
407
|
size: "sm",
|
|
@@ -386,7 +414,7 @@ const et = () => {
|
|
|
386
414
|
}
|
|
387
415
|
),
|
|
388
416
|
n.map((u) => /* @__PURE__ */ d(
|
|
389
|
-
|
|
417
|
+
He,
|
|
390
418
|
{
|
|
391
419
|
label: u.text ? `${u.headerName}: ${u.text}` : u.headerName,
|
|
392
420
|
size: "sm",
|
|
@@ -397,13 +425,13 @@ const et = () => {
|
|
|
397
425
|
u.colId
|
|
398
426
|
)),
|
|
399
427
|
/* @__PURE__ */ d(
|
|
400
|
-
|
|
428
|
+
ce,
|
|
401
429
|
{
|
|
402
430
|
type: "button",
|
|
403
431
|
intent: "ghost",
|
|
404
432
|
size: "sm",
|
|
405
|
-
onClick:
|
|
406
|
-
startIcon: /* @__PURE__ */ d(
|
|
433
|
+
onClick: f,
|
|
434
|
+
startIcon: /* @__PURE__ */ d(Qe, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
407
435
|
children: e("dataTable.filterChips.clearAll", "Clear all")
|
|
408
436
|
}
|
|
409
437
|
)
|
|
@@ -411,42 +439,42 @@ const et = () => {
|
|
|
411
439
|
}
|
|
412
440
|
);
|
|
413
441
|
};
|
|
414
|
-
|
|
415
|
-
const
|
|
442
|
+
ot.displayName = "DataTable.Toolbar.FilterChips";
|
|
443
|
+
const it = ({
|
|
416
444
|
field: e,
|
|
417
445
|
options: t,
|
|
418
446
|
label: n
|
|
419
447
|
}) => {
|
|
420
|
-
const { t:
|
|
448
|
+
const { t: a } = A("ui"), { getApi: i } = Q("DataTable.Toolbar.FacetFilter"), [s, g] = L(null);
|
|
421
449
|
function l(m) {
|
|
422
|
-
|
|
423
|
-
const
|
|
424
|
-
if (
|
|
450
|
+
g(m);
|
|
451
|
+
const f = i();
|
|
452
|
+
if (f) {
|
|
425
453
|
if (m === null) {
|
|
426
|
-
|
|
454
|
+
f.setColumnFilterModel(e, null), f.onFilterChanged();
|
|
427
455
|
return;
|
|
428
456
|
}
|
|
429
|
-
|
|
457
|
+
f.setColumnFilterModel(e, {
|
|
430
458
|
type: "equals",
|
|
431
459
|
filter: m
|
|
432
|
-
}),
|
|
460
|
+
}), f.onFilterChanged();
|
|
433
461
|
}
|
|
434
462
|
}
|
|
435
463
|
return /* @__PURE__ */ d(
|
|
436
464
|
"div",
|
|
437
465
|
{
|
|
438
466
|
role: "group",
|
|
439
|
-
"aria-label": n ??
|
|
467
|
+
"aria-label": n ?? a("dataTable.facetFilter.label", "Filter"),
|
|
440
468
|
className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
441
469
|
children: t.map((m) => {
|
|
442
|
-
const
|
|
470
|
+
const f = s === m.value;
|
|
443
471
|
return /* @__PURE__ */ d(
|
|
444
|
-
|
|
472
|
+
ce,
|
|
445
473
|
{
|
|
446
474
|
type: "button",
|
|
447
475
|
size: "sm",
|
|
448
|
-
intent:
|
|
449
|
-
"aria-pressed":
|
|
476
|
+
intent: f ? "primary" : "secondary",
|
|
477
|
+
"aria-pressed": f,
|
|
450
478
|
onClick: () => l(m.value),
|
|
451
479
|
children: m.label
|
|
452
480
|
},
|
|
@@ -456,200 +484,200 @@ const tt = ({
|
|
|
456
484
|
}
|
|
457
485
|
);
|
|
458
486
|
};
|
|
459
|
-
|
|
460
|
-
const
|
|
461
|
-
async function
|
|
487
|
+
it.displayName = "DataTable.Toolbar.FacetFilter";
|
|
488
|
+
const Sa = ["csv", "xlsx", "pdf"];
|
|
489
|
+
async function Ra(e, t) {
|
|
462
490
|
if (!e) return;
|
|
463
|
-
const
|
|
491
|
+
const a = (e.getColumns() ?? []).filter((u) => u.isVisible()), i = a.map(
|
|
464
492
|
(u) => e.getDisplayNameForColumn(u, null) ?? u.getColId()
|
|
465
493
|
), s = [];
|
|
466
494
|
e.forEachNodeAfterFilterAndSort((u) => {
|
|
467
495
|
u.data && s.push(
|
|
468
|
-
|
|
469
|
-
(
|
|
496
|
+
a.map(
|
|
497
|
+
(h) => e.getCellValue({ rowNode: u, colKey: h, useFormatter: !0 })
|
|
470
498
|
)
|
|
471
499
|
);
|
|
472
500
|
});
|
|
473
|
-
const
|
|
474
|
-
fill:
|
|
475
|
-
text:
|
|
476
|
-
}), m = URL.createObjectURL(l),
|
|
477
|
-
|
|
501
|
+
const g = ([u, h, v]) => `#${[u, h, v].map((w) => w.toString(16).padStart(2, "0")).join("")}`.toUpperCase(), l = await ya(i, s, {
|
|
502
|
+
fill: g(re("--muted", [240, 240, 240])),
|
|
503
|
+
text: g(re("--foreground", [30, 30, 30]))
|
|
504
|
+
}), m = URL.createObjectURL(l), f = document.createElement("a");
|
|
505
|
+
f.href = m, f.download = t.fileName, document.body.appendChild(f), f.click(), document.body.removeChild(f), URL.revokeObjectURL(m);
|
|
478
506
|
}
|
|
479
|
-
const
|
|
480
|
-
function
|
|
481
|
-
const e =
|
|
507
|
+
const lt = Ge(null);
|
|
508
|
+
function Da() {
|
|
509
|
+
const e = Fe(lt);
|
|
482
510
|
if (!e)
|
|
483
511
|
throw new Error(
|
|
484
512
|
"DataTable.Toolbar.ExportMenu.Item must be rendered inside DataTable.Toolbar.ExportMenu."
|
|
485
513
|
);
|
|
486
514
|
return e;
|
|
487
515
|
}
|
|
488
|
-
const
|
|
489
|
-
({ children: e, label: t, intent: n = "outline", ...
|
|
490
|
-
const { t: s } = A("ui"), { getApi:
|
|
491
|
-
return /* @__PURE__ */ d(
|
|
492
|
-
/* @__PURE__ */ d(
|
|
493
|
-
|
|
516
|
+
const Me = $(
|
|
517
|
+
({ children: e, label: t, intent: n = "outline", ...a }, i) => {
|
|
518
|
+
const { t: s } = A("ui"), { getApi: g } = Q("DataTable.Toolbar.ExportMenu"), l = z(() => ({ getApi: g }), [g]), m = e ?? Sa.map((f) => /* @__PURE__ */ d(Oe, { format: f }, f));
|
|
519
|
+
return /* @__PURE__ */ d(lt.Provider, { value: l, children: /* @__PURE__ */ q(xe.Root, { children: [
|
|
520
|
+
/* @__PURE__ */ d(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ d(
|
|
521
|
+
oe,
|
|
494
522
|
{
|
|
495
523
|
ref: i,
|
|
496
524
|
type: "button",
|
|
497
525
|
intent: n,
|
|
498
|
-
icon: /* @__PURE__ */ d(
|
|
526
|
+
icon: /* @__PURE__ */ d(Ce, { "aria-hidden": !0 }),
|
|
499
527
|
tooltip: t ?? s("dataTable.export.menu", "Export"),
|
|
500
528
|
"aria-label": t ?? s("dataTable.export.menu", "Export"),
|
|
501
529
|
"aria-haspopup": "menu",
|
|
502
|
-
...
|
|
530
|
+
...a
|
|
503
531
|
}
|
|
504
532
|
) }),
|
|
505
|
-
/* @__PURE__ */ d(
|
|
533
|
+
/* @__PURE__ */ d(xe.Content, { align: "end", sideOffset: 4, children: m })
|
|
506
534
|
] }) });
|
|
507
535
|
}
|
|
508
536
|
);
|
|
509
|
-
|
|
510
|
-
function
|
|
537
|
+
Me.displayName = "DataTable.Toolbar.ExportMenu";
|
|
538
|
+
function Ea(e, t) {
|
|
511
539
|
return t === "csv" ? e("dataTable.export.csv", "Export CSV") : t === "xlsx" ? e("dataTable.export.xlsx", "Export Excel") : t === "pdf" ? e("dataTable.export.pdf", "Export PDF") : e("dataTable.export.custom", "Export");
|
|
512
540
|
}
|
|
513
|
-
function
|
|
514
|
-
return e === "csv" ? /* @__PURE__ */ d(
|
|
541
|
+
function Ga(e) {
|
|
542
|
+
return e === "csv" ? /* @__PURE__ */ d(Ce, { "aria-hidden": !0, className: "ds:size-4" }) : e === "xlsx" ? /* @__PURE__ */ d(oa, { "aria-hidden": !0, className: "ds:size-4" }) : e === "pdf" ? /* @__PURE__ */ d(Xe, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ d(Ce, { "aria-hidden": !0, className: "ds:size-4" });
|
|
515
543
|
}
|
|
516
|
-
const
|
|
544
|
+
const Oe = ({
|
|
517
545
|
format: e,
|
|
518
546
|
label: t,
|
|
519
547
|
onClick: n,
|
|
520
|
-
fileName:
|
|
548
|
+
fileName: a
|
|
521
549
|
}) => {
|
|
522
|
-
const { t: i } = A("ui"), { getApi: s } =
|
|
550
|
+
const { t: i } = A("ui"), { getApi: s } = Da(), g = G(() => {
|
|
523
551
|
const l = s();
|
|
524
552
|
if (e === "csv") {
|
|
525
553
|
l == null || l.exportDataAsCsv();
|
|
526
554
|
return;
|
|
527
555
|
}
|
|
528
556
|
if (e === "pdf") {
|
|
529
|
-
|
|
530
|
-
fileName:
|
|
557
|
+
rt(l, {
|
|
558
|
+
fileName: a ?? "data-table-export.pdf"
|
|
531
559
|
});
|
|
532
560
|
return;
|
|
533
561
|
}
|
|
534
562
|
if (e === "xlsx") {
|
|
535
|
-
|
|
536
|
-
fileName:
|
|
563
|
+
Ra(l, {
|
|
564
|
+
fileName: a ?? "data-table-export.xlsx"
|
|
537
565
|
});
|
|
538
566
|
return;
|
|
539
567
|
}
|
|
540
568
|
n == null || n(l);
|
|
541
|
-
}, [e,
|
|
542
|
-
return /* @__PURE__ */ d(
|
|
543
|
-
|
|
544
|
-
/* @__PURE__ */ d("span", { children: t ??
|
|
569
|
+
}, [e, a, n, s]);
|
|
570
|
+
return /* @__PURE__ */ d(xe.Item, { onSelect: g, children: /* @__PURE__ */ q("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
571
|
+
Ga(e),
|
|
572
|
+
/* @__PURE__ */ d("span", { children: t ?? Ea(i, e) })
|
|
545
573
|
] }) });
|
|
546
574
|
};
|
|
547
|
-
|
|
548
|
-
function
|
|
575
|
+
Oe.displayName = "DataTable.Toolbar.ExportMenu.Item";
|
|
576
|
+
function Fa(e) {
|
|
549
577
|
if (!e) return [];
|
|
550
|
-
const t = (
|
|
578
|
+
const t = (a) => a.getPinned() === "left" ? 0 : a.getPinned() === "right" ? 2 : 1;
|
|
551
579
|
return [...e.getAllGridColumns() ?? []].sort(
|
|
552
|
-
(
|
|
553
|
-
).map((
|
|
554
|
-
colId:
|
|
555
|
-
displayName: e.getDisplayNameForColumn(
|
|
556
|
-
visible:
|
|
557
|
-
}).filter((
|
|
580
|
+
(a, i) => t(a) - t(i)
|
|
581
|
+
).map((a) => a.getColDef().hide === void 0 && a.getColId().startsWith("ag-Grid-") ? null : {
|
|
582
|
+
colId: a.getColId(),
|
|
583
|
+
displayName: e.getDisplayNameForColumn(a, null) || a.getColId(),
|
|
584
|
+
visible: a.isVisible()
|
|
585
|
+
}).filter((a) => a !== null);
|
|
558
586
|
}
|
|
559
|
-
const
|
|
560
|
-
function({ label: t, icon: n, footer:
|
|
561
|
-
const { t: m } = A("ui"), { getApi:
|
|
587
|
+
const Le = $(
|
|
588
|
+
function({ label: t, icon: n, footer: a, header: i, intent: s = "outline", ...g }, l) {
|
|
589
|
+
const { t: m } = A("ui"), { getApi: f, markColumnsUserTouched: u } = Q(
|
|
562
590
|
"DataTable.Toolbar.ColumnToggle"
|
|
563
|
-
), [
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
}, [
|
|
567
|
-
const D =
|
|
568
|
-
(x,
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
(
|
|
572
|
-
(
|
|
591
|
+
), [h, v] = L(!1), [w, p] = L([]), [T, S] = L(null), [R, C] = L(null);
|
|
592
|
+
B(() => {
|
|
593
|
+
h && p(Fa(f()));
|
|
594
|
+
}, [h, f]);
|
|
595
|
+
const D = G(
|
|
596
|
+
(x, k) => {
|
|
597
|
+
const V = f();
|
|
598
|
+
V && (V.setColumnsVisible([x], k), u == null || u([x]), p(
|
|
599
|
+
(I) => I.map(
|
|
600
|
+
(W) => W.colId === x ? { ...W, visible: k } : W
|
|
573
601
|
)
|
|
574
602
|
));
|
|
575
603
|
},
|
|
576
|
-
[
|
|
577
|
-
), te =
|
|
578
|
-
(x,
|
|
579
|
-
if (x ===
|
|
580
|
-
const
|
|
581
|
-
if (!
|
|
582
|
-
p((
|
|
583
|
-
const
|
|
584
|
-
if (
|
|
585
|
-
const
|
|
586
|
-
return
|
|
604
|
+
[f, u]
|
|
605
|
+
), te = G(
|
|
606
|
+
(x, k) => {
|
|
607
|
+
if (x === k) return;
|
|
608
|
+
const V = f();
|
|
609
|
+
if (!V) return;
|
|
610
|
+
p((N) => {
|
|
611
|
+
const O = N.findIndex((le) => le.colId === x), E = N.findIndex((le) => le.colId === k);
|
|
612
|
+
if (O < 0 || E < 0) return N;
|
|
613
|
+
const X = [...N], [ie] = X.splice(O, 1);
|
|
614
|
+
return X.splice(E, 0, ie), X;
|
|
587
615
|
});
|
|
588
|
-
const
|
|
589
|
-
if (!
|
|
590
|
-
|
|
591
|
-
const
|
|
592
|
-
|
|
616
|
+
const I = V.getAllGridColumns(), W = I.find((N) => N.getColId() === x), M = I.find((N) => N.getColId() === k);
|
|
617
|
+
if (!W || !M) return;
|
|
618
|
+
W.getPinned() !== M.getPinned() && V.setColumnsPinned([x], M.getPinned() ?? null);
|
|
619
|
+
const U = V.getAllGridColumns().findIndex((N) => N.getColId() === k);
|
|
620
|
+
U >= 0 && V.moveColumns([x], U);
|
|
593
621
|
},
|
|
594
|
-
[
|
|
595
|
-
),
|
|
596
|
-
return /* @__PURE__ */
|
|
597
|
-
/* @__PURE__ */ d(
|
|
598
|
-
|
|
622
|
+
[f]
|
|
623
|
+
), Z = t ?? m("dataTable.columnToggle");
|
|
624
|
+
return /* @__PURE__ */ q(Te.Root, { open: h, onOpenChange: v, children: [
|
|
625
|
+
/* @__PURE__ */ d(Te.Trigger, { asChild: !0, children: /* @__PURE__ */ d(
|
|
626
|
+
oe,
|
|
599
627
|
{
|
|
600
628
|
ref: l,
|
|
601
629
|
type: "button",
|
|
602
630
|
intent: s,
|
|
603
|
-
icon: n ?? /* @__PURE__ */ d(
|
|
604
|
-
tooltip:
|
|
605
|
-
"aria-label":
|
|
631
|
+
icon: n ?? /* @__PURE__ */ d(ma, { "aria-hidden": !0 }),
|
|
632
|
+
tooltip: Z,
|
|
633
|
+
"aria-label": Z,
|
|
606
634
|
"aria-haspopup": "dialog",
|
|
607
|
-
...
|
|
635
|
+
...g
|
|
608
636
|
}
|
|
609
637
|
) }),
|
|
610
|
-
/* @__PURE__ */
|
|
611
|
-
|
|
638
|
+
/* @__PURE__ */ q(
|
|
639
|
+
Te.Content,
|
|
612
640
|
{
|
|
613
641
|
size: "sm",
|
|
614
642
|
align: "end",
|
|
615
643
|
className: "ds:flex ds:max-h-[var(--radix-popover-content-available-height)] ds:flex-col",
|
|
616
644
|
children: [
|
|
617
|
-
/* @__PURE__ */ d(
|
|
645
|
+
/* @__PURE__ */ d(Te.Heading, { children: Z }),
|
|
618
646
|
i ? /* @__PURE__ */ d("div", { className: "ds:mb-[var(--spacing-xs)] ds:border-b ds:border-[color:var(--border)] ds:pb-[var(--spacing-sm)]", children: i }) : null,
|
|
619
647
|
/* @__PURE__ */ d(
|
|
620
648
|
"ul",
|
|
621
649
|
{
|
|
622
650
|
className: "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto",
|
|
623
|
-
"aria-label":
|
|
651
|
+
"aria-label": Z,
|
|
624
652
|
children: w.map((x) => {
|
|
625
|
-
const
|
|
626
|
-
return /* @__PURE__ */
|
|
653
|
+
const k = T === x.colId, V = R === x.colId && T !== x.colId;
|
|
654
|
+
return /* @__PURE__ */ q(
|
|
627
655
|
"li",
|
|
628
656
|
{
|
|
629
657
|
draggable: !0,
|
|
630
|
-
onDragStart: (
|
|
631
|
-
S(x.colId),
|
|
658
|
+
onDragStart: (I) => {
|
|
659
|
+
S(x.colId), I.dataTransfer.effectAllowed = "move", I.dataTransfer.setData("text/plain", x.colId);
|
|
632
660
|
},
|
|
633
|
-
onDragOver: (
|
|
634
|
-
|
|
661
|
+
onDragOver: (I) => {
|
|
662
|
+
I.preventDefault(), I.dataTransfer.dropEffect = "move", C(x.colId);
|
|
635
663
|
},
|
|
636
664
|
onDragLeave: () => {
|
|
637
665
|
C(
|
|
638
|
-
(
|
|
666
|
+
(I) => I === x.colId ? null : I
|
|
639
667
|
);
|
|
640
668
|
},
|
|
641
|
-
onDrop: (
|
|
642
|
-
|
|
643
|
-
const
|
|
644
|
-
|
|
669
|
+
onDrop: (I) => {
|
|
670
|
+
I.preventDefault();
|
|
671
|
+
const W = I.dataTransfer.getData("text/plain");
|
|
672
|
+
W && te(W, x.colId), S(null), C(null);
|
|
645
673
|
},
|
|
646
674
|
onDragEnd: () => {
|
|
647
675
|
S(null), C(null);
|
|
648
676
|
},
|
|
649
677
|
className: [
|
|
650
678
|
"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",
|
|
651
|
-
|
|
652
|
-
|
|
679
|
+
k ? "ds:opacity-50" : "",
|
|
680
|
+
V ? "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]" : ""
|
|
653
681
|
].filter(Boolean).join(" "),
|
|
654
682
|
children: [
|
|
655
683
|
/* @__PURE__ */ d(
|
|
@@ -657,15 +685,15 @@ const Me = U(
|
|
|
657
685
|
{
|
|
658
686
|
"aria-hidden": "true",
|
|
659
687
|
className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
|
|
660
|
-
children: /* @__PURE__ */ d(
|
|
688
|
+
children: /* @__PURE__ */ d(ra, { className: "ds:size-4" })
|
|
661
689
|
}
|
|
662
690
|
),
|
|
663
691
|
/* @__PURE__ */ d(
|
|
664
|
-
|
|
692
|
+
Jt,
|
|
665
693
|
{
|
|
666
694
|
label: x.displayName,
|
|
667
695
|
checked: x.visible,
|
|
668
|
-
onCheckedChange: (
|
|
696
|
+
onCheckedChange: (I) => D(x.colId, I === !0)
|
|
669
697
|
}
|
|
670
698
|
)
|
|
671
699
|
]
|
|
@@ -675,29 +703,29 @@ const Me = U(
|
|
|
675
703
|
})
|
|
676
704
|
}
|
|
677
705
|
),
|
|
678
|
-
|
|
706
|
+
a ? /* @__PURE__ */ d("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: a }) : null
|
|
679
707
|
]
|
|
680
708
|
}
|
|
681
709
|
)
|
|
682
710
|
] });
|
|
683
711
|
}
|
|
684
712
|
);
|
|
685
|
-
|
|
686
|
-
const
|
|
687
|
-
({ label: e, icon: t, onClick: n, variant:
|
|
688
|
-
const { t: l } = A("ui"), { getApi: m, selectionCount:
|
|
713
|
+
Le.displayName = "DataTable.Toolbar.ColumnToggle";
|
|
714
|
+
const st = $(
|
|
715
|
+
({ label: e, icon: t, onClick: n, variant: a = "default", size: i = "sm", ...s }, g) => {
|
|
716
|
+
const { t: l } = A("ui"), { getApi: m, selectionCount: f } = Q(
|
|
689
717
|
"DataTable.Toolbar.BulkAction"
|
|
690
718
|
);
|
|
691
|
-
return
|
|
692
|
-
|
|
719
|
+
return f === 0 ? null : /* @__PURE__ */ q(
|
|
720
|
+
ce,
|
|
693
721
|
{
|
|
694
|
-
ref:
|
|
722
|
+
ref: g,
|
|
695
723
|
type: "button",
|
|
696
|
-
intent:
|
|
724
|
+
intent: a === "destructive" ? "destructive" : "secondary",
|
|
697
725
|
size: i,
|
|
698
|
-
startIcon:
|
|
726
|
+
startIcon: xa(t),
|
|
699
727
|
onClick: () => n(m()),
|
|
700
|
-
"aria-label": `${e} (${l("dataTable.bulkAction", { count:
|
|
728
|
+
"aria-label": `${e} (${l("dataTable.bulkAction", { count: f })})`,
|
|
701
729
|
...s,
|
|
702
730
|
children: [
|
|
703
731
|
/* @__PURE__ */ d("span", { children: e }),
|
|
@@ -706,7 +734,7 @@ const rt = U(
|
|
|
706
734
|
{
|
|
707
735
|
"aria-hidden": "true",
|
|
708
736
|
className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
|
|
709
|
-
children: l("dataTable.bulkAction", { count:
|
|
737
|
+
children: l("dataTable.bulkAction", { count: f })
|
|
710
738
|
}
|
|
711
739
|
)
|
|
712
740
|
]
|
|
@@ -714,77 +742,77 @@ const rt = U(
|
|
|
714
742
|
);
|
|
715
743
|
}
|
|
716
744
|
);
|
|
717
|
-
|
|
745
|
+
st.displayName = "DataTable.Toolbar.BulkAction";
|
|
718
746
|
for (const e of [
|
|
719
|
-
Ee,
|
|
720
|
-
Ie,
|
|
721
747
|
Ne,
|
|
722
748
|
ke,
|
|
723
749
|
Pe,
|
|
724
|
-
|
|
750
|
+
Ae,
|
|
751
|
+
Me,
|
|
752
|
+
Le
|
|
725
753
|
])
|
|
726
754
|
e.rendersIconButton = !0;
|
|
727
|
-
const
|
|
728
|
-
Item:
|
|
729
|
-
}),
|
|
730
|
-
FilterBar:
|
|
731
|
-
Actions:
|
|
755
|
+
const Ia = Object.assign(Me, {
|
|
756
|
+
Item: Oe
|
|
757
|
+
}), we = Object.assign(et, {
|
|
758
|
+
FilterBar: tt,
|
|
759
|
+
Actions: at,
|
|
732
760
|
/** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
|
|
733
|
-
ExportCsv:
|
|
761
|
+
ExportCsv: Ne,
|
|
734
762
|
/** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
|
|
735
|
-
ExportPdf:
|
|
736
|
-
Print:
|
|
737
|
-
ColumnToggle:
|
|
738
|
-
BulkAction:
|
|
739
|
-
QuickSearch:
|
|
740
|
-
Refresh:
|
|
741
|
-
FilterChips:
|
|
742
|
-
FacetFilter:
|
|
743
|
-
ExportMenu:
|
|
744
|
-
}),
|
|
763
|
+
ExportPdf: ke,
|
|
764
|
+
Print: Pe,
|
|
765
|
+
ColumnToggle: Le,
|
|
766
|
+
BulkAction: st,
|
|
767
|
+
QuickSearch: nt,
|
|
768
|
+
Refresh: Ae,
|
|
769
|
+
FilterChips: ot,
|
|
770
|
+
FacetFilter: it,
|
|
771
|
+
ExportMenu: Ia
|
|
772
|
+
}), Na = [
|
|
745
773
|
"contains",
|
|
746
774
|
"equals",
|
|
747
775
|
"startsWith",
|
|
748
776
|
"endsWith",
|
|
749
777
|
"notContains"
|
|
750
778
|
];
|
|
751
|
-
function
|
|
779
|
+
function ka(e) {
|
|
752
780
|
const t = new Intl.Collator(e, {
|
|
753
781
|
sensitivity: "base",
|
|
754
782
|
usage: "search"
|
|
755
783
|
});
|
|
756
|
-
function n(
|
|
784
|
+
function n(a, i) {
|
|
757
785
|
if (i.length === 0) return 0;
|
|
758
|
-
if (i.length >
|
|
759
|
-
for (let s = 0; s <=
|
|
760
|
-
if (t.compare(
|
|
786
|
+
if (i.length > a.length) return -1;
|
|
787
|
+
for (let s = 0; s <= a.length - i.length; s += 1)
|
|
788
|
+
if (t.compare(a.slice(s, s + i.length), i) === 0)
|
|
761
789
|
return s;
|
|
762
790
|
return -1;
|
|
763
791
|
}
|
|
764
792
|
return {
|
|
765
|
-
equals: (
|
|
766
|
-
contains: (
|
|
767
|
-
startsWith: (
|
|
768
|
-
endsWith: (
|
|
769
|
-
|
|
793
|
+
equals: (a, i) => t.compare(a, i) === 0,
|
|
794
|
+
contains: (a, i) => n(a, i) !== -1,
|
|
795
|
+
startsWith: (a, i) => i.length <= a.length && t.compare(a.slice(0, i.length), i) === 0,
|
|
796
|
+
endsWith: (a, i) => i.length <= a.length && t.compare(
|
|
797
|
+
a.slice(a.length - i.length),
|
|
770
798
|
i
|
|
771
799
|
) === 0
|
|
772
800
|
};
|
|
773
801
|
}
|
|
774
|
-
function
|
|
802
|
+
function Pa(e) {
|
|
775
803
|
return e == null ? null : typeof e == "string" ? e : String(e);
|
|
776
804
|
}
|
|
777
|
-
function
|
|
778
|
-
const { model: t, onModelChange: n, getValue:
|
|
779
|
-
|
|
780
|
-
|
|
805
|
+
function Aa(e) {
|
|
806
|
+
const { model: t, onModelChange: n, getValue: a, placeholder: i, defaultOperator: s } = e, { t: g } = A("ui"), l = (t == null ? void 0 : t.type) ?? s ?? "contains", [m, f] = L(l), [u, h] = L((t == null ? void 0 : t.filter) ?? "");
|
|
807
|
+
B(() => {
|
|
808
|
+
f((t == null ? void 0 : t.type) ?? s ?? "contains"), h((t == null ? void 0 : t.filter) ?? "");
|
|
781
809
|
}, [t, s]);
|
|
782
|
-
const v = z(() =>
|
|
783
|
-
|
|
810
|
+
const v = z(() => ka(ia.language), []);
|
|
811
|
+
Ht({
|
|
784
812
|
doesFilterPass: (R) => {
|
|
785
813
|
const C = t;
|
|
786
814
|
if (!C || C.filter === "") return !0;
|
|
787
|
-
const D =
|
|
815
|
+
const D = Pa(a(R.node));
|
|
788
816
|
if (D === null) return !1;
|
|
789
817
|
switch (C.type) {
|
|
790
818
|
case "equals":
|
|
@@ -810,82 +838,82 @@ function Sa(e) {
|
|
|
810
838
|
n({ type: m, filter: u });
|
|
811
839
|
}
|
|
812
840
|
function p() {
|
|
813
|
-
|
|
841
|
+
h(""), f(s ?? "contains"), n(null);
|
|
814
842
|
}
|
|
815
|
-
const
|
|
843
|
+
const T = Na.map(
|
|
816
844
|
(R) => ({
|
|
817
845
|
value: R,
|
|
818
|
-
label:
|
|
846
|
+
label: g(`dataTable.textFilter.operators.${R}`)
|
|
819
847
|
})
|
|
820
|
-
), S = i ??
|
|
821
|
-
return /* @__PURE__ */
|
|
848
|
+
), S = i ?? g("dataTable.textFilter.placeholder");
|
|
849
|
+
return /* @__PURE__ */ q(
|
|
822
850
|
"div",
|
|
823
851
|
{
|
|
824
852
|
"data-component": "text-filter",
|
|
825
853
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
826
854
|
children: [
|
|
827
855
|
/* @__PURE__ */ d(
|
|
828
|
-
|
|
856
|
+
la,
|
|
829
857
|
{
|
|
830
858
|
size: "sm",
|
|
831
|
-
options:
|
|
859
|
+
options: T,
|
|
832
860
|
value: m,
|
|
833
861
|
onValueChange: (R) => {
|
|
834
|
-
R !== "" &&
|
|
862
|
+
R !== "" && f(R);
|
|
835
863
|
},
|
|
836
|
-
"aria-label":
|
|
864
|
+
"aria-label": g("dataTable.textFilter.operators.contains")
|
|
837
865
|
}
|
|
838
866
|
),
|
|
839
867
|
/* @__PURE__ */ d(
|
|
840
|
-
|
|
868
|
+
Ye,
|
|
841
869
|
{
|
|
842
870
|
size: "sm",
|
|
843
871
|
value: u,
|
|
844
|
-
onChange: (R) =>
|
|
872
|
+
onChange: (R) => h(R.target.value),
|
|
845
873
|
onKeyDown: (R) => {
|
|
846
874
|
R.key === "Enter" && (R.preventDefault(), w());
|
|
847
875
|
},
|
|
848
876
|
placeholder: S,
|
|
849
877
|
"aria-label": S,
|
|
850
|
-
startAdornment: /* @__PURE__ */ d(
|
|
878
|
+
startAdornment: /* @__PURE__ */ d(Ie, { "aria-hidden": "true", className: "ds:size-4" })
|
|
851
879
|
}
|
|
852
880
|
),
|
|
853
|
-
/* @__PURE__ */
|
|
854
|
-
/* @__PURE__ */ d(
|
|
855
|
-
/* @__PURE__ */ d(
|
|
881
|
+
/* @__PURE__ */ q("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
|
|
882
|
+
/* @__PURE__ */ d(ce, { intent: "ghost", size: "sm", onClick: p, type: "button", children: g("dataTable.textFilter.clear") }),
|
|
883
|
+
/* @__PURE__ */ d(ce, { intent: "primary", size: "sm", onClick: w, type: "button", children: g("dataTable.textFilter.apply") })
|
|
856
884
|
] })
|
|
857
885
|
]
|
|
858
886
|
}
|
|
859
887
|
);
|
|
860
888
|
}
|
|
861
|
-
function
|
|
862
|
-
var
|
|
863
|
-
const { model: t, onModelChange: n, column:
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
}, [t == null ? void 0 : t.filter]),
|
|
889
|
+
function Ma(e) {
|
|
890
|
+
var h, v;
|
|
891
|
+
const { model: t, onModelChange: n, column: a } = e, { t: i } = A("ui"), s = ((v = (h = a == null ? void 0 : a.getColDef) == null ? void 0 : h.call(a)) == null ? void 0 : v.filterParams) ?? {}, g = s.defaultOperator ?? "contains", l = s.placeholder ?? i("dataTable.textFilter.placeholder"), [m, f] = L((t == null ? void 0 : t.filter) ?? "");
|
|
892
|
+
B(() => {
|
|
893
|
+
f((t == null ? void 0 : t.filter) ?? "");
|
|
894
|
+
}, [t == null ? void 0 : t.filter]), B(() => {
|
|
867
895
|
if (m === ((t == null ? void 0 : t.filter) ?? "")) return;
|
|
868
896
|
const w = setTimeout(() => {
|
|
869
897
|
if (m === "") {
|
|
870
898
|
t && n(null);
|
|
871
899
|
return;
|
|
872
900
|
}
|
|
873
|
-
n({ type:
|
|
901
|
+
n({ type: g, filter: m });
|
|
874
902
|
}, 200);
|
|
875
903
|
return () => clearTimeout(w);
|
|
876
|
-
}, [m,
|
|
904
|
+
}, [m, g, t, n]);
|
|
877
905
|
function u() {
|
|
878
|
-
|
|
906
|
+
f(""), t && n(null);
|
|
879
907
|
}
|
|
880
908
|
return /* @__PURE__ */ d("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ d(
|
|
881
|
-
|
|
909
|
+
Ye,
|
|
882
910
|
{
|
|
883
911
|
size: "sm",
|
|
884
912
|
value: m,
|
|
885
|
-
onChange: (w) =>
|
|
913
|
+
onChange: (w) => f(w.target.value),
|
|
886
914
|
placeholder: l,
|
|
887
915
|
"aria-label": l,
|
|
888
|
-
startAdornment: /* @__PURE__ */ d(
|
|
916
|
+
startAdornment: /* @__PURE__ */ d(Ie, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
889
917
|
endAdornment: m.length > 0 ? /* @__PURE__ */ d(
|
|
890
918
|
"button",
|
|
891
919
|
{
|
|
@@ -893,34 +921,34 @@ function Ra(e) {
|
|
|
893
921
|
"aria-label": i("dataTable.textFilter.clear"),
|
|
894
922
|
onClick: u,
|
|
895
923
|
className: "ds:pointer-events-auto ds:flex ds:items-center ds:text-[var(--muted-foreground)] ds:hover:text-[var(--foreground)] ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
896
|
-
children: /* @__PURE__ */ d(
|
|
924
|
+
children: /* @__PURE__ */ d(Qe, { "aria-hidden": "true", className: "ds:size-4" })
|
|
897
925
|
}
|
|
898
926
|
) : void 0
|
|
899
927
|
}
|
|
900
928
|
) });
|
|
901
929
|
}
|
|
902
|
-
const
|
|
903
|
-
function
|
|
930
|
+
const Oa = /* @__PURE__ */ new Set(["presentation", "none"]), Ke = '[role="presentation"][aria-hidden], [role="none"][aria-hidden]';
|
|
931
|
+
function ye(e) {
|
|
904
932
|
const t = e.getAttribute("role");
|
|
905
|
-
t === null || !
|
|
933
|
+
t === null || !Oa.has(t) || e.getAttribute("aria-hidden") === "false" && e.removeAttribute("aria-hidden");
|
|
906
934
|
}
|
|
907
|
-
function
|
|
908
|
-
|
|
935
|
+
function La(e, t = !0) {
|
|
936
|
+
B(() => {
|
|
909
937
|
const n = e.current;
|
|
910
938
|
if (!t || !n || typeof MutationObserver > "u") return;
|
|
911
939
|
(() => {
|
|
912
|
-
for (const s of n.querySelectorAll(
|
|
940
|
+
for (const s of n.querySelectorAll(Ke)) ye(s);
|
|
913
941
|
})();
|
|
914
942
|
const i = new MutationObserver((s) => {
|
|
915
|
-
for (const
|
|
916
|
-
if (
|
|
917
|
-
|
|
943
|
+
for (const g of s)
|
|
944
|
+
if (g.type === "attributes")
|
|
945
|
+
ye(g.target);
|
|
918
946
|
else
|
|
919
|
-
for (const l of
|
|
947
|
+
for (const l of g.addedNodes)
|
|
920
948
|
if (l instanceof Element) {
|
|
921
|
-
|
|
922
|
-
for (const m of l.querySelectorAll(
|
|
923
|
-
|
|
949
|
+
ye(l);
|
|
950
|
+
for (const m of l.querySelectorAll(Ke))
|
|
951
|
+
ye(m);
|
|
924
952
|
}
|
|
925
953
|
});
|
|
926
954
|
return i.observe(n, {
|
|
@@ -931,70 +959,70 @@ function Ga(e, t = !0) {
|
|
|
931
959
|
}), () => i.disconnect();
|
|
932
960
|
}, [e, t]);
|
|
933
961
|
}
|
|
934
|
-
const
|
|
935
|
-
function
|
|
936
|
-
return typeof e == "object" && e !== null && typeof e[
|
|
962
|
+
const ne = "__dsDetailOf", Va = "ds-data-table-expanded-row", dt = "::detail", za = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
963
|
+
function j(e) {
|
|
964
|
+
return typeof e == "object" && e !== null && typeof e[ne] == "string";
|
|
937
965
|
}
|
|
938
|
-
function
|
|
939
|
-
return `${e}${
|
|
966
|
+
function _a(e) {
|
|
967
|
+
return `${e}${dt}`;
|
|
940
968
|
}
|
|
941
|
-
function
|
|
942
|
-
return e.endsWith(
|
|
969
|
+
function Mr(e) {
|
|
970
|
+
return e.endsWith(dt);
|
|
943
971
|
}
|
|
944
|
-
function
|
|
945
|
-
return { ...e, [
|
|
972
|
+
function qa(e, t) {
|
|
973
|
+
return { ...e, [ne]: t };
|
|
946
974
|
}
|
|
947
|
-
const
|
|
975
|
+
const ct = Ge(
|
|
948
976
|
null
|
|
949
977
|
);
|
|
950
|
-
function
|
|
978
|
+
function Wa(e) {
|
|
951
979
|
var p;
|
|
952
|
-
const t =
|
|
953
|
-
|
|
954
|
-
), { t: n } = A("ui"),
|
|
955
|
-
if (u.current = t,
|
|
956
|
-
const
|
|
957
|
-
if (!
|
|
958
|
-
let S = m.get(
|
|
980
|
+
const t = Fe(
|
|
981
|
+
ct
|
|
982
|
+
), { t: n } = A("ui"), a = _(null), { data: i, node: s, api: g } = e, l = j(i), m = t == null ? void 0 : t.heights, f = s.id, u = _(t);
|
|
983
|
+
if (u.current = t, B(() => {
|
|
984
|
+
const T = a.current;
|
|
985
|
+
if (!T || !l || !m || f == null) return;
|
|
986
|
+
let S = m.get(f) ?? 0;
|
|
959
987
|
const R = () => {
|
|
960
|
-
const D = Math.ceil(
|
|
961
|
-
D <= 0 || D === S || (S = D, m.set(
|
|
988
|
+
const D = Math.ceil(T.getBoundingClientRect().height);
|
|
989
|
+
D <= 0 || D === S || (S = D, m.set(f, D), s.setRowHeight(D), g.onRowHeightChanged());
|
|
962
990
|
};
|
|
963
991
|
R();
|
|
964
992
|
const C = new ResizeObserver(R);
|
|
965
|
-
return C.observe(
|
|
966
|
-
}, [
|
|
967
|
-
const
|
|
968
|
-
if (!
|
|
993
|
+
return C.observe(T), () => C.disconnect();
|
|
994
|
+
}, [g, f, m, l, s]), B(() => {
|
|
995
|
+
const T = a.current, S = T == null ? void 0 : T.parentElement;
|
|
996
|
+
if (!T || !S || !l) return;
|
|
969
997
|
const R = (C) => {
|
|
970
998
|
var D, te;
|
|
971
|
-
C.target !== S || C.defaultPrevented || (C.key === "Escape" ? (C.stopPropagation(), (te = (D = u.current) == null ? void 0 : D.onExpandedRowChange) == null || te.call(D, null)) : C.key === "Enter" && (C.preventDefault(), (
|
|
999
|
+
C.target !== S || C.defaultPrevented || (C.key === "Escape" ? (C.stopPropagation(), (te = (D = u.current) == null ? void 0 : D.onExpandedRowChange) == null || te.call(D, null)) : C.key === "Enter" && (C.preventDefault(), (T.querySelector(za) ?? T).focus()));
|
|
972
1000
|
};
|
|
973
1001
|
return S.addEventListener("keydown", R), () => S.removeEventListener("keydown", R);
|
|
974
1002
|
}, [l]), !l) {
|
|
975
|
-
const
|
|
976
|
-
return
|
|
1003
|
+
const T = t == null ? void 0 : t.fallbackRenderer;
|
|
1004
|
+
return T ? /* @__PURE__ */ d(T, { ...e }) : null;
|
|
977
1005
|
}
|
|
978
|
-
const
|
|
1006
|
+
const h = i[ne];
|
|
979
1007
|
let v;
|
|
980
|
-
if (t != null && t.expanded && t.expanded.id ===
|
|
1008
|
+
if (t != null && t.expanded && t.expanded.id === h)
|
|
981
1009
|
v = t.expanded.row;
|
|
982
1010
|
else {
|
|
983
|
-
const { [
|
|
1011
|
+
const { [ne]: T, ...S } = i;
|
|
984
1012
|
v = S;
|
|
985
1013
|
}
|
|
986
|
-
return /* @__PURE__ */
|
|
1014
|
+
return /* @__PURE__ */ q(
|
|
987
1015
|
"div",
|
|
988
1016
|
{
|
|
989
|
-
ref:
|
|
1017
|
+
ref: a,
|
|
990
1018
|
role: "gridcell",
|
|
991
1019
|
tabIndex: -1,
|
|
992
1020
|
"data-component": "data-table-expanded-row",
|
|
993
|
-
"data-expanded-row-of":
|
|
1021
|
+
"data-expanded-row-of": h,
|
|
994
1022
|
className: "ds-data-table-expanded-row-surface",
|
|
995
|
-
onKeyDown: (
|
|
1023
|
+
onKeyDown: (T) => {
|
|
996
1024
|
var S;
|
|
997
|
-
|
|
1025
|
+
T.key !== "Escape" || T.defaultPrevented || (T.stopPropagation(), (S = t == null ? void 0 : t.onExpandedRowChange) == null || S.call(t, null));
|
|
998
1026
|
},
|
|
999
1027
|
children: [
|
|
1000
1028
|
/* @__PURE__ */ d("span", { className: "ds:sr-only", children: n("dataTable.expandedRow") }),
|
|
@@ -1003,7 +1031,7 @@ function ka(e) {
|
|
|
1003
1031
|
}
|
|
1004
1032
|
);
|
|
1005
1033
|
}
|
|
1006
|
-
const
|
|
1034
|
+
const ja = {
|
|
1007
1035
|
id: "data-table",
|
|
1008
1036
|
capabilities: [
|
|
1009
1037
|
"select_single",
|
|
@@ -1201,12 +1229,12 @@ const Pa = {
|
|
|
1201
1229
|
}
|
|
1202
1230
|
}
|
|
1203
1231
|
};
|
|
1204
|
-
function
|
|
1205
|
-
const
|
|
1232
|
+
function Ba(e, t, n) {
|
|
1233
|
+
const a = ua(t), i = new Intl.DateTimeFormat(a, {
|
|
1206
1234
|
calendar: "gregory",
|
|
1207
1235
|
month: "long",
|
|
1208
1236
|
timeZone: "UTC"
|
|
1209
|
-
}), s = new Intl.NumberFormat(
|
|
1237
|
+
}), s = new Intl.NumberFormat(a).formatToParts(1000.1), g = {
|
|
1210
1238
|
ariaIndeterminate: () => e("dataTable.agGrid.ariaIndeterminate"),
|
|
1211
1239
|
ariaChecked: () => e("dataTable.agGrid.ariaChecked"),
|
|
1212
1240
|
ariaUnchecked: () => e("dataTable.agGrid.ariaUnchecked"),
|
|
@@ -1362,19 +1390,19 @@ function Aa(e, t, n) {
|
|
|
1362
1390
|
ariaRowDeselect: () => e("dataTable.agGrid.ariaRowDeselect"),
|
|
1363
1391
|
ariaRowSelect: () => e("dataTable.agGrid.ariaRowSelect")
|
|
1364
1392
|
};
|
|
1365
|
-
return ({ key: l, defaultValue: m, variableValues:
|
|
1393
|
+
return ({ key: l, defaultValue: m, variableValues: f = [] }) => {
|
|
1366
1394
|
if (n && Object.hasOwn(n, l)) {
|
|
1367
1395
|
let u = 0;
|
|
1368
1396
|
return n[l].replace(
|
|
1369
1397
|
/\$\{variable\}/g,
|
|
1370
|
-
(
|
|
1398
|
+
(h) => f[u++] ?? h
|
|
1371
1399
|
);
|
|
1372
1400
|
}
|
|
1373
|
-
return Object.hasOwn(
|
|
1401
|
+
return Object.hasOwn(g, l) ? g[l](f) : m;
|
|
1374
1402
|
};
|
|
1375
1403
|
}
|
|
1376
|
-
|
|
1377
|
-
const
|
|
1404
|
+
Qt.registerModules([Xt]);
|
|
1405
|
+
const $a = Ut("ag-theme-alfadocs ds:w-full", {
|
|
1378
1406
|
variants: {
|
|
1379
1407
|
density: {
|
|
1380
1408
|
default: "",
|
|
@@ -1391,7 +1419,7 @@ const Ma = qt("ag-theme-alfadocs ds:w-full", {
|
|
|
1391
1419
|
bordered: !0
|
|
1392
1420
|
}
|
|
1393
1421
|
});
|
|
1394
|
-
function
|
|
1422
|
+
function Ua() {
|
|
1395
1423
|
return /* @__PURE__ */ d(
|
|
1396
1424
|
"div",
|
|
1397
1425
|
{
|
|
@@ -1399,7 +1427,7 @@ function Oa() {
|
|
|
1399
1427
|
"aria-live": "polite",
|
|
1400
1428
|
className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
|
|
1401
1429
|
children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ d(
|
|
1402
|
-
|
|
1430
|
+
Bt,
|
|
1403
1431
|
{
|
|
1404
1432
|
variant: "rectangular",
|
|
1405
1433
|
className: "ds:h-[var(--min-target-size)] ds:w-full"
|
|
@@ -1409,10 +1437,10 @@ function Oa() {
|
|
|
1409
1437
|
}
|
|
1410
1438
|
);
|
|
1411
1439
|
}
|
|
1412
|
-
function
|
|
1440
|
+
function Ha() {
|
|
1413
1441
|
const { t: e } = A("ui");
|
|
1414
1442
|
return /* @__PURE__ */ d(
|
|
1415
|
-
|
|
1443
|
+
$t,
|
|
1416
1444
|
{
|
|
1417
1445
|
variant: "no-results",
|
|
1418
1446
|
size: "sm",
|
|
@@ -1421,39 +1449,39 @@ function La() {
|
|
|
1421
1449
|
}
|
|
1422
1450
|
);
|
|
1423
1451
|
}
|
|
1424
|
-
function
|
|
1452
|
+
function Ka(e) {
|
|
1425
1453
|
return e.map(({ pinned: t, ...n }) => n);
|
|
1426
1454
|
}
|
|
1427
|
-
function
|
|
1428
|
-
return e.map(({ hide: t, pinned: n, ...
|
|
1455
|
+
function Qa(e) {
|
|
1456
|
+
return e.map(({ hide: t, pinned: n, ...a }) => a);
|
|
1429
1457
|
}
|
|
1430
|
-
function
|
|
1458
|
+
function Xa(e, t) {
|
|
1431
1459
|
try {
|
|
1432
1460
|
const n = localStorage.getItem(`data-table-col-state:${e}`);
|
|
1433
1461
|
if (!n) return null;
|
|
1434
|
-
const
|
|
1435
|
-
if (Array.isArray(
|
|
1462
|
+
const a = JSON.parse(n);
|
|
1463
|
+
if (Array.isArray(a))
|
|
1436
1464
|
return {
|
|
1437
|
-
state:
|
|
1465
|
+
state: Qa(a),
|
|
1438
1466
|
touched: []
|
|
1439
1467
|
};
|
|
1440
|
-
if (typeof
|
|
1441
|
-
const i =
|
|
1468
|
+
if (typeof a != "object" || a === null) return null;
|
|
1469
|
+
const i = a;
|
|
1442
1470
|
return i.v !== 2 || !Array.isArray(i.state) ? null : {
|
|
1443
|
-
state: i.dir === t ? i.state :
|
|
1471
|
+
state: i.dir === t ? i.state : Ka(i.state),
|
|
1444
1472
|
touched: Array.isArray(i.touched) ? i.touched.filter((s) => typeof s == "string") : []
|
|
1445
1473
|
};
|
|
1446
1474
|
} catch {
|
|
1447
1475
|
return null;
|
|
1448
1476
|
}
|
|
1449
1477
|
}
|
|
1450
|
-
function
|
|
1478
|
+
function Ya(e, t, n, a) {
|
|
1451
1479
|
try {
|
|
1452
1480
|
const i = {
|
|
1453
1481
|
v: 2,
|
|
1454
1482
|
dir: n,
|
|
1455
1483
|
state: t.getColumnState(),
|
|
1456
|
-
touched: [...
|
|
1484
|
+
touched: [...a]
|
|
1457
1485
|
};
|
|
1458
1486
|
localStorage.setItem(
|
|
1459
1487
|
`data-table-col-state:${e}`,
|
|
@@ -1462,7 +1490,7 @@ function _a(e, t, n, r) {
|
|
|
1462
1490
|
} catch {
|
|
1463
1491
|
}
|
|
1464
1492
|
}
|
|
1465
|
-
const
|
|
1493
|
+
const Za = /* @__PURE__ */ new Set([
|
|
1466
1494
|
"api",
|
|
1467
1495
|
"flex",
|
|
1468
1496
|
"gridInitializing",
|
|
@@ -1470,429 +1498,447 @@ const ja = /* @__PURE__ */ new Set([
|
|
|
1470
1498
|
"autosizeColumns",
|
|
1471
1499
|
"sizeColumnsToFit"
|
|
1472
1500
|
]);
|
|
1473
|
-
function
|
|
1501
|
+
function Ja(e, t) {
|
|
1474
1502
|
const {
|
|
1475
1503
|
columnDefs: n,
|
|
1476
|
-
rowData:
|
|
1504
|
+
rowData: a,
|
|
1477
1505
|
rowSelection: i,
|
|
1478
1506
|
pagination: s = !1,
|
|
1479
|
-
paginationPageSize:
|
|
1507
|
+
paginationPageSize: g = 25,
|
|
1480
1508
|
paginationPageSizeSelector: l = [10, 25, 50, 100],
|
|
1481
1509
|
gridId: m,
|
|
1482
|
-
onSelectionChanged:
|
|
1510
|
+
onSelectionChanged: f,
|
|
1483
1511
|
onSortChanged: u,
|
|
1484
|
-
onFilterChanged:
|
|
1512
|
+
onFilterChanged: h,
|
|
1485
1513
|
noRowsOverlay: v,
|
|
1486
1514
|
loadingOverlay: w,
|
|
1487
1515
|
gridOptions: p,
|
|
1488
|
-
density:
|
|
1516
|
+
density: T,
|
|
1489
1517
|
bordered: S,
|
|
1490
1518
|
heightClass: R = "ds:h-[500px]",
|
|
1491
1519
|
className: C,
|
|
1492
1520
|
getRowClass: D,
|
|
1493
1521
|
pinnedBottomRowData: te,
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1522
|
+
hidePinnedWhenEmpty: Z = !1,
|
|
1523
|
+
printMode: x = !1,
|
|
1524
|
+
expandedRowId: k,
|
|
1525
|
+
renderExpandedRow: V,
|
|
1526
|
+
onExpandedRowChange: I,
|
|
1527
|
+
children: W
|
|
1528
|
+
} = e, M = k !== void 0 || V !== void 0, U = p == null ? void 0 : p.getRowId;
|
|
1529
|
+
if (M && !U)
|
|
1501
1530
|
throw new Error(
|
|
1502
1531
|
"DataTable: `expandedRowId` / `renderExpandedRow` require `gridOptions.getRowId` — the expanded row is addressed by row id, not by index."
|
|
1503
1532
|
);
|
|
1504
|
-
const { t:
|
|
1505
|
-
|
|
1506
|
-
const [
|
|
1507
|
-
() =>
|
|
1508
|
-
[
|
|
1509
|
-
), [
|
|
1510
|
-
|
|
1511
|
-
if (
|
|
1512
|
-
const
|
|
1513
|
-
var
|
|
1514
|
-
const o = (
|
|
1533
|
+
const { t: N, i18n: O } = A("ui"), E = _(null), X = _(null);
|
|
1534
|
+
La(X);
|
|
1535
|
+
const [ie, le] = L(0), [ve, Se] = L(""), ue = _(void 0), pt = z(
|
|
1536
|
+
() => Ba(N, O.language, p == null ? void 0 : p.localeText),
|
|
1537
|
+
[N, O.language, p == null ? void 0 : p.localeText]
|
|
1538
|
+
), [pe, mt] = L(O.language);
|
|
1539
|
+
B(() => {
|
|
1540
|
+
if (pe === O.language) return;
|
|
1541
|
+
const r = window.setTimeout(() => {
|
|
1542
|
+
var b, y;
|
|
1543
|
+
const o = (b = E.current) == null ? void 0 : b.api;
|
|
1515
1544
|
o == null || o.stopEditing();
|
|
1516
1545
|
const c = o == null ? void 0 : o.getState();
|
|
1517
1546
|
if (c) {
|
|
1518
|
-
const { focusedCell:
|
|
1519
|
-
|
|
1520
|
-
...
|
|
1521
|
-
...
|
|
1522
|
-
...
|
|
1547
|
+
const { focusedCell: F, columnPinning: P, ...Y } = c, K = ((y = X.current) == null ? void 0 : y.contains(document.activeElement)) ?? !1, he = O.dir(pe) === O.dir(O.language);
|
|
1548
|
+
ue.current = {
|
|
1549
|
+
...Y,
|
|
1550
|
+
...K ? { focusedCell: F } : {},
|
|
1551
|
+
...he ? { columnPinning: P } : {}
|
|
1523
1552
|
};
|
|
1524
|
-
} else
|
|
1525
|
-
|
|
1553
|
+
} else ue.current = void 0;
|
|
1554
|
+
mt(O.language);
|
|
1526
1555
|
}, 0);
|
|
1527
|
-
return () => window.clearTimeout(
|
|
1528
|
-
}, [
|
|
1529
|
-
const
|
|
1530
|
-
|
|
1531
|
-
const
|
|
1556
|
+
return () => window.clearTimeout(r);
|
|
1557
|
+
}, [pe, O, O.language]);
|
|
1558
|
+
const Ve = _(k);
|
|
1559
|
+
Ve.current = k;
|
|
1560
|
+
const Re = z(
|
|
1532
1561
|
() => ({
|
|
1533
1562
|
getSelection: () => {
|
|
1534
1563
|
var c;
|
|
1535
|
-
const
|
|
1536
|
-
if (!
|
|
1564
|
+
const r = (c = E.current) == null ? void 0 : c.api;
|
|
1565
|
+
if (!r) return [];
|
|
1537
1566
|
const o = [];
|
|
1538
|
-
for (const
|
|
1539
|
-
|
|
1567
|
+
for (const b of r.getSelectedNodes())
|
|
1568
|
+
b.id != null && !j(b.data) && o.push(b.id);
|
|
1540
1569
|
return o;
|
|
1541
1570
|
},
|
|
1542
|
-
setSelection: (
|
|
1543
|
-
var
|
|
1544
|
-
const o = (
|
|
1571
|
+
setSelection: (r) => {
|
|
1572
|
+
var b;
|
|
1573
|
+
const o = (b = E.current) == null ? void 0 : b.api;
|
|
1545
1574
|
if (!o) return;
|
|
1546
|
-
const c = new Set(
|
|
1575
|
+
const c = new Set(r);
|
|
1547
1576
|
o.forEachNode((y) => {
|
|
1548
1577
|
y.id != null && y.setSelected(c.has(y.id));
|
|
1549
1578
|
});
|
|
1550
1579
|
},
|
|
1551
|
-
selectRange: (
|
|
1552
|
-
var
|
|
1553
|
-
const c = (
|
|
1580
|
+
selectRange: (r, o) => {
|
|
1581
|
+
var he;
|
|
1582
|
+
const c = (he = E.current) == null ? void 0 : he.api;
|
|
1554
1583
|
if (!c) return;
|
|
1555
|
-
const
|
|
1584
|
+
const b = [];
|
|
1556
1585
|
c.forEachNodeAfterFilterAndSort((ee) => {
|
|
1557
|
-
ee.id != null && !
|
|
1586
|
+
ee.id != null && !j(ee.data) && b.push(ee.id);
|
|
1558
1587
|
});
|
|
1559
|
-
const y =
|
|
1560
|
-
if (y < 0 ||
|
|
1561
|
-
const [P,
|
|
1588
|
+
const y = b.indexOf(r), F = b.indexOf(o);
|
|
1589
|
+
if (y < 0 || F < 0) return;
|
|
1590
|
+
const [P, Y] = y <= F ? [y, F] : [F, y], K = new Set(b.slice(P, Y + 1));
|
|
1562
1591
|
c.forEachNode((ee) => {
|
|
1563
|
-
ee.id != null && ee.setSelected(
|
|
1592
|
+
ee.id != null && ee.setSelected(K.has(ee.id));
|
|
1564
1593
|
});
|
|
1565
1594
|
},
|
|
1566
1595
|
clearSelection: () => {
|
|
1567
|
-
var
|
|
1568
|
-
(o = (
|
|
1596
|
+
var r, o;
|
|
1597
|
+
(o = (r = E.current) == null ? void 0 : r.api) == null || o.deselectAll();
|
|
1569
1598
|
},
|
|
1570
1599
|
getFilter: () => {
|
|
1571
|
-
var
|
|
1572
|
-
return ((o = (
|
|
1600
|
+
var r, o;
|
|
1601
|
+
return ((o = (r = E.current) == null ? void 0 : r.api) == null ? void 0 : o.getFilterModel()) ?? {};
|
|
1573
1602
|
},
|
|
1574
|
-
setFilter: (
|
|
1603
|
+
setFilter: (r) => {
|
|
1575
1604
|
var o, c;
|
|
1576
|
-
(c = (o =
|
|
1605
|
+
(c = (o = E.current) == null ? void 0 : o.api) == null || c.setFilterModel(r);
|
|
1577
1606
|
},
|
|
1578
1607
|
getSort: () => {
|
|
1579
1608
|
var o;
|
|
1580
|
-
const
|
|
1581
|
-
return
|
|
1609
|
+
const r = (o = E.current) == null ? void 0 : o.api;
|
|
1610
|
+
return r ? r.getColumnState().filter((c) => c.sort === "asc" || c.sort === "desc").map((c) => ({ colId: c.colId, sort: c.sort })) : [];
|
|
1582
1611
|
},
|
|
1583
|
-
setSort: (
|
|
1584
|
-
var
|
|
1585
|
-
const o = (
|
|
1612
|
+
setSort: (r) => {
|
|
1613
|
+
var b;
|
|
1614
|
+
const o = (b = E.current) == null ? void 0 : b.api;
|
|
1586
1615
|
if (!o) return;
|
|
1587
1616
|
const c = o.getColumnState().map((y) => {
|
|
1588
|
-
const
|
|
1589
|
-
return { ...y, sort:
|
|
1617
|
+
const F = r.find((P) => P.colId === y.colId);
|
|
1618
|
+
return { ...y, sort: F ? F.sort : null };
|
|
1590
1619
|
});
|
|
1591
1620
|
o.applyColumnState({ state: c, defaultState: { sort: null } });
|
|
1592
1621
|
},
|
|
1593
1622
|
getCurrentPage: () => {
|
|
1594
|
-
var
|
|
1595
|
-
return ((o = (
|
|
1623
|
+
var r, o;
|
|
1624
|
+
return ((o = (r = E.current) == null ? void 0 : r.api) == null ? void 0 : o.paginationGetCurrentPage()) ?? 0;
|
|
1596
1625
|
},
|
|
1597
|
-
goToPage: (
|
|
1626
|
+
goToPage: (r) => {
|
|
1598
1627
|
var o, c;
|
|
1599
|
-
(c = (o =
|
|
1628
|
+
(c = (o = E.current) == null ? void 0 : o.api) == null || c.paginationGoToPage(r);
|
|
1600
1629
|
},
|
|
1601
|
-
getExpandedRowId: () =>
|
|
1602
|
-
getUserTouchedColumns: () => [...
|
|
1603
|
-
markColumnsUserTouched: (
|
|
1630
|
+
getExpandedRowId: () => Ve.current ?? null,
|
|
1631
|
+
getUserTouchedColumns: () => [...ae.current],
|
|
1632
|
+
markColumnsUserTouched: (r) => ze.current(r),
|
|
1604
1633
|
getRawApi: () => {
|
|
1605
|
-
var
|
|
1606
|
-
return (
|
|
1634
|
+
var r;
|
|
1635
|
+
return (r = E.current) == null ? void 0 : r.api;
|
|
1607
1636
|
}
|
|
1608
1637
|
}),
|
|
1609
1638
|
[]
|
|
1610
|
-
),
|
|
1639
|
+
), me = _(/* @__PURE__ */ new Map()), ae = _(/* @__PURE__ */ new Set()), ze = _(
|
|
1611
1640
|
() => {
|
|
1612
1641
|
}
|
|
1613
1642
|
);
|
|
1614
|
-
|
|
1615
|
-
const
|
|
1643
|
+
jt(t, () => Re, [Re]), sa(ja, Re, m);
|
|
1644
|
+
const _e = O.dir() === "rtl", ft = a === void 0, gt = da(), { resolvedTheme: qe } = ca(), bt = (qe === "light-accessible" || qe === "dark-accessible") && T === "compact" ? "default" : T, ht = z(() => {
|
|
1616
1645
|
if (!i) return;
|
|
1617
|
-
const
|
|
1646
|
+
const r = (o) => !j(o.data);
|
|
1618
1647
|
return i === "single" ? {
|
|
1619
1648
|
mode: "singleRow",
|
|
1620
1649
|
enableClickSelection: !1,
|
|
1621
|
-
isRowSelectable:
|
|
1650
|
+
isRowSelectable: r
|
|
1622
1651
|
} : {
|
|
1623
1652
|
mode: "multiRow",
|
|
1624
1653
|
headerCheckbox: !0,
|
|
1625
1654
|
checkboxes: !0,
|
|
1626
1655
|
enableClickSelection: !1,
|
|
1627
|
-
isRowSelectable:
|
|
1656
|
+
isRowSelectable: r
|
|
1628
1657
|
};
|
|
1629
|
-
}, [i]),
|
|
1630
|
-
(
|
|
1631
|
-
const
|
|
1632
|
-
for (const y of
|
|
1633
|
-
if (!
|
|
1634
|
-
const
|
|
1635
|
-
for (const P of c)
|
|
1636
|
-
|
|
1658
|
+
}, [i]), fe = _e ? "rtl" : "ltr", H = G(
|
|
1659
|
+
(r, o, c) => {
|
|
1660
|
+
const b = new Set(o);
|
|
1661
|
+
for (const y of r.getColumnState()) {
|
|
1662
|
+
if (!b.has(y.colId)) continue;
|
|
1663
|
+
const F = me.current.get(y.colId) ?? {};
|
|
1664
|
+
for (const P of c) F[P] = y[P];
|
|
1665
|
+
me.current.set(y.colId, F);
|
|
1637
1666
|
}
|
|
1638
1667
|
},
|
|
1639
1668
|
[]
|
|
1640
|
-
),
|
|
1641
|
-
(
|
|
1642
|
-
m &&
|
|
1669
|
+
), se = G(
|
|
1670
|
+
(r) => {
|
|
1671
|
+
m && Ya(m, r, fe, ae.current);
|
|
1643
1672
|
},
|
|
1644
|
-
[m,
|
|
1645
|
-
),
|
|
1646
|
-
(
|
|
1673
|
+
[m, fe]
|
|
1674
|
+
), We = G(
|
|
1675
|
+
(r) => {
|
|
1647
1676
|
var c;
|
|
1648
|
-
for (const
|
|
1649
|
-
const o = (c =
|
|
1650
|
-
o && (
|
|
1677
|
+
for (const b of r) ae.current.add(b);
|
|
1678
|
+
const o = (c = E.current) == null ? void 0 : c.api;
|
|
1679
|
+
o && (H(o, r, ["hide"]), se(o));
|
|
1651
1680
|
},
|
|
1652
|
-
[
|
|
1681
|
+
[se, H]
|
|
1653
1682
|
);
|
|
1654
|
-
|
|
1655
|
-
const
|
|
1683
|
+
ze.current = We;
|
|
1684
|
+
const Tt = G(() => {
|
|
1656
1685
|
var c;
|
|
1657
|
-
if (!((c =
|
|
1658
|
-
const
|
|
1659
|
-
if (!(!o ||
|
|
1660
|
-
for (const
|
|
1661
|
-
|
|
1686
|
+
if (!((c = E.current) != null && c.api)) return;
|
|
1687
|
+
const r = E.current.api, o = m ? Xa(m, fe) : null;
|
|
1688
|
+
if (!(!o || ue.current)) {
|
|
1689
|
+
for (const b of o.touched) ae.current.add(b);
|
|
1690
|
+
r.applyColumnState({
|
|
1662
1691
|
state: o.state,
|
|
1663
1692
|
applyOrder: !0
|
|
1664
|
-
}),
|
|
1693
|
+
}), H(r, o.touched, ["hide"]);
|
|
1665
1694
|
}
|
|
1666
|
-
}, [m,
|
|
1667
|
-
(
|
|
1695
|
+
}, [m, fe, H]), yt = G(
|
|
1696
|
+
(r) => {
|
|
1668
1697
|
var c;
|
|
1669
|
-
if (
|
|
1670
|
-
const o = (c =
|
|
1671
|
-
!o ||
|
|
1672
|
-
state: [...
|
|
1673
|
-
colId:
|
|
1698
|
+
if (r.source !== "gridOptionsChanged") return;
|
|
1699
|
+
const o = (c = E.current) == null ? void 0 : c.api;
|
|
1700
|
+
!o || me.current.size === 0 || o.applyColumnState({
|
|
1701
|
+
state: [...me.current].map(([b, y]) => ({
|
|
1702
|
+
colId: b,
|
|
1674
1703
|
...y
|
|
1675
1704
|
}))
|
|
1676
1705
|
});
|
|
1677
1706
|
},
|
|
1678
1707
|
[]
|
|
1679
|
-
), ge =
|
|
1680
|
-
(
|
|
1681
|
-
var
|
|
1682
|
-
const o = (
|
|
1708
|
+
), ge = G(
|
|
1709
|
+
(r) => {
|
|
1710
|
+
var b;
|
|
1711
|
+
const o = (b = E.current) == null ? void 0 : b.api;
|
|
1683
1712
|
if (!o) return;
|
|
1684
|
-
const c = (
|
|
1685
|
-
if (
|
|
1686
|
-
if (
|
|
1713
|
+
const c = (r.columns ?? (r.column ? [r.column] : [])).map((y) => y.getColId());
|
|
1714
|
+
if (r.source && Za.has(r.source)) {
|
|
1715
|
+
if (r.source === "api" && "visible" in r) {
|
|
1687
1716
|
const y = c.filter(
|
|
1688
|
-
(
|
|
1717
|
+
(F) => ae.current.has(F)
|
|
1689
1718
|
);
|
|
1690
|
-
y.length > 0 && (
|
|
1719
|
+
y.length > 0 && (H(o, y, ["hide"]), se(o));
|
|
1691
1720
|
}
|
|
1692
1721
|
return;
|
|
1693
1722
|
}
|
|
1694
|
-
if ("visible" in
|
|
1695
|
-
for (const y of c)
|
|
1696
|
-
|
|
1697
|
-
} else "pinned" in
|
|
1698
|
-
|
|
1723
|
+
if ("visible" in r) {
|
|
1724
|
+
for (const y of c) ae.current.add(y);
|
|
1725
|
+
H(o, c, ["hide"]);
|
|
1726
|
+
} else "pinned" in r ? H(o, c, ["pinned"]) : "flexColumns" in r && H(o, c, ["width", "flex"]);
|
|
1727
|
+
se(o);
|
|
1699
1728
|
},
|
|
1700
|
-
[
|
|
1701
|
-
),
|
|
1729
|
+
[se, H]
|
|
1730
|
+
), xt = z(() => {
|
|
1702
1731
|
if (!p) return;
|
|
1703
|
-
const
|
|
1704
|
-
return delete
|
|
1705
|
-
}, [
|
|
1706
|
-
|
|
1707
|
-
const
|
|
1708
|
-
(
|
|
1732
|
+
const r = { ...p };
|
|
1733
|
+
return delete r.defaultColDef, delete r.initialState, M && (delete r.getRowId, delete r.isFullWidthRow, delete r.fullWidthCellRenderer, delete r.getRowHeight, delete r.postSortRows, delete r.getRowClass, delete r.defaultCsvExportParams, delete r.defaultExcelExportParams), r;
|
|
1734
|
+
}, [M, p]), je = _(/* @__PURE__ */ new Map()), de = _(p);
|
|
1735
|
+
de.current = p;
|
|
1736
|
+
const Be = G(
|
|
1737
|
+
(r) => {
|
|
1709
1738
|
var o;
|
|
1710
|
-
return
|
|
1711
|
-
data:
|
|
1739
|
+
return U == null ? void 0 : U({
|
|
1740
|
+
data: r,
|
|
1712
1741
|
level: 0,
|
|
1713
|
-
api: (o =
|
|
1742
|
+
api: (o = E.current) == null ? void 0 : o.api,
|
|
1714
1743
|
context: p == null ? void 0 : p.context
|
|
1715
1744
|
});
|
|
1716
1745
|
},
|
|
1717
|
-
[
|
|
1746
|
+
[U, p == null ? void 0 : p.context]
|
|
1718
1747
|
), J = z(() => {
|
|
1719
|
-
if (!
|
|
1720
|
-
const
|
|
1721
|
-
return
|
|
1722
|
-
}, [
|
|
1723
|
-
if (!J || !
|
|
1724
|
-
const
|
|
1748
|
+
if (!M || k == null || !a) return null;
|
|
1749
|
+
const r = a.find((o) => Be(o) === k);
|
|
1750
|
+
return r === void 0 ? null : { id: k, row: r };
|
|
1751
|
+
}, [M, k, Be, a]), De = z(() => {
|
|
1752
|
+
if (!J || !a) return a;
|
|
1753
|
+
const r = a.indexOf(J.row), o = qa(J.row, J.id);
|
|
1725
1754
|
return [
|
|
1726
|
-
...
|
|
1755
|
+
...a.slice(0, r + 1),
|
|
1727
1756
|
o,
|
|
1728
|
-
...
|
|
1757
|
+
...a.slice(r + 1)
|
|
1729
1758
|
];
|
|
1730
|
-
}, [J,
|
|
1731
|
-
(
|
|
1732
|
-
[
|
|
1733
|
-
),
|
|
1734
|
-
(
|
|
1759
|
+
}, [J, a]), wt = G(
|
|
1760
|
+
(r) => j(r.data) ? _a(r.data[ne]) : U(r),
|
|
1761
|
+
[U]
|
|
1762
|
+
), Ct = G(
|
|
1763
|
+
(r) => {
|
|
1735
1764
|
var o, c;
|
|
1736
|
-
return
|
|
1765
|
+
return j(r.rowNode.data) || (((c = (o = de.current) == null ? void 0 : o.isFullWidthRow) == null ? void 0 : c.call(o, r)) ?? !1);
|
|
1737
1766
|
},
|
|
1738
1767
|
[]
|
|
1739
|
-
),
|
|
1740
|
-
(
|
|
1768
|
+
), vt = G(
|
|
1769
|
+
(r) => {
|
|
1741
1770
|
var o, c;
|
|
1742
|
-
return
|
|
1771
|
+
return j(r.data) ? je.current.get(r.node.id ?? "") : (c = (o = de.current) == null ? void 0 : o.getRowHeight) == null ? void 0 : c.call(o, r);
|
|
1743
1772
|
},
|
|
1744
1773
|
[]
|
|
1745
|
-
),
|
|
1746
|
-
(
|
|
1747
|
-
var P,
|
|
1748
|
-
(
|
|
1749
|
-
const { nodes: o } =
|
|
1774
|
+
), St = G(
|
|
1775
|
+
(r) => {
|
|
1776
|
+
var P, Y;
|
|
1777
|
+
(Y = (P = de.current) == null ? void 0 : P.postSortRows) == null || Y.call(P, r);
|
|
1778
|
+
const { nodes: o } = r, c = o.findIndex((K) => j(K.data));
|
|
1750
1779
|
if (c < 0) return;
|
|
1751
|
-
const [
|
|
1752
|
-
o.splice(
|
|
1780
|
+
const [b] = o.splice(c, 1), y = b.data[ne], F = o.findIndex((K) => K.id === y);
|
|
1781
|
+
o.splice(F < 0 ? o.length : F + 1, 0, b);
|
|
1753
1782
|
},
|
|
1754
1783
|
[]
|
|
1755
|
-
),
|
|
1756
|
-
(
|
|
1784
|
+
), Rt = G(
|
|
1785
|
+
(r) => {
|
|
1757
1786
|
var o, c;
|
|
1758
|
-
return
|
|
1787
|
+
return j(r.data) ? Va : ((c = (o = de.current) == null ? void 0 : o.getRowClass) == null ? void 0 : c.call(o, r)) ?? (D == null ? void 0 : D(r));
|
|
1759
1788
|
},
|
|
1760
1789
|
[D]
|
|
1761
|
-
),
|
|
1762
|
-
(
|
|
1790
|
+
), be = G(
|
|
1791
|
+
(r) => j(r.node.data),
|
|
1763
1792
|
[]
|
|
1764
|
-
),
|
|
1765
|
-
if (!
|
|
1766
|
-
const
|
|
1793
|
+
), Dt = z(() => {
|
|
1794
|
+
if (!M) return;
|
|
1795
|
+
const r = p == null ? void 0 : p.defaultCsvExportParams;
|
|
1767
1796
|
return {
|
|
1768
|
-
...
|
|
1797
|
+
...r,
|
|
1769
1798
|
shouldRowBeSkipped: (o) => {
|
|
1770
1799
|
var c;
|
|
1771
|
-
return
|
|
1800
|
+
return be(o) || (((c = r == null ? void 0 : r.shouldRowBeSkipped) == null ? void 0 : c.call(r, o)) ?? !1);
|
|
1772
1801
|
}
|
|
1773
1802
|
};
|
|
1774
|
-
}, [
|
|
1775
|
-
if (!
|
|
1776
|
-
const
|
|
1803
|
+
}, [M, p == null ? void 0 : p.defaultCsvExportParams, be]), Et = z(() => {
|
|
1804
|
+
if (!M) return;
|
|
1805
|
+
const r = p == null ? void 0 : p.defaultExcelExportParams;
|
|
1777
1806
|
return {
|
|
1778
|
-
...
|
|
1807
|
+
...r,
|
|
1779
1808
|
shouldRowBeSkipped: (o) => {
|
|
1780
1809
|
var c;
|
|
1781
|
-
return
|
|
1810
|
+
return be(o) || (((c = r == null ? void 0 : r.shouldRowBeSkipped) == null ? void 0 : c.call(r, o)) ?? !1);
|
|
1782
1811
|
}
|
|
1783
1812
|
};
|
|
1784
|
-
}, [
|
|
1813
|
+
}, [M, p == null ? void 0 : p.defaultExcelExportParams, be]), Ee = p == null ? void 0 : p.fullWidthCellRenderer, Gt = z(
|
|
1785
1814
|
() => ({
|
|
1786
|
-
renderExpandedRow:
|
|
1787
|
-
onExpandedRowChange:
|
|
1815
|
+
renderExpandedRow: V,
|
|
1816
|
+
onExpandedRowChange: I,
|
|
1788
1817
|
expanded: J,
|
|
1789
|
-
heights:
|
|
1790
|
-
fallbackRenderer: typeof
|
|
1818
|
+
heights: je.current,
|
|
1819
|
+
fallbackRenderer: typeof Ee == "function" ? Ee : void 0
|
|
1791
1820
|
}),
|
|
1792
1821
|
[
|
|
1793
|
-
|
|
1822
|
+
Ee,
|
|
1794
1823
|
J,
|
|
1795
|
-
|
|
1796
|
-
|
|
1824
|
+
I,
|
|
1825
|
+
V
|
|
1797
1826
|
]
|
|
1798
|
-
),
|
|
1827
|
+
), Ft = G(() => {
|
|
1799
1828
|
var c;
|
|
1800
|
-
const
|
|
1801
|
-
if (!
|
|
1802
|
-
const o =
|
|
1803
|
-
|
|
1804
|
-
}, [
|
|
1805
|
-
(
|
|
1829
|
+
const r = (c = E.current) == null ? void 0 : c.api;
|
|
1830
|
+
if (!r) return;
|
|
1831
|
+
const o = r.getSelectedRows().filter((b) => !j(b));
|
|
1832
|
+
le(o.length), f == null || f(o);
|
|
1833
|
+
}, [f]), It = G(
|
|
1834
|
+
(r) => {
|
|
1806
1835
|
var c;
|
|
1807
|
-
const o = (c =
|
|
1836
|
+
const o = (c = E.current) == null ? void 0 : c.api;
|
|
1808
1837
|
if (o) {
|
|
1809
|
-
const y = o.getColumnState().find((
|
|
1838
|
+
const y = o.getColumnState().find((F) => F.sort);
|
|
1810
1839
|
if (y) {
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
column:
|
|
1815
|
-
direction:
|
|
1840
|
+
const F = y.colId, P = o.getColumnDef(F), Y = (P == null ? void 0 : P.headerName) ?? F, K = y.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
|
|
1841
|
+
Se(
|
|
1842
|
+
N("dataTable.sortAnnounce", {
|
|
1843
|
+
column: Y,
|
|
1844
|
+
direction: N(K)
|
|
1816
1845
|
})
|
|
1817
1846
|
);
|
|
1818
1847
|
} else
|
|
1819
|
-
|
|
1848
|
+
Se("");
|
|
1820
1849
|
}
|
|
1821
|
-
u == null || u(
|
|
1850
|
+
u == null || u(r);
|
|
1822
1851
|
},
|
|
1823
|
-
[u,
|
|
1824
|
-
),
|
|
1825
|
-
(
|
|
1826
|
-
|
|
1852
|
+
[u, N]
|
|
1853
|
+
), Nt = G(
|
|
1854
|
+
(r) => {
|
|
1855
|
+
h == null || h(r);
|
|
1827
1856
|
},
|
|
1828
|
-
[
|
|
1857
|
+
[h]
|
|
1829
1858
|
);
|
|
1830
|
-
|
|
1831
|
-
if (!
|
|
1832
|
-
const
|
|
1833
|
-
return () => clearTimeout(
|
|
1834
|
-
}, [
|
|
1835
|
-
const
|
|
1859
|
+
B(() => {
|
|
1860
|
+
if (!ve) return;
|
|
1861
|
+
const r = setTimeout(() => Se(""), 3e3);
|
|
1862
|
+
return () => clearTimeout(r);
|
|
1863
|
+
}, [ve]);
|
|
1864
|
+
const kt = v ?? Ha, Pt = w ?? Ua, At = G(
|
|
1836
1865
|
() => {
|
|
1837
|
-
var
|
|
1838
|
-
return (
|
|
1866
|
+
var r;
|
|
1867
|
+
return (r = E.current) == null ? void 0 : r.api;
|
|
1839
1868
|
},
|
|
1840
1869
|
[]
|
|
1841
|
-
),
|
|
1870
|
+
), Mt = G(() => {
|
|
1842
1871
|
typeof window < "u" && window.print();
|
|
1843
|
-
}, []),
|
|
1844
|
-
density:
|
|
1872
|
+
}, []), Ot = $a({
|
|
1873
|
+
density: bt,
|
|
1845
1874
|
bordered: S,
|
|
1846
1875
|
className: C
|
|
1847
|
-
}),
|
|
1848
|
-
|
|
1876
|
+
}), Lt = W ?? /* @__PURE__ */ d("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ q(
|
|
1877
|
+
Yt,
|
|
1849
1878
|
{
|
|
1850
1879
|
role: "toolbar",
|
|
1851
|
-
"aria-label":
|
|
1880
|
+
"aria-label": N("dataTable.tableActions"),
|
|
1852
1881
|
className: "ds:bg-[var(--background)]",
|
|
1853
1882
|
children: [
|
|
1854
|
-
/* @__PURE__ */ d(
|
|
1855
|
-
/* @__PURE__ */ d(
|
|
1856
|
-
/* @__PURE__ */ d(
|
|
1883
|
+
/* @__PURE__ */ d(we.ExportMenu, {}),
|
|
1884
|
+
/* @__PURE__ */ d(we.Print, {}),
|
|
1885
|
+
/* @__PURE__ */ d(we.ColumnToggle, {})
|
|
1857
1886
|
]
|
|
1858
1887
|
}
|
|
1859
|
-
) }),
|
|
1860
|
-
|
|
1888
|
+
) }), Vt = x ? !1 : s, $e = De !== void 0 && De.length === 0, [Ue, zt] = L(null);
|
|
1889
|
+
Zt(() => {
|
|
1890
|
+
var b;
|
|
1891
|
+
const r = X.current;
|
|
1892
|
+
if (!r) return;
|
|
1893
|
+
let o = !0;
|
|
1894
|
+
const c = () => {
|
|
1895
|
+
o && zt(() => ba(r));
|
|
1896
|
+
};
|
|
1897
|
+
return c(), (b = document.fonts) == null || b.ready.then(c), () => {
|
|
1898
|
+
o = !1;
|
|
1899
|
+
};
|
|
1900
|
+
}, []);
|
|
1901
|
+
const _t = z(
|
|
1902
|
+
() => Ze(n, Ue),
|
|
1903
|
+
[n, Ue]
|
|
1904
|
+
);
|
|
1905
|
+
return /* @__PURE__ */ q(
|
|
1861
1906
|
"div",
|
|
1862
1907
|
{
|
|
1863
1908
|
className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1864
|
-
"aria-busy":
|
|
1909
|
+
"aria-busy": ft ? "true" : void 0,
|
|
1865
1910
|
"data-component": "data-table",
|
|
1866
1911
|
"data-component-id": m,
|
|
1867
|
-
"data-print-mode":
|
|
1912
|
+
"data-print-mode": x ? "true" : void 0,
|
|
1868
1913
|
children: [
|
|
1869
|
-
!
|
|
1870
|
-
|
|
1914
|
+
!x && /* @__PURE__ */ d(
|
|
1915
|
+
wa,
|
|
1871
1916
|
{
|
|
1872
|
-
getApi:
|
|
1873
|
-
selectionCount:
|
|
1874
|
-
onPrint:
|
|
1875
|
-
markColumnsUserTouched:
|
|
1876
|
-
children:
|
|
1917
|
+
getApi: At,
|
|
1918
|
+
selectionCount: ie,
|
|
1919
|
+
onPrint: Mt,
|
|
1920
|
+
markColumnsUserTouched: We,
|
|
1921
|
+
children: Lt
|
|
1877
1922
|
}
|
|
1878
1923
|
),
|
|
1879
1924
|
/* @__PURE__ */ d(
|
|
1880
1925
|
"div",
|
|
1881
1926
|
{
|
|
1882
|
-
ref:
|
|
1883
|
-
|
|
1927
|
+
ref: X,
|
|
1928
|
+
"data-empty": $e ? "true" : void 0,
|
|
1929
|
+
className: [Ot, x ? "" : R].join(" ").trim(),
|
|
1884
1930
|
children: /* @__PURE__ */ d(
|
|
1885
|
-
|
|
1931
|
+
ct.Provider,
|
|
1886
1932
|
{
|
|
1887
|
-
value:
|
|
1933
|
+
value: Gt,
|
|
1888
1934
|
children: /* @__PURE__ */ d(
|
|
1889
|
-
|
|
1935
|
+
Kt,
|
|
1890
1936
|
{
|
|
1891
|
-
ref:
|
|
1892
|
-
initialState:
|
|
1937
|
+
ref: E,
|
|
1938
|
+
initialState: ue.current ?? (p == null ? void 0 : p.initialState),
|
|
1893
1939
|
theme: "legacy",
|
|
1894
|
-
columnDefs:
|
|
1895
|
-
rowData:
|
|
1940
|
+
columnDefs: _t,
|
|
1941
|
+
rowData: De,
|
|
1896
1942
|
defaultColDef: {
|
|
1897
1943
|
sortable: !0,
|
|
1898
1944
|
// Default filter = DS-styled text filter so untyped columns
|
|
@@ -1900,8 +1946,8 @@ function Wa(e, t) {
|
|
|
1900
1946
|
// language instead of AG Grid's stock browser-skinned input.
|
|
1901
1947
|
// Number / date / select columns opt into their dedicated
|
|
1902
1948
|
// wrapper per-column.
|
|
1903
|
-
filter:
|
|
1904
|
-
floatingFilterComponent:
|
|
1949
|
+
filter: Aa,
|
|
1950
|
+
floatingFilterComponent: Ma,
|
|
1905
1951
|
resizable: !0,
|
|
1906
1952
|
floatingFilter: !0,
|
|
1907
1953
|
// §13d — faint sort icon advertises which columns are
|
|
@@ -1909,13 +1955,13 @@ function Wa(e, t) {
|
|
|
1909
1955
|
unSortIcon: !0,
|
|
1910
1956
|
...p == null ? void 0 : p.defaultColDef
|
|
1911
1957
|
},
|
|
1912
|
-
rowSelection:
|
|
1913
|
-
pagination:
|
|
1914
|
-
paginationPageSize:
|
|
1958
|
+
rowSelection: ht,
|
|
1959
|
+
pagination: Vt,
|
|
1960
|
+
paginationPageSize: g,
|
|
1915
1961
|
paginationPageSizeSelector: l,
|
|
1916
|
-
paginationNumberFormatter: (
|
|
1917
|
-
animateRows: !
|
|
1918
|
-
enableRtl:
|
|
1962
|
+
paginationNumberFormatter: (r) => new Intl.NumberFormat(O.language).format(r.value),
|
|
1963
|
+
animateRows: !gt,
|
|
1964
|
+
enableRtl: _e,
|
|
1919
1965
|
ensureDomOrder: !0,
|
|
1920
1966
|
enableCellSpan: !0,
|
|
1921
1967
|
enableCellTextSelection: !0,
|
|
@@ -1932,65 +1978,65 @@ function Wa(e, t) {
|
|
|
1932
1978
|
undoRedoCellEditingLimit: 20,
|
|
1933
1979
|
suppressCellFocus: !1,
|
|
1934
1980
|
rowBuffer: 10,
|
|
1935
|
-
getLocaleText:
|
|
1936
|
-
rowDragText: (
|
|
1937
|
-
noRowsOverlayComponent:
|
|
1938
|
-
loadingOverlayComponent:
|
|
1939
|
-
getRowClass:
|
|
1940
|
-
pinnedBottomRowData: te,
|
|
1941
|
-
domLayout:
|
|
1942
|
-
onGridReady:
|
|
1943
|
-
onNewColumnsLoaded:
|
|
1981
|
+
getLocaleText: pt,
|
|
1982
|
+
rowDragText: (r, o) => N("dataTable.dragRows", { count: o }),
|
|
1983
|
+
noRowsOverlayComponent: kt,
|
|
1984
|
+
loadingOverlayComponent: Pt,
|
|
1985
|
+
getRowClass: M ? Rt : D,
|
|
1986
|
+
pinnedBottomRowData: Z && $e ? void 0 : te,
|
|
1987
|
+
domLayout: x ? "autoHeight" : void 0,
|
|
1988
|
+
onGridReady: Tt,
|
|
1989
|
+
onNewColumnsLoaded: yt,
|
|
1944
1990
|
onColumnMoved: ge,
|
|
1945
1991
|
onColumnResized: ge,
|
|
1946
1992
|
onColumnPinned: ge,
|
|
1947
1993
|
onColumnVisible: ge,
|
|
1948
|
-
onSortChanged:
|
|
1949
|
-
onFilterChanged:
|
|
1950
|
-
onSelectionChanged:
|
|
1951
|
-
...
|
|
1952
|
-
...
|
|
1953
|
-
getRowId:
|
|
1954
|
-
isFullWidthRow:
|
|
1955
|
-
fullWidthCellRenderer:
|
|
1956
|
-
getRowHeight:
|
|
1957
|
-
postSortRows:
|
|
1958
|
-
defaultCsvExportParams:
|
|
1959
|
-
defaultExcelExportParams:
|
|
1994
|
+
onSortChanged: It,
|
|
1995
|
+
onFilterChanged: Nt,
|
|
1996
|
+
onSelectionChanged: Ft,
|
|
1997
|
+
...xt,
|
|
1998
|
+
...M ? {
|
|
1999
|
+
getRowId: wt,
|
|
2000
|
+
isFullWidthRow: Ct,
|
|
2001
|
+
fullWidthCellRenderer: Wa,
|
|
2002
|
+
getRowHeight: vt,
|
|
2003
|
+
postSortRows: St,
|
|
2004
|
+
defaultCsvExportParams: Dt,
|
|
2005
|
+
defaultExcelExportParams: Et
|
|
1960
2006
|
} : {}
|
|
1961
2007
|
},
|
|
1962
|
-
|
|
2008
|
+
pe
|
|
1963
2009
|
)
|
|
1964
2010
|
}
|
|
1965
2011
|
)
|
|
1966
2012
|
}
|
|
1967
2013
|
),
|
|
1968
|
-
!
|
|
1969
|
-
/* @__PURE__ */ d("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children:
|
|
2014
|
+
!x && ie > 0 && /* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ d("span", { children: N("dataTable.selected", { count: ie }) }) }),
|
|
2015
|
+
/* @__PURE__ */ d("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: ve })
|
|
1970
2016
|
]
|
|
1971
2017
|
}
|
|
1972
2018
|
);
|
|
1973
2019
|
}
|
|
1974
|
-
const
|
|
1975
|
-
|
|
1976
|
-
const
|
|
1977
|
-
Toolbar:
|
|
1978
|
-
}),
|
|
2020
|
+
const ut = $(Ja);
|
|
2021
|
+
ut.displayName = "DataTable";
|
|
2022
|
+
const er = Object.assign(ut, {
|
|
2023
|
+
Toolbar: we
|
|
2024
|
+
}), Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1979
2025
|
__proto__: null,
|
|
1980
|
-
DataTable:
|
|
2026
|
+
DataTable: er
|
|
1981
2027
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1982
2028
|
export {
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
2029
|
+
er as D,
|
|
2030
|
+
Va as E,
|
|
2031
|
+
Aa as T,
|
|
2032
|
+
Ma as a,
|
|
2033
|
+
we as b,
|
|
2034
|
+
wa as c,
|
|
2035
|
+
ja as d,
|
|
2036
|
+
rt as e,
|
|
2037
|
+
_a as f,
|
|
2038
|
+
Mr as g,
|
|
2039
|
+
Or as h,
|
|
2040
|
+
j as i
|
|
1995
2041
|
};
|
|
1996
|
-
//# sourceMappingURL=data-table-
|
|
2042
|
+
//# sourceMappingURL=data-table-zXBxFYpJ.js.map
|