@alfadocs/ui-kit 0.67.1 → 0.69.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/{accordion-9lJSMMsZ.js → accordion-DnIa7OHX.js} +69 -47
- package/dist/_chunks/actions-cell-renderer-DrcaxB0w.js +2061 -0
- package/dist/_chunks/address-autocomplete-BEX9PXty.js +496 -0
- package/dist/_chunks/{agenda-card.agent-B_R47-c9.js → agenda-card.agent-mTCrkKSZ.js} +6 -1
- package/dist/_chunks/{agenda-tray-T-BumlGZ.js → agenda-tray-g0kg7HwB.js} +36 -24
- package/dist/_chunks/{ai-consent-banner-Dxtx_WAh.js → ai-consent-banner-CXlsNX1c.js} +3 -3
- package/dist/_chunks/{ai-prompt-input-BwEACCPm.js → ai-prompt-input-CuhTo9mh.js} +80 -61
- package/dist/_chunks/{ai-tools-rail-CInA_1-E.js → ai-tools-rail-BA_sqy1A.js} +87 -70
- package/dist/_chunks/{alia-sidebar-Ckv0yCKi.js → alia-sidebar-B47qRQb5.js} +5 -5
- package/dist/_chunks/{anamnesis-card-N8pIKWuS.js → anamnesis-card-DRmE24OQ.js} +2 -2
- package/dist/_chunks/{appointment-tray-BMl89NPW.js → appointment-tray-CZtvtaH-.js} +32 -20
- package/dist/_chunks/{audio-recorder-DjXLP4aF.js → audio-recorder-DYXXnGug.js} +59 -56
- package/dist/_chunks/{autocomplete-CcCFlVf-.js → autocomplete-DOeGouCL.js} +157 -132
- package/dist/_chunks/bishop-score-PJI3AXzA.js +304 -0
- package/dist/_chunks/bmi-calculator-BZtIJ53x.js +434 -0
- package/dist/_chunks/{booking-L8-YP8BJ.js → booking-C3VqFReX.js} +420 -397
- package/dist/_chunks/{breadcrumb-OTbaY70e.js → breadcrumb-CchdeG7d.js} +42 -28
- package/dist/_chunks/{calculator-dialog-CFk4I91b.js → calculator-dialog-BR5iU0kf.js} +2 -2
- package/dist/_chunks/{calendar-oYWOCrnf.js → calendar-CZUjL8SZ.js} +258 -201
- package/dist/_chunks/{care-plan-card-BwVUyUBb.js → care-plan-card-CvFGXa2z.js} +10 -6
- package/dist/_chunks/{care-plan-entry-card-VzdQHcOL.js → care-plan-entry-card-C3E_gClk.js} +17 -13
- package/dist/_chunks/{carousel.agent-vt21A_el.js → carousel.agent-4v8Emr9E.js} +219 -198
- package/dist/_chunks/{chart-Cg3e9EH9.js → chart-CMr3eW62.js} +150 -109
- package/dist/_chunks/{chat-container-ogB4OskO.js → chat-container-DWho5hPR.js} +47 -34
- package/dist/_chunks/{chat-input-B5zjNEUN.js → chat-input-BcXTetgM.js} +57 -41
- package/dist/_chunks/{checkbox-DRcOdmXv.js → checkbox-BuZ1u__2.js} +41 -27
- package/dist/_chunks/{checkbox-group-CpUwlHug.js → checkbox-group-PqNmQ-cE.js} +3 -3
- package/dist/_chunks/{clinical-note-card-gtrxv6zn.js → clinical-note-card-DqQYf_D4.js} +2 -2
- package/dist/_chunks/{collapsible-X3oaLPU3.js → collapsible-BrnRiCC6.js} +26 -23
- package/dist/_chunks/{color-picker-FXpItIaF.js → color-picker-C_fZl6sA.js} +124 -112
- package/dist/_chunks/{combobox-BC-DFx8G.js → combobox-Clum7gJ1.js} +165 -128
- package/dist/_chunks/{command-palette-BiPAAno-.js → command-palette-CJzmc5pC.js} +87 -64
- package/dist/_chunks/{contact-profile-card-7BMB85T6.js → contact-profile-card-Dramqa9C.js} +13 -11
- package/dist/_chunks/{copy-field-CCq7j6Zc.js → copy-field-Bjw9u2cV.js} +42 -35
- package/dist/_chunks/counter-dRlTNC_y.js +55 -0
- package/dist/_chunks/{cycle-calculator-BF0ointe.js → cycle-calculator-DmRGJNaT.js} +3 -3
- package/dist/_chunks/{date-picker-oGg5BnXL.js → date-picker-Dl9RKxaV.js} +76 -57
- package/dist/_chunks/{date-range-picker-C5BWfH_T.js → date-range-picker-CTUeR6Bj.js} +73 -46
- package/dist/_chunks/{date-time-picker-Ze1My59T.js → date-time-picker-BhoogS5Q.js} +64 -40
- package/dist/_chunks/{dependent-selector-DpzGtr_J.js → dependent-selector-CG_FOHya.js} +44 -30
- package/dist/_chunks/{dialog-DMGnSelc.js → dialog-ZNuboNmy.js} +35 -28
- package/dist/_chunks/{document-scanner-D2qehl3-.js → document-scanner-CTubA0-N.js} +12 -4
- package/dist/_chunks/{dropdown-menu-DwwPovMZ.js → dropdown-menu-qrxjymfw.js} +94 -93
- package/dist/_chunks/{due-date-calculator-DU9AEWNy.js → due-date-calculator-BTmsIQqD.js} +4 -4
- package/dist/_chunks/editable-currency-cell-renderer-kgqp_mIw.js +448 -0
- package/dist/_chunks/{email-input-lQivsFrw.js → email-input-B_Y55f5G.js} +3 -3
- package/dist/_chunks/{fetal-weight-BVSzOhuR.js → fetal-weight-CRz7KE2D.js} +2 -2
- package/dist/_chunks/{file-upload-BosbPDb1.js → file-upload-5ScQd4fE.js} +118 -100
- package/dist/_chunks/{fiscal-code-input-DPtqluVb.js → fiscal-code-input-Cf-8O4Fj.js} +76 -63
- package/dist/_chunks/{freemium-paywall-CkWjv3o6.js → freemium-paywall-DZ2mBS3w.js} +78 -71
- package/dist/_chunks/{gestational-age-calculator-DBlFdoiP.js → gestational-age-calculator-BleUdhbI.js} +5 -5
- package/dist/_chunks/{hcg-doubling-if4Q8aSX.js → hcg-doubling-CnjDXX6U.js} +3 -3
- package/dist/_chunks/{header-settings-CNOqIhoW.js → header-settings-DJqoAl5m.js} +86 -46
- package/dist/_chunks/{index.modern-D2LGACWg.js → index.modern-Zta-A4Jm.js} +3 -3
- package/dist/_chunks/{list-BOwqwy03.js → list-DgE1xWBM.js} +99 -84
- package/dist/_chunks/{locale-picker-C9JmBht3.js → locale-picker-ChYYSX2N.js} +47 -35
- package/dist/_chunks/{map-view-Tb5VfK9Y.js → map-view-BkOoGoX2.js} +160 -115
- package/dist/_chunks/{marketplace-app-shell-D4-T9Qzz.js → marketplace-app-shell-6T9W4Knl.js} +4 -4
- package/dist/_chunks/{message-card.agent-4IeIgrnJ.js → message-card.agent-ZLhx3Bs5.js} +6 -1
- package/dist/_chunks/{message-tray-CVyJajVJ.js → message-tray-DwrBLJlf.js} +90 -48
- package/dist/_chunks/{multi-select-BcPylvHR.js → multi-select-BdHHDrRN.js} +196 -153
- package/dist/_chunks/{navigation-menu-C6lBYVv9.js → navigation-menu-DRUi6sSj.js} +75 -42
- package/dist/_chunks/{notification-card.agent-Rqt3ofk9.js → notification-card.agent-DxGBZb8T.js} +5 -1
- package/dist/_chunks/{notification-tray-DlgenTEe.js → notification-tray-Btb9oQeZ.js} +112 -97
- package/dist/_chunks/{number-input-Dj5L3pXK.js → number-input-DxphVG_A.js} +36 -27
- package/dist/_chunks/{operator-hero-f_KaRhw5.js → operator-hero-CP2Nhupm.js} +12 -8
- package/dist/_chunks/{otp-input-xQ4Ps5VY.js → otp-input-DzBQ-CpE.js} +52 -33
- package/dist/_chunks/{pagination-DQOgnxxw.js → pagination-D58kglCr.js} +181 -162
- package/dist/_chunks/{patient-search-DR9XUYRQ.js → patient-search-CBC_ySF6.js} +69 -60
- package/dist/_chunks/{patient-shell-BfgufL_q.js → patient-shell-DV3XEtIB.js} +3 -3
- package/dist/_chunks/{patient-summary-card-hEmr4eTW.js → patient-summary-card-B836_fDB.js} +95 -103
- package/dist/_chunks/patient-table-CDuosVru.js +889 -0
- package/dist/_chunks/{payment-form-nXocS_MX.js → payment-form-DvjwYVIT.js} +56 -44
- package/dist/_chunks/{payment-request-card-CYE5vhZ0.js → payment-request-card-DioWKBUq.js} +2 -2
- package/dist/_chunks/{pdf-viewer-GsfNqeeT.js → pdf-viewer-D6BPfW2D.js} +205 -157
- package/dist/_chunks/{periodontal-chart-card-Dh3KgvYG.js → periodontal-chart-card-BuDEMbHE.js} +2 -2
- package/dist/_chunks/{phone-input-DVXhNlIl.js → phone-input-DjU-XmO_.js} +64 -47
- package/dist/_chunks/{popover-DTbfAuR0.js → popover-B2qCDhJC.js} +37 -32
- package/dist/_chunks/{practice-results-DND2SAt7.js → practice-results-KrTHqZua.js} +278 -242
- package/dist/_chunks/{pregnancy-dating-QY-sqpvj.js → pregnancy-dating-DORUAOHB.js} +6 -6
- package/dist/_chunks/{pregnancy-weight-gain-DOJXXNYP.js → pregnancy-weight-gain-DVz4rr7-.js} +3 -3
- package/dist/_chunks/{privacy-lock-C7JyMf0y.js → privacy-lock-BzMLQu-j.js} +32 -28
- package/dist/_chunks/{product-hub-panel-CAXDFeGP.js → product-hub-panel-e6pW220e.js} +45 -27
- package/dist/_chunks/{progress-kzIRcdaq.js → progress-DA413-zn.js} +2 -2
- package/dist/_chunks/{public-footer.agent-CfXuW1x6.js → public-footer.agent-D0cFbjWl.js} +151 -146
- package/dist/_chunks/{public-header.agent-BOhJgZEU.js → public-header.agent-DqkqA-ca.js} +107 -102
- package/dist/_chunks/{qr-code-DNXhi6se.js → qr-code-CPkEs5mG.js} +52 -46
- package/dist/_chunks/{radio-group-CLjK-SlK.js → radio-group-BPt7pKZW.js} +5 -5
- package/dist/_chunks/{recaptcha-widget-BCNHsgqt.js → recaptcha-widget-BC-4To9b.js} +9 -2
- package/dist/_chunks/registry-DvAUVLHh.js +51 -0
- package/dist/_chunks/{resizable-3vzqDlg6.js → resizable-DVGcfOrk.js} +193 -173
- package/dist/_chunks/{reviews-panel-DBktKm7i.js → reviews-panel-Dq7LMDcH.js} +87 -68
- package/dist/_chunks/rich-text-editor-BsV7zUdg.js +2142 -0
- package/dist/_chunks/{search-bar-SY2BcV2N.js → search-bar-C_T3pBJn.js} +105 -78
- package/dist/_chunks/{search-input-DbxrnHkW.js → search-input-DQvGxR74.js} +2 -2
- package/dist/_chunks/{search-input.agent-CfZvViOd.js → search-input.agent-DRH54coT.js} +19 -4
- package/dist/_chunks/{select-CEtRcon5.js → select-DMLG44F5.js} +72 -56
- package/dist/_chunks/{session-countdown-LPnhTHjn.js → session-countdown-X1Ki6i0M.js} +3 -3
- package/dist/_chunks/{sheet-taJer-Ha.js → sheet-BxsE7eQm.js} +59 -45
- package/dist/_chunks/{sidebar-DaB4ulxH.js → sidebar-DY9jGjgt.js} +254 -248
- package/dist/_chunks/{sign-document-CdAiHiCh.js → sign-document-B4DeRhTe.js} +75 -49
- package/dist/_chunks/{signature-capture-COi0Uiqu.js → signature-capture-Ct_4Md4e.js} +138 -104
- package/dist/_chunks/{slider-BHWzXdjt.js → slider-DN1CWkKB.js} +85 -65
- package/dist/_chunks/{sparkline-DGhCSw8M.js → sparkline-iOXYgvJe.js} +75 -53
- package/dist/_chunks/{stepper-accordion.agent-C4quJ-MD.js → stepper-accordion.agent-cmEguIdx.js} +7 -1
- package/dist/_chunks/{stepper-progress-DDjq5nei.js → stepper-progress-Bv0njx4g.js} +30 -24
- package/dist/_chunks/{suggestion-chip.agent-6sNWFj7m.js → suggestion-chip.agent-Brn3CiFE.js} +9 -8
- package/dist/_chunks/{switch-BJ6HD3Mn.js → switch-OILsBLWo.js} +25 -19
- package/dist/_chunks/{tabs-BIQ0ew1T.js → tabs-BxcOziCo.js} +67 -58
- package/dist/_chunks/{task-card.agent-CUPKYd7w.js → task-card.agent-Bt14CzUd.js} +4 -1
- package/dist/_chunks/{task-tray-CAncV-QQ.js → task-tray-qOEQflu4.js} +74 -57
- package/dist/_chunks/{text-area-BIx0tZ05.js → text-area-Bt3p7Pt0.js} +41 -34
- package/dist/_chunks/{text-input-BaClJL8Y.js → text-input-B-OWQ1Je.js} +15 -8
- package/dist/_chunks/{theme-toggle-DETmSu_h.js → theme-toggle-XB6o_lgs.js} +38 -26
- package/dist/_chunks/{time-picker-B5umYwfv.js → time-picker-BPlJWm8w.js} +41 -31
- package/dist/_chunks/{timeline-DQa5Tyz4.js → timeline-CqA4nKTI.js} +33 -25
- package/dist/_chunks/{toast.agent-vuLRRn2a.js → toast.agent-57UzyR9U.js} +62 -45
- package/dist/_chunks/{tooth-scheme-BIx1O2aJ.js → tooth-scheme-yBr53cvv.js} +421 -348
- package/dist/_chunks/{transcript-panel-CLHmv83g.js → transcript-panel-3THQX6nJ.js} +47 -33
- package/dist/_chunks/unit-converter-YEpD9evj.js +337 -0
- package/dist/_chunks/{use-password-requirements-DsgduV1x.js → use-password-requirements-BXvS2MBS.js} +131 -117
- package/dist/_chunks/users-MBVtUzwd.js +17 -0
- package/dist/_chunks/warning-stack-BsgaEbL8.js +283 -0
- package/dist/_chunks/{whatsapp-button-DUjlWGKf.js → whatsapp-button-BIy6NaJK.js} +6 -3
- package/dist/_chunks/{workflow-map-JAZryZJr.js → workflow-map-Bdam9pGp.js} +99 -88
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +36 -0
- package/dist/agent/registry.d.ts +33 -0
- package/dist/agent/types.d.ts +78 -2
- package/dist/agent-catalog.json +6905 -509
- package/dist/agent-i18n/en.json +1175 -0
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/address-autocomplete/address-autocomplete.agent.d.ts +4 -0
- package/dist/components/address-autocomplete/address-autocomplete.d.ts +18 -0
- package/dist/components/address-autocomplete/index.d.ts +2 -1
- package/dist/components/address-autocomplete/index.js +3 -2
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/bishop-score.agent.d.ts +4 -0
- package/dist/components/bishop-score/bishop-score.d.ts +17 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/bmi-calculator.agent.d.ts +4 -0
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +26 -0
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/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/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/counter/counter.d.ts +22 -0
- package/dist/components/counter/index.d.ts +3 -0
- package/dist/components/counter/index.js +5 -0
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +1 -1
- package/dist/components/data-table/filters/date-range-filter.d.ts +1 -1
- package/dist/components/data-table/index.js +31 -30
- package/dist/components/data-table/toolbar.d.ts +4 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +6 -0
- 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/header-settings/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/list/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/cell-renderers/balance-badge-cell.d.ts +13 -0
- package/dist/components/patient-table/cell-renderers/care-plan-status-cell.d.ts +43 -0
- package/dist/components/patient-table/cell-renderers/contact-cell.d.ts +45 -0
- package/dist/components/patient-table/cell-renderers/next-appointment-cell.d.ts +24 -0
- package/dist/components/patient-table/cell-renderers/patient-identity-cell.d.ts +26 -0
- package/dist/components/patient-table/columns.d.ts +102 -0
- package/dist/components/patient-table/index.d.ts +24 -0
- package/dist/components/patient-table/index.js +13 -0
- package/dist/components/patient-table/patient-table.d.ts +138 -0
- package/dist/components/patient-table/types.d.ts +172 -0
- package/dist/components/patient-table/use-responsive-columns.d.ts +109 -0
- package/dist/components/payment-card/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/periodontal-chart-card/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +15 -0
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +2 -2
- package/dist/components/select/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +7 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/stepper-progress/index.js +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/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/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/unit-converter/unit-converter.agent.d.ts +4 -0
- package/dist/components/unit-converter/unit-converter.d.ts +27 -0
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/warning-stack/warning-stack.d.ts +9 -0
- package/dist/components/whatsapp-button/index.d.ts +1 -1
- package/dist/components/whatsapp-button/index.js +3 -2
- package/dist/components/whatsapp-button/whatsapp-button.d.ts +3 -0
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +74 -0
- package/dist/i18n/locales/ar.js +76 -2
- package/dist/i18n/locales/de.d.ts +74 -0
- package/dist/i18n/locales/de.js +76 -2
- package/dist/i18n/locales/el.d.ts +74 -0
- package/dist/i18n/locales/el.js +76 -2
- package/dist/i18n/locales/en.d.ts +92 -0
- package/dist/i18n/locales/en.js +94 -2
- package/dist/i18n/locales/es.d.ts +74 -0
- package/dist/i18n/locales/es.js +76 -2
- package/dist/i18n/locales/fr.d.ts +74 -0
- package/dist/i18n/locales/fr.js +76 -2
- package/dist/i18n/locales/hi.d.ts +74 -0
- package/dist/i18n/locales/hi.js +76 -2
- package/dist/i18n/locales/it.d.ts +74 -0
- package/dist/i18n/locales/it.js +76 -2
- package/dist/i18n/locales/ja.d.ts +74 -0
- package/dist/i18n/locales/ja.js +76 -2
- package/dist/i18n/locales/nl.d.ts +74 -0
- package/dist/i18n/locales/nl.js +76 -2
- package/dist/i18n/locales/pl.d.ts +74 -0
- package/dist/i18n/locales/pl.js +76 -2
- package/dist/i18n/locales/pt.d.ts +74 -0
- package/dist/i18n/locales/pt.js +76 -2
- package/dist/i18n/locales/ro.d.ts +74 -0
- package/dist/i18n/locales/ro.js +76 -2
- package/dist/i18n/locales/ru.d.ts +74 -0
- package/dist/i18n/locales/ru.js +76 -2
- package/dist/i18n/locales/sq.d.ts +74 -0
- package/dist/i18n/locales/sq.js +76 -2
- package/dist/i18n/locales/sv.d.ts +74 -0
- package/dist/i18n/locales/sv.js +76 -2
- package/dist/i18n/locales/tr.d.ts +74 -0
- package/dist/i18n/locales/tr.js +76 -2
- package/dist/i18n/locales/zh.d.ts +74 -0
- package/dist/i18n/locales/zh.js +76 -2
- package/dist/index.js +688 -673
- package/dist/locales/ar.json +76 -2
- package/dist/locales/de.json +76 -2
- package/dist/locales/el.json +76 -2
- package/dist/locales/en.json +76 -2
- package/dist/locales/es.json +76 -2
- package/dist/locales/fr.json +76 -2
- package/dist/locales/hi.json +76 -2
- package/dist/locales/it.json +76 -2
- package/dist/locales/ja.json +76 -2
- package/dist/locales/nl.json +76 -2
- package/dist/locales/pl.json +76 -2
- package/dist/locales/pt.json +76 -2
- package/dist/locales/ro.json +76 -2
- package/dist/locales/ru.json +76 -2
- package/dist/locales/sq.json +76 -2
- package/dist/locales/sv.json +76 -2
- package/dist/locales/tr.json +76 -2
- package/dist/locales/zh.json +76 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +3 -2
- package/package.json +14 -1
- package/dist/_chunks/address-autocomplete-CT-9AOli.js +0 -358
- package/dist/_chunks/bishop-score-CjsB9bM-.js +0 -185
- package/dist/_chunks/bmi-calculator-n-823_1V.js +0 -258
- package/dist/_chunks/editable-currency-cell-renderer-D1ewvJKO.js +0 -2391
- package/dist/_chunks/registry-nPAVE19X.js +0 -21
- package/dist/_chunks/rich-text-editor-DAeCXiQG.js +0 -1973
- package/dist/_chunks/unit-converter-C1V3ACM9.js +0 -196
- package/dist/_chunks/warning-stack-Cv4fr5zo.js +0 -220
|
@@ -0,0 +1,2061 @@
|
|
|
1
|
+
import { jsx as n, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as A, forwardRef as L, useState as D, useCallback as M, useEffect as P, useRef as ye, createContext as xe, useContext as Ce, isValidElement as Se, cloneElement as we, useImperativeHandle as ft } from "react";
|
|
3
|
+
import { S as mt } from "./skeleton-CZbwyJAA.js";
|
|
4
|
+
import { E as gt } from "./empty-state-BLy7tigq.js";
|
|
5
|
+
import { c as bt } from "./index-D2ZczOXr.js";
|
|
6
|
+
import { useTranslation as N } from "react-i18next";
|
|
7
|
+
import { useGridFilter as X, AgGridReact as ht } from "ag-grid-react";
|
|
8
|
+
import { ModuleRegistry as vt, AllCommunityModule as Tt } from "ag-grid-community";
|
|
9
|
+
import { B as G } from "./button-DD_0Xdmr.js";
|
|
10
|
+
import { I as _ } from "./icon-button-LqoiKcUN.js";
|
|
11
|
+
import { P as Z } from "./popover-B2qCDhJC.js";
|
|
12
|
+
import { C as Fe } from "./checkbox-BuZ1u__2.js";
|
|
13
|
+
import { T as ue } from "./text-input-B-OWQ1Je.js";
|
|
14
|
+
import { T as te } from "./tag-BQXwuJq1.js";
|
|
15
|
+
import { D as V } from "./dropdown-menu-qrxjymfw.js";
|
|
16
|
+
import { X as Ne } from "./x-CCcI3eJp.js";
|
|
17
|
+
import { R as yt } from "./refresh-cw-CC8jSKMr.js";
|
|
18
|
+
import { S as pe } from "./search-BonnQsHv.js";
|
|
19
|
+
import { C as xt } from "./columns-2-BTOBZbep.js";
|
|
20
|
+
import { G as Ct } from "./grip-vertical-Dlg0_k5C.js";
|
|
21
|
+
import { P as St } from "./printer-CeVEWfQq.js";
|
|
22
|
+
import { F as De } from "./file-text-DSNuv2B8.js";
|
|
23
|
+
import { D as ae } from "./download-CDF1sbL9.js";
|
|
24
|
+
import { F as wt } from "./file-spreadsheet-zUkY8rJ2.js";
|
|
25
|
+
import Ft from "i18next";
|
|
26
|
+
import { S as Re } from "./select-DMLG44F5.js";
|
|
27
|
+
import { u as Nt } from "./registry-DvAUVLHh.js";
|
|
28
|
+
import { u as Dt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
29
|
+
import { u as Rt } from "./use-theme-CAuo6EYT.js";
|
|
30
|
+
import { D as Ie } from "./date-range-picker-CTUeR6Bj.js";
|
|
31
|
+
import { M as It } from "./multi-select-BdHHDrRN.js";
|
|
32
|
+
import { A as ke } from "./autocomplete-DOeGouCL.js";
|
|
33
|
+
import { N as Y } from "./number-input-DxphVG_A.js";
|
|
34
|
+
import { A as kt } from "./avatar-BNQNhoyL.js";
|
|
35
|
+
import { T as At } from "./tooltip-DvmfrNvB.js";
|
|
36
|
+
import { T as be } from "./timestamp-BV2lC-wV.js";
|
|
37
|
+
import { I as Ot } from "./icon-button-group-C48khLE0.js";
|
|
38
|
+
import { E as Et } from "./ellipsis-rgGdiK_9.js";
|
|
39
|
+
function Pt(t) {
|
|
40
|
+
if (!Se(t)) return t;
|
|
41
|
+
const e = t, a = e.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} ds:size-4`.trim();
|
|
42
|
+
return we(e, { className: r, size: e.props.size ?? 16 });
|
|
43
|
+
}
|
|
44
|
+
const Ae = xe(null);
|
|
45
|
+
function $(t) {
|
|
46
|
+
const e = Ce(Ae);
|
|
47
|
+
if (!e)
|
|
48
|
+
throw new Error(
|
|
49
|
+
`${t} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
|
|
50
|
+
);
|
|
51
|
+
return e;
|
|
52
|
+
}
|
|
53
|
+
function zt({
|
|
54
|
+
getApi: t,
|
|
55
|
+
selectionCount: e,
|
|
56
|
+
onPrint: a,
|
|
57
|
+
children: r
|
|
58
|
+
}) {
|
|
59
|
+
const o = A(
|
|
60
|
+
() => ({ getApi: t, selectionCount: e, onPrint: a }),
|
|
61
|
+
[t, e, a]
|
|
62
|
+
);
|
|
63
|
+
return /* @__PURE__ */ n(Ae.Provider, { value: o, children: r });
|
|
64
|
+
}
|
|
65
|
+
const Mt = [
|
|
66
|
+
"data-table-toolbar",
|
|
67
|
+
// Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
|
|
68
|
+
// Actions cluster on narrow screens. From `sm` (≥640px) we switch to
|
|
69
|
+
// `flex-nowrap` + `min-w-0` so the row stays single-line at every common
|
|
70
|
+
// desktop width (1024 / 1280 / 1440) — the QuickSearch slot shrinks via
|
|
71
|
+
// its own `min-w-0` instead of pushing the trailing Actions to a new row.
|
|
72
|
+
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
73
|
+
"ds:sm:flex-nowrap ds:min-w-0",
|
|
74
|
+
// Brand-polish: give the toolbar its own card surface so it doesn't
|
|
75
|
+
// sit flush above the grid as a bare row. The `--card` token resolves to
|
|
76
|
+
// `--background` on the default light theme (white), which makes a
|
|
77
|
+
// shadow-only chrome invisible on the page — pair the card fill with the
|
|
78
|
+
// standard `--card-border` outline (same recipe as `<Card>`) so the
|
|
79
|
+
// toolbar reads as a discrete surface in both light and dark themes.
|
|
80
|
+
"ds:bg-[var(--card)] ds:rounded-[var(--radius-md)]",
|
|
81
|
+
"ds:border ds:border-[color:var(--card-border)]",
|
|
82
|
+
"ds:shadow-[var(--shadow-sm)]",
|
|
83
|
+
"ds:py-[var(--spacing-sm)] ds:px-[var(--spacing-md)]"
|
|
84
|
+
].join(" "), Oe = L(
|
|
85
|
+
({ className: t, children: e, ...a }, r) => /* @__PURE__ */ n(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
ref: r,
|
|
89
|
+
role: "toolbar",
|
|
90
|
+
className: [Mt, t ?? ""].join(" ").trim(),
|
|
91
|
+
...a,
|
|
92
|
+
children: e
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
);
|
|
96
|
+
Oe.displayName = "DataTable.Toolbar";
|
|
97
|
+
const Ee = L(
|
|
98
|
+
({ className: t, children: e, ...a }, r) => /* @__PURE__ */ n(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
ref: r,
|
|
102
|
+
className: [
|
|
103
|
+
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
104
|
+
// `grow` lets FilterBar absorb the free space; `min-w-0` lets the
|
|
105
|
+
// QuickSearch slot inside shrink below its intrinsic width when the
|
|
106
|
+
// toolbar runs `flex-nowrap` at `sm` and above, so the trailing
|
|
107
|
+
// Actions cluster stays pinned on a single row.
|
|
108
|
+
"ds:grow ds:min-w-0",
|
|
109
|
+
t ?? ""
|
|
110
|
+
].join(" ").trim(),
|
|
111
|
+
...a,
|
|
112
|
+
children: e
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
);
|
|
116
|
+
Ee.displayName = "DataTable.Toolbar.FilterBar";
|
|
117
|
+
const Pe = L(
|
|
118
|
+
({ className: t, children: e, ...a }, r) => /* @__PURE__ */ n(
|
|
119
|
+
"div",
|
|
120
|
+
{
|
|
121
|
+
ref: r,
|
|
122
|
+
className: [
|
|
123
|
+
"ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
124
|
+
"ds:ms-auto",
|
|
125
|
+
t ?? ""
|
|
126
|
+
].join(" ").trim(),
|
|
127
|
+
...a,
|
|
128
|
+
children: e
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
);
|
|
132
|
+
Pe.displayName = "DataTable.Toolbar.Actions";
|
|
133
|
+
const ze = L(
|
|
134
|
+
({ label: t, onExport: e, intent: a = "outline", ...r }, o) => {
|
|
135
|
+
const { t: s } = N(), { getApi: l } = $("DataTable.Toolbar.ExportCsv"), f = M(() => {
|
|
136
|
+
const i = l();
|
|
137
|
+
i && (e ? e(i) : i.exportDataAsCsv());
|
|
138
|
+
}, [l, e]);
|
|
139
|
+
return /* @__PURE__ */ n(
|
|
140
|
+
_,
|
|
141
|
+
{
|
|
142
|
+
ref: o,
|
|
143
|
+
type: "button",
|
|
144
|
+
intent: a,
|
|
145
|
+
icon: /* @__PURE__ */ n(ae, { "aria-hidden": !0 }),
|
|
146
|
+
tooltip: t ?? s("dataTable.exportCsv"),
|
|
147
|
+
onClick: f,
|
|
148
|
+
...r
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
ze.displayName = "DataTable.Toolbar.ExportCsv";
|
|
154
|
+
function Q(t, e = [30, 30, 30]) {
|
|
155
|
+
if (typeof document > "u") return e;
|
|
156
|
+
const a = document.createElement("span");
|
|
157
|
+
a.style.color = `hsl(var(${t}))`, a.style.position = "absolute", a.style.visibility = "hidden", document.body.appendChild(a);
|
|
158
|
+
const r = getComputedStyle(a).color;
|
|
159
|
+
document.body.removeChild(a);
|
|
160
|
+
const o = r.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
|
|
161
|
+
return o ? [Number(o[1]), Number(o[2]), Number(o[3])] : e;
|
|
162
|
+
}
|
|
163
|
+
async function Me(t, e) {
|
|
164
|
+
if (!t) return;
|
|
165
|
+
const [{ jsPDF: a }, { default: r }] = await Promise.all([
|
|
166
|
+
import("./jspdf.es.min-DaapWjR1.js").then((g) => g.j),
|
|
167
|
+
import("./jspdf.plugin.autotable-CSiDNyPn.js")
|
|
168
|
+
]), s = (t.getColumns() ?? []).filter((g) => g.isVisible()), l = [
|
|
169
|
+
s.map((g) => t.getDisplayNameForColumn(g, null) ?? "")
|
|
170
|
+
], f = [];
|
|
171
|
+
t.forEachNodeAfterFilterAndSort((g) => {
|
|
172
|
+
if (!g.data) return;
|
|
173
|
+
const T = s.map((x) => {
|
|
174
|
+
const S = t.getCellValue({
|
|
175
|
+
rowNode: g,
|
|
176
|
+
colKey: x,
|
|
177
|
+
useFormatter: !0
|
|
178
|
+
});
|
|
179
|
+
return S == null ? "" : String(S);
|
|
180
|
+
});
|
|
181
|
+
f.push(T);
|
|
182
|
+
});
|
|
183
|
+
const i = Q("--muted", [240, 240, 240]), u = Q("--foreground", [30, 30, 30]), c = Q("--card-foreground", [30, 30, 30]), d = Q("--card", [250, 250, 250]), y = new a({ orientation: "landscape" });
|
|
184
|
+
r(y, {
|
|
185
|
+
head: l,
|
|
186
|
+
body: f,
|
|
187
|
+
headStyles: { fillColor: i, textColor: u },
|
|
188
|
+
bodyStyles: { textColor: c },
|
|
189
|
+
alternateRowStyles: { fillColor: d },
|
|
190
|
+
styles: {
|
|
191
|
+
font: "helvetica",
|
|
192
|
+
fontSize: 10,
|
|
193
|
+
cellPadding: 4
|
|
194
|
+
}
|
|
195
|
+
}), y.save(e.fileName);
|
|
196
|
+
}
|
|
197
|
+
const qe = L(
|
|
198
|
+
({ label: t, onClick: e, fileName: a, intent: r = "outline", ...o }, s) => {
|
|
199
|
+
const { t: l } = N(), { getApi: f } = $("DataTable.Toolbar.ExportPdf"), i = M(() => {
|
|
200
|
+
const u = f();
|
|
201
|
+
if (e) {
|
|
202
|
+
e(u);
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
Me(u, {
|
|
206
|
+
fileName: a ?? "data-table-export.pdf"
|
|
207
|
+
});
|
|
208
|
+
}, [f, e, a]);
|
|
209
|
+
return /* @__PURE__ */ n(
|
|
210
|
+
_,
|
|
211
|
+
{
|
|
212
|
+
ref: s,
|
|
213
|
+
type: "button",
|
|
214
|
+
intent: r,
|
|
215
|
+
icon: /* @__PURE__ */ n(De, { "aria-hidden": !0 }),
|
|
216
|
+
tooltip: t ?? l("dataTable.exportPdf"),
|
|
217
|
+
onClick: i,
|
|
218
|
+
...o
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
);
|
|
223
|
+
qe.displayName = "DataTable.Toolbar.ExportPdf";
|
|
224
|
+
const je = L(
|
|
225
|
+
({ label: t, intent: e = "outline", ...a }, r) => {
|
|
226
|
+
const { t: o } = N(), { onPrint: s } = $("DataTable.Toolbar.Print");
|
|
227
|
+
return /* @__PURE__ */ n(
|
|
228
|
+
_,
|
|
229
|
+
{
|
|
230
|
+
ref: r,
|
|
231
|
+
type: "button",
|
|
232
|
+
intent: e,
|
|
233
|
+
icon: /* @__PURE__ */ n(St, { "aria-hidden": !0 }),
|
|
234
|
+
tooltip: t ?? o("dataTable.print"),
|
|
235
|
+
onClick: s,
|
|
236
|
+
...a
|
|
237
|
+
}
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
);
|
|
241
|
+
je.displayName = "DataTable.Toolbar.Print";
|
|
242
|
+
const Ge = ({ placeholder: t, debounceMs: e = 150 }) => {
|
|
243
|
+
const { t: a } = N(), { getApi: r } = $("DataTable.Toolbar.QuickSearch"), [o, s] = D(""), l = ye(void 0);
|
|
244
|
+
return P(() => (l.current && window.clearTimeout(l.current), l.current = window.setTimeout(() => {
|
|
245
|
+
const f = r();
|
|
246
|
+
f && f.setGridOption("quickFilterText", o);
|
|
247
|
+
}, e), () => {
|
|
248
|
+
l.current && window.clearTimeout(l.current);
|
|
249
|
+
}), [o, e, r]), // Slot wrapper caps the search at a sensible legible width on desktop —
|
|
250
|
+
// without this, TextInput's `w-full` lets the QuickSearch absorb the
|
|
251
|
+
// entire FilterBar row and push trailing Actions onto a second line at
|
|
252
|
+
// 1024 / 1280 / 1440. `min-w-0` lets the slot shrink below `24rem` when
|
|
253
|
+
// the toolbar is squeezed on narrow viewports. There is no
|
|
254
|
+
// `--toolbar-search-max` token in the kit yet — see this component's
|
|
255
|
+
// summary for a follow-up note recommending we add one.
|
|
256
|
+
/* @__PURE__ */ n("div", { className: "ds:w-full ds:max-w-[24rem] ds:min-w-0", children: /* @__PURE__ */ n(
|
|
257
|
+
ue,
|
|
258
|
+
{
|
|
259
|
+
type: "search",
|
|
260
|
+
size: "sm",
|
|
261
|
+
value: o,
|
|
262
|
+
onChange: (f) => s(f.target.value),
|
|
263
|
+
placeholder: t ?? a("dataTable.quickSearch.placeholder", "Search…"),
|
|
264
|
+
startAdornment: /* @__PURE__ */ n(pe, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
265
|
+
clearable: !0,
|
|
266
|
+
onClear: () => s(""),
|
|
267
|
+
"aria-label": a("dataTable.quickSearch.label", "Quick search")
|
|
268
|
+
}
|
|
269
|
+
) });
|
|
270
|
+
};
|
|
271
|
+
Ge.displayName = "DataTable.Toolbar.QuickSearch";
|
|
272
|
+
const Le = L(
|
|
273
|
+
({ onRefresh: t, label: e, intent: a = "outline", ...r }, o) => {
|
|
274
|
+
const { t: s } = N();
|
|
275
|
+
return /* @__PURE__ */ n(
|
|
276
|
+
_,
|
|
277
|
+
{
|
|
278
|
+
ref: o,
|
|
279
|
+
type: "button",
|
|
280
|
+
intent: a,
|
|
281
|
+
icon: /* @__PURE__ */ n(yt, { "aria-hidden": !0 }),
|
|
282
|
+
tooltip: e ?? s("dataTable.refresh", "Refresh"),
|
|
283
|
+
onClick: t,
|
|
284
|
+
...r
|
|
285
|
+
}
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
);
|
|
289
|
+
Le.displayName = "DataTable.Toolbar.Refresh";
|
|
290
|
+
function qt(t) {
|
|
291
|
+
if (!t || typeof t != "object") return "";
|
|
292
|
+
const e = t;
|
|
293
|
+
if (typeof e.filter == "string" || typeof e.filter == "number") {
|
|
294
|
+
const a = typeof e.type == "string" ? e.type : "", r = typeof e.filterTo == "string" || typeof e.filterTo == "number" ? String(e.filterTo) : "";
|
|
295
|
+
return a === "inRange" && r ? `${e.filter} – ${r}` : a ? `${a} ${e.filter}` : String(e.filter);
|
|
296
|
+
}
|
|
297
|
+
return typeof e.dateFrom == "string" ? typeof e.dateTo == "string" && e.dateTo ? `${e.dateFrom} – ${e.dateTo}` : String(e.dateFrom) : Array.isArray(e.values) ? e.values.map(String).join(", ") : "";
|
|
298
|
+
}
|
|
299
|
+
const $e = () => {
|
|
300
|
+
const { t } = N(), { getApi: e } = $("DataTable.Toolbar.FilterChips"), [a, r] = D([]), [o, s] = D(""), l = M(() => {
|
|
301
|
+
const c = e();
|
|
302
|
+
if (!c) {
|
|
303
|
+
r([]), s("");
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
const d = c.getFilterModel() ?? {}, y = c.getColumns() ?? [], g = [];
|
|
307
|
+
for (const x of Object.keys(d)) {
|
|
308
|
+
const S = y.find((m) => m.getColId() === x), p = c.getDisplayNameForColumn(S, null) ?? x;
|
|
309
|
+
g.push({
|
|
310
|
+
colId: x,
|
|
311
|
+
headerName: p,
|
|
312
|
+
text: qt(d[x])
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
r(g);
|
|
316
|
+
const T = c.getGridOption("quickFilterText");
|
|
317
|
+
s(typeof T == "string" ? T : "");
|
|
318
|
+
}, [e]);
|
|
319
|
+
if (P(() => {
|
|
320
|
+
let c;
|
|
321
|
+
const d = (T) => l(), y = (T) => {
|
|
322
|
+
T.addEventListener("filterChanged", d), l(), c = () => T.removeEventListener("filterChanged", d);
|
|
323
|
+
}, g = e();
|
|
324
|
+
if (g)
|
|
325
|
+
y(g);
|
|
326
|
+
else {
|
|
327
|
+
const T = window.setInterval(() => {
|
|
328
|
+
const x = e();
|
|
329
|
+
x && (window.clearInterval(T), y(x));
|
|
330
|
+
}, 50);
|
|
331
|
+
c = () => window.clearInterval(T);
|
|
332
|
+
}
|
|
333
|
+
return () => c == null ? void 0 : c();
|
|
334
|
+
}, [e, l]), a.length + (o ? 1 : 0) === 0) return null;
|
|
335
|
+
function i(c) {
|
|
336
|
+
const d = e();
|
|
337
|
+
d && d.destroyFilter(c);
|
|
338
|
+
}
|
|
339
|
+
function u() {
|
|
340
|
+
const c = e();
|
|
341
|
+
c && (c.setFilterModel(null), c.setGridOption("quickFilterText", ""), s(""));
|
|
342
|
+
}
|
|
343
|
+
return /* @__PURE__ */ I(
|
|
344
|
+
"div",
|
|
345
|
+
{
|
|
346
|
+
role: "group",
|
|
347
|
+
"aria-label": t("dataTable.filterChips.label", "Active filters"),
|
|
348
|
+
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
349
|
+
children: [
|
|
350
|
+
o && /* @__PURE__ */ n(
|
|
351
|
+
te,
|
|
352
|
+
{
|
|
353
|
+
label: `${t("dataTable.quickSearch.label", "Quick search")}: ${o}`,
|
|
354
|
+
size: "sm",
|
|
355
|
+
fill: "outline",
|
|
356
|
+
onRemove: () => {
|
|
357
|
+
const c = e();
|
|
358
|
+
c == null || c.setGridOption("quickFilterText", ""), s("");
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
),
|
|
362
|
+
a.map((c) => /* @__PURE__ */ n(
|
|
363
|
+
te,
|
|
364
|
+
{
|
|
365
|
+
label: c.text ? `${c.headerName}: ${c.text}` : c.headerName,
|
|
366
|
+
size: "sm",
|
|
367
|
+
fill: "outline",
|
|
368
|
+
onRemove: () => i(c.colId)
|
|
369
|
+
},
|
|
370
|
+
c.colId
|
|
371
|
+
)),
|
|
372
|
+
/* @__PURE__ */ n(
|
|
373
|
+
G,
|
|
374
|
+
{
|
|
375
|
+
type: "button",
|
|
376
|
+
intent: "ghost",
|
|
377
|
+
size: "sm",
|
|
378
|
+
onClick: u,
|
|
379
|
+
startIcon: /* @__PURE__ */ n(Ne, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
380
|
+
children: t("dataTable.filterChips.clearAll", "Clear all")
|
|
381
|
+
}
|
|
382
|
+
)
|
|
383
|
+
]
|
|
384
|
+
}
|
|
385
|
+
);
|
|
386
|
+
};
|
|
387
|
+
$e.displayName = "DataTable.Toolbar.FilterChips";
|
|
388
|
+
const Be = ({
|
|
389
|
+
field: t,
|
|
390
|
+
options: e,
|
|
391
|
+
label: a
|
|
392
|
+
}) => {
|
|
393
|
+
const { t: r } = N(), { getApi: o } = $("DataTable.Toolbar.FacetFilter"), [s, l] = D(null);
|
|
394
|
+
function f(i) {
|
|
395
|
+
l(i);
|
|
396
|
+
const u = o();
|
|
397
|
+
if (u) {
|
|
398
|
+
if (i === null) {
|
|
399
|
+
u.destroyFilter(t);
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
u.setColumnFilterModel(t, {
|
|
403
|
+
type: "equals",
|
|
404
|
+
filter: i
|
|
405
|
+
}), u.onFilterChanged();
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
return /* @__PURE__ */ n(
|
|
409
|
+
"div",
|
|
410
|
+
{
|
|
411
|
+
role: "group",
|
|
412
|
+
"aria-label": a ?? r("dataTable.facetFilter.label", "Filter"),
|
|
413
|
+
className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
414
|
+
children: e.map((i) => {
|
|
415
|
+
const u = s === i.value;
|
|
416
|
+
return /* @__PURE__ */ n(
|
|
417
|
+
G,
|
|
418
|
+
{
|
|
419
|
+
type: "button",
|
|
420
|
+
size: "sm",
|
|
421
|
+
intent: u ? "primary" : "secondary",
|
|
422
|
+
"aria-pressed": u,
|
|
423
|
+
onClick: () => f(i.value),
|
|
424
|
+
children: i.label
|
|
425
|
+
},
|
|
426
|
+
String(i.value)
|
|
427
|
+
);
|
|
428
|
+
})
|
|
429
|
+
}
|
|
430
|
+
);
|
|
431
|
+
};
|
|
432
|
+
Be.displayName = "DataTable.Toolbar.FacetFilter";
|
|
433
|
+
const jt = ["csv", "xlsx", "pdf"];
|
|
434
|
+
async function Gt(t, e) {
|
|
435
|
+
if (!t) return;
|
|
436
|
+
const a = await import("./exceljs.min-DUJ-5CGx.js").then((x) => x.e), r = new a.Workbook(), o = r.addWorksheet("Sheet1"), l = (t.getColumns() ?? []).filter((x) => x.isVisible());
|
|
437
|
+
o.addRow(
|
|
438
|
+
l.map(
|
|
439
|
+
(x) => t.getDisplayNameForColumn(x, null) ?? x.getColId()
|
|
440
|
+
)
|
|
441
|
+
), t.forEachNodeAfterFilterAndSort((x) => {
|
|
442
|
+
x.data && o.addRow(
|
|
443
|
+
l.map((S) => {
|
|
444
|
+
const p = t.getCellValue({
|
|
445
|
+
rowNode: x,
|
|
446
|
+
colKey: S,
|
|
447
|
+
useFormatter: !0
|
|
448
|
+
});
|
|
449
|
+
return p ?? "";
|
|
450
|
+
})
|
|
451
|
+
);
|
|
452
|
+
});
|
|
453
|
+
const f = Q("--muted", [240, 240, 240]), i = Q("--foreground", [30, 30, 30]), u = o.getRow(1), c = ([x, S, p]) => `${x.toString(16).padStart(2, "0")}${S.toString(16).padStart(2, "0")}${p.toString(16).padStart(2, "0")}`.toUpperCase();
|
|
454
|
+
u.eachCell((x) => {
|
|
455
|
+
x.font = { bold: !0, color: { argb: `FF${c(i)}` } }, x.fill = {
|
|
456
|
+
type: "pattern",
|
|
457
|
+
pattern: "solid",
|
|
458
|
+
fgColor: { argb: `FF${c(f)}` }
|
|
459
|
+
};
|
|
460
|
+
});
|
|
461
|
+
const d = await r.xlsx.writeBuffer(), y = new Blob([d], {
|
|
462
|
+
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
463
|
+
}), g = URL.createObjectURL(y), T = document.createElement("a");
|
|
464
|
+
T.href = g, T.download = e.fileName, document.body.appendChild(T), T.click(), document.body.removeChild(T), URL.revokeObjectURL(g);
|
|
465
|
+
}
|
|
466
|
+
const Ve = xe(null);
|
|
467
|
+
function Lt() {
|
|
468
|
+
const t = Ce(Ve);
|
|
469
|
+
if (!t)
|
|
470
|
+
throw new Error(
|
|
471
|
+
"DataTable.Toolbar.ExportMenu.Item must be rendered inside DataTable.Toolbar.ExportMenu."
|
|
472
|
+
);
|
|
473
|
+
return t;
|
|
474
|
+
}
|
|
475
|
+
const _e = ({ children: t, label: e }) => {
|
|
476
|
+
const { t: a } = N(), { getApi: r } = $("DataTable.Toolbar.ExportMenu"), o = A(() => ({ getApi: r }), [r]), s = t ?? jt.map((l) => /* @__PURE__ */ n(fe, { format: l }, l));
|
|
477
|
+
return /* @__PURE__ */ n(Ve.Provider, { value: o, children: /* @__PURE__ */ I(V.Root, { children: [
|
|
478
|
+
/* @__PURE__ */ n(V.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
|
|
479
|
+
_,
|
|
480
|
+
{
|
|
481
|
+
type: "button",
|
|
482
|
+
intent: "outline",
|
|
483
|
+
icon: /* @__PURE__ */ n(ae, { "aria-hidden": !0 }),
|
|
484
|
+
tooltip: e ?? a("dataTable.export.menu", "Export"),
|
|
485
|
+
"aria-label": e ?? a("dataTable.export.menu", "Export"),
|
|
486
|
+
"aria-haspopup": "menu"
|
|
487
|
+
}
|
|
488
|
+
) }),
|
|
489
|
+
/* @__PURE__ */ n(V.Content, { align: "end", sideOffset: 4, children: s })
|
|
490
|
+
] }) });
|
|
491
|
+
};
|
|
492
|
+
_e.displayName = "DataTable.Toolbar.ExportMenu";
|
|
493
|
+
function $t(t, e) {
|
|
494
|
+
return e === "csv" ? t("dataTable.export.csv", "Export CSV") : e === "xlsx" ? t("dataTable.export.xlsx", "Export Excel") : e === "pdf" ? t("dataTable.export.pdf", "Export PDF") : t("dataTable.export.custom", "Export");
|
|
495
|
+
}
|
|
496
|
+
function Bt(t) {
|
|
497
|
+
return t === "csv" ? /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" }) : t === "xlsx" ? /* @__PURE__ */ n(wt, { "aria-hidden": !0, className: "ds:size-4" }) : t === "pdf" ? /* @__PURE__ */ n(De, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" });
|
|
498
|
+
}
|
|
499
|
+
const fe = ({
|
|
500
|
+
format: t,
|
|
501
|
+
label: e,
|
|
502
|
+
onClick: a,
|
|
503
|
+
fileName: r
|
|
504
|
+
}) => {
|
|
505
|
+
const { t: o } = N(), { getApi: s } = Lt(), l = M(() => {
|
|
506
|
+
const f = s();
|
|
507
|
+
if (t === "csv") {
|
|
508
|
+
f == null || f.exportDataAsCsv();
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
if (t === "pdf") {
|
|
512
|
+
Me(f, {
|
|
513
|
+
fileName: r ?? "data-table-export.pdf"
|
|
514
|
+
});
|
|
515
|
+
return;
|
|
516
|
+
}
|
|
517
|
+
if (t === "xlsx") {
|
|
518
|
+
Gt(f, {
|
|
519
|
+
fileName: r ?? "data-table-export.xlsx"
|
|
520
|
+
});
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
a == null || a(f);
|
|
524
|
+
}, [t, r, a, s]);
|
|
525
|
+
return /* @__PURE__ */ n(V.Item, { onSelect: l, children: /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
526
|
+
Bt(t),
|
|
527
|
+
/* @__PURE__ */ n("span", { children: e ?? $t(o, t) })
|
|
528
|
+
] }) });
|
|
529
|
+
};
|
|
530
|
+
fe.displayName = "DataTable.Toolbar.ExportMenu.Item";
|
|
531
|
+
function Vt(t) {
|
|
532
|
+
return t ? (t.getAllGridColumns() ?? []).map((a) => a.getColDef().hide === void 0 && a.getColId().startsWith("ag-Grid-") ? null : {
|
|
533
|
+
colId: a.getColId(),
|
|
534
|
+
displayName: t.getDisplayNameForColumn(a, null) || a.getColId(),
|
|
535
|
+
visible: a.isVisible()
|
|
536
|
+
}).filter((a) => a !== null) : [];
|
|
537
|
+
}
|
|
538
|
+
const Ke = ({ label: t, icon: e, footer: a, header: r }) => {
|
|
539
|
+
const { t: o } = N(), { getApi: s } = $("DataTable.Toolbar.ColumnToggle"), [l, f] = D(!1), [i, u] = D([]), [c, d] = D(null), [y, g] = D(null);
|
|
540
|
+
P(() => {
|
|
541
|
+
l && u(Vt(s()));
|
|
542
|
+
}, [l, s]);
|
|
543
|
+
const T = M(
|
|
544
|
+
(p, m) => {
|
|
545
|
+
const b = s();
|
|
546
|
+
b && (b.setColumnsVisible([p], m), u(
|
|
547
|
+
(h) => h.map(
|
|
548
|
+
(w) => w.colId === p ? { ...w, visible: m } : w
|
|
549
|
+
)
|
|
550
|
+
));
|
|
551
|
+
},
|
|
552
|
+
[s]
|
|
553
|
+
), x = M(
|
|
554
|
+
(p, m) => {
|
|
555
|
+
if (p === m) return;
|
|
556
|
+
const b = s();
|
|
557
|
+
if (!b) return;
|
|
558
|
+
u((w) => {
|
|
559
|
+
const O = w.findIndex((K) => K.colId === p), k = w.findIndex((K) => K.colId === m);
|
|
560
|
+
if (O < 0 || k < 0) return w;
|
|
561
|
+
const B = [...w], [R] = B.splice(O, 1);
|
|
562
|
+
return B.splice(k, 0, R), B;
|
|
563
|
+
});
|
|
564
|
+
const h = i.findIndex((w) => w.colId === m);
|
|
565
|
+
h >= 0 && b.moveColumns([p], h);
|
|
566
|
+
},
|
|
567
|
+
[s, i]
|
|
568
|
+
), S = t ?? o("dataTable.columnToggle");
|
|
569
|
+
return /* @__PURE__ */ I(Z.Root, { open: l, onOpenChange: f, children: [
|
|
570
|
+
/* @__PURE__ */ n(Z.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
|
|
571
|
+
_,
|
|
572
|
+
{
|
|
573
|
+
type: "button",
|
|
574
|
+
intent: "outline",
|
|
575
|
+
icon: e ?? /* @__PURE__ */ n(xt, { "aria-hidden": !0 }),
|
|
576
|
+
"aria-label": S,
|
|
577
|
+
"aria-haspopup": "dialog"
|
|
578
|
+
}
|
|
579
|
+
) }),
|
|
580
|
+
/* @__PURE__ */ I(Z.Content, { size: "sm", align: "end", children: [
|
|
581
|
+
/* @__PURE__ */ n(Z.Heading, { children: S }),
|
|
582
|
+
r ? /* @__PURE__ */ n("div", { className: "ds:mb-[var(--spacing-xs)] ds:border-b ds:border-[color:var(--border)] ds:pb-[var(--spacing-sm)]", children: r }) : null,
|
|
583
|
+
/* @__PURE__ */ n(
|
|
584
|
+
"ul",
|
|
585
|
+
{
|
|
586
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
587
|
+
"aria-label": S,
|
|
588
|
+
children: i.map((p) => {
|
|
589
|
+
const m = c === p.colId, b = y === p.colId && c !== p.colId;
|
|
590
|
+
return /* @__PURE__ */ I(
|
|
591
|
+
"li",
|
|
592
|
+
{
|
|
593
|
+
draggable: !0,
|
|
594
|
+
onDragStart: (h) => {
|
|
595
|
+
d(p.colId), h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("text/plain", p.colId);
|
|
596
|
+
},
|
|
597
|
+
onDragOver: (h) => {
|
|
598
|
+
h.preventDefault(), h.dataTransfer.dropEffect = "move", g(p.colId);
|
|
599
|
+
},
|
|
600
|
+
onDragLeave: () => {
|
|
601
|
+
g((h) => h === p.colId ? null : h);
|
|
602
|
+
},
|
|
603
|
+
onDrop: (h) => {
|
|
604
|
+
h.preventDefault();
|
|
605
|
+
const w = h.dataTransfer.getData("text/plain");
|
|
606
|
+
w && x(w, p.colId), d(null), g(null);
|
|
607
|
+
},
|
|
608
|
+
onDragEnd: () => {
|
|
609
|
+
d(null), g(null);
|
|
610
|
+
},
|
|
611
|
+
className: [
|
|
612
|
+
"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",
|
|
613
|
+
m ? "ds:opacity-50" : "",
|
|
614
|
+
b ? "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]" : ""
|
|
615
|
+
].filter(Boolean).join(" "),
|
|
616
|
+
children: [
|
|
617
|
+
/* @__PURE__ */ n(
|
|
618
|
+
"span",
|
|
619
|
+
{
|
|
620
|
+
"aria-hidden": "true",
|
|
621
|
+
className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
|
|
622
|
+
children: /* @__PURE__ */ n(Ct, { className: "ds:size-4" })
|
|
623
|
+
}
|
|
624
|
+
),
|
|
625
|
+
/* @__PURE__ */ n(
|
|
626
|
+
Fe,
|
|
627
|
+
{
|
|
628
|
+
label: p.displayName,
|
|
629
|
+
checked: p.visible,
|
|
630
|
+
onCheckedChange: (h) => T(p.colId, h === !0)
|
|
631
|
+
}
|
|
632
|
+
)
|
|
633
|
+
]
|
|
634
|
+
},
|
|
635
|
+
p.colId
|
|
636
|
+
);
|
|
637
|
+
})
|
|
638
|
+
}
|
|
639
|
+
),
|
|
640
|
+
a ? /* @__PURE__ */ n("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: a }) : null
|
|
641
|
+
] })
|
|
642
|
+
] });
|
|
643
|
+
};
|
|
644
|
+
Ke.displayName = "DataTable.Toolbar.ColumnToggle";
|
|
645
|
+
const We = L(
|
|
646
|
+
({ label: t, icon: e, onClick: a, variant: r = "default", size: o = "sm", ...s }, l) => {
|
|
647
|
+
const { t: f } = N(), { getApi: i, selectionCount: u } = $(
|
|
648
|
+
"DataTable.Toolbar.BulkAction"
|
|
649
|
+
);
|
|
650
|
+
return u === 0 ? null : /* @__PURE__ */ I(
|
|
651
|
+
G,
|
|
652
|
+
{
|
|
653
|
+
ref: l,
|
|
654
|
+
type: "button",
|
|
655
|
+
intent: r === "destructive" ? "destructive" : "secondary",
|
|
656
|
+
size: o,
|
|
657
|
+
startIcon: Pt(e),
|
|
658
|
+
onClick: () => a(i()),
|
|
659
|
+
"aria-label": `${t} (${f("dataTable.bulkAction", { count: u })})`,
|
|
660
|
+
...s,
|
|
661
|
+
children: [
|
|
662
|
+
/* @__PURE__ */ n("span", { children: t }),
|
|
663
|
+
/* @__PURE__ */ n(
|
|
664
|
+
"span",
|
|
665
|
+
{
|
|
666
|
+
"aria-hidden": "true",
|
|
667
|
+
className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
|
|
668
|
+
children: f("dataTable.bulkAction", { count: u })
|
|
669
|
+
}
|
|
670
|
+
)
|
|
671
|
+
]
|
|
672
|
+
}
|
|
673
|
+
);
|
|
674
|
+
}
|
|
675
|
+
);
|
|
676
|
+
We.displayName = "DataTable.Toolbar.BulkAction";
|
|
677
|
+
const _t = Object.assign(_e, {
|
|
678
|
+
Item: fe
|
|
679
|
+
}), ee = Object.assign(Oe, {
|
|
680
|
+
FilterBar: Ee,
|
|
681
|
+
Actions: Pe,
|
|
682
|
+
/** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
|
|
683
|
+
ExportCsv: ze,
|
|
684
|
+
/** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
|
|
685
|
+
ExportPdf: qe,
|
|
686
|
+
Print: je,
|
|
687
|
+
ColumnToggle: Ke,
|
|
688
|
+
BulkAction: We,
|
|
689
|
+
QuickSearch: Ge,
|
|
690
|
+
Refresh: Le,
|
|
691
|
+
FilterChips: $e,
|
|
692
|
+
FacetFilter: Be,
|
|
693
|
+
ExportMenu: _t
|
|
694
|
+
}), Kt = [
|
|
695
|
+
"contains",
|
|
696
|
+
"equals",
|
|
697
|
+
"startsWith",
|
|
698
|
+
"endsWith",
|
|
699
|
+
"notContains"
|
|
700
|
+
];
|
|
701
|
+
function Wt(t) {
|
|
702
|
+
const e = new Intl.Collator(t, {
|
|
703
|
+
sensitivity: "base",
|
|
704
|
+
usage: "search"
|
|
705
|
+
});
|
|
706
|
+
function a(r, o) {
|
|
707
|
+
if (o.length === 0) return 0;
|
|
708
|
+
if (o.length > r.length) return -1;
|
|
709
|
+
for (let s = 0; s <= r.length - o.length; s += 1)
|
|
710
|
+
if (e.compare(r.slice(s, s + o.length), o) === 0)
|
|
711
|
+
return s;
|
|
712
|
+
return -1;
|
|
713
|
+
}
|
|
714
|
+
return {
|
|
715
|
+
equals: (r, o) => e.compare(r, o) === 0,
|
|
716
|
+
contains: (r, o) => a(r, o) !== -1,
|
|
717
|
+
startsWith: (r, o) => o.length <= r.length && e.compare(r.slice(0, o.length), o) === 0,
|
|
718
|
+
endsWith: (r, o) => o.length <= r.length && e.compare(
|
|
719
|
+
r.slice(r.length - o.length),
|
|
720
|
+
o
|
|
721
|
+
) === 0
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
function Ut(t) {
|
|
725
|
+
return t == null ? null : typeof t == "string" ? t : String(t);
|
|
726
|
+
}
|
|
727
|
+
function Ht(t) {
|
|
728
|
+
const { model: e, onModelChange: a, getValue: r, placeholder: o, defaultOperator: s } = t, { t: l } = N("ui"), f = (e == null ? void 0 : e.type) ?? s ?? "contains", [i, u] = D(f), [c, d] = D((e == null ? void 0 : e.filter) ?? "");
|
|
729
|
+
P(() => {
|
|
730
|
+
u((e == null ? void 0 : e.type) ?? s ?? "contains"), d((e == null ? void 0 : e.filter) ?? "");
|
|
731
|
+
}, [e, s]);
|
|
732
|
+
const y = A(() => Wt(Ft.language), []);
|
|
733
|
+
X({
|
|
734
|
+
doesFilterPass: (p) => {
|
|
735
|
+
const m = e;
|
|
736
|
+
if (!m || m.filter === "") return !0;
|
|
737
|
+
const b = Ut(r(p.node));
|
|
738
|
+
if (b === null) return !1;
|
|
739
|
+
switch (m.type) {
|
|
740
|
+
case "equals":
|
|
741
|
+
return y.equals(b, m.filter);
|
|
742
|
+
case "contains":
|
|
743
|
+
return y.contains(b, m.filter);
|
|
744
|
+
case "startsWith":
|
|
745
|
+
return y.startsWith(b, m.filter);
|
|
746
|
+
case "endsWith":
|
|
747
|
+
return y.endsWith(b, m.filter);
|
|
748
|
+
case "notContains":
|
|
749
|
+
return !y.contains(b, m.filter);
|
|
750
|
+
default:
|
|
751
|
+
return !0;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
});
|
|
755
|
+
function g() {
|
|
756
|
+
if (c.trim() === "") {
|
|
757
|
+
a(null);
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
760
|
+
a({ type: i, filter: c });
|
|
761
|
+
}
|
|
762
|
+
function T() {
|
|
763
|
+
d(""), u(s ?? "contains"), a(null);
|
|
764
|
+
}
|
|
765
|
+
const x = Kt.map(
|
|
766
|
+
(p) => ({
|
|
767
|
+
value: p,
|
|
768
|
+
label: l(`dataTable.textFilter.operators.${p}`)
|
|
769
|
+
})
|
|
770
|
+
), S = o ?? l("dataTable.textFilter.placeholder");
|
|
771
|
+
return /* @__PURE__ */ I(
|
|
772
|
+
"div",
|
|
773
|
+
{
|
|
774
|
+
"data-component": "text-filter",
|
|
775
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
776
|
+
children: [
|
|
777
|
+
/* @__PURE__ */ n(
|
|
778
|
+
Re,
|
|
779
|
+
{
|
|
780
|
+
size: "sm",
|
|
781
|
+
options: x,
|
|
782
|
+
value: i,
|
|
783
|
+
onValueChange: (p) => {
|
|
784
|
+
p !== "" && u(p);
|
|
785
|
+
},
|
|
786
|
+
"aria-label": l("dataTable.textFilter.operators.contains")
|
|
787
|
+
}
|
|
788
|
+
),
|
|
789
|
+
/* @__PURE__ */ n(
|
|
790
|
+
ue,
|
|
791
|
+
{
|
|
792
|
+
size: "sm",
|
|
793
|
+
value: c,
|
|
794
|
+
onChange: (p) => d(p.target.value),
|
|
795
|
+
onKeyDown: (p) => {
|
|
796
|
+
p.key === "Enter" && (p.preventDefault(), g());
|
|
797
|
+
},
|
|
798
|
+
placeholder: S,
|
|
799
|
+
"aria-label": S,
|
|
800
|
+
startAdornment: /* @__PURE__ */ n(pe, { "aria-hidden": "true", className: "ds:size-4" })
|
|
801
|
+
}
|
|
802
|
+
),
|
|
803
|
+
/* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
|
|
804
|
+
/* @__PURE__ */ n(G, { intent: "ghost", size: "sm", onClick: T, type: "button", children: l("dataTable.textFilter.clear") }),
|
|
805
|
+
/* @__PURE__ */ n(G, { intent: "primary", size: "sm", onClick: g, type: "button", children: l("dataTable.textFilter.apply") })
|
|
806
|
+
] })
|
|
807
|
+
]
|
|
808
|
+
}
|
|
809
|
+
);
|
|
810
|
+
}
|
|
811
|
+
function Qt(t) {
|
|
812
|
+
var d, y;
|
|
813
|
+
const { model: e, onModelChange: a, column: r } = t, { t: o } = N("ui"), s = ((y = (d = r == null ? void 0 : r.getColDef) == null ? void 0 : d.call(r)) == null ? void 0 : y.filterParams) ?? {}, l = s.defaultOperator ?? "contains", f = s.placeholder ?? o("dataTable.textFilter.placeholder"), [i, u] = D((e == null ? void 0 : e.filter) ?? "");
|
|
814
|
+
P(() => {
|
|
815
|
+
u((e == null ? void 0 : e.filter) ?? "");
|
|
816
|
+
}, [e == null ? void 0 : e.filter]), P(() => {
|
|
817
|
+
if (i === ((e == null ? void 0 : e.filter) ?? "")) return;
|
|
818
|
+
const g = setTimeout(() => {
|
|
819
|
+
if (i === "") {
|
|
820
|
+
e && a(null);
|
|
821
|
+
return;
|
|
822
|
+
}
|
|
823
|
+
a({ type: l, filter: i });
|
|
824
|
+
}, 200);
|
|
825
|
+
return () => clearTimeout(g);
|
|
826
|
+
}, [i, l, e, a]);
|
|
827
|
+
function c() {
|
|
828
|
+
u(""), e && a(null);
|
|
829
|
+
}
|
|
830
|
+
return /* @__PURE__ */ n("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
|
|
831
|
+
ue,
|
|
832
|
+
{
|
|
833
|
+
size: "sm",
|
|
834
|
+
value: i,
|
|
835
|
+
onChange: (g) => u(g.target.value),
|
|
836
|
+
placeholder: f,
|
|
837
|
+
"aria-label": f,
|
|
838
|
+
startAdornment: /* @__PURE__ */ n(pe, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
839
|
+
endAdornment: i.length > 0 ? /* @__PURE__ */ n(
|
|
840
|
+
"button",
|
|
841
|
+
{
|
|
842
|
+
type: "button",
|
|
843
|
+
"aria-label": o("dataTable.textFilter.clear"),
|
|
844
|
+
onClick: c,
|
|
845
|
+
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",
|
|
846
|
+
children: /* @__PURE__ */ n(Ne, { "aria-hidden": "true", className: "ds:size-4" })
|
|
847
|
+
}
|
|
848
|
+
) : void 0
|
|
849
|
+
}
|
|
850
|
+
) });
|
|
851
|
+
}
|
|
852
|
+
const Jt = {
|
|
853
|
+
id: "data-table",
|
|
854
|
+
capabilities: [
|
|
855
|
+
"select_single",
|
|
856
|
+
"select_multiple",
|
|
857
|
+
"range_pick",
|
|
858
|
+
"filter",
|
|
859
|
+
"sort",
|
|
860
|
+
"paginate"
|
|
861
|
+
],
|
|
862
|
+
state: {
|
|
863
|
+
selection: {
|
|
864
|
+
type: "string[]",
|
|
865
|
+
descriptionKey: "ui.agent.dataTable.state.selection",
|
|
866
|
+
description: "Row ids of currently-selected rows.",
|
|
867
|
+
read: (t) => t.getSelection()
|
|
868
|
+
},
|
|
869
|
+
filter: {
|
|
870
|
+
type: "object",
|
|
871
|
+
descriptionKey: "ui.agent.dataTable.state.filter",
|
|
872
|
+
description: "Current ag-grid filter model, keyed by column id.",
|
|
873
|
+
read: (t) => t.getFilter()
|
|
874
|
+
},
|
|
875
|
+
sort: {
|
|
876
|
+
type: "Array<{ colId, sort }>",
|
|
877
|
+
descriptionKey: "ui.agent.dataTable.state.sort",
|
|
878
|
+
description: "Active sort, in priority order.",
|
|
879
|
+
read: (t) => t.getSort()
|
|
880
|
+
},
|
|
881
|
+
currentPage: {
|
|
882
|
+
type: "number",
|
|
883
|
+
descriptionKey: "ui.agent.dataTable.state.currentPage",
|
|
884
|
+
description: "Zero-indexed page number.",
|
|
885
|
+
read: (t) => t.getCurrentPage()
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
actions: {
|
|
889
|
+
select_rows: {
|
|
890
|
+
// Transient grid selection (data-table convention) — stays read.
|
|
891
|
+
safety: "read",
|
|
892
|
+
argsType: "{ ids: string[] }",
|
|
893
|
+
argsSchema: {
|
|
894
|
+
type: "object",
|
|
895
|
+
properties: {
|
|
896
|
+
ids: {
|
|
897
|
+
type: "array",
|
|
898
|
+
items: { type: "string" },
|
|
899
|
+
description: "Row ids to select (replaces the current selection)."
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
required: ["ids"]
|
|
903
|
+
},
|
|
904
|
+
idempotent: !0,
|
|
905
|
+
descriptionKey: "ui.agent.dataTable.actions.selectRows",
|
|
906
|
+
description: "Replace the current selection with the given row ids.",
|
|
907
|
+
examples: [
|
|
908
|
+
{ args: { ids: ["r-1", "r-2"] }, note: "Select the first two rows." }
|
|
909
|
+
],
|
|
910
|
+
invoke: (t, e) => {
|
|
911
|
+
t.setSelection(e.ids);
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
select_range: {
|
|
915
|
+
safety: "read",
|
|
916
|
+
argsType: "{ fromId: string, toId: string }",
|
|
917
|
+
argsSchema: {
|
|
918
|
+
type: "object",
|
|
919
|
+
properties: {
|
|
920
|
+
fromId: { type: "string", description: "Start row id (inclusive)." },
|
|
921
|
+
toId: { type: "string", description: "End row id (inclusive)." }
|
|
922
|
+
},
|
|
923
|
+
required: ["fromId", "toId"]
|
|
924
|
+
},
|
|
925
|
+
idempotent: !0,
|
|
926
|
+
descriptionKey: "ui.agent.dataTable.actions.selectRange",
|
|
927
|
+
description: "Select every row between fromId and toId, inclusive, in current sort order.",
|
|
928
|
+
invoke: (t, e) => {
|
|
929
|
+
t.selectRange(e.fromId, e.toId);
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
clear_selection: {
|
|
933
|
+
safety: "read",
|
|
934
|
+
idempotent: !0,
|
|
935
|
+
descriptionKey: "ui.agent.dataTable.actions.clearSelection",
|
|
936
|
+
description: "Deselect all rows.",
|
|
937
|
+
invoke: (t) => {
|
|
938
|
+
t.clearSelection();
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
get_selection: {
|
|
942
|
+
safety: "read",
|
|
943
|
+
returns: "string[]",
|
|
944
|
+
returnsSchema: { type: "array", items: { type: "string" } },
|
|
945
|
+
idempotent: !0,
|
|
946
|
+
descriptionKey: "ui.agent.dataTable.actions.getSelection",
|
|
947
|
+
description: "Return the row ids of the currently-selected rows.",
|
|
948
|
+
invoke: (t) => t.getSelection()
|
|
949
|
+
},
|
|
950
|
+
apply_filter: {
|
|
951
|
+
safety: "read",
|
|
952
|
+
argsType: "{ model: Record<string, unknown> }",
|
|
953
|
+
argsSchema: {
|
|
954
|
+
type: "object",
|
|
955
|
+
properties: {
|
|
956
|
+
model: {
|
|
957
|
+
type: "object",
|
|
958
|
+
description: "ag-grid filter model keyed by column id. Opaque per-column filter shapes; replaces the current model.",
|
|
959
|
+
additionalProperties: !0
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
required: ["model"]
|
|
963
|
+
},
|
|
964
|
+
idempotent: !0,
|
|
965
|
+
descriptionKey: "ui.agent.dataTable.actions.applyFilter",
|
|
966
|
+
description: "Replace the filter model with the given object.",
|
|
967
|
+
invoke: (t, e) => {
|
|
968
|
+
t.setFilter(e.model);
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
sort_by: {
|
|
972
|
+
safety: "read",
|
|
973
|
+
argsType: "{ model: DataTableSortEntry[] }",
|
|
974
|
+
argsSchema: {
|
|
975
|
+
type: "object",
|
|
976
|
+
properties: {
|
|
977
|
+
model: {
|
|
978
|
+
type: "array",
|
|
979
|
+
description: "Sort entries in priority order.",
|
|
980
|
+
items: {
|
|
981
|
+
type: "object",
|
|
982
|
+
properties: {
|
|
983
|
+
colId: { type: "string", description: "Column id to sort by." },
|
|
984
|
+
sort: { enum: ["asc", "desc"], description: "Sort direction." }
|
|
985
|
+
},
|
|
986
|
+
required: ["colId", "sort"]
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
required: ["model"]
|
|
991
|
+
},
|
|
992
|
+
idempotent: !0,
|
|
993
|
+
descriptionKey: "ui.agent.dataTable.actions.sortBy",
|
|
994
|
+
description: "Replace the active sort with the given list (priority order).",
|
|
995
|
+
examples: [
|
|
996
|
+
{
|
|
997
|
+
args: { model: [{ colId: "name", sort: "asc" }] },
|
|
998
|
+
note: "Sort by name ascending."
|
|
999
|
+
}
|
|
1000
|
+
],
|
|
1001
|
+
invoke: (t, e) => {
|
|
1002
|
+
t.setSort(e.model);
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
go_to_page: {
|
|
1006
|
+
safety: "read",
|
|
1007
|
+
argsType: "{ page: number }",
|
|
1008
|
+
argsSchema: {
|
|
1009
|
+
type: "object",
|
|
1010
|
+
properties: {
|
|
1011
|
+
page: {
|
|
1012
|
+
type: "integer",
|
|
1013
|
+
minimum: 0,
|
|
1014
|
+
description: "Zero-indexed page number."
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
required: ["page"]
|
|
1018
|
+
},
|
|
1019
|
+
idempotent: !0,
|
|
1020
|
+
descriptionKey: "ui.agent.dataTable.actions.goToPage",
|
|
1021
|
+
description: "Navigate to the given zero-indexed page.",
|
|
1022
|
+
invoke: (t, e) => {
|
|
1023
|
+
t.goToPage(e.page);
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
domHooks: {
|
|
1028
|
+
root: {
|
|
1029
|
+
attr: "data-component",
|
|
1030
|
+
value: "data-table",
|
|
1031
|
+
description: "Marks the DataTable wrapper."
|
|
1032
|
+
},
|
|
1033
|
+
instanceId: {
|
|
1034
|
+
attr: "data-component-id",
|
|
1035
|
+
sourceProp: "gridId",
|
|
1036
|
+
description: "Sourced from the gridId prop. Required to address a specific table from the agent."
|
|
1037
|
+
},
|
|
1038
|
+
item: {
|
|
1039
|
+
attr: "row-id",
|
|
1040
|
+
description: "Native ag-grid row-id attribute on each rendered row. Selection is performed via the curated handle, not by DOM mutation."
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
vt.registerModules([Tt]);
|
|
1045
|
+
const Xt = bt("ag-theme-alfadocs ds:w-full", {
|
|
1046
|
+
variants: {
|
|
1047
|
+
density: {
|
|
1048
|
+
default: "",
|
|
1049
|
+
compact: "data-table-compact",
|
|
1050
|
+
expanded: "data-table-expanded"
|
|
1051
|
+
},
|
|
1052
|
+
bordered: {
|
|
1053
|
+
true: "",
|
|
1054
|
+
false: "ds:[--ag-borders:none]"
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
defaultVariants: {
|
|
1058
|
+
density: "default",
|
|
1059
|
+
bordered: !0
|
|
1060
|
+
}
|
|
1061
|
+
});
|
|
1062
|
+
function Zt() {
|
|
1063
|
+
const { t } = N();
|
|
1064
|
+
return A(
|
|
1065
|
+
() => ({
|
|
1066
|
+
// Filter strings
|
|
1067
|
+
contains: t("dataTable.agGrid.contains"),
|
|
1068
|
+
notContains: t("dataTable.agGrid.notContains"),
|
|
1069
|
+
equals: t("dataTable.agGrid.equals"),
|
|
1070
|
+
notEqual: t("dataTable.agGrid.notEqual"),
|
|
1071
|
+
startsWith: t("dataTable.agGrid.startsWith"),
|
|
1072
|
+
endsWith: t("dataTable.agGrid.endsWith"),
|
|
1073
|
+
lessThan: t("dataTable.agGrid.lessThan"),
|
|
1074
|
+
greaterThan: t("dataTable.agGrid.greaterThan"),
|
|
1075
|
+
inRange: t("dataTable.agGrid.inRange"),
|
|
1076
|
+
blank: t("dataTable.agGrid.blank"),
|
|
1077
|
+
notBlank: t("dataTable.agGrid.notBlank"),
|
|
1078
|
+
filterOoo: t("dataTable.agGrid.filterOoo"),
|
|
1079
|
+
applyFilter: t("dataTable.agGrid.applyFilter"),
|
|
1080
|
+
resetFilter: t("dataTable.agGrid.resetFilter"),
|
|
1081
|
+
noRowsToShow: t("dataTable.agGrid.noRowsToShow"),
|
|
1082
|
+
selectAll: t("dataTable.agGrid.selectAll"),
|
|
1083
|
+
// Pagination
|
|
1084
|
+
page: t("dataTable.page"),
|
|
1085
|
+
of: t("dataTable.of"),
|
|
1086
|
+
to: t("dataTable.to"),
|
|
1087
|
+
nextPage: t("dataTable.nextPage"),
|
|
1088
|
+
previousPage: t("dataTable.previousPage"),
|
|
1089
|
+
firstPage: t("dataTable.firstPage"),
|
|
1090
|
+
lastPage: t("dataTable.lastPage"),
|
|
1091
|
+
pageSize: t("dataTable.pageSize")
|
|
1092
|
+
}),
|
|
1093
|
+
[t]
|
|
1094
|
+
);
|
|
1095
|
+
}
|
|
1096
|
+
function Yt() {
|
|
1097
|
+
return /* @__PURE__ */ n(
|
|
1098
|
+
"div",
|
|
1099
|
+
{
|
|
1100
|
+
role: "status",
|
|
1101
|
+
"aria-live": "polite",
|
|
1102
|
+
className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
|
|
1103
|
+
children: Array.from({ length: 5 }).map((t, e) => /* @__PURE__ */ n(
|
|
1104
|
+
mt,
|
|
1105
|
+
{
|
|
1106
|
+
variant: "rectangular",
|
|
1107
|
+
className: "ds:h-[var(--min-target-size)] ds:w-full"
|
|
1108
|
+
},
|
|
1109
|
+
e
|
|
1110
|
+
))
|
|
1111
|
+
}
|
|
1112
|
+
);
|
|
1113
|
+
}
|
|
1114
|
+
function ea() {
|
|
1115
|
+
const { t } = N();
|
|
1116
|
+
return /* @__PURE__ */ n(
|
|
1117
|
+
gt,
|
|
1118
|
+
{
|
|
1119
|
+
variant: "no-results",
|
|
1120
|
+
size: "sm",
|
|
1121
|
+
title: t("dataTable.noRows"),
|
|
1122
|
+
description: t("dataTable.noRowsDescription")
|
|
1123
|
+
}
|
|
1124
|
+
);
|
|
1125
|
+
}
|
|
1126
|
+
function ta(t) {
|
|
1127
|
+
try {
|
|
1128
|
+
const e = localStorage.getItem(`data-table-col-state:${t}`);
|
|
1129
|
+
return e ? JSON.parse(e) : null;
|
|
1130
|
+
} catch {
|
|
1131
|
+
return null;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
function aa(t, e) {
|
|
1135
|
+
try {
|
|
1136
|
+
localStorage.setItem(
|
|
1137
|
+
`data-table-col-state:${t}`,
|
|
1138
|
+
JSON.stringify(e.getColumnState())
|
|
1139
|
+
);
|
|
1140
|
+
} catch {
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
function ra(t, e) {
|
|
1144
|
+
const {
|
|
1145
|
+
columnDefs: a,
|
|
1146
|
+
rowData: r,
|
|
1147
|
+
rowSelection: o,
|
|
1148
|
+
pagination: s = !1,
|
|
1149
|
+
paginationPageSize: l = 25,
|
|
1150
|
+
paginationPageSizeSelector: f = [10, 25, 50, 100],
|
|
1151
|
+
gridId: i,
|
|
1152
|
+
onSelectionChanged: u,
|
|
1153
|
+
onSortChanged: c,
|
|
1154
|
+
onFilterChanged: d,
|
|
1155
|
+
noRowsOverlay: y,
|
|
1156
|
+
loadingOverlay: g,
|
|
1157
|
+
gridOptions: T,
|
|
1158
|
+
density: x,
|
|
1159
|
+
bordered: S,
|
|
1160
|
+
heightClass: p = "ds:h-[500px]",
|
|
1161
|
+
className: m,
|
|
1162
|
+
getRowClass: b,
|
|
1163
|
+
pinnedBottomRowData: h,
|
|
1164
|
+
printMode: w = !1,
|
|
1165
|
+
children: O
|
|
1166
|
+
} = t, { t: k, i18n: B } = N(), R = ye(null), [K, He] = D(0), [ne, oe] = D(""), Qe = Zt(), se = A(
|
|
1167
|
+
() => ({
|
|
1168
|
+
getSelection: () => {
|
|
1169
|
+
var F;
|
|
1170
|
+
const v = (F = R.current) == null ? void 0 : F.api;
|
|
1171
|
+
if (!v) return [];
|
|
1172
|
+
const C = [];
|
|
1173
|
+
for (const z of v.getSelectedNodes())
|
|
1174
|
+
z.id != null && C.push(z.id);
|
|
1175
|
+
return C;
|
|
1176
|
+
},
|
|
1177
|
+
setSelection: (v) => {
|
|
1178
|
+
var z;
|
|
1179
|
+
const C = (z = R.current) == null ? void 0 : z.api;
|
|
1180
|
+
if (!C) return;
|
|
1181
|
+
const F = new Set(v);
|
|
1182
|
+
C.forEachNode((E) => {
|
|
1183
|
+
E.id != null && E.setSelected(F.has(E.id));
|
|
1184
|
+
});
|
|
1185
|
+
},
|
|
1186
|
+
selectRange: (v, C) => {
|
|
1187
|
+
var ge;
|
|
1188
|
+
const F = (ge = R.current) == null ? void 0 : ge.api;
|
|
1189
|
+
if (!F) return;
|
|
1190
|
+
const z = [];
|
|
1191
|
+
F.forEachNodeAfterFilterAndSort((U) => {
|
|
1192
|
+
U.id != null && z.push(U.id);
|
|
1193
|
+
});
|
|
1194
|
+
const E = z.indexOf(v), q = z.indexOf(C);
|
|
1195
|
+
if (E < 0 || q < 0) return;
|
|
1196
|
+
const [W, ie] = E <= q ? [E, q] : [q, E], ce = new Set(z.slice(W, ie + 1));
|
|
1197
|
+
F.forEachNode((U) => {
|
|
1198
|
+
U.id != null && U.setSelected(ce.has(U.id));
|
|
1199
|
+
});
|
|
1200
|
+
},
|
|
1201
|
+
clearSelection: () => {
|
|
1202
|
+
var v, C;
|
|
1203
|
+
(C = (v = R.current) == null ? void 0 : v.api) == null || C.deselectAll();
|
|
1204
|
+
},
|
|
1205
|
+
getFilter: () => {
|
|
1206
|
+
var v, C;
|
|
1207
|
+
return ((C = (v = R.current) == null ? void 0 : v.api) == null ? void 0 : C.getFilterModel()) ?? {};
|
|
1208
|
+
},
|
|
1209
|
+
setFilter: (v) => {
|
|
1210
|
+
var C, F;
|
|
1211
|
+
(F = (C = R.current) == null ? void 0 : C.api) == null || F.setFilterModel(v);
|
|
1212
|
+
},
|
|
1213
|
+
getSort: () => {
|
|
1214
|
+
var C;
|
|
1215
|
+
const v = (C = R.current) == null ? void 0 : C.api;
|
|
1216
|
+
return v ? v.getColumnState().filter((F) => F.sort === "asc" || F.sort === "desc").map((F) => ({ colId: F.colId, sort: F.sort })) : [];
|
|
1217
|
+
},
|
|
1218
|
+
setSort: (v) => {
|
|
1219
|
+
var z;
|
|
1220
|
+
const C = (z = R.current) == null ? void 0 : z.api;
|
|
1221
|
+
if (!C) return;
|
|
1222
|
+
const F = C.getColumnState().map((E) => {
|
|
1223
|
+
const q = v.find((W) => W.colId === E.colId);
|
|
1224
|
+
return { ...E, sort: q ? q.sort : null };
|
|
1225
|
+
});
|
|
1226
|
+
C.applyColumnState({ state: F, defaultState: { sort: null } });
|
|
1227
|
+
},
|
|
1228
|
+
getCurrentPage: () => {
|
|
1229
|
+
var v, C;
|
|
1230
|
+
return ((C = (v = R.current) == null ? void 0 : v.api) == null ? void 0 : C.paginationGetCurrentPage()) ?? 0;
|
|
1231
|
+
},
|
|
1232
|
+
goToPage: (v) => {
|
|
1233
|
+
var C, F;
|
|
1234
|
+
(F = (C = R.current) == null ? void 0 : C.api) == null || F.paginationGoToPage(v);
|
|
1235
|
+
},
|
|
1236
|
+
getRawApi: () => {
|
|
1237
|
+
var v;
|
|
1238
|
+
return (v = R.current) == null ? void 0 : v.api;
|
|
1239
|
+
}
|
|
1240
|
+
}),
|
|
1241
|
+
[]
|
|
1242
|
+
);
|
|
1243
|
+
ft(e, () => se, [se]), Nt(Jt, se, i);
|
|
1244
|
+
const Je = B.dir() === "rtl", Xe = r === void 0, Ze = Dt(), { resolvedTheme: me } = Rt(), Ye = (me === "light-accessible" || me === "dark-accessible") && x === "compact" ? "default" : x, et = A(() => {
|
|
1245
|
+
if (o)
|
|
1246
|
+
return o === "single" ? { mode: "singleRow" } : {
|
|
1247
|
+
mode: "multiRow",
|
|
1248
|
+
headerCheckbox: !0,
|
|
1249
|
+
checkboxes: !0
|
|
1250
|
+
};
|
|
1251
|
+
}, [o]), tt = M(() => {
|
|
1252
|
+
var C;
|
|
1253
|
+
if (!i || !((C = R.current) != null && C.api)) return;
|
|
1254
|
+
const v = ta(i);
|
|
1255
|
+
v && R.current.api.applyColumnState({
|
|
1256
|
+
state: v,
|
|
1257
|
+
applyOrder: !0
|
|
1258
|
+
});
|
|
1259
|
+
}, [i]), le = M(() => {
|
|
1260
|
+
var v;
|
|
1261
|
+
i && ((v = R.current) != null && v.api) && aa(i, R.current.api);
|
|
1262
|
+
}, [i]), at = A(() => {
|
|
1263
|
+
if (!T) return;
|
|
1264
|
+
const v = { ...T };
|
|
1265
|
+
return delete v.defaultColDef, v;
|
|
1266
|
+
}, [T]), rt = M(() => {
|
|
1267
|
+
var F;
|
|
1268
|
+
const v = (F = R.current) == null ? void 0 : F.api;
|
|
1269
|
+
if (!v) return;
|
|
1270
|
+
const C = v.getSelectedRows();
|
|
1271
|
+
He(C.length), u == null || u(C);
|
|
1272
|
+
}, [u]), nt = M(
|
|
1273
|
+
(v) => {
|
|
1274
|
+
var F;
|
|
1275
|
+
const C = (F = R.current) == null ? void 0 : F.api;
|
|
1276
|
+
if (C) {
|
|
1277
|
+
const E = C.getColumnState().find((q) => q.sort);
|
|
1278
|
+
if (E) {
|
|
1279
|
+
const q = E.colId, W = C.getColumnDef(q), ie = (W == null ? void 0 : W.headerName) ?? q, ce = E.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
|
|
1280
|
+
oe(
|
|
1281
|
+
k("dataTable.sortAnnounce", {
|
|
1282
|
+
column: ie,
|
|
1283
|
+
direction: k(ce)
|
|
1284
|
+
})
|
|
1285
|
+
);
|
|
1286
|
+
} else
|
|
1287
|
+
oe("");
|
|
1288
|
+
}
|
|
1289
|
+
c == null || c(v);
|
|
1290
|
+
},
|
|
1291
|
+
[c, k]
|
|
1292
|
+
), ot = M(
|
|
1293
|
+
(v) => {
|
|
1294
|
+
d == null || d(v);
|
|
1295
|
+
},
|
|
1296
|
+
[d]
|
|
1297
|
+
);
|
|
1298
|
+
P(() => {
|
|
1299
|
+
if (!ne) return;
|
|
1300
|
+
const v = setTimeout(() => oe(""), 3e3);
|
|
1301
|
+
return () => clearTimeout(v);
|
|
1302
|
+
}, [ne]);
|
|
1303
|
+
const st = y ?? ea, lt = g ?? Yt, it = M(
|
|
1304
|
+
() => {
|
|
1305
|
+
var v;
|
|
1306
|
+
return (v = R.current) == null ? void 0 : v.api;
|
|
1307
|
+
},
|
|
1308
|
+
[]
|
|
1309
|
+
), ct = M(() => {
|
|
1310
|
+
typeof window < "u" && window.print();
|
|
1311
|
+
}, []), dt = Xt({
|
|
1312
|
+
density: Ye,
|
|
1313
|
+
bordered: S,
|
|
1314
|
+
className: m
|
|
1315
|
+
}), ut = O ?? /* @__PURE__ */ n(ee, { children: /* @__PURE__ */ n(ee.Actions, { children: /* @__PURE__ */ n(ee.ExportMenu, {}) }) }), pt = w ? !1 : s;
|
|
1316
|
+
return /* @__PURE__ */ I(
|
|
1317
|
+
"div",
|
|
1318
|
+
{
|
|
1319
|
+
className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1320
|
+
"aria-busy": Xe ? "true" : void 0,
|
|
1321
|
+
"data-component": "data-table",
|
|
1322
|
+
"data-component-id": i,
|
|
1323
|
+
"data-print-mode": w ? "true" : void 0,
|
|
1324
|
+
children: [
|
|
1325
|
+
!w && /* @__PURE__ */ n(
|
|
1326
|
+
zt,
|
|
1327
|
+
{
|
|
1328
|
+
getApi: it,
|
|
1329
|
+
selectionCount: K,
|
|
1330
|
+
onPrint: ct,
|
|
1331
|
+
children: ut
|
|
1332
|
+
}
|
|
1333
|
+
),
|
|
1334
|
+
/* @__PURE__ */ n(
|
|
1335
|
+
"div",
|
|
1336
|
+
{
|
|
1337
|
+
className: [dt, w ? "" : p].join(" ").trim(),
|
|
1338
|
+
children: /* @__PURE__ */ n(
|
|
1339
|
+
ht,
|
|
1340
|
+
{
|
|
1341
|
+
ref: R,
|
|
1342
|
+
theme: "legacy",
|
|
1343
|
+
columnDefs: a,
|
|
1344
|
+
rowData: r,
|
|
1345
|
+
defaultColDef: {
|
|
1346
|
+
sortable: !0,
|
|
1347
|
+
// Default filter = DS-styled text filter so untyped columns
|
|
1348
|
+
// (no explicit `filter:` override) inherit the kit's form
|
|
1349
|
+
// language instead of AG Grid's stock browser-skinned input.
|
|
1350
|
+
// Number / date / select columns opt into their dedicated
|
|
1351
|
+
// wrapper per-column.
|
|
1352
|
+
filter: Ht,
|
|
1353
|
+
floatingFilterComponent: Qt,
|
|
1354
|
+
resizable: !0,
|
|
1355
|
+
floatingFilter: !0,
|
|
1356
|
+
// §13d — faint sort icon advertises which columns are
|
|
1357
|
+
// sortable. v33+ moved this from grid-level to defaultColDef.
|
|
1358
|
+
unSortIcon: !0,
|
|
1359
|
+
...T == null ? void 0 : T.defaultColDef
|
|
1360
|
+
},
|
|
1361
|
+
rowSelection: et,
|
|
1362
|
+
pagination: pt,
|
|
1363
|
+
paginationPageSize: l,
|
|
1364
|
+
paginationPageSizeSelector: f,
|
|
1365
|
+
paginationNumberFormatter: (v) => new Intl.NumberFormat(B.language).format(v.value),
|
|
1366
|
+
animateRows: !Ze,
|
|
1367
|
+
enableRtl: Je,
|
|
1368
|
+
ensureDomOrder: !0,
|
|
1369
|
+
enableCellSpan: !0,
|
|
1370
|
+
enableCellTextSelection: !0,
|
|
1371
|
+
copyHeadersToClipboard: !0,
|
|
1372
|
+
accentedSort: !0,
|
|
1373
|
+
multiSortKey: "ctrl",
|
|
1374
|
+
suppressDragLeaveHidesColumns: !0,
|
|
1375
|
+
suppressRowClickSelection: o ? !0 : void 0,
|
|
1376
|
+
tooltipShowDelay: 500,
|
|
1377
|
+
tooltipHideDelay: 5e3,
|
|
1378
|
+
tooltipInteraction: !0,
|
|
1379
|
+
stopEditingWhenCellsLoseFocus: !0,
|
|
1380
|
+
maintainColumnOrder: !0,
|
|
1381
|
+
undoRedoCellEditing: !0,
|
|
1382
|
+
undoRedoCellEditingLimit: 20,
|
|
1383
|
+
suppressCellFocus: !1,
|
|
1384
|
+
rowBuffer: 10,
|
|
1385
|
+
localeText: Qe,
|
|
1386
|
+
noRowsOverlayComponent: st,
|
|
1387
|
+
loadingOverlayComponent: lt,
|
|
1388
|
+
getRowClass: b,
|
|
1389
|
+
pinnedBottomRowData: h,
|
|
1390
|
+
domLayout: w ? "autoHeight" : void 0,
|
|
1391
|
+
onGridReady: tt,
|
|
1392
|
+
onColumnMoved: le,
|
|
1393
|
+
onColumnResized: le,
|
|
1394
|
+
onColumnPinned: le,
|
|
1395
|
+
onSortChanged: nt,
|
|
1396
|
+
onFilterChanged: ot,
|
|
1397
|
+
onSelectionChanged: rt,
|
|
1398
|
+
...at
|
|
1399
|
+
}
|
|
1400
|
+
)
|
|
1401
|
+
}
|
|
1402
|
+
),
|
|
1403
|
+
!w && /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: K > 0 ? /* @__PURE__ */ n("span", { children: k("dataTable.selected", { count: K }) }) : /* @__PURE__ */ n("span", {}) }),
|
|
1404
|
+
/* @__PURE__ */ n("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: ne })
|
|
1405
|
+
]
|
|
1406
|
+
}
|
|
1407
|
+
);
|
|
1408
|
+
}
|
|
1409
|
+
const Ue = L(ra);
|
|
1410
|
+
Ue.displayName = "DataTable";
|
|
1411
|
+
const Ha = Object.assign(Ue, {
|
|
1412
|
+
Toolbar: ee
|
|
1413
|
+
});
|
|
1414
|
+
function re(t) {
|
|
1415
|
+
return t ? t.toISOString().slice(0, 10) : null;
|
|
1416
|
+
}
|
|
1417
|
+
function j(t) {
|
|
1418
|
+
if (!t) return;
|
|
1419
|
+
const e = new Date(t);
|
|
1420
|
+
return Number.isNaN(e.getTime()) ? void 0 : e;
|
|
1421
|
+
}
|
|
1422
|
+
function Qa(t) {
|
|
1423
|
+
const { model: e, onModelChange: a, getValue: r, doesRowPassOtherFilter: o } = t, [s, l] = D(() => ({
|
|
1424
|
+
from: j(e == null ? void 0 : e.dateFrom),
|
|
1425
|
+
to: j(e == null ? void 0 : e.dateTo)
|
|
1426
|
+
}));
|
|
1427
|
+
P(() => {
|
|
1428
|
+
l({
|
|
1429
|
+
from: j(e == null ? void 0 : e.dateFrom),
|
|
1430
|
+
to: j(e == null ? void 0 : e.dateTo)
|
|
1431
|
+
});
|
|
1432
|
+
}, [e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo]), X({
|
|
1433
|
+
doesFilterPass: (i) => {
|
|
1434
|
+
const u = j(e == null ? void 0 : e.dateFrom), c = j(e == null ? void 0 : e.dateTo);
|
|
1435
|
+
if (!u && !c) return !0;
|
|
1436
|
+
const d = r(i.node);
|
|
1437
|
+
if (!d) return !1;
|
|
1438
|
+
const y = d instanceof Date ? d : j(String(d));
|
|
1439
|
+
return !(!y || u && y < u || c && y > c);
|
|
1440
|
+
}
|
|
1441
|
+
});
|
|
1442
|
+
function f(i) {
|
|
1443
|
+
if (l(i), !i.from && !i.to) {
|
|
1444
|
+
a(null);
|
|
1445
|
+
return;
|
|
1446
|
+
}
|
|
1447
|
+
a({
|
|
1448
|
+
type: "inRange",
|
|
1449
|
+
dateFrom: re(i.from),
|
|
1450
|
+
dateTo: re(i.to)
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
return /* @__PURE__ */ n("div", { className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]", children: /* @__PURE__ */ n(Ie, { value: s, onChange: f, size: "sm" }) });
|
|
1454
|
+
}
|
|
1455
|
+
function Ja(t) {
|
|
1456
|
+
var i, u;
|
|
1457
|
+
const { model: e, onModelChange: a, column: r } = t, o = ((u = (i = r == null ? void 0 : r.getColDef) == null ? void 0 : i.call(r)) == null ? void 0 : u.filterParams) ?? {}, [s, l] = D(() => ({
|
|
1458
|
+
from: j(e == null ? void 0 : e.dateFrom),
|
|
1459
|
+
to: j(e == null ? void 0 : e.dateTo)
|
|
1460
|
+
}));
|
|
1461
|
+
P(() => {
|
|
1462
|
+
l({
|
|
1463
|
+
from: j(e == null ? void 0 : e.dateFrom),
|
|
1464
|
+
to: j(e == null ? void 0 : e.dateTo)
|
|
1465
|
+
});
|
|
1466
|
+
}, [e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo]);
|
|
1467
|
+
function f(c) {
|
|
1468
|
+
if (l(c), !c.from && !c.to) {
|
|
1469
|
+
a(null);
|
|
1470
|
+
return;
|
|
1471
|
+
}
|
|
1472
|
+
a({
|
|
1473
|
+
type: "inRange",
|
|
1474
|
+
dateFrom: re(c.from),
|
|
1475
|
+
dateTo: re(c.to)
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
return /* @__PURE__ */ n("div", { "data-component": "date-range-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
|
|
1479
|
+
Ie,
|
|
1480
|
+
{
|
|
1481
|
+
value: s,
|
|
1482
|
+
onChange: f,
|
|
1483
|
+
size: "sm",
|
|
1484
|
+
placeholder: o.placeholder
|
|
1485
|
+
}
|
|
1486
|
+
) });
|
|
1487
|
+
}
|
|
1488
|
+
function H(t) {
|
|
1489
|
+
return typeof t == "number" ? `n:${t}` : `s:${t}`;
|
|
1490
|
+
}
|
|
1491
|
+
function Xa(t) {
|
|
1492
|
+
const { model: e, onModelChange: a, getValue: r, api: o, column: s, options: l, placeholder: f } = t, { t: i } = N("ui"), u = A(() => {
|
|
1493
|
+
if (l && l.length > 0) return l;
|
|
1494
|
+
if (!o || !s) return [];
|
|
1495
|
+
const p = /* @__PURE__ */ new Map();
|
|
1496
|
+
return o.forEachNode((m) => {
|
|
1497
|
+
const b = r(m);
|
|
1498
|
+
if (b == null) return;
|
|
1499
|
+
const h = typeof b == "string" || typeof b == "number" ? b : String(b), w = H(h);
|
|
1500
|
+
p.has(w) || p.set(w, { value: h, label: String(h) });
|
|
1501
|
+
}), Array.from(p.values()).sort(
|
|
1502
|
+
(m, b) => String(m.label).localeCompare(String(b.label))
|
|
1503
|
+
);
|
|
1504
|
+
}, [l, o, s, r]), c = A(() => {
|
|
1505
|
+
const p = /* @__PURE__ */ new Set(), m = (e == null ? void 0 : e.values) ?? [];
|
|
1506
|
+
for (const b of m) p.add(H(b));
|
|
1507
|
+
return p;
|
|
1508
|
+
}, [e]), [d, y] = D(c);
|
|
1509
|
+
P(() => {
|
|
1510
|
+
y(c);
|
|
1511
|
+
}, [c]), X({
|
|
1512
|
+
doesFilterPass: (p) => {
|
|
1513
|
+
const m = e == null ? void 0 : e.values;
|
|
1514
|
+
if (!m || m.length === 0) return !0;
|
|
1515
|
+
const b = r(p.node);
|
|
1516
|
+
if (b == null) return !1;
|
|
1517
|
+
const h = typeof b == "string" || typeof b == "number" ? b : String(b), w = H(h);
|
|
1518
|
+
return m.some((O) => H(O) === w);
|
|
1519
|
+
}
|
|
1520
|
+
});
|
|
1521
|
+
function g(p) {
|
|
1522
|
+
y((m) => {
|
|
1523
|
+
const b = new Set(m);
|
|
1524
|
+
return b.has(p) ? b.delete(p) : b.add(p), b;
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1527
|
+
function T() {
|
|
1528
|
+
if (d.size === 0) {
|
|
1529
|
+
a(null);
|
|
1530
|
+
return;
|
|
1531
|
+
}
|
|
1532
|
+
const p = [];
|
|
1533
|
+
for (const m of u)
|
|
1534
|
+
d.has(H(m.value)) && p.push(m.value);
|
|
1535
|
+
a({ type: "set", values: p });
|
|
1536
|
+
}
|
|
1537
|
+
function x() {
|
|
1538
|
+
y(/* @__PURE__ */ new Set()), a(null);
|
|
1539
|
+
}
|
|
1540
|
+
const S = f ?? i("dataTable.selectFilter.all");
|
|
1541
|
+
return /* @__PURE__ */ I(
|
|
1542
|
+
"div",
|
|
1543
|
+
{
|
|
1544
|
+
"data-component": "select-filter",
|
|
1545
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[200px] ds:max-w-[260px]",
|
|
1546
|
+
children: [
|
|
1547
|
+
/* @__PURE__ */ n(
|
|
1548
|
+
"div",
|
|
1549
|
+
{
|
|
1550
|
+
role: "group",
|
|
1551
|
+
"aria-label": S,
|
|
1552
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:max-h-[240px] ds:overflow-y-auto",
|
|
1553
|
+
children: u.length === 0 ? /* @__PURE__ */ n("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children: i("dataTable.agGrid.noRowsToShow") }) : u.map((p) => {
|
|
1554
|
+
const m = H(p.value);
|
|
1555
|
+
return /* @__PURE__ */ n(
|
|
1556
|
+
Fe,
|
|
1557
|
+
{
|
|
1558
|
+
size: "sm",
|
|
1559
|
+
label: p.label,
|
|
1560
|
+
checked: d.has(m),
|
|
1561
|
+
onCheckedChange: () => g(m)
|
|
1562
|
+
},
|
|
1563
|
+
m
|
|
1564
|
+
);
|
|
1565
|
+
})
|
|
1566
|
+
}
|
|
1567
|
+
),
|
|
1568
|
+
/* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
|
|
1569
|
+
/* @__PURE__ */ n(G, { intent: "ghost", size: "sm", onClick: x, type: "button", children: i("dataTable.selectFilter.clear") }),
|
|
1570
|
+
/* @__PURE__ */ n(G, { intent: "primary", size: "sm", onClick: T, type: "button", children: i("dataTable.selectFilter.apply") })
|
|
1571
|
+
] })
|
|
1572
|
+
]
|
|
1573
|
+
}
|
|
1574
|
+
);
|
|
1575
|
+
}
|
|
1576
|
+
function Za(t) {
|
|
1577
|
+
var y;
|
|
1578
|
+
const { model: e, onModelChange: a, column: r } = t, o = (y = r == null ? void 0 : r.getColDef) == null ? void 0 : y.call(r), s = (o == null ? void 0 : o.filterParams) ?? {}, l = s.options ?? [], f = s.placeholder ?? (typeof (o == null ? void 0 : o.headerName) == "string" ? o.headerName : void 0), i = A(() => {
|
|
1579
|
+
const g = /* @__PURE__ */ new Map();
|
|
1580
|
+
for (const T of l) g.set(String(T.value), T.value);
|
|
1581
|
+
return g;
|
|
1582
|
+
}, [l]), u = A(
|
|
1583
|
+
() => l.map((g) => ({
|
|
1584
|
+
value: String(g.value),
|
|
1585
|
+
label: g.label
|
|
1586
|
+
})),
|
|
1587
|
+
[l]
|
|
1588
|
+
), c = A(
|
|
1589
|
+
() => ((e == null ? void 0 : e.values) ?? []).map((g) => String(g)),
|
|
1590
|
+
[e]
|
|
1591
|
+
);
|
|
1592
|
+
function d(g) {
|
|
1593
|
+
if (g.length === 0) {
|
|
1594
|
+
a(null);
|
|
1595
|
+
return;
|
|
1596
|
+
}
|
|
1597
|
+
const T = [];
|
|
1598
|
+
for (const x of g) {
|
|
1599
|
+
const S = i.get(x);
|
|
1600
|
+
S !== void 0 && T.push(S);
|
|
1601
|
+
}
|
|
1602
|
+
a({ type: "set", values: T });
|
|
1603
|
+
}
|
|
1604
|
+
return /* @__PURE__ */ n("div", { "data-component": "select-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
|
|
1605
|
+
It,
|
|
1606
|
+
{
|
|
1607
|
+
size: "sm",
|
|
1608
|
+
options: u,
|
|
1609
|
+
value: c,
|
|
1610
|
+
onChange: d,
|
|
1611
|
+
placeholder: s.placeholder,
|
|
1612
|
+
"aria-label": f,
|
|
1613
|
+
allowClear: !0
|
|
1614
|
+
}
|
|
1615
|
+
) });
|
|
1616
|
+
}
|
|
1617
|
+
function J(t) {
|
|
1618
|
+
return t.trim().toLocaleLowerCase();
|
|
1619
|
+
}
|
|
1620
|
+
function Ya(t) {
|
|
1621
|
+
const {
|
|
1622
|
+
model: e,
|
|
1623
|
+
onModelChange: a,
|
|
1624
|
+
getValue: r,
|
|
1625
|
+
api: o,
|
|
1626
|
+
column: s,
|
|
1627
|
+
options: l,
|
|
1628
|
+
loadOptions: f,
|
|
1629
|
+
placeholder: i
|
|
1630
|
+
} = t, { t: u } = N("ui"), c = A(() => {
|
|
1631
|
+
if (l && l.length > 0) return l;
|
|
1632
|
+
if (!o || !s) return [];
|
|
1633
|
+
const m = /* @__PURE__ */ new Map();
|
|
1634
|
+
return o.forEachNode((b) => {
|
|
1635
|
+
const h = r(b);
|
|
1636
|
+
if (h == null) return;
|
|
1637
|
+
const w = typeof h == "string" ? h : String(h);
|
|
1638
|
+
m.has(w) || m.set(w, { value: w, label: w });
|
|
1639
|
+
}), Array.from(m.values()).sort(
|
|
1640
|
+
(b, h) => b.label.localeCompare(h.label)
|
|
1641
|
+
);
|
|
1642
|
+
}, [l, o, s, r]), d = A(() => async (m, b) => {
|
|
1643
|
+
if (f)
|
|
1644
|
+
return (await f(m, b)).map((k) => ({ value: k.value, label: k.label }));
|
|
1645
|
+
const h = J(m);
|
|
1646
|
+
return (h ? c.filter((O) => J(O.label).includes(h)) : c).slice(0, 50).map((O) => ({ value: O.value, label: O.label }));
|
|
1647
|
+
}, [f, c]), [y, g] = D((e == null ? void 0 : e.value) ?? "");
|
|
1648
|
+
P(() => {
|
|
1649
|
+
g((e == null ? void 0 : e.value) ?? "");
|
|
1650
|
+
}, [e == null ? void 0 : e.value]), X({
|
|
1651
|
+
doesFilterPass: (m) => {
|
|
1652
|
+
const b = e == null ? void 0 : e.value;
|
|
1653
|
+
if (!b) return !0;
|
|
1654
|
+
const h = r(m.node);
|
|
1655
|
+
if (h == null) return !1;
|
|
1656
|
+
const w = typeof h == "string" ? h : String(h);
|
|
1657
|
+
return J(w) === J(b);
|
|
1658
|
+
}
|
|
1659
|
+
});
|
|
1660
|
+
function T(m) {
|
|
1661
|
+
g(m.label), a({ type: "equals", value: m.value });
|
|
1662
|
+
}
|
|
1663
|
+
function x(m) {
|
|
1664
|
+
g(m), m === "" && e && a(null);
|
|
1665
|
+
}
|
|
1666
|
+
function S() {
|
|
1667
|
+
g(""), a(null);
|
|
1668
|
+
}
|
|
1669
|
+
const p = i ?? u("dataTable.typeaheadFilter.placeholder");
|
|
1670
|
+
return /* @__PURE__ */ I(
|
|
1671
|
+
"div",
|
|
1672
|
+
{
|
|
1673
|
+
"data-component": "typeahead-filter",
|
|
1674
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
1675
|
+
children: [
|
|
1676
|
+
/* @__PURE__ */ n(
|
|
1677
|
+
ke,
|
|
1678
|
+
{
|
|
1679
|
+
size: "sm",
|
|
1680
|
+
value: y,
|
|
1681
|
+
onChange: x,
|
|
1682
|
+
onSelect: T,
|
|
1683
|
+
loadOptions: d,
|
|
1684
|
+
placeholder: p,
|
|
1685
|
+
"aria-label": p
|
|
1686
|
+
}
|
|
1687
|
+
),
|
|
1688
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-end ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: /* @__PURE__ */ n(G, { intent: "ghost", size: "sm", onClick: S, type: "button", children: u("dataTable.typeaheadFilter.clear") }) })
|
|
1689
|
+
]
|
|
1690
|
+
}
|
|
1691
|
+
);
|
|
1692
|
+
}
|
|
1693
|
+
function er(t) {
|
|
1694
|
+
var T, x;
|
|
1695
|
+
const { model: e, onModelChange: a, column: r } = t, { t: o } = N("ui"), s = ((x = (T = r == null ? void 0 : r.getColDef) == null ? void 0 : T.call(r)) == null ? void 0 : x.filterParams) ?? {}, l = s.options ?? [], f = s.loadOptions, i = s.placeholder ?? o("dataTable.typeaheadFilter.placeholder"), u = A(() => async (S, p) => {
|
|
1696
|
+
if (f)
|
|
1697
|
+
return (await f(S, p)).map((w) => ({ value: w.value, label: w.label }));
|
|
1698
|
+
const m = J(S);
|
|
1699
|
+
return (m ? l.filter((h) => J(h.label).includes(m)) : l).slice(0, 50).map((h) => ({ value: h.value, label: h.label }));
|
|
1700
|
+
}, [f, l]), [c, d] = D((e == null ? void 0 : e.value) ?? "");
|
|
1701
|
+
P(() => {
|
|
1702
|
+
d((e == null ? void 0 : e.value) ?? "");
|
|
1703
|
+
}, [e == null ? void 0 : e.value]);
|
|
1704
|
+
function y(S) {
|
|
1705
|
+
d(S.label), a({ type: "equals", value: S.value });
|
|
1706
|
+
}
|
|
1707
|
+
function g(S) {
|
|
1708
|
+
d(S), S === "" && e && a(null);
|
|
1709
|
+
}
|
|
1710
|
+
return /* @__PURE__ */ n("div", { "data-component": "typeahead-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
|
|
1711
|
+
ke,
|
|
1712
|
+
{
|
|
1713
|
+
size: "sm",
|
|
1714
|
+
value: c,
|
|
1715
|
+
onChange: g,
|
|
1716
|
+
onSelect: y,
|
|
1717
|
+
loadOptions: u,
|
|
1718
|
+
placeholder: i,
|
|
1719
|
+
"aria-label": i
|
|
1720
|
+
}
|
|
1721
|
+
) });
|
|
1722
|
+
}
|
|
1723
|
+
const na = [
|
|
1724
|
+
"equals",
|
|
1725
|
+
"notEqual",
|
|
1726
|
+
"greaterThan",
|
|
1727
|
+
"greaterThanOrEqual",
|
|
1728
|
+
"lessThan",
|
|
1729
|
+
"lessThanOrEqual",
|
|
1730
|
+
"inRange",
|
|
1731
|
+
"blank",
|
|
1732
|
+
"notBlank"
|
|
1733
|
+
];
|
|
1734
|
+
function he(t) {
|
|
1735
|
+
return t !== "blank" && t !== "notBlank";
|
|
1736
|
+
}
|
|
1737
|
+
function ve(t) {
|
|
1738
|
+
return t === "inRange";
|
|
1739
|
+
}
|
|
1740
|
+
function oa(t, e, a, r) {
|
|
1741
|
+
if (t === "blank") return e === null;
|
|
1742
|
+
if (t === "notBlank") return e !== null;
|
|
1743
|
+
if (e === null) return !1;
|
|
1744
|
+
if (a === null) return !0;
|
|
1745
|
+
switch (t) {
|
|
1746
|
+
case "equals":
|
|
1747
|
+
return e === a;
|
|
1748
|
+
case "notEqual":
|
|
1749
|
+
return e !== a;
|
|
1750
|
+
case "greaterThan":
|
|
1751
|
+
return e > a;
|
|
1752
|
+
case "greaterThanOrEqual":
|
|
1753
|
+
return e >= a;
|
|
1754
|
+
case "lessThan":
|
|
1755
|
+
return e < a;
|
|
1756
|
+
case "lessThanOrEqual":
|
|
1757
|
+
return e <= a;
|
|
1758
|
+
case "inRange": {
|
|
1759
|
+
if (r === null) return e >= a;
|
|
1760
|
+
const o = Math.min(a, r), s = Math.max(a, r);
|
|
1761
|
+
return e >= o && e <= s;
|
|
1762
|
+
}
|
|
1763
|
+
default:
|
|
1764
|
+
return !0;
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
function sa(t) {
|
|
1768
|
+
if (t == null || t === "") return null;
|
|
1769
|
+
const e = typeof t == "number" ? t : Number(t);
|
|
1770
|
+
return Number.isNaN(e) ? null : e;
|
|
1771
|
+
}
|
|
1772
|
+
function tr(t) {
|
|
1773
|
+
const {
|
|
1774
|
+
model: e,
|
|
1775
|
+
onModelChange: a,
|
|
1776
|
+
getValue: r,
|
|
1777
|
+
defaultOperator: o,
|
|
1778
|
+
min: s,
|
|
1779
|
+
max: l,
|
|
1780
|
+
step: f,
|
|
1781
|
+
placeholder: i
|
|
1782
|
+
} = t, { t: u } = N("ui"), c = (e == null ? void 0 : e.type) ?? o ?? "equals", [d, y] = D(c), [g, T] = D((e == null ? void 0 : e.filter) ?? null), [x, S] = D(
|
|
1783
|
+
(e == null ? void 0 : e.filterTo) ?? null
|
|
1784
|
+
);
|
|
1785
|
+
P(() => {
|
|
1786
|
+
if (e === null) {
|
|
1787
|
+
y(o ?? "equals"), T(null), S(null);
|
|
1788
|
+
return;
|
|
1789
|
+
}
|
|
1790
|
+
y(e.type), T(e.filter ?? null), S(e.filterTo ?? null);
|
|
1791
|
+
}, [e, o]), X({
|
|
1792
|
+
doesFilterPass: (k) => {
|
|
1793
|
+
if (!e) return !0;
|
|
1794
|
+
const B = sa(r(k.node));
|
|
1795
|
+
return oa(
|
|
1796
|
+
e.type,
|
|
1797
|
+
B,
|
|
1798
|
+
e.filter ?? null,
|
|
1799
|
+
e.filterTo ?? null
|
|
1800
|
+
);
|
|
1801
|
+
}
|
|
1802
|
+
});
|
|
1803
|
+
const p = A(
|
|
1804
|
+
() => na.map((k) => ({
|
|
1805
|
+
value: k,
|
|
1806
|
+
label: u(`dataTable.numberFilter.operators.${k}`)
|
|
1807
|
+
})),
|
|
1808
|
+
[u]
|
|
1809
|
+
), m = i ?? u("dataTable.numberFilter.placeholder");
|
|
1810
|
+
function b() {
|
|
1811
|
+
if (!he(d)) {
|
|
1812
|
+
a({ type: d, filter: 0 });
|
|
1813
|
+
return;
|
|
1814
|
+
}
|
|
1815
|
+
if (g === null) {
|
|
1816
|
+
a(null);
|
|
1817
|
+
return;
|
|
1818
|
+
}
|
|
1819
|
+
if (ve(d)) {
|
|
1820
|
+
a({
|
|
1821
|
+
type: d,
|
|
1822
|
+
filter: g,
|
|
1823
|
+
filterTo: x ?? void 0
|
|
1824
|
+
});
|
|
1825
|
+
return;
|
|
1826
|
+
}
|
|
1827
|
+
a({ type: d, filter: g });
|
|
1828
|
+
}
|
|
1829
|
+
function h() {
|
|
1830
|
+
y(o ?? "equals"), T(null), S(null), a(null);
|
|
1831
|
+
}
|
|
1832
|
+
const w = he(d), O = ve(d);
|
|
1833
|
+
return /* @__PURE__ */ I(
|
|
1834
|
+
"div",
|
|
1835
|
+
{
|
|
1836
|
+
"data-component": "number-filter",
|
|
1837
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
1838
|
+
children: [
|
|
1839
|
+
/* @__PURE__ */ n(
|
|
1840
|
+
Re,
|
|
1841
|
+
{
|
|
1842
|
+
size: "sm",
|
|
1843
|
+
options: p,
|
|
1844
|
+
value: d,
|
|
1845
|
+
onValueChange: (k) => {
|
|
1846
|
+
k !== "" && y(k);
|
|
1847
|
+
},
|
|
1848
|
+
"aria-label": u("dataTable.numberFilter.operators.equals")
|
|
1849
|
+
}
|
|
1850
|
+
),
|
|
1851
|
+
w && !O && /* @__PURE__ */ n(
|
|
1852
|
+
Y,
|
|
1853
|
+
{
|
|
1854
|
+
size: "sm",
|
|
1855
|
+
value: g,
|
|
1856
|
+
onChange: T,
|
|
1857
|
+
min: s,
|
|
1858
|
+
max: l,
|
|
1859
|
+
step: f,
|
|
1860
|
+
placeholder: m,
|
|
1861
|
+
"aria-label": m
|
|
1862
|
+
}
|
|
1863
|
+
),
|
|
1864
|
+
O && /* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1865
|
+
/* @__PURE__ */ n(
|
|
1866
|
+
Y,
|
|
1867
|
+
{
|
|
1868
|
+
size: "sm",
|
|
1869
|
+
value: g,
|
|
1870
|
+
onChange: T,
|
|
1871
|
+
min: s,
|
|
1872
|
+
max: l,
|
|
1873
|
+
step: f,
|
|
1874
|
+
placeholder: u("dataTable.numberFilter.from"),
|
|
1875
|
+
"aria-label": u("dataTable.numberFilter.from")
|
|
1876
|
+
}
|
|
1877
|
+
),
|
|
1878
|
+
/* @__PURE__ */ n(
|
|
1879
|
+
Y,
|
|
1880
|
+
{
|
|
1881
|
+
size: "sm",
|
|
1882
|
+
value: x,
|
|
1883
|
+
onChange: S,
|
|
1884
|
+
min: s,
|
|
1885
|
+
max: l,
|
|
1886
|
+
step: f,
|
|
1887
|
+
placeholder: u("dataTable.numberFilter.to"),
|
|
1888
|
+
"aria-label": u("dataTable.numberFilter.to")
|
|
1889
|
+
}
|
|
1890
|
+
)
|
|
1891
|
+
] }),
|
|
1892
|
+
/* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
|
|
1893
|
+
/* @__PURE__ */ n(G, { intent: "ghost", size: "sm", onClick: h, type: "button", children: u("dataTable.numberFilter.clear") }),
|
|
1894
|
+
/* @__PURE__ */ n(G, { intent: "primary", size: "sm", onClick: b, type: "button", children: u("dataTable.numberFilter.apply") })
|
|
1895
|
+
] })
|
|
1896
|
+
]
|
|
1897
|
+
}
|
|
1898
|
+
);
|
|
1899
|
+
}
|
|
1900
|
+
function ar(t) {
|
|
1901
|
+
var c, d;
|
|
1902
|
+
const { model: e, onModelChange: a, column: r } = t, { t: o } = N("ui"), s = ((d = (c = r == null ? void 0 : r.getColDef) == null ? void 0 : c.call(r)) == null ? void 0 : d.filterParams) ?? {}, l = s.defaultOperator ?? "equals", f = s.placeholder ?? o("dataTable.numberFilter.placeholder"), [i, u] = D((e == null ? void 0 : e.filter) ?? null);
|
|
1903
|
+
return P(() => {
|
|
1904
|
+
u((e == null ? void 0 : e.filter) ?? null);
|
|
1905
|
+
}, [e == null ? void 0 : e.filter]), P(() => {
|
|
1906
|
+
if (i === ((e == null ? void 0 : e.filter) ?? null)) return;
|
|
1907
|
+
const y = setTimeout(() => {
|
|
1908
|
+
if (i === null || Number.isNaN(i)) {
|
|
1909
|
+
a(null);
|
|
1910
|
+
return;
|
|
1911
|
+
}
|
|
1912
|
+
a({ type: l, filter: i });
|
|
1913
|
+
}, 200);
|
|
1914
|
+
return () => clearTimeout(y);
|
|
1915
|
+
}, [i, l]), /* @__PURE__ */ n("div", { "data-component": "number-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
|
|
1916
|
+
Y,
|
|
1917
|
+
{
|
|
1918
|
+
size: "sm",
|
|
1919
|
+
value: i,
|
|
1920
|
+
onChange: u,
|
|
1921
|
+
min: s.min,
|
|
1922
|
+
max: s.max,
|
|
1923
|
+
step: s.step,
|
|
1924
|
+
placeholder: f,
|
|
1925
|
+
"aria-label": f
|
|
1926
|
+
}
|
|
1927
|
+
) });
|
|
1928
|
+
}
|
|
1929
|
+
function rr(t) {
|
|
1930
|
+
const { value: e } = t;
|
|
1931
|
+
return e ? /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
1932
|
+
/* @__PURE__ */ n(kt, { name: e.name, src: e.src, size: "sm" }),
|
|
1933
|
+
/* @__PURE__ */ n("span", { children: e.name })
|
|
1934
|
+
] }) : null;
|
|
1935
|
+
}
|
|
1936
|
+
function nr(t) {
|
|
1937
|
+
const { value: e, maxVisible: a = 3 } = t, { t: r } = N();
|
|
1938
|
+
if (!Array.isArray(e) || e.length === 0) return null;
|
|
1939
|
+
const o = e.slice(0, a), s = e.length - a;
|
|
1940
|
+
return /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1941
|
+
o.map((l) => /* @__PURE__ */ n(te, { label: l, size: "sm" }, l)),
|
|
1942
|
+
s > 0 && /* @__PURE__ */ n(At, { label: e.slice(a).join(", "), children: /* @__PURE__ */ n(
|
|
1943
|
+
te,
|
|
1944
|
+
{
|
|
1945
|
+
label: r("inputs.multiSelect.overflow", { count: s }),
|
|
1946
|
+
size: "sm",
|
|
1947
|
+
variant: "neutral",
|
|
1948
|
+
fill: "outline"
|
|
1949
|
+
}
|
|
1950
|
+
) })
|
|
1951
|
+
] });
|
|
1952
|
+
}
|
|
1953
|
+
const la = {
|
|
1954
|
+
date: { year: "numeric", month: "short", day: "numeric" },
|
|
1955
|
+
time: { hour: "2-digit", minute: "2-digit" },
|
|
1956
|
+
datetime: {
|
|
1957
|
+
year: "numeric",
|
|
1958
|
+
month: "short",
|
|
1959
|
+
day: "numeric",
|
|
1960
|
+
hour: "2-digit",
|
|
1961
|
+
minute: "2-digit"
|
|
1962
|
+
}
|
|
1963
|
+
};
|
|
1964
|
+
function or(t) {
|
|
1965
|
+
const { value: e, format: a = "date", options: r } = t;
|
|
1966
|
+
return e == null || e === "" ? null : a === "relative" && !r ? /* @__PURE__ */ n(be, { value: e, shape: "bare" }) : /* @__PURE__ */ n(
|
|
1967
|
+
be,
|
|
1968
|
+
{
|
|
1969
|
+
value: e,
|
|
1970
|
+
format: "absolute",
|
|
1971
|
+
shape: "bare",
|
|
1972
|
+
absoluteFormat: r ?? la[a === "relative" ? "date" : a]
|
|
1973
|
+
}
|
|
1974
|
+
);
|
|
1975
|
+
}
|
|
1976
|
+
function Te(t) {
|
|
1977
|
+
if (!Se(t)) return t;
|
|
1978
|
+
const e = t, a = e.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} size-4`.trim();
|
|
1979
|
+
return we(e, { className: r, size: e.props.size ?? 16 });
|
|
1980
|
+
}
|
|
1981
|
+
function de(t, e) {
|
|
1982
|
+
return typeof t == "function" ? t(e) : !!t;
|
|
1983
|
+
}
|
|
1984
|
+
const ia = "ds:text-[color:var(--destructive)] ds:hover:text-[color:var(--destructive-hover)]";
|
|
1985
|
+
function sr(t) {
|
|
1986
|
+
const { data: e, actions: a, intent: r = "ghost", group: o, label: s, collapsed: l } = t, { t: f } = N();
|
|
1987
|
+
if (!e) return null;
|
|
1988
|
+
const i = a.filter((d) => !de(d.hidden, e));
|
|
1989
|
+
if (typeof l == "function" ? l() : !!l)
|
|
1990
|
+
return /* @__PURE__ */ I(V.Root, { children: [
|
|
1991
|
+
/* @__PURE__ */ n(V.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
|
|
1992
|
+
_,
|
|
1993
|
+
{
|
|
1994
|
+
size: "sm",
|
|
1995
|
+
intent: r,
|
|
1996
|
+
icon: /* @__PURE__ */ n(Et, { "aria-hidden": !0 }),
|
|
1997
|
+
"aria-label": s ?? f("dataTable.actions", "Actions")
|
|
1998
|
+
}
|
|
1999
|
+
) }),
|
|
2000
|
+
/* @__PURE__ */ n(V.Content, { align: "end", children: i.map((d, y) => /* @__PURE__ */ n(
|
|
2001
|
+
V.Item,
|
|
2002
|
+
{
|
|
2003
|
+
startIcon: Te(d.icon),
|
|
2004
|
+
disabled: de(d.disabled, e),
|
|
2005
|
+
onSelect: () => d.onClick(e),
|
|
2006
|
+
className: d.variant === "destructive" ? "ds:text-[color:var(--destructive)]" : void 0,
|
|
2007
|
+
children: d.label
|
|
2008
|
+
},
|
|
2009
|
+
y
|
|
2010
|
+
)) })
|
|
2011
|
+
] });
|
|
2012
|
+
const c = i.map((d, y) => {
|
|
2013
|
+
const g = de(d.disabled, e), T = g && d.disabledReason ? d.disabledReason : d.label;
|
|
2014
|
+
return /* @__PURE__ */ n(
|
|
2015
|
+
_,
|
|
2016
|
+
{
|
|
2017
|
+
size: "sm",
|
|
2018
|
+
intent: r,
|
|
2019
|
+
icon: Te(d.icon),
|
|
2020
|
+
tooltip: T,
|
|
2021
|
+
"aria-label": d.label,
|
|
2022
|
+
disabled: g,
|
|
2023
|
+
onClick: (x) => {
|
|
2024
|
+
x.stopPropagation(), d.onClick(e);
|
|
2025
|
+
},
|
|
2026
|
+
className: d.variant === "destructive" ? ia : void 0
|
|
2027
|
+
},
|
|
2028
|
+
y
|
|
2029
|
+
);
|
|
2030
|
+
});
|
|
2031
|
+
return o ? /* @__PURE__ */ n(
|
|
2032
|
+
Ot,
|
|
2033
|
+
{
|
|
2034
|
+
"aria-label": s ?? f("dataTable.actions", "Actions"),
|
|
2035
|
+
size: "sm",
|
|
2036
|
+
children: c
|
|
2037
|
+
}
|
|
2038
|
+
) : /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: c });
|
|
2039
|
+
}
|
|
2040
|
+
export {
|
|
2041
|
+
sr as A,
|
|
2042
|
+
Ha as D,
|
|
2043
|
+
tr as N,
|
|
2044
|
+
Xa as S,
|
|
2045
|
+
nr as T,
|
|
2046
|
+
rr as U,
|
|
2047
|
+
or as a,
|
|
2048
|
+
Qa as b,
|
|
2049
|
+
Ja as c,
|
|
2050
|
+
ar as d,
|
|
2051
|
+
Za as e,
|
|
2052
|
+
Ht as f,
|
|
2053
|
+
Qt as g,
|
|
2054
|
+
ee as h,
|
|
2055
|
+
zt as i,
|
|
2056
|
+
Ya as j,
|
|
2057
|
+
er as k,
|
|
2058
|
+
Jt as l,
|
|
2059
|
+
Me as m
|
|
2060
|
+
};
|
|
2061
|
+
//# sourceMappingURL=actions-cell-renderer-DrcaxB0w.js.map
|