@alfadocs/ui-kit 0.69.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/address-fields-CPbFJ8e8.js +246 -0
- package/dist/_chunks/{agenda-card-BxSFkqgY.js → agenda-card-BQ-IKAru.js} +2 -2
- package/dist/_chunks/{agenda-tray-g0kg7HwB.js → agenda-tray-CGXRk58j.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-CXlsNX1c.js → ai-consent-banner-Be-h9mRI.js} +3 -3
- package/dist/_chunks/{ai-prompt-input-CuhTo9mh.js → ai-prompt-input-V4DdOeqv.js} +2 -2
- package/dist/_chunks/{alert-_mUKLmwA.js → alert-CHYZ96tR.js} +150 -96
- package/dist/_chunks/{alia-sidebar-B47qRQb5.js → alia-sidebar-DvIUzIX9.js} +107 -106
- package/dist/_chunks/{anamnesis-card-DRmE24OQ.js → anamnesis-card-DvYCa16e.js} +2 -2
- package/dist/_chunks/anatomy-scheme-CXSk11UJ.js +2445 -0
- package/dist/_chunks/annotation-marker-qt5R9WZX.js +120 -0
- package/dist/_chunks/{antenatal-schedule-timeline-35ebkcZT.js → antenatal-schedule-timeline-CwXrQRm1.js} +2 -2
- package/dist/_chunks/{app-frame-BYx1gcV7.js → app-frame-DIEMIC5V.js} +67 -56
- package/dist/_chunks/appointment-card-DVaeJNVB.js +294 -0
- package/dist/_chunks/appointment-timeline-PJgnrjFb.js +388 -0
- package/dist/_chunks/appointment-tray-B16QPGbm.js +193 -0
- package/dist/_chunks/{audio-recorder-DYXXnGug.js → audio-recorder-DNDsOLqO.js} +3 -3
- package/dist/_chunks/{autocomplete-DOeGouCL.js → autocomplete-BrONKN8l.js} +168 -146
- package/dist/_chunks/{badge-CqGsX32l.js → badge-DCOqV9mI.js} +32 -27
- package/dist/_chunks/{bishop-score-PJI3AXzA.js → bishop-score-Cym_TeQY.js} +3 -3
- package/dist/_chunks/{bmi-calculator-BZtIJ53x.js → bmi-calculator-zjeY4E7J.js} +2 -2
- package/dist/_chunks/{booking-C3VqFReX.js → booking-C7do4vaR.js} +7 -7
- package/dist/_chunks/{button-group-Ciq6J4IW.js → button-group-CvEnVzY7.js} +32 -35
- package/dist/_chunks/{care-plan-card-CvFGXa2z.js → care-plan-card-DzPDYgtK.js} +5 -5
- package/dist/_chunks/{care-plan-entry-card-C3E_gClk.js → care-plan-entry-card-CEnQy7YP.js} +5 -5
- package/dist/_chunks/care-plan-header-DcXFXWit.js +198 -0
- package/dist/_chunks/{chat-message-3V54YipB.js → chat-message-DzpcJR-q.js} +25 -23
- package/dist/_chunks/city-input-Dkgaak7I.js +169 -0
- package/dist/_chunks/clinical-note-card-BUvNMNGL.js +436 -0
- package/dist/_chunks/clipboard-list-S7s-MXQq.js +25 -0
- package/dist/_chunks/{combobox-Clum7gJ1.js → combobox-DnqSF0IH.js} +131 -114
- package/dist/_chunks/connection-status-CY1HV8Wg.js +108 -0
- package/dist/_chunks/{contact-profile-card-Dramqa9C.js → contact-profile-card-DDPwRFiP.js} +2 -2
- package/dist/_chunks/control-room-rail-FAQZrGVL.js +333 -0
- package/dist/_chunks/country-select-BwUZQvTa.js +709 -0
- package/dist/_chunks/{cycle-calculator-DmRGJNaT.js → cycle-calculator-CCmPwcBl.js} +2 -2
- package/dist/_chunks/{dependent-selector-CG_FOHya.js → dependent-selector-DUV4thxX.js} +2 -2
- package/dist/_chunks/{document-scanner-CTubA0-N.js → document-scanner-C_AxLooF.js} +3 -3
- package/dist/_chunks/{due-date-calculator-BTmsIQqD.js → due-date-calculator-Brdj-euS.js} +3 -3
- package/dist/_chunks/editable-currency-cell-renderer-CGELrkIj.js +410 -0
- package/dist/_chunks/email-input-DJ7EXklP.js +397 -0
- package/dist/_chunks/{entity-card-COhmqHly.js → entity-card-DmrgYSEX.js} +38 -20
- package/dist/_chunks/entity-summary-CaM1Y-xE.js +291 -0
- package/dist/_chunks/{fetal-weight-CRz7KE2D.js → fetal-weight-DNCkyeVo.js} +2 -2
- package/dist/_chunks/field-array-siUZzfYe.js +146 -0
- package/dist/_chunks/field-value-3jMM0uDx.js +415 -0
- package/dist/_chunks/{file-upload-5ScQd4fE.js → file-upload-DwZcAK8D.js} +2 -1
- package/dist/_chunks/{freemium-paywall-DZ2mBS3w.js → freemium-paywall-WYlNO7yT.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-BleUdhbI.js → gestational-age-calculator-DKzEV5Qi.js} +4 -4
- package/dist/_chunks/hash-CysBBS_N.js +17 -0
- package/dist/_chunks/{hcg-doubling-CnjDXX6U.js → hcg-doubling-C7bmuaU3.js} +2 -2
- package/dist/_chunks/iban-input-B0TWzR1R.js +436 -0
- package/dist/_chunks/icon-picker-0B7KhrF1.js +272 -0
- package/dist/_chunks/image-cropper-D9jqJy19.js +367 -0
- package/dist/_chunks/{actions-cell-renderer-DrcaxB0w.js → link-cell-renderer-De_SLjSq.js} +792 -668
- package/dist/_chunks/list-checks-BUs75d_o.js +18 -0
- package/dist/_chunks/lock-CKOIn0IK.js +15 -0
- package/dist/_chunks/{marketplace-app-shell-6T9W4Knl.js → marketplace-app-shell-BGqkywsi.js} +5 -5
- package/dist/_chunks/message-card-DsHFFiL1.js +319 -0
- package/dist/_chunks/{message-tray-DwrBLJlf.js → message-tray-C0a6CL1_.js} +172 -135
- package/dist/_chunks/{multi-select-BdHHDrRN.js → multi-select-WE4S9FIF.js} +75 -63
- package/dist/_chunks/nav-grid-9xphY3FM.js +169 -0
- package/dist/_chunks/notes-panel-DXiMfuvp.js +320 -0
- package/dist/_chunks/notification-card-BMqNzCIt.js +290 -0
- package/dist/_chunks/{notification-tray-Btb9oQeZ.js → notification-tray-BmUlCx3g.js} +201 -166
- package/dist/_chunks/{operator-hero-CP2Nhupm.js → operator-hero-BO8TqzX2.js} +3 -3
- package/dist/_chunks/panel-header-D313n_9-.js +105 -0
- package/dist/_chunks/patient-details-DgfTJimE.js +759 -0
- package/dist/_chunks/{patient-search-CBC_ySF6.js → patient-search-CSWQKOSP.js} +3 -3
- package/dist/_chunks/{patient-shell-DV3XEtIB.js → patient-shell-BMwsIKlW.js} +3 -3
- package/dist/_chunks/patient-summary-card-D4NdgYJB.js +452 -0
- package/dist/_chunks/patient-table-CERknpd8.js +1110 -0
- package/dist/_chunks/{payment-form-DvjwYVIT.js → payment-form-CxqIXqw7.js} +2 -2
- package/dist/_chunks/{payment-request-card-DioWKBUq.js → payment-request-card-Blf-MFNY.js} +125 -136
- package/dist/_chunks/{pdf-viewer-D6BPfW2D.js → pdf-viewer-QfebdLOd.js} +192 -214
- package/dist/_chunks/{periodontal-chart-card-BuDEMbHE.js → periodontal-chart-card-hRRJY1NN.js} +2 -2
- package/dist/_chunks/permission-matrix-Bw5oexUt.js +174 -0
- package/dist/_chunks/position-grid-CcvqHaKN.js +169 -0
- package/dist/_chunks/postal-code-input-UCOYuRY2.js +192 -0
- package/dist/_chunks/{practice-results-KrTHqZua.js → practice-results-El5Z-oVp.js} +4 -4
- package/dist/_chunks/{pregnancy-dating-DORUAOHB.js → pregnancy-dating-CunHrOpO.js} +4 -4
- package/dist/_chunks/{pregnancy-weight-gain-DVz4rr7-.js → pregnancy-weight-gain-BUNpTsH-.js} +2 -2
- package/dist/_chunks/{product-hub-panel-e6pW220e.js → product-hub-panel-DtU7KXxm.js} +257 -217
- package/dist/_chunks/province-select-D_TZvix3.js +261 -0
- package/dist/_chunks/{public-header.agent-DqkqA-ca.js → public-header.agent-TxmC_x1I.js} +2 -2
- package/dist/_chunks/radiograph-panel.agent-tWjN2nHX.js +553 -0
- package/dist/_chunks/reviews-panel-DxkSrgMl.js +559 -0
- package/dist/_chunks/rich-text-editor-C8tyGjfb.js +2621 -0
- package/dist/_chunks/{scroll-area-5wNK0Cyz.js → scroll-area-BZOvUhwQ.js} +2 -2
- package/dist/_chunks/{select-DMLG44F5.js → select-KsyRr8WH.js} +114 -102
- package/dist/_chunks/{sheet-BxsE7eQm.js → sheet-umkfZjF6.js} +53 -42
- package/dist/_chunks/{sidebar-DY9jGjgt.js → sidebar-QCp9wHNP.js} +125 -113
- package/dist/_chunks/{sign-document-B4DeRhTe.js → sign-document-By6hMOra.js} +2 -2
- package/dist/_chunks/{stepper-accordion-Dki6r9ZE.js → stepper-accordion-DC-H-8v4.js} +38 -48
- package/dist/_chunks/tab-bar-Bv9nGNdO.js +262 -0
- package/dist/_chunks/{tabs-BxcOziCo.js → tabs-CYZVKKDl.js} +2 -2
- package/dist/_chunks/task-card-DCdsI0ZT.js +189 -0
- package/dist/_chunks/{task-tray-qOEQflu4.js → task-tray-DNVejijD.js} +2 -2
- package/dist/_chunks/tasks-panel-C9odmawT.js +757 -0
- package/dist/_chunks/token-insert-menu-CFQqTe_n.js +147 -0
- package/dist/_chunks/tool-rail-BZx0-yIr.js +524 -0
- package/dist/_chunks/tooth-scheme-DJZtzfeY.js +2133 -0
- package/dist/_chunks/{transaction-chip-DK84XCBU.js → transaction-chip-CscoQbxF.js} +88 -61
- package/dist/_chunks/{transcript-panel-3THQX6nJ.js → transcript-panel-CHGHHHdT.js} +95 -83
- package/dist/_chunks/{unit-converter-YEpD9evj.js → unit-converter-CwlZbfdn.js} +2 -2
- package/dist/_chunks/use-clamp-overflow-DQE2kwZ9.js +20 -0
- package/dist/_chunks/use-overflow-collapse-BIOzKbni.js +32 -0
- package/dist/_chunks/use-persistent-state-nZwZAnE9.js +24 -0
- package/dist/_chunks/{warning-stack-BsgaEbL8.js → warning-stack--sTrrBDA.js} +86 -101
- package/dist/_chunks/{workflow-map-Bdam9pGp.js → workflow-map-M8MBBHQm.js} +107 -119
- package/dist/_chunks/zoom-out-CgVtf2Wx.js +29 -0
- package/dist/agent/index.js +5 -4
- package/dist/agent/types.d.ts +19 -2
- package/dist/agent-catalog.json +3325 -322
- package/dist/agent-i18n/en.json +314 -14
- package/dist/components/_shared/entity-card/entity-card.d.ts +6 -0
- package/dist/components/_shared/entity-card/index.d.ts +1 -1
- package/dist/components/_shared/field-value.d.ts +21 -0
- package/dist/components/_shared/field-visibility-cog.d.ts +20 -0
- package/dist/components/_shared/field-visibility.d.ts +36 -0
- package/dist/components/_shared/option.d.ts +2 -0
- package/dist/components/_shared/patient-fields.d.ts +119 -0
- package/dist/components/address-fields/address-fields.agent.d.ts +9 -0
- package/dist/components/address-fields/address-fields.d.ts +29 -0
- package/dist/components/address-fields/index.d.ts +5 -0
- package/dist/components/address-fields/index.js +6 -0
- 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/alert/alert.d.ts +5 -0
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anatomy-scheme/anatomy-face-paths.d.ts +15 -0
- package/dist/components/anatomy-scheme/anatomy-muscle-paths.d.ts +20 -0
- package/dist/components/anatomy-scheme/anatomy-scheme-data.d.ts +121 -0
- package/dist/components/anatomy-scheme/anatomy-scheme.agent.d.ts +6 -0
- package/dist/components/anatomy-scheme/anatomy-scheme.d.ts +69 -0
- package/dist/components/anatomy-scheme/index.d.ts +6 -0
- package/dist/components/anatomy-scheme/index.js +17 -0
- package/dist/components/annotation-marker/annotation-marker.d.ts +33 -0
- package/dist/components/annotation-marker/index.d.ts +3 -0
- package/dist/components/annotation-marker/index.js +7 -0
- package/dist/components/app-frame/app-frame.d.ts +2 -2
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +25 -1
- package/dist/components/appointment-card/index.js +6 -5
- package/dist/components/appointment-timeline/appointment-timeline.agent.d.ts +4 -0
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +66 -0
- package/dist/components/appointment-timeline/index.d.ts +4 -0
- package/dist/components/appointment-timeline/index.js +6 -0
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +10 -0
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/badge/badge.d.ts +6 -2
- package/dist/components/badge/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/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/care-plan-header/care-plan-header.agent.d.ts +4 -0
- package/dist/components/care-plan-header/care-plan-header.d.ts +111 -0
- package/dist/components/care-plan-header/index.d.ts +4 -0
- package/dist/components/care-plan-header/index.js +6 -0
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/city-input/city-input.agent.d.ts +8 -0
- package/dist/components/city-input/city-input.d.ts +57 -0
- package/dist/components/city-input/index.d.ts +5 -0
- package/dist/components/city-input/index.js +6 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +21 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +17 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/connection-status/connection-status.agent.d.ts +4 -0
- package/dist/components/connection-status/connection-status.d.ts +36 -0
- package/dist/components/connection-status/index.d.ts +4 -0
- package/dist/components/connection-status/index.js +6 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/control-room-context.d.ts +53 -0
- package/dist/components/control-room-rail/control-room-rail.agent.d.ts +4 -0
- package/dist/components/control-room-rail/control-room-rail.d.ts +35 -0
- package/dist/components/control-room-rail/index.d.ts +6 -0
- package/dist/components/control-room-rail/index.js +10 -0
- package/dist/components/counter/counter.d.ts +1 -1
- package/dist/components/country-select/country-select.agent.d.ts +8 -0
- package/dist/components/country-select/country-select.d.ts +51 -0
- package/dist/components/country-select/index.d.ts +6 -0
- package/dist/components/country-select/index.js +9 -0
- package/dist/components/country-select/iso-3166.d.ts +15 -0
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts +18 -0
- package/dist/components/data-table/cell-renderers/reorder-cell-renderer.d.ts +34 -0
- package/dist/components/data-table/index.d.ts +3 -1
- package/dist/components/data-table/index.js +35 -32
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.agent.d.ts +4 -0
- package/dist/components/entity-summary/entity-summary.d.ts +92 -0
- package/dist/components/entity-summary/index.d.ts +3 -0
- package/dist/components/entity-summary/index.js +5 -0
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/field-array.agent.d.ts +4 -0
- package/dist/components/field-array/field-array.d.ts +45 -0
- package/dist/components/field-array/index.d.ts +4 -0
- package/dist/components/field-array/index.js +6 -0
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/iban-input/iban-input.agent.d.ts +4 -0
- package/dist/components/iban-input/iban-input.d.ts +51 -0
- package/dist/components/iban-input/index.d.ts +5 -0
- package/dist/components/iban-input/index.js +13 -0
- package/dist/components/iban-input/is-valid-iban.d.ts +31 -0
- package/dist/components/icon-picker/icon-picker.agent.d.ts +4 -0
- package/dist/components/icon-picker/icon-picker.d.ts +41 -0
- package/dist/components/icon-picker/index.d.ts +4 -0
- package/dist/components/icon-picker/index.js +6 -0
- package/dist/components/image-cropper/crop-geometry.d.ts +30 -0
- package/dist/components/image-cropper/image-cropper.agent.d.ts +4 -0
- package/dist/components/image-cropper/image-cropper.d.ts +32 -0
- package/dist/components/image-cropper/index.d.ts +5 -0
- package/dist/components/image-cropper/index.js +11 -0
- package/dist/components/index.d.ts +25 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-card/message-card.d.ts +14 -0
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/message-tray/message-tray.d.ts +4 -0
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/nav-grid/index.d.ts +4 -0
- package/dist/components/nav-grid/index.js +7 -0
- package/dist/components/nav-grid/nav-grid.agent.d.ts +4 -0
- package/dist/components/nav-grid/nav-grid.d.ts +41 -0
- package/dist/components/notes-panel/index.d.ts +3 -0
- package/dist/components/notes-panel/index.js +5 -0
- package/dist/components/notes-panel/notes-panel.agent.d.ts +4 -0
- package/dist/components/notes-panel/notes-panel.d.ts +94 -0
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-card/notification-card.d.ts +15 -0
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts +4 -0
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/panel-header/index.d.ts +3 -0
- package/dist/components/panel-header/index.js +7 -0
- package/dist/components/panel-header/panel-header.d.ts +41 -0
- package/dist/components/patient-details/index.d.ts +5 -0
- package/dist/components/patient-details/index.js +6 -0
- package/dist/components/patient-details/patient-details.agent.d.ts +4 -0
- package/dist/components/patient-details/patient-details.d.ts +96 -0
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +40 -1
- package/dist/components/patient-table/columns.d.ts +69 -40
- package/dist/components/patient-table/index.d.ts +2 -6
- package/dist/components/patient-table/index.js +8 -9
- package/dist/components/patient-table/patient-table.d.ts +38 -4
- package/dist/components/patient-table/types.d.ts +52 -2
- package/dist/components/patient-table/use-responsive-columns.d.ts +8 -6
- 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/permission-matrix/index.d.ts +4 -0
- package/dist/components/permission-matrix/index.js +7 -0
- package/dist/components/permission-matrix/permission-matrix.agent.d.ts +4 -0
- package/dist/components/permission-matrix/permission-matrix.d.ts +47 -0
- package/dist/components/position-grid/index.d.ts +4 -0
- package/dist/components/position-grid/index.js +7 -0
- package/dist/components/position-grid/position-grid.agent.d.ts +4 -0
- package/dist/components/position-grid/position-grid.d.ts +39 -0
- package/dist/components/postal-code-input/index.d.ts +5 -0
- package/dist/components/postal-code-input/index.js +6 -0
- package/dist/components/postal-code-input/postal-code-input.agent.d.ts +8 -0
- package/dist/components/postal-code-input/postal-code-input.d.ts +27 -0
- 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/product-hub-tray/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-tray.d.ts +13 -1
- package/dist/components/province-select/index.d.ts +6 -0
- package/dist/components/province-select/index.js +7 -0
- package/dist/components/province-select/it-provinces.d.ts +8 -0
- package/dist/components/province-select/province-select.agent.d.ts +8 -0
- package/dist/components/province-select/province-select.d.ts +38 -0
- package/dist/components/public-footer/public-footer.d.ts +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.d.ts +4 -0
- package/dist/components/radiograph-panel/index.js +7 -0
- package/dist/components/radiograph-panel/radiograph-panel.agent.d.ts +13 -0
- package/dist/components/radiograph-panel/radiograph-panel.d.ts +36 -0
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +17 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -2
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +2 -2
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts +18 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +14 -6
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.d.ts +4 -0
- package/dist/components/tasks-panel/index.js +6 -0
- package/dist/components/tasks-panel/tasks-panel.agent.d.ts +4 -0
- package/dist/components/tasks-panel/tasks-panel.d.ts +152 -0
- package/dist/components/token-insert-menu/index.d.ts +4 -0
- package/dist/components/token-insert-menu/index.js +6 -0
- package/dist/components/token-insert-menu/token-insert-menu.agent.d.ts +4 -0
- package/dist/components/token-insert-menu/token-insert-menu.d.ts +33 -0
- package/dist/components/tool-rail/index.d.ts +4 -0
- package/dist/components/tool-rail/index.js +6 -0
- package/dist/components/tool-rail/tool-rail.agent.d.ts +4 -0
- package/dist/components/tool-rail/tool-rail.d.ts +160 -0
- package/dist/components/tooth-scheme/index.d.ts +2 -2
- package/dist/components/tooth-scheme/index.js +30 -23
- package/dist/components/tooth-scheme/tooth-data.d.ts +112 -1
- package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts +2 -2
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +84 -11
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +2 -2
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/transcript-panel/transcript-panel.d.ts +2 -2
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/warning-stack/warning-stack.d.ts +10 -7
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +24 -22
- package/dist/hooks/use-clamp-overflow.d.ts +19 -0
- package/dist/hooks/use-edge-resize.d.ts +2 -2
- package/dist/hooks/use-overflow-collapse.d.ts +46 -0
- package/dist/hooks/use-persistent-state.d.ts +7 -1
- package/dist/hooks/use-scroll-overflow.d.ts +36 -0
- package/dist/i18n/locales/ar.d.ts +475 -26
- package/dist/i18n/locales/ar.js +478 -31
- package/dist/i18n/locales/de.d.ts +475 -26
- package/dist/i18n/locales/de.js +480 -31
- package/dist/i18n/locales/el.d.ts +475 -26
- package/dist/i18n/locales/el.js +485 -31
- package/dist/i18n/locales/en.d.ts +476 -34
- package/dist/i18n/locales/en.js +492 -39
- package/dist/i18n/locales/es.d.ts +475 -26
- package/dist/i18n/locales/es.js +477 -31
- package/dist/i18n/locales/fr.d.ts +475 -26
- package/dist/i18n/locales/fr.js +480 -31
- package/dist/i18n/locales/hi.d.ts +475 -26
- package/dist/i18n/locales/hi.js +476 -31
- package/dist/i18n/locales/it.d.ts +475 -26
- package/dist/i18n/locales/it.js +480 -31
- package/dist/i18n/locales/ja.d.ts +475 -26
- package/dist/i18n/locales/ja.js +481 -31
- package/dist/i18n/locales/nl.d.ts +475 -26
- package/dist/i18n/locales/nl.js +473 -31
- package/dist/i18n/locales/pl.d.ts +475 -26
- package/dist/i18n/locales/pl.js +481 -31
- package/dist/i18n/locales/pt.d.ts +475 -26
- package/dist/i18n/locales/pt.js +485 -31
- package/dist/i18n/locales/ro.d.ts +475 -26
- package/dist/i18n/locales/ro.js +485 -31
- package/dist/i18n/locales/ru.d.ts +475 -26
- package/dist/i18n/locales/ru.js +478 -31
- package/dist/i18n/locales/sq.d.ts +475 -26
- package/dist/i18n/locales/sq.js +482 -31
- package/dist/i18n/locales/sv.d.ts +475 -26
- package/dist/i18n/locales/sv.js +480 -31
- package/dist/i18n/locales/tr.d.ts +475 -26
- package/dist/i18n/locales/tr.js +478 -31
- package/dist/i18n/locales/zh.d.ts +475 -26
- package/dist/i18n/locales/zh.js +473 -31
- package/dist/index.js +826 -709
- package/dist/locales/ar.json +480 -31
- package/dist/locales/de.json +480 -31
- package/dist/locales/el.json +480 -31
- package/dist/locales/en.json +480 -31
- package/dist/locales/es.json +480 -31
- package/dist/locales/fr.json +480 -31
- package/dist/locales/hi.json +480 -31
- package/dist/locales/it.json +480 -31
- package/dist/locales/ja.json +480 -31
- package/dist/locales/nl.json +480 -31
- package/dist/locales/pl.json +480 -31
- package/dist/locales/pt.json +480 -31
- package/dist/locales/ro.json +480 -31
- package/dist/locales/ru.json +480 -31
- package/dist/locales/sq.json +480 -31
- package/dist/locales/sv.json +480 -31
- package/dist/locales/tr.json +480 -31
- package/dist/locales/zh.json +480 -31
- package/dist/patterns/alia-assistant/alia-types.d.ts +9 -0
- 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 +9 -1
- package/package.json +101 -5
- package/dist/_chunks/ai-tools-rail-BA_sqy1A.js +0 -373
- package/dist/_chunks/appointment-tray-CZtvtaH-.js +0 -431
- package/dist/_chunks/clinical-note-card-DqQYf_D4.js +0 -333
- package/dist/_chunks/editable-currency-cell-renderer-kgqp_mIw.js +0 -448
- package/dist/_chunks/email-input-B_Y55f5G.js +0 -396
- package/dist/_chunks/message-card-Bx4GmLvf.js +0 -277
- package/dist/_chunks/notification-card-BiESdm8q.js +0 -255
- package/dist/_chunks/patient-summary-card-B836_fDB.js +0 -435
- package/dist/_chunks/patient-table-CDuosVru.js +0 -889
- package/dist/_chunks/reviews-panel-Dq7LMDcH.js +0 -555
- package/dist/_chunks/rich-text-editor-BsV7zUdg.js +0 -2142
- package/dist/_chunks/tab-bar-B1ovILzh.js +0 -105
- package/dist/_chunks/task-card-BwY9jaV1.js +0 -124
- package/dist/_chunks/tooth-scheme-yBr53cvv.js +0 -1330
- package/dist/_chunks/use-persistent-state-i23OWy6G.js +0 -24
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +0 -4
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +0 -68
- package/dist/components/ai-tools-rail/index.d.ts +0 -4
- package/dist/components/ai-tools-rail/index.js +0 -6
- package/dist/components/patient-table/cell-renderers/contact-cell.d.ts +0 -45
- package/dist/components/patient-table/cell-renderers/patient-identity-cell.d.ts +0 -26
|
@@ -1,68 +1,70 @@
|
|
|
1
1
|
import { jsx as n, jsxs as I } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { S as
|
|
4
|
-
import { E as
|
|
5
|
-
import { c as
|
|
6
|
-
import { useTranslation as
|
|
7
|
-
import { useGridFilter as X, AgGridReact as
|
|
8
|
-
import { ModuleRegistry as
|
|
9
|
-
import { B as
|
|
10
|
-
import { I as
|
|
2
|
+
import { useMemo as E, forwardRef as G, useState as R, useCallback as M, useEffect as z, useRef as xe, createContext as Se, useContext as we, isValidElement as Ne, cloneElement as Fe, useImperativeHandle as bt } from "react";
|
|
3
|
+
import { S as ht } from "./skeleton-CZbwyJAA.js";
|
|
4
|
+
import { E as vt } from "./empty-state-BLy7tigq.js";
|
|
5
|
+
import { c as Tt } from "./index-D2ZczOXr.js";
|
|
6
|
+
import { useTranslation as F } from "react-i18next";
|
|
7
|
+
import { useGridFilter as X, AgGridReact as yt } from "ag-grid-react";
|
|
8
|
+
import { ModuleRegistry as Ct, AllCommunityModule as xt } from "ag-grid-community";
|
|
9
|
+
import { B as j } from "./button-DD_0Xdmr.js";
|
|
10
|
+
import { I as V } from "./icon-button-LqoiKcUN.js";
|
|
11
11
|
import { P as Z } from "./popover-B2qCDhJC.js";
|
|
12
|
-
import { C as
|
|
13
|
-
import { T as
|
|
12
|
+
import { C as Re } from "./checkbox-BuZ1u__2.js";
|
|
13
|
+
import { T as pe } from "./text-input-B-OWQ1Je.js";
|
|
14
14
|
import { T as te } from "./tag-BQXwuJq1.js";
|
|
15
|
-
import { D as
|
|
16
|
-
import { X as
|
|
17
|
-
import { R as
|
|
18
|
-
import { S as
|
|
19
|
-
import { C as
|
|
20
|
-
import { G as
|
|
21
|
-
import { P as
|
|
22
|
-
import { F as
|
|
15
|
+
import { D as _ } from "./dropdown-menu-qrxjymfw.js";
|
|
16
|
+
import { X as De } from "./x-CCcI3eJp.js";
|
|
17
|
+
import { R as St } from "./refresh-cw-CC8jSKMr.js";
|
|
18
|
+
import { S as fe } from "./search-BonnQsHv.js";
|
|
19
|
+
import { C as wt } from "./columns-2-BTOBZbep.js";
|
|
20
|
+
import { G as Nt } from "./grip-vertical-Dlg0_k5C.js";
|
|
21
|
+
import { P as Ft } from "./printer-CeVEWfQq.js";
|
|
22
|
+
import { F as Ie } from "./file-text-DSNuv2B8.js";
|
|
23
23
|
import { D as ae } from "./download-CDF1sbL9.js";
|
|
24
|
-
import { F as
|
|
25
|
-
import
|
|
26
|
-
import { S as
|
|
27
|
-
import { u as
|
|
28
|
-
import { u as
|
|
29
|
-
import { u as
|
|
30
|
-
import { D as
|
|
31
|
-
import { M as
|
|
32
|
-
import {
|
|
24
|
+
import { F as Rt } from "./file-spreadsheet-zUkY8rJ2.js";
|
|
25
|
+
import Dt from "i18next";
|
|
26
|
+
import { S as ke } from "./select-KsyRr8WH.js";
|
|
27
|
+
import { u as It } from "./registry-DvAUVLHh.js";
|
|
28
|
+
import { u as kt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
29
|
+
import { u as Et } from "./use-theme-CAuo6EYT.js";
|
|
30
|
+
import { D as Ee } from "./date-range-picker-CTUeR6Bj.js";
|
|
31
|
+
import { M as At } from "./multi-select-WE4S9FIF.js";
|
|
32
|
+
import { S as Ot } from "./scroll-area-BZOvUhwQ.js";
|
|
33
|
+
import { A as Ae } from "./autocomplete-BrONKN8l.js";
|
|
33
34
|
import { N as Y } from "./number-input-DxphVG_A.js";
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { T as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
import { B as zt } from "./badge-DCOqV9mI.js";
|
|
36
|
+
import { A as Oe } from "./avatar-BNQNhoyL.js";
|
|
37
|
+
import { T as Pt } from "./tooltip-DvmfrNvB.js";
|
|
38
|
+
import { T as he } from "./timestamp-BV2lC-wV.js";
|
|
39
|
+
import { I as Mt } from "./icon-button-group-C48khLE0.js";
|
|
40
|
+
import { E as qt } from "./ellipsis-rgGdiK_9.js";
|
|
41
|
+
function Lt(t) {
|
|
42
|
+
if (!Ne(t)) return t;
|
|
41
43
|
const e = t, a = e.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} ds:size-4`.trim();
|
|
42
|
-
return
|
|
44
|
+
return Fe(e, { className: r, size: e.props.size ?? 16 });
|
|
43
45
|
}
|
|
44
|
-
const
|
|
45
|
-
function
|
|
46
|
-
const e =
|
|
46
|
+
const ze = Se(null);
|
|
47
|
+
function B(t) {
|
|
48
|
+
const e = we(ze);
|
|
47
49
|
if (!e)
|
|
48
50
|
throw new Error(
|
|
49
51
|
`${t} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
|
|
50
52
|
);
|
|
51
53
|
return e;
|
|
52
54
|
}
|
|
53
|
-
function
|
|
55
|
+
function jt({
|
|
54
56
|
getApi: t,
|
|
55
57
|
selectionCount: e,
|
|
56
58
|
onPrint: a,
|
|
57
59
|
children: r
|
|
58
60
|
}) {
|
|
59
|
-
const o =
|
|
61
|
+
const o = E(
|
|
60
62
|
() => ({ getApi: t, selectionCount: e, onPrint: a }),
|
|
61
63
|
[t, e, a]
|
|
62
64
|
);
|
|
63
|
-
return /* @__PURE__ */ n(
|
|
65
|
+
return /* @__PURE__ */ n(ze.Provider, { value: o, children: r });
|
|
64
66
|
}
|
|
65
|
-
const
|
|
67
|
+
const Gt = [
|
|
66
68
|
"data-table-toolbar",
|
|
67
69
|
// Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
|
|
68
70
|
// Actions cluster on narrow screens. From `sm` (≥640px) we switch to
|
|
@@ -81,20 +83,20 @@ const Mt = [
|
|
|
81
83
|
"ds:border ds:border-[color:var(--card-border)]",
|
|
82
84
|
"ds:shadow-[var(--shadow-sm)]",
|
|
83
85
|
"ds:py-[var(--spacing-sm)] ds:px-[var(--spacing-md)]"
|
|
84
|
-
].join(" "),
|
|
86
|
+
].join(" "), Pe = G(
|
|
85
87
|
({ className: t, children: e, ...a }, r) => /* @__PURE__ */ n(
|
|
86
88
|
"div",
|
|
87
89
|
{
|
|
88
90
|
ref: r,
|
|
89
91
|
role: "toolbar",
|
|
90
|
-
className: [
|
|
92
|
+
className: [Gt, t ?? ""].join(" ").trim(),
|
|
91
93
|
...a,
|
|
92
94
|
children: e
|
|
93
95
|
}
|
|
94
96
|
)
|
|
95
97
|
);
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
+
Pe.displayName = "DataTable.Toolbar";
|
|
99
|
+
const Me = G(
|
|
98
100
|
({ className: t, children: e, ...a }, r) => /* @__PURE__ */ n(
|
|
99
101
|
"div",
|
|
100
102
|
{
|
|
@@ -113,8 +115,8 @@ const Ee = L(
|
|
|
113
115
|
}
|
|
114
116
|
)
|
|
115
117
|
);
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
+
Me.displayName = "DataTable.Toolbar.FilterBar";
|
|
119
|
+
const qe = G(
|
|
118
120
|
({ className: t, children: e, ...a }, r) => /* @__PURE__ */ n(
|
|
119
121
|
"div",
|
|
120
122
|
{
|
|
@@ -129,28 +131,28 @@ const Pe = L(
|
|
|
129
131
|
}
|
|
130
132
|
)
|
|
131
133
|
);
|
|
132
|
-
|
|
133
|
-
const
|
|
134
|
+
qe.displayName = "DataTable.Toolbar.Actions";
|
|
135
|
+
const Le = G(
|
|
134
136
|
({ label: t, onExport: e, intent: a = "outline", ...r }, o) => {
|
|
135
|
-
const { t: s } =
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
}, [
|
|
137
|
+
const { t: s } = F(), { getApi: i } = B("DataTable.Toolbar.ExportCsv"), p = M(() => {
|
|
138
|
+
const l = i();
|
|
139
|
+
l && (e ? e(l) : l.exportDataAsCsv());
|
|
140
|
+
}, [i, e]);
|
|
139
141
|
return /* @__PURE__ */ n(
|
|
140
|
-
|
|
142
|
+
V,
|
|
141
143
|
{
|
|
142
144
|
ref: o,
|
|
143
145
|
type: "button",
|
|
144
146
|
intent: a,
|
|
145
147
|
icon: /* @__PURE__ */ n(ae, { "aria-hidden": !0 }),
|
|
146
148
|
tooltip: t ?? s("dataTable.exportCsv"),
|
|
147
|
-
onClick:
|
|
149
|
+
onClick: p,
|
|
148
150
|
...r
|
|
149
151
|
}
|
|
150
152
|
);
|
|
151
153
|
}
|
|
152
154
|
);
|
|
153
|
-
|
|
155
|
+
Le.displayName = "DataTable.Toolbar.ExportCsv";
|
|
154
156
|
function Q(t, e = [30, 30, 30]) {
|
|
155
157
|
if (typeof document > "u") return e;
|
|
156
158
|
const a = document.createElement("span");
|
|
@@ -160,33 +162,33 @@ function Q(t, e = [30, 30, 30]) {
|
|
|
160
162
|
const o = r.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
|
|
161
163
|
return o ? [Number(o[1]), Number(o[2]), Number(o[3])] : e;
|
|
162
164
|
}
|
|
163
|
-
async function
|
|
165
|
+
async function je(t, e) {
|
|
164
166
|
if (!t) return;
|
|
165
167
|
const [{ jsPDF: a }, { default: r }] = await Promise.all([
|
|
166
168
|
import("./jspdf.es.min-DaapWjR1.js").then((g) => g.j),
|
|
167
169
|
import("./jspdf.plugin.autotable-CSiDNyPn.js")
|
|
168
|
-
]), s = (t.getColumns() ?? []).filter((g) => g.isVisible()),
|
|
170
|
+
]), s = (t.getColumns() ?? []).filter((g) => g.isVisible()), i = [
|
|
169
171
|
s.map((g) => t.getDisplayNameForColumn(g, null) ?? "")
|
|
170
|
-
],
|
|
172
|
+
], p = [];
|
|
171
173
|
t.forEachNodeAfterFilterAndSort((g) => {
|
|
172
174
|
if (!g.data) return;
|
|
173
|
-
const T = s.map((
|
|
175
|
+
const T = s.map((C) => {
|
|
174
176
|
const S = t.getCellValue({
|
|
175
177
|
rowNode: g,
|
|
176
|
-
colKey:
|
|
178
|
+
colKey: C,
|
|
177
179
|
useFormatter: !0
|
|
178
180
|
});
|
|
179
181
|
return S == null ? "" : String(S);
|
|
180
182
|
});
|
|
181
|
-
|
|
183
|
+
p.push(T);
|
|
182
184
|
});
|
|
183
|
-
const
|
|
185
|
+
const l = Q("--muted", [240, 240, 240]), d = Q("--foreground", [30, 30, 30]), c = Q("--card-foreground", [30, 30, 30]), u = Q("--card", [250, 250, 250]), y = new a({ orientation: "landscape" });
|
|
184
186
|
r(y, {
|
|
185
|
-
head:
|
|
186
|
-
body:
|
|
187
|
-
headStyles: { fillColor:
|
|
187
|
+
head: i,
|
|
188
|
+
body: p,
|
|
189
|
+
headStyles: { fillColor: l, textColor: d },
|
|
188
190
|
bodyStyles: { textColor: c },
|
|
189
|
-
alternateRowStyles: { fillColor:
|
|
191
|
+
alternateRowStyles: { fillColor: u },
|
|
190
192
|
styles: {
|
|
191
193
|
font: "helvetica",
|
|
192
194
|
fontSize: 10,
|
|
@@ -194,43 +196,43 @@ async function Me(t, e) {
|
|
|
194
196
|
}
|
|
195
197
|
}), y.save(e.fileName);
|
|
196
198
|
}
|
|
197
|
-
const
|
|
199
|
+
const Ge = G(
|
|
198
200
|
({ label: t, onClick: e, fileName: a, intent: r = "outline", ...o }, s) => {
|
|
199
|
-
const { t:
|
|
200
|
-
const
|
|
201
|
+
const { t: i } = F(), { getApi: p } = B("DataTable.Toolbar.ExportPdf"), l = M(() => {
|
|
202
|
+
const d = p();
|
|
201
203
|
if (e) {
|
|
202
|
-
e(
|
|
204
|
+
e(d);
|
|
203
205
|
return;
|
|
204
206
|
}
|
|
205
|
-
|
|
207
|
+
je(d, {
|
|
206
208
|
fileName: a ?? "data-table-export.pdf"
|
|
207
209
|
});
|
|
208
|
-
}, [
|
|
210
|
+
}, [p, e, a]);
|
|
209
211
|
return /* @__PURE__ */ n(
|
|
210
|
-
|
|
212
|
+
V,
|
|
211
213
|
{
|
|
212
214
|
ref: s,
|
|
213
215
|
type: "button",
|
|
214
216
|
intent: r,
|
|
215
|
-
icon: /* @__PURE__ */ n(
|
|
216
|
-
tooltip: t ??
|
|
217
|
-
onClick:
|
|
217
|
+
icon: /* @__PURE__ */ n(Ie, { "aria-hidden": !0 }),
|
|
218
|
+
tooltip: t ?? i("dataTable.exportPdf"),
|
|
219
|
+
onClick: l,
|
|
218
220
|
...o
|
|
219
221
|
}
|
|
220
222
|
);
|
|
221
223
|
}
|
|
222
224
|
);
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
+
Ge.displayName = "DataTable.Toolbar.ExportPdf";
|
|
226
|
+
const Be = G(
|
|
225
227
|
({ label: t, intent: e = "outline", ...a }, r) => {
|
|
226
|
-
const { t: o } =
|
|
228
|
+
const { t: o } = F(), { onPrint: s } = B("DataTable.Toolbar.Print");
|
|
227
229
|
return /* @__PURE__ */ n(
|
|
228
|
-
|
|
230
|
+
V,
|
|
229
231
|
{
|
|
230
232
|
ref: r,
|
|
231
233
|
type: "button",
|
|
232
234
|
intent: e,
|
|
233
|
-
icon: /* @__PURE__ */ n(
|
|
235
|
+
icon: /* @__PURE__ */ n(Ft, { "aria-hidden": !0 }),
|
|
234
236
|
tooltip: t ?? o("dataTable.print"),
|
|
235
237
|
onClick: s,
|
|
236
238
|
...a
|
|
@@ -238,14 +240,14 @@ const je = L(
|
|
|
238
240
|
);
|
|
239
241
|
}
|
|
240
242
|
);
|
|
241
|
-
|
|
242
|
-
const
|
|
243
|
-
const { t: a } =
|
|
244
|
-
return
|
|
245
|
-
const
|
|
246
|
-
|
|
243
|
+
Be.displayName = "DataTable.Toolbar.Print";
|
|
244
|
+
const $e = ({ placeholder: t, debounceMs: e = 150 }) => {
|
|
245
|
+
const { t: a } = F(), { getApi: r } = B("DataTable.Toolbar.QuickSearch"), [o, s] = R(""), i = xe(void 0);
|
|
246
|
+
return z(() => (i.current && window.clearTimeout(i.current), i.current = window.setTimeout(() => {
|
|
247
|
+
const p = r();
|
|
248
|
+
p && p.setGridOption("quickFilterText", o);
|
|
247
249
|
}, e), () => {
|
|
248
|
-
|
|
250
|
+
i.current && window.clearTimeout(i.current);
|
|
249
251
|
}), [o, e, r]), // Slot wrapper caps the search at a sensible legible width on desktop —
|
|
250
252
|
// without this, TextInput's `w-full` lets the QuickSearch absorb the
|
|
251
253
|
// entire FilterBar row and push trailing Actions onto a second line at
|
|
@@ -254,31 +256,31 @@ const Ge = ({ placeholder: t, debounceMs: e = 150 }) => {
|
|
|
254
256
|
// `--toolbar-search-max` token in the kit yet — see this component's
|
|
255
257
|
// summary for a follow-up note recommending we add one.
|
|
256
258
|
/* @__PURE__ */ n("div", { className: "ds:w-full ds:max-w-[24rem] ds:min-w-0", children: /* @__PURE__ */ n(
|
|
257
|
-
|
|
259
|
+
pe,
|
|
258
260
|
{
|
|
259
261
|
type: "search",
|
|
260
262
|
size: "sm",
|
|
261
263
|
value: o,
|
|
262
|
-
onChange: (
|
|
264
|
+
onChange: (p) => s(p.target.value),
|
|
263
265
|
placeholder: t ?? a("dataTable.quickSearch.placeholder", "Search…"),
|
|
264
|
-
startAdornment: /* @__PURE__ */ n(
|
|
266
|
+
startAdornment: /* @__PURE__ */ n(fe, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
265
267
|
clearable: !0,
|
|
266
268
|
onClear: () => s(""),
|
|
267
269
|
"aria-label": a("dataTable.quickSearch.label", "Quick search")
|
|
268
270
|
}
|
|
269
271
|
) });
|
|
270
272
|
};
|
|
271
|
-
|
|
272
|
-
const
|
|
273
|
+
$e.displayName = "DataTable.Toolbar.QuickSearch";
|
|
274
|
+
const _e = G(
|
|
273
275
|
({ onRefresh: t, label: e, intent: a = "outline", ...r }, o) => {
|
|
274
|
-
const { t: s } =
|
|
276
|
+
const { t: s } = F();
|
|
275
277
|
return /* @__PURE__ */ n(
|
|
276
|
-
|
|
278
|
+
V,
|
|
277
279
|
{
|
|
278
280
|
ref: o,
|
|
279
281
|
type: "button",
|
|
280
282
|
intent: a,
|
|
281
|
-
icon: /* @__PURE__ */ n(
|
|
283
|
+
icon: /* @__PURE__ */ n(St, { "aria-hidden": !0 }),
|
|
282
284
|
tooltip: e ?? s("dataTable.refresh", "Refresh"),
|
|
283
285
|
onClick: t,
|
|
284
286
|
...r
|
|
@@ -286,8 +288,8 @@ const Le = L(
|
|
|
286
288
|
);
|
|
287
289
|
}
|
|
288
290
|
);
|
|
289
|
-
|
|
290
|
-
function
|
|
291
|
+
_e.displayName = "DataTable.Toolbar.Refresh";
|
|
292
|
+
function Bt(t) {
|
|
291
293
|
if (!t || typeof t != "object") return "";
|
|
292
294
|
const e = t;
|
|
293
295
|
if (typeof e.filter == "string" || typeof e.filter == "number") {
|
|
@@ -296,47 +298,47 @@ function qt(t) {
|
|
|
296
298
|
}
|
|
297
299
|
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
300
|
}
|
|
299
|
-
const
|
|
300
|
-
const { t } =
|
|
301
|
+
const Ve = () => {
|
|
302
|
+
const { t } = F(), { getApi: e } = B("DataTable.Toolbar.FilterChips"), [a, r] = R([]), [o, s] = R(""), i = M(() => {
|
|
301
303
|
const c = e();
|
|
302
304
|
if (!c) {
|
|
303
305
|
r([]), s("");
|
|
304
306
|
return;
|
|
305
307
|
}
|
|
306
|
-
const
|
|
307
|
-
for (const
|
|
308
|
-
const S = y.find((m) => m.getColId() ===
|
|
308
|
+
const u = c.getFilterModel() ?? {}, y = c.getColumns() ?? [], g = [];
|
|
309
|
+
for (const C of Object.keys(u)) {
|
|
310
|
+
const S = y.find((m) => m.getColId() === C), f = c.getDisplayNameForColumn(S, null) ?? C;
|
|
309
311
|
g.push({
|
|
310
|
-
colId:
|
|
311
|
-
headerName:
|
|
312
|
-
text:
|
|
312
|
+
colId: C,
|
|
313
|
+
headerName: f,
|
|
314
|
+
text: Bt(u[C])
|
|
313
315
|
});
|
|
314
316
|
}
|
|
315
317
|
r(g);
|
|
316
318
|
const T = c.getGridOption("quickFilterText");
|
|
317
319
|
s(typeof T == "string" ? T : "");
|
|
318
320
|
}, [e]);
|
|
319
|
-
if (
|
|
321
|
+
if (z(() => {
|
|
320
322
|
let c;
|
|
321
|
-
const
|
|
322
|
-
T.addEventListener("filterChanged",
|
|
323
|
+
const u = (T) => i(), y = (T) => {
|
|
324
|
+
T.addEventListener("filterChanged", u), i(), c = () => T.removeEventListener("filterChanged", u);
|
|
323
325
|
}, g = e();
|
|
324
326
|
if (g)
|
|
325
327
|
y(g);
|
|
326
328
|
else {
|
|
327
329
|
const T = window.setInterval(() => {
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
+
const C = e();
|
|
331
|
+
C && (window.clearInterval(T), y(C));
|
|
330
332
|
}, 50);
|
|
331
333
|
c = () => window.clearInterval(T);
|
|
332
334
|
}
|
|
333
335
|
return () => c == null ? void 0 : c();
|
|
334
|
-
}, [e,
|
|
335
|
-
function
|
|
336
|
-
const
|
|
337
|
-
|
|
336
|
+
}, [e, i]), a.length + (o ? 1 : 0) === 0) return null;
|
|
337
|
+
function l(c) {
|
|
338
|
+
const u = e();
|
|
339
|
+
u && u.destroyFilter(c);
|
|
338
340
|
}
|
|
339
|
-
function
|
|
341
|
+
function d() {
|
|
340
342
|
const c = e();
|
|
341
343
|
c && (c.setFilterModel(null), c.setGridOption("quickFilterText", ""), s(""));
|
|
342
344
|
}
|
|
@@ -365,18 +367,18 @@ const $e = () => {
|
|
|
365
367
|
label: c.text ? `${c.headerName}: ${c.text}` : c.headerName,
|
|
366
368
|
size: "sm",
|
|
367
369
|
fill: "outline",
|
|
368
|
-
onRemove: () =>
|
|
370
|
+
onRemove: () => l(c.colId)
|
|
369
371
|
},
|
|
370
372
|
c.colId
|
|
371
373
|
)),
|
|
372
374
|
/* @__PURE__ */ n(
|
|
373
|
-
|
|
375
|
+
j,
|
|
374
376
|
{
|
|
375
377
|
type: "button",
|
|
376
378
|
intent: "ghost",
|
|
377
379
|
size: "sm",
|
|
378
|
-
onClick:
|
|
379
|
-
startIcon: /* @__PURE__ */ n(
|
|
380
|
+
onClick: d,
|
|
381
|
+
startIcon: /* @__PURE__ */ n(De, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
380
382
|
children: t("dataTable.filterChips.clearAll", "Clear all")
|
|
381
383
|
}
|
|
382
384
|
)
|
|
@@ -384,25 +386,25 @@ const $e = () => {
|
|
|
384
386
|
}
|
|
385
387
|
);
|
|
386
388
|
};
|
|
387
|
-
|
|
388
|
-
const
|
|
389
|
+
Ve.displayName = "DataTable.Toolbar.FilterChips";
|
|
390
|
+
const We = ({
|
|
389
391
|
field: t,
|
|
390
392
|
options: e,
|
|
391
393
|
label: a
|
|
392
394
|
}) => {
|
|
393
|
-
const { t: r } =
|
|
394
|
-
function
|
|
395
|
-
l
|
|
396
|
-
const
|
|
397
|
-
if (
|
|
398
|
-
if (
|
|
399
|
-
|
|
395
|
+
const { t: r } = F(), { getApi: o } = B("DataTable.Toolbar.FacetFilter"), [s, i] = R(null);
|
|
396
|
+
function p(l) {
|
|
397
|
+
i(l);
|
|
398
|
+
const d = o();
|
|
399
|
+
if (d) {
|
|
400
|
+
if (l === null) {
|
|
401
|
+
d.destroyFilter(t);
|
|
400
402
|
return;
|
|
401
403
|
}
|
|
402
|
-
|
|
404
|
+
d.setColumnFilterModel(t, {
|
|
403
405
|
type: "equals",
|
|
404
|
-
filter:
|
|
405
|
-
}),
|
|
406
|
+
filter: l
|
|
407
|
+
}), d.onFilterChanged();
|
|
406
408
|
}
|
|
407
409
|
}
|
|
408
410
|
return /* @__PURE__ */ n(
|
|
@@ -411,72 +413,72 @@ const Be = ({
|
|
|
411
413
|
role: "group",
|
|
412
414
|
"aria-label": a ?? r("dataTable.facetFilter.label", "Filter"),
|
|
413
415
|
className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
414
|
-
children: e.map((
|
|
415
|
-
const
|
|
416
|
+
children: e.map((l) => {
|
|
417
|
+
const d = s === l.value;
|
|
416
418
|
return /* @__PURE__ */ n(
|
|
417
|
-
|
|
419
|
+
j,
|
|
418
420
|
{
|
|
419
421
|
type: "button",
|
|
420
422
|
size: "sm",
|
|
421
|
-
intent:
|
|
422
|
-
"aria-pressed":
|
|
423
|
-
onClick: () =>
|
|
424
|
-
children:
|
|
423
|
+
intent: d ? "primary" : "secondary",
|
|
424
|
+
"aria-pressed": d,
|
|
425
|
+
onClick: () => p(l.value),
|
|
426
|
+
children: l.label
|
|
425
427
|
},
|
|
426
|
-
String(
|
|
428
|
+
String(l.value)
|
|
427
429
|
);
|
|
428
430
|
})
|
|
429
431
|
}
|
|
430
432
|
);
|
|
431
433
|
};
|
|
432
|
-
|
|
433
|
-
const
|
|
434
|
-
async function
|
|
434
|
+
We.displayName = "DataTable.Toolbar.FacetFilter";
|
|
435
|
+
const $t = ["csv", "xlsx", "pdf"];
|
|
436
|
+
async function _t(t, e) {
|
|
435
437
|
if (!t) return;
|
|
436
|
-
const a = await import("./exceljs.min-DUJ-5CGx.js").then((
|
|
438
|
+
const a = await import("./exceljs.min-DUJ-5CGx.js").then((C) => C.e), r = new a.Workbook(), o = r.addWorksheet("Sheet1"), i = (t.getColumns() ?? []).filter((C) => C.isVisible());
|
|
437
439
|
o.addRow(
|
|
438
|
-
|
|
439
|
-
(
|
|
440
|
+
i.map(
|
|
441
|
+
(C) => t.getDisplayNameForColumn(C, null) ?? C.getColId()
|
|
440
442
|
)
|
|
441
|
-
), t.forEachNodeAfterFilterAndSort((
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
const
|
|
445
|
-
rowNode:
|
|
443
|
+
), t.forEachNodeAfterFilterAndSort((C) => {
|
|
444
|
+
C.data && o.addRow(
|
|
445
|
+
i.map((S) => {
|
|
446
|
+
const f = t.getCellValue({
|
|
447
|
+
rowNode: C,
|
|
446
448
|
colKey: S,
|
|
447
449
|
useFormatter: !0
|
|
448
450
|
});
|
|
449
|
-
return
|
|
451
|
+
return f ?? "";
|
|
450
452
|
})
|
|
451
453
|
);
|
|
452
454
|
});
|
|
453
|
-
const
|
|
454
|
-
|
|
455
|
-
|
|
455
|
+
const p = Q("--muted", [240, 240, 240]), l = Q("--foreground", [30, 30, 30]), d = o.getRow(1), c = ([C, S, f]) => `${C.toString(16).padStart(2, "0")}${S.toString(16).padStart(2, "0")}${f.toString(16).padStart(2, "0")}`.toUpperCase();
|
|
456
|
+
d.eachCell((C) => {
|
|
457
|
+
C.font = { bold: !0, color: { argb: `FF${c(l)}` } }, C.fill = {
|
|
456
458
|
type: "pattern",
|
|
457
459
|
pattern: "solid",
|
|
458
|
-
fgColor: { argb: `FF${c(
|
|
460
|
+
fgColor: { argb: `FF${c(p)}` }
|
|
459
461
|
};
|
|
460
462
|
});
|
|
461
|
-
const
|
|
463
|
+
const u = await r.xlsx.writeBuffer(), y = new Blob([u], {
|
|
462
464
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
463
465
|
}), g = URL.createObjectURL(y), T = document.createElement("a");
|
|
464
466
|
T.href = g, T.download = e.fileName, document.body.appendChild(T), T.click(), document.body.removeChild(T), URL.revokeObjectURL(g);
|
|
465
467
|
}
|
|
466
|
-
const
|
|
467
|
-
function
|
|
468
|
-
const t =
|
|
468
|
+
const Ke = Se(null);
|
|
469
|
+
function Vt() {
|
|
470
|
+
const t = we(Ke);
|
|
469
471
|
if (!t)
|
|
470
472
|
throw new Error(
|
|
471
473
|
"DataTable.Toolbar.ExportMenu.Item must be rendered inside DataTable.Toolbar.ExportMenu."
|
|
472
474
|
);
|
|
473
475
|
return t;
|
|
474
476
|
}
|
|
475
|
-
const
|
|
476
|
-
const { t: a } =
|
|
477
|
-
return /* @__PURE__ */ n(
|
|
478
|
-
/* @__PURE__ */ n(
|
|
479
|
-
|
|
477
|
+
const Ue = ({ children: t, label: e }) => {
|
|
478
|
+
const { t: a } = F(), { getApi: r } = B("DataTable.Toolbar.ExportMenu"), o = E(() => ({ getApi: r }), [r]), s = t ?? $t.map((i) => /* @__PURE__ */ n(me, { format: i }, i));
|
|
479
|
+
return /* @__PURE__ */ n(Ke.Provider, { value: o, children: /* @__PURE__ */ I(_.Root, { children: [
|
|
480
|
+
/* @__PURE__ */ n(_.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
|
|
481
|
+
V,
|
|
480
482
|
{
|
|
481
483
|
type: "button",
|
|
482
484
|
intent: "outline",
|
|
@@ -486,93 +488,93 @@ const _e = ({ children: t, label: e }) => {
|
|
|
486
488
|
"aria-haspopup": "menu"
|
|
487
489
|
}
|
|
488
490
|
) }),
|
|
489
|
-
/* @__PURE__ */ n(
|
|
491
|
+
/* @__PURE__ */ n(_.Content, { align: "end", sideOffset: 4, children: s })
|
|
490
492
|
] }) });
|
|
491
493
|
};
|
|
492
|
-
|
|
493
|
-
function
|
|
494
|
+
Ue.displayName = "DataTable.Toolbar.ExportMenu";
|
|
495
|
+
function Wt(t, e) {
|
|
494
496
|
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
497
|
}
|
|
496
|
-
function
|
|
497
|
-
return t === "csv" ? /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" }) : t === "xlsx" ? /* @__PURE__ */ n(
|
|
498
|
+
function Kt(t) {
|
|
499
|
+
return t === "csv" ? /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" }) : t === "xlsx" ? /* @__PURE__ */ n(Rt, { "aria-hidden": !0, className: "ds:size-4" }) : t === "pdf" ? /* @__PURE__ */ n(Ie, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" });
|
|
498
500
|
}
|
|
499
|
-
const
|
|
501
|
+
const me = ({
|
|
500
502
|
format: t,
|
|
501
503
|
label: e,
|
|
502
504
|
onClick: a,
|
|
503
505
|
fileName: r
|
|
504
506
|
}) => {
|
|
505
|
-
const { t: o } =
|
|
506
|
-
const
|
|
507
|
+
const { t: o } = F(), { getApi: s } = Vt(), i = M(() => {
|
|
508
|
+
const p = s();
|
|
507
509
|
if (t === "csv") {
|
|
508
|
-
|
|
510
|
+
p == null || p.exportDataAsCsv();
|
|
509
511
|
return;
|
|
510
512
|
}
|
|
511
513
|
if (t === "pdf") {
|
|
512
|
-
|
|
514
|
+
je(p, {
|
|
513
515
|
fileName: r ?? "data-table-export.pdf"
|
|
514
516
|
});
|
|
515
517
|
return;
|
|
516
518
|
}
|
|
517
519
|
if (t === "xlsx") {
|
|
518
|
-
|
|
520
|
+
_t(p, {
|
|
519
521
|
fileName: r ?? "data-table-export.xlsx"
|
|
520
522
|
});
|
|
521
523
|
return;
|
|
522
524
|
}
|
|
523
|
-
a == null || a(
|
|
525
|
+
a == null || a(p);
|
|
524
526
|
}, [t, r, a, s]);
|
|
525
|
-
return /* @__PURE__ */ n(
|
|
526
|
-
|
|
527
|
-
/* @__PURE__ */ n("span", { children: e ??
|
|
527
|
+
return /* @__PURE__ */ n(_.Item, { onSelect: i, children: /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
528
|
+
Kt(t),
|
|
529
|
+
/* @__PURE__ */ n("span", { children: e ?? Wt(o, t) })
|
|
528
530
|
] }) });
|
|
529
531
|
};
|
|
530
|
-
|
|
531
|
-
function
|
|
532
|
+
me.displayName = "DataTable.Toolbar.ExportMenu.Item";
|
|
533
|
+
function Ut(t) {
|
|
532
534
|
return t ? (t.getAllGridColumns() ?? []).map((a) => a.getColDef().hide === void 0 && a.getColId().startsWith("ag-Grid-") ? null : {
|
|
533
535
|
colId: a.getColId(),
|
|
534
536
|
displayName: t.getDisplayNameForColumn(a, null) || a.getColId(),
|
|
535
537
|
visible: a.isVisible()
|
|
536
538
|
}).filter((a) => a !== null) : [];
|
|
537
539
|
}
|
|
538
|
-
const
|
|
539
|
-
const { t: o } =
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
}, [
|
|
540
|
+
const He = ({ label: t, icon: e, footer: a, header: r }) => {
|
|
541
|
+
const { t: o } = F(), { getApi: s } = B("DataTable.Toolbar.ColumnToggle"), [i, p] = R(!1), [l, d] = R([]), [c, u] = R(null), [y, g] = R(null);
|
|
542
|
+
z(() => {
|
|
543
|
+
i && d(Ut(s()));
|
|
544
|
+
}, [i, s]);
|
|
543
545
|
const T = M(
|
|
544
|
-
(
|
|
546
|
+
(f, m) => {
|
|
545
547
|
const b = s();
|
|
546
|
-
b && (b.setColumnsVisible([
|
|
548
|
+
b && (b.setColumnsVisible([f], m), d(
|
|
547
549
|
(h) => h.map(
|
|
548
|
-
(w) => w.colId ===
|
|
550
|
+
(w) => w.colId === f ? { ...w, visible: m } : w
|
|
549
551
|
)
|
|
550
552
|
));
|
|
551
553
|
},
|
|
552
554
|
[s]
|
|
553
|
-
),
|
|
554
|
-
(
|
|
555
|
-
if (
|
|
555
|
+
), C = M(
|
|
556
|
+
(f, m) => {
|
|
557
|
+
if (f === m) return;
|
|
556
558
|
const b = s();
|
|
557
559
|
if (!b) return;
|
|
558
|
-
|
|
559
|
-
const
|
|
560
|
-
if (
|
|
561
|
-
const
|
|
562
|
-
return
|
|
560
|
+
d((w) => {
|
|
561
|
+
const A = w.findIndex((W) => W.colId === f), k = w.findIndex((W) => W.colId === m);
|
|
562
|
+
if (A < 0 || k < 0) return w;
|
|
563
|
+
const $ = [...w], [D] = $.splice(A, 1);
|
|
564
|
+
return $.splice(k, 0, D), $;
|
|
563
565
|
});
|
|
564
|
-
const h =
|
|
565
|
-
h >= 0 && b.moveColumns([
|
|
566
|
+
const h = l.findIndex((w) => w.colId === m);
|
|
567
|
+
h >= 0 && b.moveColumns([f], h);
|
|
566
568
|
},
|
|
567
|
-
[s,
|
|
569
|
+
[s, l]
|
|
568
570
|
), S = t ?? o("dataTable.columnToggle");
|
|
569
|
-
return /* @__PURE__ */ I(Z.Root, { open:
|
|
571
|
+
return /* @__PURE__ */ I(Z.Root, { open: i, onOpenChange: p, children: [
|
|
570
572
|
/* @__PURE__ */ n(Z.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
|
|
571
|
-
|
|
573
|
+
V,
|
|
572
574
|
{
|
|
573
575
|
type: "button",
|
|
574
576
|
intent: "outline",
|
|
575
|
-
icon: e ?? /* @__PURE__ */ n(
|
|
577
|
+
icon: e ?? /* @__PURE__ */ n(wt, { "aria-hidden": !0 }),
|
|
576
578
|
"aria-label": S,
|
|
577
579
|
"aria-haspopup": "dialog"
|
|
578
580
|
}
|
|
@@ -585,28 +587,28 @@ const Ke = ({ label: t, icon: e, footer: a, header: r }) => {
|
|
|
585
587
|
{
|
|
586
588
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
587
589
|
"aria-label": S,
|
|
588
|
-
children:
|
|
589
|
-
const m = c ===
|
|
590
|
+
children: l.map((f) => {
|
|
591
|
+
const m = c === f.colId, b = y === f.colId && c !== f.colId;
|
|
590
592
|
return /* @__PURE__ */ I(
|
|
591
593
|
"li",
|
|
592
594
|
{
|
|
593
595
|
draggable: !0,
|
|
594
596
|
onDragStart: (h) => {
|
|
595
|
-
|
|
597
|
+
u(f.colId), h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("text/plain", f.colId);
|
|
596
598
|
},
|
|
597
599
|
onDragOver: (h) => {
|
|
598
|
-
h.preventDefault(), h.dataTransfer.dropEffect = "move", g(
|
|
600
|
+
h.preventDefault(), h.dataTransfer.dropEffect = "move", g(f.colId);
|
|
599
601
|
},
|
|
600
602
|
onDragLeave: () => {
|
|
601
|
-
g((h) => h ===
|
|
603
|
+
g((h) => h === f.colId ? null : h);
|
|
602
604
|
},
|
|
603
605
|
onDrop: (h) => {
|
|
604
606
|
h.preventDefault();
|
|
605
607
|
const w = h.dataTransfer.getData("text/plain");
|
|
606
|
-
w &&
|
|
608
|
+
w && C(w, f.colId), u(null), g(null);
|
|
607
609
|
},
|
|
608
610
|
onDragEnd: () => {
|
|
609
|
-
|
|
611
|
+
u(null), g(null);
|
|
610
612
|
},
|
|
611
613
|
className: [
|
|
612
614
|
"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",
|
|
@@ -619,20 +621,20 @@ const Ke = ({ label: t, icon: e, footer: a, header: r }) => {
|
|
|
619
621
|
{
|
|
620
622
|
"aria-hidden": "true",
|
|
621
623
|
className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
|
|
622
|
-
children: /* @__PURE__ */ n(
|
|
624
|
+
children: /* @__PURE__ */ n(Nt, { className: "ds:size-4" })
|
|
623
625
|
}
|
|
624
626
|
),
|
|
625
627
|
/* @__PURE__ */ n(
|
|
626
|
-
|
|
628
|
+
Re,
|
|
627
629
|
{
|
|
628
|
-
label:
|
|
629
|
-
checked:
|
|
630
|
-
onCheckedChange: (h) => T(
|
|
630
|
+
label: f.displayName,
|
|
631
|
+
checked: f.visible,
|
|
632
|
+
onCheckedChange: (h) => T(f.colId, h === !0)
|
|
631
633
|
}
|
|
632
634
|
)
|
|
633
635
|
]
|
|
634
636
|
},
|
|
635
|
-
|
|
637
|
+
f.colId
|
|
636
638
|
);
|
|
637
639
|
})
|
|
638
640
|
}
|
|
@@ -641,22 +643,22 @@ const Ke = ({ label: t, icon: e, footer: a, header: r }) => {
|
|
|
641
643
|
] })
|
|
642
644
|
] });
|
|
643
645
|
};
|
|
644
|
-
|
|
645
|
-
const
|
|
646
|
-
({ label: t, icon: e, onClick: a, variant: r = "default", size: o = "sm", ...s },
|
|
647
|
-
const { t:
|
|
646
|
+
He.displayName = "DataTable.Toolbar.ColumnToggle";
|
|
647
|
+
const Qe = G(
|
|
648
|
+
({ label: t, icon: e, onClick: a, variant: r = "default", size: o = "sm", ...s }, i) => {
|
|
649
|
+
const { t: p } = F(), { getApi: l, selectionCount: d } = B(
|
|
648
650
|
"DataTable.Toolbar.BulkAction"
|
|
649
651
|
);
|
|
650
|
-
return
|
|
651
|
-
|
|
652
|
+
return d === 0 ? null : /* @__PURE__ */ I(
|
|
653
|
+
j,
|
|
652
654
|
{
|
|
653
|
-
ref:
|
|
655
|
+
ref: i,
|
|
654
656
|
type: "button",
|
|
655
657
|
intent: r === "destructive" ? "destructive" : "secondary",
|
|
656
658
|
size: o,
|
|
657
|
-
startIcon:
|
|
658
|
-
onClick: () => a(
|
|
659
|
-
"aria-label": `${t} (${
|
|
659
|
+
startIcon: Lt(e),
|
|
660
|
+
onClick: () => a(l()),
|
|
661
|
+
"aria-label": `${t} (${p("dataTable.bulkAction", { count: d })})`,
|
|
660
662
|
...s,
|
|
661
663
|
children: [
|
|
662
664
|
/* @__PURE__ */ n("span", { children: t }),
|
|
@@ -665,7 +667,7 @@ const We = L(
|
|
|
665
667
|
{
|
|
666
668
|
"aria-hidden": "true",
|
|
667
669
|
className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
|
|
668
|
-
children:
|
|
670
|
+
children: p("dataTable.bulkAction", { count: d })
|
|
669
671
|
}
|
|
670
672
|
)
|
|
671
673
|
]
|
|
@@ -673,32 +675,32 @@ const We = L(
|
|
|
673
675
|
);
|
|
674
676
|
}
|
|
675
677
|
);
|
|
676
|
-
|
|
677
|
-
const
|
|
678
|
-
Item:
|
|
679
|
-
}), ee = Object.assign(
|
|
680
|
-
FilterBar:
|
|
681
|
-
Actions:
|
|
678
|
+
Qe.displayName = "DataTable.Toolbar.BulkAction";
|
|
679
|
+
const Ht = Object.assign(Ue, {
|
|
680
|
+
Item: me
|
|
681
|
+
}), ee = Object.assign(Pe, {
|
|
682
|
+
FilterBar: Me,
|
|
683
|
+
Actions: qe,
|
|
682
684
|
/** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
|
|
683
|
-
ExportCsv:
|
|
685
|
+
ExportCsv: Le,
|
|
684
686
|
/** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
|
|
685
|
-
ExportPdf:
|
|
686
|
-
Print:
|
|
687
|
-
ColumnToggle:
|
|
688
|
-
BulkAction:
|
|
689
|
-
QuickSearch:
|
|
690
|
-
Refresh:
|
|
691
|
-
FilterChips:
|
|
692
|
-
FacetFilter:
|
|
693
|
-
ExportMenu:
|
|
694
|
-
}),
|
|
687
|
+
ExportPdf: Ge,
|
|
688
|
+
Print: Be,
|
|
689
|
+
ColumnToggle: He,
|
|
690
|
+
BulkAction: Qe,
|
|
691
|
+
QuickSearch: $e,
|
|
692
|
+
Refresh: _e,
|
|
693
|
+
FilterChips: Ve,
|
|
694
|
+
FacetFilter: We,
|
|
695
|
+
ExportMenu: Ht
|
|
696
|
+
}), Qt = [
|
|
695
697
|
"contains",
|
|
696
698
|
"equals",
|
|
697
699
|
"startsWith",
|
|
698
700
|
"endsWith",
|
|
699
701
|
"notContains"
|
|
700
702
|
];
|
|
701
|
-
function
|
|
703
|
+
function Jt(t) {
|
|
702
704
|
const e = new Intl.Collator(t, {
|
|
703
705
|
sensitivity: "base",
|
|
704
706
|
usage: "search"
|
|
@@ -721,20 +723,20 @@ function Wt(t) {
|
|
|
721
723
|
) === 0
|
|
722
724
|
};
|
|
723
725
|
}
|
|
724
|
-
function
|
|
726
|
+
function Xt(t) {
|
|
725
727
|
return t == null ? null : typeof t == "string" ? t : String(t);
|
|
726
728
|
}
|
|
727
|
-
function
|
|
728
|
-
const { model: e, onModelChange: a, getValue: r, placeholder: o, defaultOperator: s } = t, { t:
|
|
729
|
-
|
|
730
|
-
|
|
729
|
+
function Zt(t) {
|
|
730
|
+
const { model: e, onModelChange: a, getValue: r, placeholder: o, defaultOperator: s } = t, { t: i } = F("ui"), p = (e == null ? void 0 : e.type) ?? s ?? "contains", [l, d] = R(p), [c, u] = R((e == null ? void 0 : e.filter) ?? "");
|
|
731
|
+
z(() => {
|
|
732
|
+
d((e == null ? void 0 : e.type) ?? s ?? "contains"), u((e == null ? void 0 : e.filter) ?? "");
|
|
731
733
|
}, [e, s]);
|
|
732
|
-
const y =
|
|
734
|
+
const y = E(() => Jt(Dt.language), []);
|
|
733
735
|
X({
|
|
734
|
-
doesFilterPass: (
|
|
736
|
+
doesFilterPass: (f) => {
|
|
735
737
|
const m = e;
|
|
736
738
|
if (!m || m.filter === "") return !0;
|
|
737
|
-
const b =
|
|
739
|
+
const b = Xt(r(f.node));
|
|
738
740
|
if (b === null) return !1;
|
|
739
741
|
switch (m.type) {
|
|
740
742
|
case "equals":
|
|
@@ -757,17 +759,17 @@ function Ht(t) {
|
|
|
757
759
|
a(null);
|
|
758
760
|
return;
|
|
759
761
|
}
|
|
760
|
-
a({ type:
|
|
762
|
+
a({ type: l, filter: c });
|
|
761
763
|
}
|
|
762
764
|
function T() {
|
|
763
|
-
|
|
765
|
+
u(""), d(s ?? "contains"), a(null);
|
|
764
766
|
}
|
|
765
|
-
const
|
|
766
|
-
(
|
|
767
|
-
value:
|
|
768
|
-
label:
|
|
767
|
+
const C = Qt.map(
|
|
768
|
+
(f) => ({
|
|
769
|
+
value: f,
|
|
770
|
+
label: i(`dataTable.textFilter.operators.${f}`)
|
|
769
771
|
})
|
|
770
|
-
), S = o ??
|
|
772
|
+
), S = o ?? i("dataTable.textFilter.placeholder");
|
|
771
773
|
return /* @__PURE__ */ I(
|
|
772
774
|
"div",
|
|
773
775
|
{
|
|
@@ -775,81 +777,81 @@ function Ht(t) {
|
|
|
775
777
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
776
778
|
children: [
|
|
777
779
|
/* @__PURE__ */ n(
|
|
778
|
-
|
|
780
|
+
ke,
|
|
779
781
|
{
|
|
780
782
|
size: "sm",
|
|
781
|
-
options:
|
|
782
|
-
value:
|
|
783
|
-
onValueChange: (
|
|
784
|
-
|
|
783
|
+
options: C,
|
|
784
|
+
value: l,
|
|
785
|
+
onValueChange: (f) => {
|
|
786
|
+
f !== "" && d(f);
|
|
785
787
|
},
|
|
786
|
-
"aria-label":
|
|
788
|
+
"aria-label": i("dataTable.textFilter.operators.contains")
|
|
787
789
|
}
|
|
788
790
|
),
|
|
789
791
|
/* @__PURE__ */ n(
|
|
790
|
-
|
|
792
|
+
pe,
|
|
791
793
|
{
|
|
792
794
|
size: "sm",
|
|
793
795
|
value: c,
|
|
794
|
-
onChange: (
|
|
795
|
-
onKeyDown: (
|
|
796
|
-
|
|
796
|
+
onChange: (f) => u(f.target.value),
|
|
797
|
+
onKeyDown: (f) => {
|
|
798
|
+
f.key === "Enter" && (f.preventDefault(), g());
|
|
797
799
|
},
|
|
798
800
|
placeholder: S,
|
|
799
801
|
"aria-label": S,
|
|
800
|
-
startAdornment: /* @__PURE__ */ n(
|
|
802
|
+
startAdornment: /* @__PURE__ */ n(fe, { "aria-hidden": "true", className: "ds:size-4" })
|
|
801
803
|
}
|
|
802
804
|
),
|
|
803
805
|
/* @__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(
|
|
805
|
-
/* @__PURE__ */ n(
|
|
806
|
+
/* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: T, type: "button", children: i("dataTable.textFilter.clear") }),
|
|
807
|
+
/* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: g, type: "button", children: i("dataTable.textFilter.apply") })
|
|
806
808
|
] })
|
|
807
809
|
]
|
|
808
810
|
}
|
|
809
811
|
);
|
|
810
812
|
}
|
|
811
|
-
function
|
|
812
|
-
var
|
|
813
|
-
const { model: e, onModelChange: a, column: r } = t, { t: o } =
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
}, [e == null ? void 0 : e.filter]),
|
|
817
|
-
if (
|
|
813
|
+
function Yt(t) {
|
|
814
|
+
var u, y;
|
|
815
|
+
const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((y = (u = r == null ? void 0 : r.getColDef) == null ? void 0 : u.call(r)) == null ? void 0 : y.filterParams) ?? {}, i = s.defaultOperator ?? "contains", p = s.placeholder ?? o("dataTable.textFilter.placeholder"), [l, d] = R((e == null ? void 0 : e.filter) ?? "");
|
|
816
|
+
z(() => {
|
|
817
|
+
d((e == null ? void 0 : e.filter) ?? "");
|
|
818
|
+
}, [e == null ? void 0 : e.filter]), z(() => {
|
|
819
|
+
if (l === ((e == null ? void 0 : e.filter) ?? "")) return;
|
|
818
820
|
const g = setTimeout(() => {
|
|
819
|
-
if (
|
|
821
|
+
if (l === "") {
|
|
820
822
|
e && a(null);
|
|
821
823
|
return;
|
|
822
824
|
}
|
|
823
|
-
a({ type:
|
|
825
|
+
a({ type: i, filter: l });
|
|
824
826
|
}, 200);
|
|
825
827
|
return () => clearTimeout(g);
|
|
826
|
-
}, [
|
|
828
|
+
}, [l, i, e, a]);
|
|
827
829
|
function c() {
|
|
828
|
-
|
|
830
|
+
d(""), e && a(null);
|
|
829
831
|
}
|
|
830
832
|
return /* @__PURE__ */ n("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
|
|
831
|
-
|
|
833
|
+
pe,
|
|
832
834
|
{
|
|
833
835
|
size: "sm",
|
|
834
|
-
value:
|
|
835
|
-
onChange: (g) =>
|
|
836
|
-
placeholder:
|
|
837
|
-
"aria-label":
|
|
838
|
-
startAdornment: /* @__PURE__ */ n(
|
|
839
|
-
endAdornment:
|
|
836
|
+
value: l,
|
|
837
|
+
onChange: (g) => d(g.target.value),
|
|
838
|
+
placeholder: p,
|
|
839
|
+
"aria-label": p,
|
|
840
|
+
startAdornment: /* @__PURE__ */ n(fe, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
841
|
+
endAdornment: l.length > 0 ? /* @__PURE__ */ n(
|
|
840
842
|
"button",
|
|
841
843
|
{
|
|
842
844
|
type: "button",
|
|
843
845
|
"aria-label": o("dataTable.textFilter.clear"),
|
|
844
846
|
onClick: c,
|
|
845
847
|
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(
|
|
848
|
+
children: /* @__PURE__ */ n(De, { "aria-hidden": "true", className: "ds:size-4" })
|
|
847
849
|
}
|
|
848
850
|
) : void 0
|
|
849
851
|
}
|
|
850
852
|
) });
|
|
851
853
|
}
|
|
852
|
-
const
|
|
854
|
+
const ea = {
|
|
853
855
|
id: "data-table",
|
|
854
856
|
capabilities: [
|
|
855
857
|
"select_single",
|
|
@@ -1041,8 +1043,8 @@ const Jt = {
|
|
|
1041
1043
|
}
|
|
1042
1044
|
}
|
|
1043
1045
|
};
|
|
1044
|
-
|
|
1045
|
-
const
|
|
1046
|
+
Ct.registerModules([xt]);
|
|
1047
|
+
const ta = Tt("ag-theme-alfadocs ds:w-full", {
|
|
1046
1048
|
variants: {
|
|
1047
1049
|
density: {
|
|
1048
1050
|
default: "",
|
|
@@ -1059,9 +1061,9 @@ const Xt = bt("ag-theme-alfadocs ds:w-full", {
|
|
|
1059
1061
|
bordered: !0
|
|
1060
1062
|
}
|
|
1061
1063
|
});
|
|
1062
|
-
function
|
|
1063
|
-
const { t } =
|
|
1064
|
-
return
|
|
1064
|
+
function aa() {
|
|
1065
|
+
const { t } = F();
|
|
1066
|
+
return E(
|
|
1065
1067
|
() => ({
|
|
1066
1068
|
// Filter strings
|
|
1067
1069
|
contains: t("dataTable.agGrid.contains"),
|
|
@@ -1093,7 +1095,7 @@ function Zt() {
|
|
|
1093
1095
|
[t]
|
|
1094
1096
|
);
|
|
1095
1097
|
}
|
|
1096
|
-
function
|
|
1098
|
+
function ra() {
|
|
1097
1099
|
return /* @__PURE__ */ n(
|
|
1098
1100
|
"div",
|
|
1099
1101
|
{
|
|
@@ -1101,7 +1103,7 @@ function Yt() {
|
|
|
1101
1103
|
"aria-live": "polite",
|
|
1102
1104
|
className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
|
|
1103
1105
|
children: Array.from({ length: 5 }).map((t, e) => /* @__PURE__ */ n(
|
|
1104
|
-
|
|
1106
|
+
ht,
|
|
1105
1107
|
{
|
|
1106
1108
|
variant: "rectangular",
|
|
1107
1109
|
className: "ds:h-[var(--min-target-size)] ds:w-full"
|
|
@@ -1111,10 +1113,10 @@ function Yt() {
|
|
|
1111
1113
|
}
|
|
1112
1114
|
);
|
|
1113
1115
|
}
|
|
1114
|
-
function
|
|
1115
|
-
const { t } =
|
|
1116
|
+
function na() {
|
|
1117
|
+
const { t } = F();
|
|
1116
1118
|
return /* @__PURE__ */ n(
|
|
1117
|
-
|
|
1119
|
+
vt,
|
|
1118
1120
|
{
|
|
1119
1121
|
variant: "no-results",
|
|
1120
1122
|
size: "sm",
|
|
@@ -1123,7 +1125,7 @@ function ea() {
|
|
|
1123
1125
|
}
|
|
1124
1126
|
);
|
|
1125
1127
|
}
|
|
1126
|
-
function
|
|
1128
|
+
function oa(t) {
|
|
1127
1129
|
try {
|
|
1128
1130
|
const e = localStorage.getItem(`data-table-col-state:${t}`);
|
|
1129
1131
|
return e ? JSON.parse(e) : null;
|
|
@@ -1131,7 +1133,7 @@ function ta(t) {
|
|
|
1131
1133
|
return null;
|
|
1132
1134
|
}
|
|
1133
1135
|
}
|
|
1134
|
-
function
|
|
1136
|
+
function sa(t, e) {
|
|
1135
1137
|
try {
|
|
1136
1138
|
localStorage.setItem(
|
|
1137
1139
|
`data-table-col-state:${t}`,
|
|
@@ -1140,146 +1142,146 @@ function aa(t, e) {
|
|
|
1140
1142
|
} catch {
|
|
1141
1143
|
}
|
|
1142
1144
|
}
|
|
1143
|
-
function
|
|
1145
|
+
function ia(t, e) {
|
|
1144
1146
|
const {
|
|
1145
1147
|
columnDefs: a,
|
|
1146
1148
|
rowData: r,
|
|
1147
1149
|
rowSelection: o,
|
|
1148
1150
|
pagination: s = !1,
|
|
1149
|
-
paginationPageSize:
|
|
1150
|
-
paginationPageSizeSelector:
|
|
1151
|
-
gridId:
|
|
1152
|
-
onSelectionChanged:
|
|
1151
|
+
paginationPageSize: i = 25,
|
|
1152
|
+
paginationPageSizeSelector: p = [10, 25, 50, 100],
|
|
1153
|
+
gridId: l,
|
|
1154
|
+
onSelectionChanged: d,
|
|
1153
1155
|
onSortChanged: c,
|
|
1154
|
-
onFilterChanged:
|
|
1156
|
+
onFilterChanged: u,
|
|
1155
1157
|
noRowsOverlay: y,
|
|
1156
1158
|
loadingOverlay: g,
|
|
1157
1159
|
gridOptions: T,
|
|
1158
|
-
density:
|
|
1160
|
+
density: C,
|
|
1159
1161
|
bordered: S,
|
|
1160
|
-
heightClass:
|
|
1162
|
+
heightClass: f = "ds:h-[500px]",
|
|
1161
1163
|
className: m,
|
|
1162
1164
|
getRowClass: b,
|
|
1163
1165
|
pinnedBottomRowData: h,
|
|
1164
1166
|
printMode: w = !1,
|
|
1165
|
-
children:
|
|
1166
|
-
} = t, { t: k, i18n:
|
|
1167
|
+
children: A
|
|
1168
|
+
} = t, { t: k, i18n: $ } = F(), D = xe(null), [W, Xe] = R(0), [ne, oe] = R(""), Ze = aa(), se = E(
|
|
1167
1169
|
() => ({
|
|
1168
1170
|
getSelection: () => {
|
|
1169
|
-
var
|
|
1170
|
-
const v = (
|
|
1171
|
+
var N;
|
|
1172
|
+
const v = (N = D.current) == null ? void 0 : N.api;
|
|
1171
1173
|
if (!v) return [];
|
|
1172
|
-
const
|
|
1173
|
-
for (const
|
|
1174
|
-
|
|
1175
|
-
return
|
|
1174
|
+
const x = [];
|
|
1175
|
+
for (const P of v.getSelectedNodes())
|
|
1176
|
+
P.id != null && x.push(P.id);
|
|
1177
|
+
return x;
|
|
1176
1178
|
},
|
|
1177
1179
|
setSelection: (v) => {
|
|
1178
|
-
var
|
|
1179
|
-
const
|
|
1180
|
-
if (!
|
|
1181
|
-
const
|
|
1182
|
-
|
|
1183
|
-
|
|
1180
|
+
var P;
|
|
1181
|
+
const x = (P = D.current) == null ? void 0 : P.api;
|
|
1182
|
+
if (!x) return;
|
|
1183
|
+
const N = new Set(v);
|
|
1184
|
+
x.forEachNode((O) => {
|
|
1185
|
+
O.id != null && O.setSelected(N.has(O.id));
|
|
1184
1186
|
});
|
|
1185
1187
|
},
|
|
1186
|
-
selectRange: (v,
|
|
1187
|
-
var
|
|
1188
|
-
const
|
|
1189
|
-
if (!
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1192
|
-
U.id != null &&
|
|
1188
|
+
selectRange: (v, x) => {
|
|
1189
|
+
var be;
|
|
1190
|
+
const N = (be = D.current) == null ? void 0 : be.api;
|
|
1191
|
+
if (!N) return;
|
|
1192
|
+
const P = [];
|
|
1193
|
+
N.forEachNodeAfterFilterAndSort((U) => {
|
|
1194
|
+
U.id != null && P.push(U.id);
|
|
1193
1195
|
});
|
|
1194
|
-
const
|
|
1195
|
-
if (
|
|
1196
|
-
const [
|
|
1197
|
-
|
|
1196
|
+
const O = P.indexOf(v), q = P.indexOf(x);
|
|
1197
|
+
if (O < 0 || q < 0) return;
|
|
1198
|
+
const [K, le] = O <= q ? [O, q] : [q, O], ce = new Set(P.slice(K, le + 1));
|
|
1199
|
+
N.forEachNode((U) => {
|
|
1198
1200
|
U.id != null && U.setSelected(ce.has(U.id));
|
|
1199
1201
|
});
|
|
1200
1202
|
},
|
|
1201
1203
|
clearSelection: () => {
|
|
1202
|
-
var v,
|
|
1203
|
-
(
|
|
1204
|
+
var v, x;
|
|
1205
|
+
(x = (v = D.current) == null ? void 0 : v.api) == null || x.deselectAll();
|
|
1204
1206
|
},
|
|
1205
1207
|
getFilter: () => {
|
|
1206
|
-
var v,
|
|
1207
|
-
return ((
|
|
1208
|
+
var v, x;
|
|
1209
|
+
return ((x = (v = D.current) == null ? void 0 : v.api) == null ? void 0 : x.getFilterModel()) ?? {};
|
|
1208
1210
|
},
|
|
1209
1211
|
setFilter: (v) => {
|
|
1210
|
-
var
|
|
1211
|
-
(
|
|
1212
|
+
var x, N;
|
|
1213
|
+
(N = (x = D.current) == null ? void 0 : x.api) == null || N.setFilterModel(v);
|
|
1212
1214
|
},
|
|
1213
1215
|
getSort: () => {
|
|
1214
|
-
var
|
|
1215
|
-
const v = (
|
|
1216
|
-
return v ? v.getColumnState().filter((
|
|
1216
|
+
var x;
|
|
1217
|
+
const v = (x = D.current) == null ? void 0 : x.api;
|
|
1218
|
+
return v ? v.getColumnState().filter((N) => N.sort === "asc" || N.sort === "desc").map((N) => ({ colId: N.colId, sort: N.sort })) : [];
|
|
1217
1219
|
},
|
|
1218
1220
|
setSort: (v) => {
|
|
1219
|
-
var
|
|
1220
|
-
const
|
|
1221
|
-
if (!
|
|
1222
|
-
const
|
|
1223
|
-
const q = v.find((
|
|
1224
|
-
return { ...
|
|
1221
|
+
var P;
|
|
1222
|
+
const x = (P = D.current) == null ? void 0 : P.api;
|
|
1223
|
+
if (!x) return;
|
|
1224
|
+
const N = x.getColumnState().map((O) => {
|
|
1225
|
+
const q = v.find((K) => K.colId === O.colId);
|
|
1226
|
+
return { ...O, sort: q ? q.sort : null };
|
|
1225
1227
|
});
|
|
1226
|
-
|
|
1228
|
+
x.applyColumnState({ state: N, defaultState: { sort: null } });
|
|
1227
1229
|
},
|
|
1228
1230
|
getCurrentPage: () => {
|
|
1229
|
-
var v,
|
|
1230
|
-
return ((
|
|
1231
|
+
var v, x;
|
|
1232
|
+
return ((x = (v = D.current) == null ? void 0 : v.api) == null ? void 0 : x.paginationGetCurrentPage()) ?? 0;
|
|
1231
1233
|
},
|
|
1232
1234
|
goToPage: (v) => {
|
|
1233
|
-
var
|
|
1234
|
-
(
|
|
1235
|
+
var x, N;
|
|
1236
|
+
(N = (x = D.current) == null ? void 0 : x.api) == null || N.paginationGoToPage(v);
|
|
1235
1237
|
},
|
|
1236
1238
|
getRawApi: () => {
|
|
1237
1239
|
var v;
|
|
1238
|
-
return (v =
|
|
1240
|
+
return (v = D.current) == null ? void 0 : v.api;
|
|
1239
1241
|
}
|
|
1240
1242
|
}),
|
|
1241
1243
|
[]
|
|
1242
1244
|
);
|
|
1243
|
-
|
|
1244
|
-
const
|
|
1245
|
+
bt(e, () => se, [se]), It(ea, se, l);
|
|
1246
|
+
const Ye = $.dir() === "rtl", et = r === void 0, tt = kt(), { resolvedTheme: ge } = Et(), at = (ge === "light-accessible" || ge === "dark-accessible") && C === "compact" ? "default" : C, rt = E(() => {
|
|
1245
1247
|
if (o)
|
|
1246
1248
|
return o === "single" ? { mode: "singleRow" } : {
|
|
1247
1249
|
mode: "multiRow",
|
|
1248
1250
|
headerCheckbox: !0,
|
|
1249
1251
|
checkboxes: !0
|
|
1250
1252
|
};
|
|
1251
|
-
}, [o]),
|
|
1252
|
-
var
|
|
1253
|
-
if (!
|
|
1254
|
-
const v =
|
|
1255
|
-
v &&
|
|
1253
|
+
}, [o]), nt = M(() => {
|
|
1254
|
+
var x;
|
|
1255
|
+
if (!l || !((x = D.current) != null && x.api)) return;
|
|
1256
|
+
const v = oa(l);
|
|
1257
|
+
v && D.current.api.applyColumnState({
|
|
1256
1258
|
state: v,
|
|
1257
1259
|
applyOrder: !0
|
|
1258
1260
|
});
|
|
1259
|
-
}, [
|
|
1261
|
+
}, [l]), ie = M(() => {
|
|
1260
1262
|
var v;
|
|
1261
|
-
|
|
1262
|
-
}, [
|
|
1263
|
+
l && ((v = D.current) != null && v.api) && sa(l, D.current.api);
|
|
1264
|
+
}, [l]), ot = E(() => {
|
|
1263
1265
|
if (!T) return;
|
|
1264
1266
|
const v = { ...T };
|
|
1265
1267
|
return delete v.defaultColDef, v;
|
|
1266
|
-
}, [T]),
|
|
1267
|
-
var
|
|
1268
|
-
const v = (
|
|
1268
|
+
}, [T]), st = M(() => {
|
|
1269
|
+
var N;
|
|
1270
|
+
const v = (N = D.current) == null ? void 0 : N.api;
|
|
1269
1271
|
if (!v) return;
|
|
1270
|
-
const
|
|
1271
|
-
|
|
1272
|
-
}, [
|
|
1272
|
+
const x = v.getSelectedRows();
|
|
1273
|
+
Xe(x.length), d == null || d(x);
|
|
1274
|
+
}, [d]), it = M(
|
|
1273
1275
|
(v) => {
|
|
1274
|
-
var
|
|
1275
|
-
const
|
|
1276
|
-
if (
|
|
1277
|
-
const
|
|
1278
|
-
if (
|
|
1279
|
-
const q =
|
|
1276
|
+
var N;
|
|
1277
|
+
const x = (N = D.current) == null ? void 0 : N.api;
|
|
1278
|
+
if (x) {
|
|
1279
|
+
const O = x.getColumnState().find((q) => q.sort);
|
|
1280
|
+
if (O) {
|
|
1281
|
+
const q = O.colId, K = x.getColumnDef(q), le = (K == null ? void 0 : K.headerName) ?? q, ce = O.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
|
|
1280
1282
|
oe(
|
|
1281
1283
|
k("dataTable.sortAnnounce", {
|
|
1282
|
-
column:
|
|
1284
|
+
column: le,
|
|
1283
1285
|
direction: k(ce)
|
|
1284
1286
|
})
|
|
1285
1287
|
);
|
|
@@ -1289,56 +1291,56 @@ function ra(t, e) {
|
|
|
1289
1291
|
c == null || c(v);
|
|
1290
1292
|
},
|
|
1291
1293
|
[c, k]
|
|
1292
|
-
),
|
|
1294
|
+
), lt = M(
|
|
1293
1295
|
(v) => {
|
|
1294
|
-
|
|
1296
|
+
u == null || u(v);
|
|
1295
1297
|
},
|
|
1296
|
-
[
|
|
1298
|
+
[u]
|
|
1297
1299
|
);
|
|
1298
|
-
|
|
1300
|
+
z(() => {
|
|
1299
1301
|
if (!ne) return;
|
|
1300
1302
|
const v = setTimeout(() => oe(""), 3e3);
|
|
1301
1303
|
return () => clearTimeout(v);
|
|
1302
1304
|
}, [ne]);
|
|
1303
|
-
const
|
|
1305
|
+
const ct = y ?? na, dt = g ?? ra, ut = M(
|
|
1304
1306
|
() => {
|
|
1305
1307
|
var v;
|
|
1306
|
-
return (v =
|
|
1308
|
+
return (v = D.current) == null ? void 0 : v.api;
|
|
1307
1309
|
},
|
|
1308
1310
|
[]
|
|
1309
|
-
),
|
|
1311
|
+
), pt = M(() => {
|
|
1310
1312
|
typeof window < "u" && window.print();
|
|
1311
|
-
}, []),
|
|
1312
|
-
density:
|
|
1313
|
+
}, []), ft = ta({
|
|
1314
|
+
density: at,
|
|
1313
1315
|
bordered: S,
|
|
1314
1316
|
className: m
|
|
1315
|
-
}),
|
|
1317
|
+
}), mt = A ?? /* @__PURE__ */ n(ee, { children: /* @__PURE__ */ n(ee.Actions, { children: /* @__PURE__ */ n(ee.ExportMenu, {}) }) }), gt = w ? !1 : s;
|
|
1316
1318
|
return /* @__PURE__ */ I(
|
|
1317
1319
|
"div",
|
|
1318
1320
|
{
|
|
1319
1321
|
className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1320
|
-
"aria-busy":
|
|
1322
|
+
"aria-busy": et ? "true" : void 0,
|
|
1321
1323
|
"data-component": "data-table",
|
|
1322
|
-
"data-component-id":
|
|
1324
|
+
"data-component-id": l,
|
|
1323
1325
|
"data-print-mode": w ? "true" : void 0,
|
|
1324
1326
|
children: [
|
|
1325
1327
|
!w && /* @__PURE__ */ n(
|
|
1326
|
-
|
|
1328
|
+
jt,
|
|
1327
1329
|
{
|
|
1328
|
-
getApi:
|
|
1329
|
-
selectionCount:
|
|
1330
|
-
onPrint:
|
|
1331
|
-
children:
|
|
1330
|
+
getApi: ut,
|
|
1331
|
+
selectionCount: W,
|
|
1332
|
+
onPrint: pt,
|
|
1333
|
+
children: mt
|
|
1332
1334
|
}
|
|
1333
1335
|
),
|
|
1334
1336
|
/* @__PURE__ */ n(
|
|
1335
1337
|
"div",
|
|
1336
1338
|
{
|
|
1337
|
-
className: [
|
|
1339
|
+
className: [ft, w ? "" : f].join(" ").trim(),
|
|
1338
1340
|
children: /* @__PURE__ */ n(
|
|
1339
|
-
|
|
1341
|
+
yt,
|
|
1340
1342
|
{
|
|
1341
|
-
ref:
|
|
1343
|
+
ref: D,
|
|
1342
1344
|
theme: "legacy",
|
|
1343
1345
|
columnDefs: a,
|
|
1344
1346
|
rowData: r,
|
|
@@ -1349,8 +1351,8 @@ function ra(t, e) {
|
|
|
1349
1351
|
// language instead of AG Grid's stock browser-skinned input.
|
|
1350
1352
|
// Number / date / select columns opt into their dedicated
|
|
1351
1353
|
// wrapper per-column.
|
|
1352
|
-
filter:
|
|
1353
|
-
floatingFilterComponent:
|
|
1354
|
+
filter: Zt,
|
|
1355
|
+
floatingFilterComponent: Yt,
|
|
1354
1356
|
resizable: !0,
|
|
1355
1357
|
floatingFilter: !0,
|
|
1356
1358
|
// §13d — faint sort icon advertises which columns are
|
|
@@ -1358,13 +1360,13 @@ function ra(t, e) {
|
|
|
1358
1360
|
unSortIcon: !0,
|
|
1359
1361
|
...T == null ? void 0 : T.defaultColDef
|
|
1360
1362
|
},
|
|
1361
|
-
rowSelection:
|
|
1362
|
-
pagination:
|
|
1363
|
-
paginationPageSize:
|
|
1364
|
-
paginationPageSizeSelector:
|
|
1365
|
-
paginationNumberFormatter: (v) => new Intl.NumberFormat(
|
|
1366
|
-
animateRows: !
|
|
1367
|
-
enableRtl:
|
|
1363
|
+
rowSelection: rt,
|
|
1364
|
+
pagination: gt,
|
|
1365
|
+
paginationPageSize: i,
|
|
1366
|
+
paginationPageSizeSelector: p,
|
|
1367
|
+
paginationNumberFormatter: (v) => new Intl.NumberFormat($.language).format(v.value),
|
|
1368
|
+
animateRows: !tt,
|
|
1369
|
+
enableRtl: Ye,
|
|
1368
1370
|
ensureDomOrder: !0,
|
|
1369
1371
|
enableCellSpan: !0,
|
|
1370
1372
|
enableCellTextSelection: !0,
|
|
@@ -1382,90 +1384,90 @@ function ra(t, e) {
|
|
|
1382
1384
|
undoRedoCellEditingLimit: 20,
|
|
1383
1385
|
suppressCellFocus: !1,
|
|
1384
1386
|
rowBuffer: 10,
|
|
1385
|
-
localeText:
|
|
1386
|
-
noRowsOverlayComponent:
|
|
1387
|
-
loadingOverlayComponent:
|
|
1387
|
+
localeText: Ze,
|
|
1388
|
+
noRowsOverlayComponent: ct,
|
|
1389
|
+
loadingOverlayComponent: dt,
|
|
1388
1390
|
getRowClass: b,
|
|
1389
1391
|
pinnedBottomRowData: h,
|
|
1390
1392
|
domLayout: w ? "autoHeight" : void 0,
|
|
1391
|
-
onGridReady:
|
|
1392
|
-
onColumnMoved:
|
|
1393
|
-
onColumnResized:
|
|
1394
|
-
onColumnPinned:
|
|
1395
|
-
onSortChanged:
|
|
1396
|
-
onFilterChanged:
|
|
1397
|
-
onSelectionChanged:
|
|
1398
|
-
...
|
|
1393
|
+
onGridReady: nt,
|
|
1394
|
+
onColumnMoved: ie,
|
|
1395
|
+
onColumnResized: ie,
|
|
1396
|
+
onColumnPinned: ie,
|
|
1397
|
+
onSortChanged: it,
|
|
1398
|
+
onFilterChanged: lt,
|
|
1399
|
+
onSelectionChanged: st,
|
|
1400
|
+
...ot
|
|
1399
1401
|
}
|
|
1400
1402
|
)
|
|
1401
1403
|
}
|
|
1402
1404
|
),
|
|
1403
|
-
!w && /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children:
|
|
1405
|
+
!w && /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: W > 0 ? /* @__PURE__ */ n("span", { children: k("dataTable.selected", { count: W }) }) : /* @__PURE__ */ n("span", {}) }),
|
|
1404
1406
|
/* @__PURE__ */ n("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: ne })
|
|
1405
1407
|
]
|
|
1406
1408
|
}
|
|
1407
1409
|
);
|
|
1408
1410
|
}
|
|
1409
|
-
const
|
|
1410
|
-
|
|
1411
|
-
const
|
|
1411
|
+
const Je = G(ia);
|
|
1412
|
+
Je.displayName = "DataTable";
|
|
1413
|
+
const sr = Object.assign(Je, {
|
|
1412
1414
|
Toolbar: ee
|
|
1413
1415
|
});
|
|
1414
1416
|
function re(t) {
|
|
1415
1417
|
return t ? t.toISOString().slice(0, 10) : null;
|
|
1416
1418
|
}
|
|
1417
|
-
function
|
|
1419
|
+
function L(t) {
|
|
1418
1420
|
if (!t) return;
|
|
1419
1421
|
const e = new Date(t);
|
|
1420
1422
|
return Number.isNaN(e.getTime()) ? void 0 : e;
|
|
1421
1423
|
}
|
|
1422
|
-
function
|
|
1423
|
-
const { model: e, onModelChange: a, getValue: r, doesRowPassOtherFilter: o } = t, [s,
|
|
1424
|
-
from:
|
|
1425
|
-
to:
|
|
1424
|
+
function ir(t) {
|
|
1425
|
+
const { model: e, onModelChange: a, getValue: r, doesRowPassOtherFilter: o } = t, [s, i] = R(() => ({
|
|
1426
|
+
from: L(e == null ? void 0 : e.dateFrom),
|
|
1427
|
+
to: L(e == null ? void 0 : e.dateTo)
|
|
1426
1428
|
}));
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
from:
|
|
1430
|
-
to:
|
|
1429
|
+
z(() => {
|
|
1430
|
+
i({
|
|
1431
|
+
from: L(e == null ? void 0 : e.dateFrom),
|
|
1432
|
+
to: L(e == null ? void 0 : e.dateTo)
|
|
1431
1433
|
});
|
|
1432
1434
|
}, [e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo]), X({
|
|
1433
|
-
doesFilterPass: (
|
|
1434
|
-
const
|
|
1435
|
-
if (!
|
|
1436
|
-
const
|
|
1437
|
-
if (!
|
|
1438
|
-
const y =
|
|
1439
|
-
return !(!y ||
|
|
1435
|
+
doesFilterPass: (l) => {
|
|
1436
|
+
const d = L(e == null ? void 0 : e.dateFrom), c = L(e == null ? void 0 : e.dateTo);
|
|
1437
|
+
if (!d && !c) return !0;
|
|
1438
|
+
const u = r(l.node);
|
|
1439
|
+
if (!u) return !1;
|
|
1440
|
+
const y = u instanceof Date ? u : L(String(u));
|
|
1441
|
+
return !(!y || d && y < d || c && y > c);
|
|
1440
1442
|
}
|
|
1441
1443
|
});
|
|
1442
|
-
function
|
|
1443
|
-
if (l
|
|
1444
|
+
function p(l) {
|
|
1445
|
+
if (i(l), !l.from && !l.to) {
|
|
1444
1446
|
a(null);
|
|
1445
1447
|
return;
|
|
1446
1448
|
}
|
|
1447
1449
|
a({
|
|
1448
1450
|
type: "inRange",
|
|
1449
|
-
dateFrom: re(
|
|
1450
|
-
dateTo: re(
|
|
1451
|
+
dateFrom: re(l.from),
|
|
1452
|
+
dateTo: re(l.to)
|
|
1451
1453
|
});
|
|
1452
1454
|
}
|
|
1453
|
-
return /* @__PURE__ */ n("div", { className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]", children: /* @__PURE__ */ n(
|
|
1455
|
+
return /* @__PURE__ */ n("div", { className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]", children: /* @__PURE__ */ n(Ee, { value: s, onChange: p, size: "sm" }) });
|
|
1454
1456
|
}
|
|
1455
|
-
function
|
|
1456
|
-
var
|
|
1457
|
-
const { model: e, onModelChange: a, column: r } = t, o = ((
|
|
1458
|
-
from:
|
|
1459
|
-
to:
|
|
1457
|
+
function lr(t) {
|
|
1458
|
+
var l, d;
|
|
1459
|
+
const { model: e, onModelChange: a, column: r } = t, o = ((d = (l = r == null ? void 0 : r.getColDef) == null ? void 0 : l.call(r)) == null ? void 0 : d.filterParams) ?? {}, [s, i] = R(() => ({
|
|
1460
|
+
from: L(e == null ? void 0 : e.dateFrom),
|
|
1461
|
+
to: L(e == null ? void 0 : e.dateTo)
|
|
1460
1462
|
}));
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
from:
|
|
1464
|
-
to:
|
|
1463
|
+
z(() => {
|
|
1464
|
+
i({
|
|
1465
|
+
from: L(e == null ? void 0 : e.dateFrom),
|
|
1466
|
+
to: L(e == null ? void 0 : e.dateTo)
|
|
1465
1467
|
});
|
|
1466
1468
|
}, [e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo]);
|
|
1467
|
-
function
|
|
1468
|
-
if (
|
|
1469
|
+
function p(c) {
|
|
1470
|
+
if (i(c), !c.from && !c.to) {
|
|
1469
1471
|
a(null);
|
|
1470
1472
|
return;
|
|
1471
1473
|
}
|
|
@@ -1476,10 +1478,10 @@ function Ja(t) {
|
|
|
1476
1478
|
});
|
|
1477
1479
|
}
|
|
1478
1480
|
return /* @__PURE__ */ n("div", { "data-component": "date-range-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
|
|
1479
|
-
|
|
1481
|
+
Ee,
|
|
1480
1482
|
{
|
|
1481
1483
|
value: s,
|
|
1482
|
-
onChange:
|
|
1484
|
+
onChange: p,
|
|
1483
1485
|
size: "sm",
|
|
1484
1486
|
placeholder: o.placeholder
|
|
1485
1487
|
}
|
|
@@ -1488,128 +1490,128 @@ function Ja(t) {
|
|
|
1488
1490
|
function H(t) {
|
|
1489
1491
|
return typeof t == "number" ? `n:${t}` : `s:${t}`;
|
|
1490
1492
|
}
|
|
1491
|
-
function
|
|
1492
|
-
const { model: e, onModelChange: a, getValue: r, api: o, column: s, options:
|
|
1493
|
-
if (
|
|
1493
|
+
function cr(t) {
|
|
1494
|
+
const { model: e, onModelChange: a, getValue: r, api: o, column: s, options: i, placeholder: p } = t, { t: l } = F("ui"), d = E(() => {
|
|
1495
|
+
if (i && i.length > 0) return i;
|
|
1494
1496
|
if (!o || !s) return [];
|
|
1495
|
-
const
|
|
1497
|
+
const f = /* @__PURE__ */ new Map();
|
|
1496
1498
|
return o.forEachNode((m) => {
|
|
1497
1499
|
const b = r(m);
|
|
1498
1500
|
if (b == null) return;
|
|
1499
1501
|
const h = typeof b == "string" || typeof b == "number" ? b : String(b), w = H(h);
|
|
1500
|
-
|
|
1501
|
-
}), Array.from(
|
|
1502
|
+
f.has(w) || f.set(w, { value: h, label: String(h) });
|
|
1503
|
+
}), Array.from(f.values()).sort(
|
|
1502
1504
|
(m, b) => String(m.label).localeCompare(String(b.label))
|
|
1503
1505
|
);
|
|
1504
|
-
}, [
|
|
1505
|
-
const
|
|
1506
|
-
for (const b of m)
|
|
1507
|
-
return
|
|
1508
|
-
}, [e]), [
|
|
1509
|
-
|
|
1506
|
+
}, [i, o, s, r]), c = E(() => {
|
|
1507
|
+
const f = /* @__PURE__ */ new Set(), m = (e == null ? void 0 : e.values) ?? [];
|
|
1508
|
+
for (const b of m) f.add(H(b));
|
|
1509
|
+
return f;
|
|
1510
|
+
}, [e]), [u, y] = R(c);
|
|
1511
|
+
z(() => {
|
|
1510
1512
|
y(c);
|
|
1511
1513
|
}, [c]), X({
|
|
1512
|
-
doesFilterPass: (
|
|
1514
|
+
doesFilterPass: (f) => {
|
|
1513
1515
|
const m = e == null ? void 0 : e.values;
|
|
1514
1516
|
if (!m || m.length === 0) return !0;
|
|
1515
|
-
const b = r(
|
|
1517
|
+
const b = r(f.node);
|
|
1516
1518
|
if (b == null) return !1;
|
|
1517
1519
|
const h = typeof b == "string" || typeof b == "number" ? b : String(b), w = H(h);
|
|
1518
|
-
return m.some((
|
|
1520
|
+
return m.some((A) => H(A) === w);
|
|
1519
1521
|
}
|
|
1520
1522
|
});
|
|
1521
|
-
function g(
|
|
1523
|
+
function g(f) {
|
|
1522
1524
|
y((m) => {
|
|
1523
1525
|
const b = new Set(m);
|
|
1524
|
-
return b.has(
|
|
1526
|
+
return b.has(f) ? b.delete(f) : b.add(f), b;
|
|
1525
1527
|
});
|
|
1526
1528
|
}
|
|
1527
1529
|
function T() {
|
|
1528
|
-
if (
|
|
1530
|
+
if (u.size === 0) {
|
|
1529
1531
|
a(null);
|
|
1530
1532
|
return;
|
|
1531
1533
|
}
|
|
1532
|
-
const
|
|
1533
|
-
for (const m of
|
|
1534
|
-
|
|
1535
|
-
a({ type: "set", values:
|
|
1534
|
+
const f = [];
|
|
1535
|
+
for (const m of d)
|
|
1536
|
+
u.has(H(m.value)) && f.push(m.value);
|
|
1537
|
+
a({ type: "set", values: f });
|
|
1536
1538
|
}
|
|
1537
|
-
function
|
|
1539
|
+
function C() {
|
|
1538
1540
|
y(/* @__PURE__ */ new Set()), a(null);
|
|
1539
1541
|
}
|
|
1540
|
-
const S =
|
|
1542
|
+
const S = p ?? l("dataTable.selectFilter.all");
|
|
1541
1543
|
return /* @__PURE__ */ I(
|
|
1542
1544
|
"div",
|
|
1543
1545
|
{
|
|
1544
1546
|
"data-component": "select-filter",
|
|
1545
1547
|
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
1548
|
children: [
|
|
1547
|
-
/* @__PURE__ */ n(
|
|
1549
|
+
/* @__PURE__ */ n(Ot, { orientation: "vertical", className: "ds:max-h-[240px]", children: /* @__PURE__ */ n(
|
|
1548
1550
|
"div",
|
|
1549
1551
|
{
|
|
1550
1552
|
role: "group",
|
|
1551
1553
|
"aria-label": S,
|
|
1552
|
-
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]
|
|
1553
|
-
children:
|
|
1554
|
-
const m = H(
|
|
1554
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
1555
|
+
children: d.length === 0 ? /* @__PURE__ */ n("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children: l("dataTable.agGrid.noRowsToShow") }) : d.map((f) => {
|
|
1556
|
+
const m = H(f.value);
|
|
1555
1557
|
return /* @__PURE__ */ n(
|
|
1556
|
-
|
|
1558
|
+
Re,
|
|
1557
1559
|
{
|
|
1558
1560
|
size: "sm",
|
|
1559
|
-
label:
|
|
1560
|
-
checked:
|
|
1561
|
+
label: f.label,
|
|
1562
|
+
checked: u.has(m),
|
|
1561
1563
|
onCheckedChange: () => g(m)
|
|
1562
1564
|
},
|
|
1563
1565
|
m
|
|
1564
1566
|
);
|
|
1565
1567
|
})
|
|
1566
1568
|
}
|
|
1567
|
-
),
|
|
1569
|
+
) }),
|
|
1568
1570
|
/* @__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(
|
|
1570
|
-
/* @__PURE__ */ n(
|
|
1571
|
+
/* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: C, type: "button", children: l("dataTable.selectFilter.clear") }),
|
|
1572
|
+
/* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: T, type: "button", children: l("dataTable.selectFilter.apply") })
|
|
1571
1573
|
] })
|
|
1572
1574
|
]
|
|
1573
1575
|
}
|
|
1574
1576
|
);
|
|
1575
1577
|
}
|
|
1576
|
-
function
|
|
1578
|
+
function dr(t) {
|
|
1577
1579
|
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) ?? {},
|
|
1580
|
+
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) ?? {}, i = s.options ?? [], p = s.placeholder ?? (typeof (o == null ? void 0 : o.headerName) == "string" ? o.headerName : void 0), l = E(() => {
|
|
1579
1581
|
const g = /* @__PURE__ */ new Map();
|
|
1580
|
-
for (const T of
|
|
1582
|
+
for (const T of i) g.set(String(T.value), T.value);
|
|
1581
1583
|
return g;
|
|
1582
|
-
}, [
|
|
1583
|
-
() =>
|
|
1584
|
+
}, [i]), d = E(
|
|
1585
|
+
() => i.map((g) => ({
|
|
1584
1586
|
value: String(g.value),
|
|
1585
1587
|
label: g.label
|
|
1586
1588
|
})),
|
|
1587
|
-
[
|
|
1588
|
-
), c =
|
|
1589
|
+
[i]
|
|
1590
|
+
), c = E(
|
|
1589
1591
|
() => ((e == null ? void 0 : e.values) ?? []).map((g) => String(g)),
|
|
1590
1592
|
[e]
|
|
1591
1593
|
);
|
|
1592
|
-
function
|
|
1594
|
+
function u(g) {
|
|
1593
1595
|
if (g.length === 0) {
|
|
1594
1596
|
a(null);
|
|
1595
1597
|
return;
|
|
1596
1598
|
}
|
|
1597
1599
|
const T = [];
|
|
1598
|
-
for (const
|
|
1599
|
-
const S =
|
|
1600
|
+
for (const C of g) {
|
|
1601
|
+
const S = l.get(C);
|
|
1600
1602
|
S !== void 0 && T.push(S);
|
|
1601
1603
|
}
|
|
1602
1604
|
a({ type: "set", values: T });
|
|
1603
1605
|
}
|
|
1604
1606
|
return /* @__PURE__ */ n("div", { "data-component": "select-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
|
|
1605
|
-
|
|
1607
|
+
At,
|
|
1606
1608
|
{
|
|
1607
1609
|
size: "sm",
|
|
1608
|
-
options:
|
|
1610
|
+
options: d,
|
|
1609
1611
|
value: c,
|
|
1610
|
-
onChange:
|
|
1612
|
+
onChange: u,
|
|
1611
1613
|
placeholder: s.placeholder,
|
|
1612
|
-
"aria-label":
|
|
1614
|
+
"aria-label": p,
|
|
1613
1615
|
allowClear: !0
|
|
1614
1616
|
}
|
|
1615
1617
|
) });
|
|
@@ -1617,18 +1619,18 @@ function Za(t) {
|
|
|
1617
1619
|
function J(t) {
|
|
1618
1620
|
return t.trim().toLocaleLowerCase();
|
|
1619
1621
|
}
|
|
1620
|
-
function
|
|
1622
|
+
function ur(t) {
|
|
1621
1623
|
const {
|
|
1622
1624
|
model: e,
|
|
1623
1625
|
onModelChange: a,
|
|
1624
1626
|
getValue: r,
|
|
1625
1627
|
api: o,
|
|
1626
1628
|
column: s,
|
|
1627
|
-
options:
|
|
1628
|
-
loadOptions:
|
|
1629
|
-
placeholder:
|
|
1630
|
-
} = t, { t:
|
|
1631
|
-
if (
|
|
1629
|
+
options: i,
|
|
1630
|
+
loadOptions: p,
|
|
1631
|
+
placeholder: l
|
|
1632
|
+
} = t, { t: d } = F("ui"), c = E(() => {
|
|
1633
|
+
if (i && i.length > 0) return i;
|
|
1632
1634
|
if (!o || !s) return [];
|
|
1633
1635
|
const m = /* @__PURE__ */ new Map();
|
|
1634
1636
|
return o.forEachNode((b) => {
|
|
@@ -1639,13 +1641,13 @@ function Ya(t) {
|
|
|
1639
1641
|
}), Array.from(m.values()).sort(
|
|
1640
1642
|
(b, h) => b.label.localeCompare(h.label)
|
|
1641
1643
|
);
|
|
1642
|
-
}, [
|
|
1643
|
-
if (
|
|
1644
|
-
return (await
|
|
1644
|
+
}, [i, o, s, r]), u = E(() => async (m, b) => {
|
|
1645
|
+
if (p)
|
|
1646
|
+
return (await p(m, b)).map((k) => ({ value: k.value, label: k.label }));
|
|
1645
1647
|
const h = J(m);
|
|
1646
|
-
return (h ? c.filter((
|
|
1647
|
-
}, [
|
|
1648
|
-
|
|
1648
|
+
return (h ? c.filter((A) => J(A.label).includes(h)) : c).slice(0, 50).map((A) => ({ value: A.value, label: A.label }));
|
|
1649
|
+
}, [p, c]), [y, g] = R((e == null ? void 0 : e.value) ?? "");
|
|
1650
|
+
z(() => {
|
|
1649
1651
|
g((e == null ? void 0 : e.value) ?? "");
|
|
1650
1652
|
}, [e == null ? void 0 : e.value]), X({
|
|
1651
1653
|
doesFilterPass: (m) => {
|
|
@@ -1660,13 +1662,13 @@ function Ya(t) {
|
|
|
1660
1662
|
function T(m) {
|
|
1661
1663
|
g(m.label), a({ type: "equals", value: m.value });
|
|
1662
1664
|
}
|
|
1663
|
-
function
|
|
1665
|
+
function C(m) {
|
|
1664
1666
|
g(m), m === "" && e && a(null);
|
|
1665
1667
|
}
|
|
1666
1668
|
function S() {
|
|
1667
1669
|
g(""), a(null);
|
|
1668
1670
|
}
|
|
1669
|
-
const
|
|
1671
|
+
const f = l ?? d("dataTable.typeaheadFilter.placeholder");
|
|
1670
1672
|
return /* @__PURE__ */ I(
|
|
1671
1673
|
"div",
|
|
1672
1674
|
{
|
|
@@ -1674,53 +1676,53 @@ function Ya(t) {
|
|
|
1674
1676
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
1675
1677
|
children: [
|
|
1676
1678
|
/* @__PURE__ */ n(
|
|
1677
|
-
|
|
1679
|
+
Ae,
|
|
1678
1680
|
{
|
|
1679
1681
|
size: "sm",
|
|
1680
1682
|
value: y,
|
|
1681
|
-
onChange:
|
|
1683
|
+
onChange: C,
|
|
1682
1684
|
onSelect: T,
|
|
1683
|
-
loadOptions:
|
|
1684
|
-
placeholder:
|
|
1685
|
-
"aria-label":
|
|
1685
|
+
loadOptions: u,
|
|
1686
|
+
placeholder: f,
|
|
1687
|
+
"aria-label": f
|
|
1686
1688
|
}
|
|
1687
1689
|
),
|
|
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(
|
|
1690
|
+
/* @__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(j, { intent: "ghost", size: "sm", onClick: S, type: "button", children: d("dataTable.typeaheadFilter.clear") }) })
|
|
1689
1691
|
]
|
|
1690
1692
|
}
|
|
1691
1693
|
);
|
|
1692
1694
|
}
|
|
1693
|
-
function
|
|
1694
|
-
var T,
|
|
1695
|
-
const { model: e, onModelChange: a, column: r } = t, { t: o } =
|
|
1696
|
-
if (
|
|
1697
|
-
return (await
|
|
1695
|
+
function pr(t) {
|
|
1696
|
+
var T, C;
|
|
1697
|
+
const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((C = (T = r == null ? void 0 : r.getColDef) == null ? void 0 : T.call(r)) == null ? void 0 : C.filterParams) ?? {}, i = s.options ?? [], p = s.loadOptions, l = s.placeholder ?? o("dataTable.typeaheadFilter.placeholder"), d = E(() => async (S, f) => {
|
|
1698
|
+
if (p)
|
|
1699
|
+
return (await p(S, f)).map((w) => ({ value: w.value, label: w.label }));
|
|
1698
1700
|
const m = J(S);
|
|
1699
|
-
return (m ?
|
|
1700
|
-
}, [
|
|
1701
|
-
|
|
1702
|
-
|
|
1701
|
+
return (m ? i.filter((h) => J(h.label).includes(m)) : i).slice(0, 50).map((h) => ({ value: h.value, label: h.label }));
|
|
1702
|
+
}, [p, i]), [c, u] = R((e == null ? void 0 : e.value) ?? "");
|
|
1703
|
+
z(() => {
|
|
1704
|
+
u((e == null ? void 0 : e.value) ?? "");
|
|
1703
1705
|
}, [e == null ? void 0 : e.value]);
|
|
1704
1706
|
function y(S) {
|
|
1705
|
-
|
|
1707
|
+
u(S.label), a({ type: "equals", value: S.value });
|
|
1706
1708
|
}
|
|
1707
1709
|
function g(S) {
|
|
1708
|
-
|
|
1710
|
+
u(S), S === "" && e && a(null);
|
|
1709
1711
|
}
|
|
1710
1712
|
return /* @__PURE__ */ n("div", { "data-component": "typeahead-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
|
|
1711
|
-
|
|
1713
|
+
Ae,
|
|
1712
1714
|
{
|
|
1713
1715
|
size: "sm",
|
|
1714
1716
|
value: c,
|
|
1715
1717
|
onChange: g,
|
|
1716
1718
|
onSelect: y,
|
|
1717
|
-
loadOptions:
|
|
1718
|
-
placeholder:
|
|
1719
|
-
"aria-label":
|
|
1719
|
+
loadOptions: d,
|
|
1720
|
+
placeholder: l,
|
|
1721
|
+
"aria-label": l
|
|
1720
1722
|
}
|
|
1721
1723
|
) });
|
|
1722
1724
|
}
|
|
1723
|
-
const
|
|
1725
|
+
const la = [
|
|
1724
1726
|
"equals",
|
|
1725
1727
|
"notEqual",
|
|
1726
1728
|
"greaterThan",
|
|
@@ -1731,13 +1733,13 @@ const na = [
|
|
|
1731
1733
|
"blank",
|
|
1732
1734
|
"notBlank"
|
|
1733
1735
|
];
|
|
1734
|
-
function
|
|
1736
|
+
function ve(t) {
|
|
1735
1737
|
return t !== "blank" && t !== "notBlank";
|
|
1736
1738
|
}
|
|
1737
|
-
function
|
|
1739
|
+
function Te(t) {
|
|
1738
1740
|
return t === "inRange";
|
|
1739
1741
|
}
|
|
1740
|
-
function
|
|
1742
|
+
function ca(t, e, a, r) {
|
|
1741
1743
|
if (t === "blank") return e === null;
|
|
1742
1744
|
if (t === "notBlank") return e !== null;
|
|
1743
1745
|
if (e === null) return !1;
|
|
@@ -1764,25 +1766,25 @@ function oa(t, e, a, r) {
|
|
|
1764
1766
|
return !0;
|
|
1765
1767
|
}
|
|
1766
1768
|
}
|
|
1767
|
-
function
|
|
1769
|
+
function da(t) {
|
|
1768
1770
|
if (t == null || t === "") return null;
|
|
1769
1771
|
const e = typeof t == "number" ? t : Number(t);
|
|
1770
1772
|
return Number.isNaN(e) ? null : e;
|
|
1771
1773
|
}
|
|
1772
|
-
function
|
|
1774
|
+
function fr(t) {
|
|
1773
1775
|
const {
|
|
1774
1776
|
model: e,
|
|
1775
1777
|
onModelChange: a,
|
|
1776
1778
|
getValue: r,
|
|
1777
1779
|
defaultOperator: o,
|
|
1778
1780
|
min: s,
|
|
1779
|
-
max:
|
|
1780
|
-
step:
|
|
1781
|
-
placeholder:
|
|
1782
|
-
} = t, { t:
|
|
1781
|
+
max: i,
|
|
1782
|
+
step: p,
|
|
1783
|
+
placeholder: l
|
|
1784
|
+
} = t, { t: d } = F("ui"), c = (e == null ? void 0 : e.type) ?? o ?? "equals", [u, y] = R(c), [g, T] = R((e == null ? void 0 : e.filter) ?? null), [C, S] = R(
|
|
1783
1785
|
(e == null ? void 0 : e.filterTo) ?? null
|
|
1784
1786
|
);
|
|
1785
|
-
|
|
1787
|
+
z(() => {
|
|
1786
1788
|
if (e === null) {
|
|
1787
1789
|
y(o ?? "equals"), T(null), S(null);
|
|
1788
1790
|
return;
|
|
@@ -1791,45 +1793,45 @@ function tr(t) {
|
|
|
1791
1793
|
}, [e, o]), X({
|
|
1792
1794
|
doesFilterPass: (k) => {
|
|
1793
1795
|
if (!e) return !0;
|
|
1794
|
-
const
|
|
1795
|
-
return
|
|
1796
|
+
const $ = da(r(k.node));
|
|
1797
|
+
return ca(
|
|
1796
1798
|
e.type,
|
|
1797
|
-
|
|
1799
|
+
$,
|
|
1798
1800
|
e.filter ?? null,
|
|
1799
1801
|
e.filterTo ?? null
|
|
1800
1802
|
);
|
|
1801
1803
|
}
|
|
1802
1804
|
});
|
|
1803
|
-
const
|
|
1804
|
-
() =>
|
|
1805
|
+
const f = E(
|
|
1806
|
+
() => la.map((k) => ({
|
|
1805
1807
|
value: k,
|
|
1806
|
-
label:
|
|
1808
|
+
label: d(`dataTable.numberFilter.operators.${k}`)
|
|
1807
1809
|
})),
|
|
1808
|
-
[
|
|
1809
|
-
), m =
|
|
1810
|
+
[d]
|
|
1811
|
+
), m = l ?? d("dataTable.numberFilter.placeholder");
|
|
1810
1812
|
function b() {
|
|
1811
|
-
if (!
|
|
1812
|
-
a({ type:
|
|
1813
|
+
if (!ve(u)) {
|
|
1814
|
+
a({ type: u, filter: 0 });
|
|
1813
1815
|
return;
|
|
1814
1816
|
}
|
|
1815
1817
|
if (g === null) {
|
|
1816
1818
|
a(null);
|
|
1817
1819
|
return;
|
|
1818
1820
|
}
|
|
1819
|
-
if (
|
|
1821
|
+
if (Te(u)) {
|
|
1820
1822
|
a({
|
|
1821
|
-
type:
|
|
1823
|
+
type: u,
|
|
1822
1824
|
filter: g,
|
|
1823
|
-
filterTo:
|
|
1825
|
+
filterTo: C ?? void 0
|
|
1824
1826
|
});
|
|
1825
1827
|
return;
|
|
1826
1828
|
}
|
|
1827
|
-
a({ type:
|
|
1829
|
+
a({ type: u, filter: g });
|
|
1828
1830
|
}
|
|
1829
1831
|
function h() {
|
|
1830
1832
|
y(o ?? "equals"), T(null), S(null), a(null);
|
|
1831
1833
|
}
|
|
1832
|
-
const w =
|
|
1834
|
+
const w = ve(u), A = Te(u);
|
|
1833
1835
|
return /* @__PURE__ */ I(
|
|
1834
1836
|
"div",
|
|
1835
1837
|
{
|
|
@@ -1837,31 +1839,31 @@ function tr(t) {
|
|
|
1837
1839
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
1838
1840
|
children: [
|
|
1839
1841
|
/* @__PURE__ */ n(
|
|
1840
|
-
|
|
1842
|
+
ke,
|
|
1841
1843
|
{
|
|
1842
1844
|
size: "sm",
|
|
1843
|
-
options:
|
|
1844
|
-
value:
|
|
1845
|
+
options: f,
|
|
1846
|
+
value: u,
|
|
1845
1847
|
onValueChange: (k) => {
|
|
1846
1848
|
k !== "" && y(k);
|
|
1847
1849
|
},
|
|
1848
|
-
"aria-label":
|
|
1850
|
+
"aria-label": d("dataTable.numberFilter.operators.equals")
|
|
1849
1851
|
}
|
|
1850
1852
|
),
|
|
1851
|
-
w && !
|
|
1853
|
+
w && !A && /* @__PURE__ */ n(
|
|
1852
1854
|
Y,
|
|
1853
1855
|
{
|
|
1854
1856
|
size: "sm",
|
|
1855
1857
|
value: g,
|
|
1856
1858
|
onChange: T,
|
|
1857
1859
|
min: s,
|
|
1858
|
-
max:
|
|
1859
|
-
step:
|
|
1860
|
+
max: i,
|
|
1861
|
+
step: p,
|
|
1860
1862
|
placeholder: m,
|
|
1861
1863
|
"aria-label": m
|
|
1862
1864
|
}
|
|
1863
1865
|
),
|
|
1864
|
-
|
|
1866
|
+
A && /* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1865
1867
|
/* @__PURE__ */ n(
|
|
1866
1868
|
Y,
|
|
1867
1869
|
{
|
|
@@ -1869,77 +1871,126 @@ function tr(t) {
|
|
|
1869
1871
|
value: g,
|
|
1870
1872
|
onChange: T,
|
|
1871
1873
|
min: s,
|
|
1872
|
-
max:
|
|
1873
|
-
step:
|
|
1874
|
-
placeholder:
|
|
1875
|
-
"aria-label":
|
|
1874
|
+
max: i,
|
|
1875
|
+
step: p,
|
|
1876
|
+
placeholder: d("dataTable.numberFilter.from"),
|
|
1877
|
+
"aria-label": d("dataTable.numberFilter.from")
|
|
1876
1878
|
}
|
|
1877
1879
|
),
|
|
1878
1880
|
/* @__PURE__ */ n(
|
|
1879
1881
|
Y,
|
|
1880
1882
|
{
|
|
1881
1883
|
size: "sm",
|
|
1882
|
-
value:
|
|
1884
|
+
value: C,
|
|
1883
1885
|
onChange: S,
|
|
1884
1886
|
min: s,
|
|
1885
|
-
max:
|
|
1886
|
-
step:
|
|
1887
|
-
placeholder:
|
|
1888
|
-
"aria-label":
|
|
1887
|
+
max: i,
|
|
1888
|
+
step: p,
|
|
1889
|
+
placeholder: d("dataTable.numberFilter.to"),
|
|
1890
|
+
"aria-label": d("dataTable.numberFilter.to")
|
|
1889
1891
|
}
|
|
1890
1892
|
)
|
|
1891
1893
|
] }),
|
|
1892
1894
|
/* @__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(
|
|
1894
|
-
/* @__PURE__ */ n(
|
|
1895
|
+
/* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: h, type: "button", children: d("dataTable.numberFilter.clear") }),
|
|
1896
|
+
/* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: b, type: "button", children: d("dataTable.numberFilter.apply") })
|
|
1895
1897
|
] })
|
|
1896
1898
|
]
|
|
1897
1899
|
}
|
|
1898
1900
|
);
|
|
1899
1901
|
}
|
|
1900
|
-
function
|
|
1901
|
-
var c,
|
|
1902
|
-
const { model: e, onModelChange: a, column: r } = t, { t: o } =
|
|
1903
|
-
return
|
|
1904
|
-
|
|
1905
|
-
}, [e == null ? void 0 : e.filter]),
|
|
1906
|
-
if (
|
|
1902
|
+
function mr(t) {
|
|
1903
|
+
var c, u;
|
|
1904
|
+
const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((u = (c = r == null ? void 0 : r.getColDef) == null ? void 0 : c.call(r)) == null ? void 0 : u.filterParams) ?? {}, i = s.defaultOperator ?? "equals", p = s.placeholder ?? o("dataTable.numberFilter.placeholder"), [l, d] = R((e == null ? void 0 : e.filter) ?? null);
|
|
1905
|
+
return z(() => {
|
|
1906
|
+
d((e == null ? void 0 : e.filter) ?? null);
|
|
1907
|
+
}, [e == null ? void 0 : e.filter]), z(() => {
|
|
1908
|
+
if (l === ((e == null ? void 0 : e.filter) ?? null)) return;
|
|
1907
1909
|
const y = setTimeout(() => {
|
|
1908
|
-
if (
|
|
1910
|
+
if (l === null || Number.isNaN(l)) {
|
|
1909
1911
|
a(null);
|
|
1910
1912
|
return;
|
|
1911
1913
|
}
|
|
1912
|
-
a({ type:
|
|
1914
|
+
a({ type: i, filter: l });
|
|
1913
1915
|
}, 200);
|
|
1914
1916
|
return () => clearTimeout(y);
|
|
1915
|
-
}, [
|
|
1917
|
+
}, [l, i]), /* @__PURE__ */ n("div", { "data-component": "number-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
|
|
1916
1918
|
Y,
|
|
1917
1919
|
{
|
|
1918
1920
|
size: "sm",
|
|
1919
|
-
value:
|
|
1920
|
-
onChange:
|
|
1921
|
+
value: l,
|
|
1922
|
+
onChange: d,
|
|
1921
1923
|
min: s.min,
|
|
1922
1924
|
max: s.max,
|
|
1923
1925
|
step: s.step,
|
|
1924
|
-
placeholder:
|
|
1925
|
-
"aria-label":
|
|
1926
|
+
placeholder: p,
|
|
1927
|
+
"aria-label": p
|
|
1926
1928
|
}
|
|
1927
1929
|
) });
|
|
1928
1930
|
}
|
|
1929
|
-
function
|
|
1931
|
+
function gr(t) {
|
|
1932
|
+
const { value: e, variantMap: a } = t, r = (a == null ? void 0 : a[e]) ?? "neutral";
|
|
1933
|
+
return /* @__PURE__ */ n(zt, { variant: r, withDot: !0, size: "sm", children: String(e ?? "") });
|
|
1934
|
+
}
|
|
1935
|
+
function br(t) {
|
|
1930
1936
|
const { value: e } = t;
|
|
1931
1937
|
return e ? /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
1932
|
-
/* @__PURE__ */ n(
|
|
1938
|
+
/* @__PURE__ */ n(Oe, { name: e.name, src: e.src, size: "sm" }),
|
|
1933
1939
|
/* @__PURE__ */ n("span", { children: e.name })
|
|
1934
1940
|
] }) : null;
|
|
1935
1941
|
}
|
|
1936
|
-
|
|
1937
|
-
|
|
1942
|
+
const ua = {
|
|
1943
|
+
sm: "ds:size-8",
|
|
1944
|
+
md: "ds:size-10",
|
|
1945
|
+
lg: "ds:size-12"
|
|
1946
|
+
}, pa = {
|
|
1947
|
+
square: "ds:rounded-none",
|
|
1948
|
+
rounded: "ds:rounded-[var(--radius-md)]",
|
|
1949
|
+
circle: "ds:rounded-[var(--radius-full)]"
|
|
1950
|
+
};
|
|
1951
|
+
function de(t, e) {
|
|
1952
|
+
if (!t || typeof t != "object") return;
|
|
1953
|
+
const a = t[e];
|
|
1954
|
+
return typeof a == "string" ? a : void 0;
|
|
1955
|
+
}
|
|
1956
|
+
const fa = /^(?:https?:|data:image\/)/i;
|
|
1957
|
+
function ma(t) {
|
|
1958
|
+
if (!t) return;
|
|
1959
|
+
const e = t.trim();
|
|
1960
|
+
if (e.length !== 0)
|
|
1961
|
+
return fa.test(e) ? e : void 0;
|
|
1962
|
+
}
|
|
1963
|
+
function hr(t) {
|
|
1964
|
+
const {
|
|
1965
|
+
data: e,
|
|
1966
|
+
srcField: a,
|
|
1967
|
+
altField: r,
|
|
1968
|
+
fallbackField: o,
|
|
1969
|
+
size: s = "md",
|
|
1970
|
+
shape: i = "rounded"
|
|
1971
|
+
} = t;
|
|
1972
|
+
if (!e) return null;
|
|
1973
|
+
const p = de(e, a), l = ma(p), d = r ? de(e, r) ?? "" : "", c = o ? de(e, o) : void 0;
|
|
1974
|
+
return l ? /* @__PURE__ */ n(
|
|
1975
|
+
"img",
|
|
1976
|
+
{
|
|
1977
|
+
src: l,
|
|
1978
|
+
alt: d,
|
|
1979
|
+
loading: "lazy",
|
|
1980
|
+
decoding: "async",
|
|
1981
|
+
className: ["ds:object-cover", ua[s], pa[i]].join(
|
|
1982
|
+
" "
|
|
1983
|
+
)
|
|
1984
|
+
}
|
|
1985
|
+
) : c ? /* @__PURE__ */ n(Oe, { name: c, size: s }) : null;
|
|
1986
|
+
}
|
|
1987
|
+
function vr(t) {
|
|
1988
|
+
const { value: e, maxVisible: a = 3 } = t, { t: r } = F();
|
|
1938
1989
|
if (!Array.isArray(e) || e.length === 0) return null;
|
|
1939
1990
|
const o = e.slice(0, a), s = e.length - a;
|
|
1940
1991
|
return /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1941
|
-
o.map((
|
|
1942
|
-
s > 0 && /* @__PURE__ */ n(
|
|
1992
|
+
o.map((i) => /* @__PURE__ */ n(te, { label: i, size: "sm" }, i)),
|
|
1993
|
+
s > 0 && /* @__PURE__ */ n(Pt, { label: e.slice(a).join(", "), children: /* @__PURE__ */ n(
|
|
1943
1994
|
te,
|
|
1944
1995
|
{
|
|
1945
1996
|
label: r("inputs.multiSelect.overflow", { count: s }),
|
|
@@ -1950,7 +2001,7 @@ function nr(t) {
|
|
|
1950
2001
|
) })
|
|
1951
2002
|
] });
|
|
1952
2003
|
}
|
|
1953
|
-
const
|
|
2004
|
+
const ga = {
|
|
1954
2005
|
date: { year: "numeric", month: "short", day: "numeric" },
|
|
1955
2006
|
time: { hour: "2-digit", minute: "2-digit" },
|
|
1956
2007
|
datetime: {
|
|
@@ -1961,101 +2012,174 @@ const la = {
|
|
|
1961
2012
|
minute: "2-digit"
|
|
1962
2013
|
}
|
|
1963
2014
|
};
|
|
1964
|
-
function
|
|
2015
|
+
function Tr(t) {
|
|
1965
2016
|
const { value: e, format: a = "date", options: r } = t;
|
|
1966
|
-
return e == null || e === "" ? null : a === "relative" && !r ? /* @__PURE__ */ n(
|
|
1967
|
-
|
|
2017
|
+
return e == null || e === "" ? null : a === "relative" && !r ? /* @__PURE__ */ n(he, { value: e, shape: "bare" }) : /* @__PURE__ */ n(
|
|
2018
|
+
he,
|
|
1968
2019
|
{
|
|
1969
2020
|
value: e,
|
|
1970
2021
|
format: "absolute",
|
|
1971
2022
|
shape: "bare",
|
|
1972
|
-
absoluteFormat: r ??
|
|
2023
|
+
absoluteFormat: r ?? ga[a === "relative" ? "date" : a]
|
|
1973
2024
|
}
|
|
1974
2025
|
);
|
|
1975
2026
|
}
|
|
1976
|
-
function
|
|
1977
|
-
if (
|
|
2027
|
+
function ba(t) {
|
|
2028
|
+
if (t == null || t === "") return null;
|
|
2029
|
+
const e = typeof t == "number" ? t : Number(t);
|
|
2030
|
+
return Number.isFinite(e) ? e : null;
|
|
2031
|
+
}
|
|
2032
|
+
function yr(t) {
|
|
2033
|
+
const {
|
|
2034
|
+
value: e,
|
|
2035
|
+
currency: a = "EUR",
|
|
2036
|
+
colorNegative: r,
|
|
2037
|
+
strikethrough: o,
|
|
2038
|
+
options: s
|
|
2039
|
+
} = t, { i18n: i } = F(), p = ba(e);
|
|
2040
|
+
if (p === null) return null;
|
|
2041
|
+
const l = i.language || "en", d = new Intl.NumberFormat(l, {
|
|
2042
|
+
style: "currency",
|
|
2043
|
+
currency: a,
|
|
2044
|
+
...s
|
|
2045
|
+
}).format(p), c = ["ds:tabular-nums"];
|
|
2046
|
+
return r && p < 0 && c.push("ds:text-[color:var(--destructive)]"), o && c.push("line-through"), /* @__PURE__ */ n("span", { className: c.join(" "), children: d });
|
|
2047
|
+
}
|
|
2048
|
+
function ye(t) {
|
|
2049
|
+
if (!Ne(t)) return t;
|
|
1978
2050
|
const e = t, a = e.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} size-4`.trim();
|
|
1979
|
-
return
|
|
2051
|
+
return Fe(e, { className: r, size: e.props.size ?? 16 });
|
|
1980
2052
|
}
|
|
1981
|
-
function
|
|
2053
|
+
function Cr(t) {
|
|
2054
|
+
return Math.max(1, t) * 32 + 26;
|
|
2055
|
+
}
|
|
2056
|
+
function ue(t, e) {
|
|
1982
2057
|
return typeof t == "function" ? t(e) : !!t;
|
|
1983
2058
|
}
|
|
1984
|
-
const
|
|
1985
|
-
function
|
|
1986
|
-
const { data: e, actions: a, intent: r = "ghost", group: o, label: s, collapsed:
|
|
2059
|
+
const ha = "ds:text-[color:var(--destructive)] ds:hover:text-[color:var(--destructive-hover)]";
|
|
2060
|
+
function xr(t) {
|
|
2061
|
+
const { data: e, actions: a, intent: r = "ghost", group: o, label: s, collapsed: i } = t, { t: p } = F();
|
|
1987
2062
|
if (!e) return null;
|
|
1988
|
-
const
|
|
1989
|
-
if (typeof
|
|
1990
|
-
return /* @__PURE__ */ I(
|
|
1991
|
-
/* @__PURE__ */ n(
|
|
1992
|
-
|
|
2063
|
+
const l = a.filter((u) => !ue(u.hidden, e));
|
|
2064
|
+
if (typeof i == "function" ? i() : !!i)
|
|
2065
|
+
return /* @__PURE__ */ I(_.Root, { children: [
|
|
2066
|
+
/* @__PURE__ */ n(_.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
|
|
2067
|
+
V,
|
|
1993
2068
|
{
|
|
1994
2069
|
size: "sm",
|
|
1995
2070
|
intent: r,
|
|
1996
|
-
icon: /* @__PURE__ */ n(
|
|
1997
|
-
"aria-label": s ??
|
|
2071
|
+
icon: /* @__PURE__ */ n(qt, { "aria-hidden": !0 }),
|
|
2072
|
+
"aria-label": s ?? p("dataTable.actions", "Actions")
|
|
1998
2073
|
}
|
|
1999
2074
|
) }),
|
|
2000
|
-
/* @__PURE__ */ n(
|
|
2001
|
-
|
|
2075
|
+
/* @__PURE__ */ n(_.Content, { align: "end", children: l.map((u, y) => /* @__PURE__ */ n(
|
|
2076
|
+
_.Item,
|
|
2002
2077
|
{
|
|
2003
|
-
startIcon:
|
|
2004
|
-
disabled:
|
|
2005
|
-
onSelect: () =>
|
|
2006
|
-
className:
|
|
2007
|
-
children:
|
|
2078
|
+
startIcon: ye(u.icon),
|
|
2079
|
+
disabled: ue(u.disabled, e),
|
|
2080
|
+
onSelect: () => u.onClick(e),
|
|
2081
|
+
className: u.variant === "destructive" ? "ds:text-[color:var(--destructive)]" : void 0,
|
|
2082
|
+
children: u.label
|
|
2008
2083
|
},
|
|
2009
2084
|
y
|
|
2010
2085
|
)) })
|
|
2011
2086
|
] });
|
|
2012
|
-
const c =
|
|
2013
|
-
const g =
|
|
2087
|
+
const c = l.map((u, y) => {
|
|
2088
|
+
const g = ue(u.disabled, e), T = g && u.disabledReason ? u.disabledReason : u.label;
|
|
2014
2089
|
return /* @__PURE__ */ n(
|
|
2015
|
-
|
|
2090
|
+
V,
|
|
2016
2091
|
{
|
|
2017
2092
|
size: "sm",
|
|
2018
2093
|
intent: r,
|
|
2019
|
-
icon:
|
|
2094
|
+
icon: ye(u.icon),
|
|
2020
2095
|
tooltip: T,
|
|
2021
|
-
"aria-label":
|
|
2096
|
+
"aria-label": u.label,
|
|
2022
2097
|
disabled: g,
|
|
2023
|
-
onClick: (
|
|
2024
|
-
|
|
2098
|
+
onClick: (C) => {
|
|
2099
|
+
C.stopPropagation(), u.onClick(e);
|
|
2025
2100
|
},
|
|
2026
|
-
className:
|
|
2101
|
+
className: u.variant === "destructive" ? ha : void 0
|
|
2027
2102
|
},
|
|
2028
2103
|
y
|
|
2029
2104
|
);
|
|
2030
2105
|
});
|
|
2031
2106
|
return o ? /* @__PURE__ */ n(
|
|
2032
|
-
|
|
2107
|
+
Mt,
|
|
2033
2108
|
{
|
|
2034
|
-
"aria-label": s ??
|
|
2109
|
+
"aria-label": s ?? p("dataTable.actions", "Actions"),
|
|
2035
2110
|
size: "sm",
|
|
2036
2111
|
children: c
|
|
2037
2112
|
}
|
|
2038
2113
|
) : /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: c });
|
|
2039
2114
|
}
|
|
2115
|
+
function Ce(t, e) {
|
|
2116
|
+
return typeof t == "function" ? t(e) : t;
|
|
2117
|
+
}
|
|
2118
|
+
function va(t) {
|
|
2119
|
+
return /^(https?:\/\/|\/|#|mailto:|tel:)/i.test(t) ? t : "#";
|
|
2120
|
+
}
|
|
2121
|
+
function Sr(t) {
|
|
2122
|
+
const { value: e, data: a, href: r, onClick: o, secondary: s } = t;
|
|
2123
|
+
if (!a) return null;
|
|
2124
|
+
const i = Ce(r, a), p = Ce(s, a), l = e == null || e === "" ? "" : String(e), d = [
|
|
2125
|
+
"ds:text-[color:var(--primary)]",
|
|
2126
|
+
"ds:hover:underline",
|
|
2127
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
2128
|
+
"ds:focus-visible:outline-solid",
|
|
2129
|
+
"ds:focus-visible:outline-[color:var(--ring)]",
|
|
2130
|
+
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
2131
|
+
"ds:rounded-[var(--radius-sm)]"
|
|
2132
|
+
].join(" "), c = (u) => {
|
|
2133
|
+
o && (i || u.preventDefault(), u.stopPropagation(), o(a));
|
|
2134
|
+
};
|
|
2135
|
+
return /* @__PURE__ */ I("span", { className: "ds:flex ds:flex-col ds:leading-tight", children: [
|
|
2136
|
+
i ? /* @__PURE__ */ n(
|
|
2137
|
+
"a",
|
|
2138
|
+
{
|
|
2139
|
+
href: va(i),
|
|
2140
|
+
onClick: c,
|
|
2141
|
+
className: d,
|
|
2142
|
+
children: l
|
|
2143
|
+
}
|
|
2144
|
+
) : /* @__PURE__ */ n(
|
|
2145
|
+
"button",
|
|
2146
|
+
{
|
|
2147
|
+
type: "button",
|
|
2148
|
+
onClick: c,
|
|
2149
|
+
className: [
|
|
2150
|
+
"ds:appearance-none ds:bg-transparent ds:p-0 ds:text-start",
|
|
2151
|
+
d
|
|
2152
|
+
].join(" "),
|
|
2153
|
+
children: l
|
|
2154
|
+
}
|
|
2155
|
+
),
|
|
2156
|
+
p ? /* @__PURE__ */ n("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: p }) : null
|
|
2157
|
+
] });
|
|
2158
|
+
}
|
|
2040
2159
|
export {
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2160
|
+
xr as A,
|
|
2161
|
+
yr as C,
|
|
2162
|
+
sr as D,
|
|
2163
|
+
hr as I,
|
|
2164
|
+
Sr as L,
|
|
2165
|
+
fr as N,
|
|
2166
|
+
cr as S,
|
|
2167
|
+
vr as T,
|
|
2168
|
+
br as U,
|
|
2169
|
+
Tr as a,
|
|
2170
|
+
ir as b,
|
|
2171
|
+
lr as c,
|
|
2172
|
+
mr as d,
|
|
2173
|
+
dr as e,
|
|
2174
|
+
gr as f,
|
|
2175
|
+
Zt as g,
|
|
2176
|
+
Yt as h,
|
|
2177
|
+
ee as i,
|
|
2178
|
+
jt as j,
|
|
2179
|
+
ur as k,
|
|
2180
|
+
pr as l,
|
|
2181
|
+
Cr as m,
|
|
2182
|
+
ea as n,
|
|
2183
|
+
je as o
|
|
2060
2184
|
};
|
|
2061
|
-
//# sourceMappingURL=
|
|
2185
|
+
//# sourceMappingURL=link-cell-renderer-De_SLjSq.js.map
|