@alfadocs/ui-kit 0.30.5 → 0.31.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{accordion-CNcodXuO.js → accordion-bSU21uTV.js} +3 -3
- package/dist/_chunks/{agenda-card-DO9_yogb.js → agenda-card-UJA6Arbs.js} +3 -3
- package/dist/_chunks/{agenda-tray-WLbfMip6.js → agenda-tray-1fAxNOMz.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-BXlwNnWe.js → ai-prompt-input-C6sCr1Vi.js} +11 -10
- package/dist/_chunks/{alia-sidebar-C-232sD7.js → alia-sidebar-BEoMl6UL.js} +9 -9
- package/dist/_chunks/ar-CEpIJtcO.js +399 -0
- package/dist/_chunks/{audio-recorder-DL800PE_.js → audio-recorder-C1rhKhSN.js} +114 -114
- package/dist/_chunks/audio-visualiser-l6zPd0AG.js +162 -0
- package/dist/_chunks/{autocomplete-CUh0f7Dj.js → autocomplete-DIgdhCGJ.js} +2 -2
- package/dist/_chunks/{avatar-D_H4emLo.js → avatar-BNQNhoyL.js} +19 -18
- package/dist/_chunks/{badge-CIjQ1Us1.js → badge-CptERaHx.js} +2 -2
- package/dist/_chunks/{booking-Cw92aqo3.js → booking-BIZ9GSer.js} +149 -160
- package/dist/_chunks/{breadcrumb--YI7lcHA.js → breadcrumb-CLlhx7qo.js} +2 -2
- package/dist/_chunks/{button-group-Bh2g_Ng-.js → button-group-Ciq6J4IW.js} +15 -14
- package/dist/_chunks/{calendar-WWNx448i.js → calendar-YHFknAGv.js} +22 -22
- package/dist/_chunks/calendar-clock-CYkcqdwl.js +19 -0
- package/dist/_chunks/{carousel.agent-C2Icc9_T.js → carousel.agent-DrX96W-1.js} +2 -2
- package/dist/_chunks/{chart-BLvFl169.js → chart-DLkVn_ex.js} +2 -2
- package/dist/_chunks/{chat-container-izziXViv.js → chat-container-ogB4OskO.js} +24 -23
- package/dist/_chunks/{chat-input-cyl_y9bh.js → chat-input-CQe7nR_v.js} +132 -118
- package/dist/_chunks/{chat-message-fg221-yx.js → chat-message-D53_fH2w.js} +2 -2
- package/dist/_chunks/{checkbox-Dgp_cfUr.js → checkbox-DRcOdmXv.js} +3 -3
- package/dist/_chunks/{checkbox-group-eVowqKcT.js → checkbox-group-CpUwlHug.js} +3 -3
- package/dist/_chunks/{collapsible-hHiyZp0b.js → collapsible-CERONory.js} +2 -2
- package/dist/_chunks/{color-picker-Bm-gzpsh.js → color-picker-9tL7pz5y.js} +192 -181
- package/dist/_chunks/{combobox-Da9eq00i.js → combobox-BC-DFx8G.js} +31 -30
- package/dist/_chunks/{command-palette-11BieSNq.js → command-palette-BiPAAno-.js} +125 -123
- package/dist/_chunks/{copy-field-BAF4mt9h.js → copy-field-CCq7j6Zc.js} +2 -2
- package/dist/_chunks/{date-picker-D0Ry1dMz.js → date-picker-B94HAV4A.js} +4 -4
- package/dist/_chunks/{date-range-picker-DYgHzMOo.js → date-range-picker-D4dgDlLU.js} +73 -73
- package/dist/_chunks/{date-time-picker-CGmGtcyc.js → date-time-picker-D1GEzf8p.js} +5 -5
- package/dist/_chunks/de-Dfbeau59.js +477 -0
- package/dist/_chunks/{description-list-CWjnaDGn.js → description-list-BEbK2g93.js} +2 -2
- package/dist/_chunks/{dialog-C-lTGVkB.js → dialog-Cee13rHU.js} +3 -3
- package/dist/_chunks/{dropdown-menu-DZxwF23X.js → dropdown-menu-BC5ZdOMo.js} +3 -3
- package/dist/_chunks/{editable-currency-cell-renderer-CztRy_21.js → editable-currency-cell-renderer-BpicmolK.js} +308 -322
- package/dist/_chunks/el-Dro3J7CP.js +373 -0
- package/dist/_chunks/{email-input-DvJ_kPKL.js → email-input-lQivsFrw.js} +3 -3
- package/dist/_chunks/es-Dvg8u70B.js +373 -0
- package/dist/_chunks/{file-upload-DxAQprcU.js → file-upload-CdozCPct.js} +226 -233
- package/dist/_chunks/fr-VOGjBSPP.js +338 -0
- package/dist/_chunks/{freemium-paywall-B9c8Ylww.js → freemium-paywall-D1N02Oam.js} +4 -4
- package/dist/_chunks/{header-DDj7uGD-.js → header-CTZWX-tm.js} +2 -2
- package/dist/_chunks/hi-BSDxWU_y.js +433 -0
- package/dist/_chunks/{icon-button-DPEqBKBQ.js → icon-button-CKEOrN37.js} +2 -2
- package/dist/_chunks/{icon-button-group-DeV3FpNY.js → icon-button-group-C48khLE0.js} +23 -22
- package/dist/_chunks/{isSameDay-DHG8Xade.js → isSameDay-DUEiAT0G.js} +2 -2
- package/dist/_chunks/isSameWeek-Dfzu29cW.js +14 -0
- package/dist/_chunks/it-CuonvcI_.js +401 -0
- package/dist/_chunks/ja-DO57gIOT.js +366 -0
- package/dist/_chunks/{key-value-pair-BvDY3zuc.js → key-value-pair-C8DaR3Xs.js} +2 -2
- package/dist/_chunks/{list-BdvDctBz.js → list-BOwqwy03.js} +44 -43
- package/dist/_chunks/{locale-picker-CY89MChR.js → locale-picker-D99UyZVJ.js} +4 -4
- package/dist/_chunks/{map-view-DyB8tr6c.js → map-view-WEWqXzof.js} +569 -557
- package/dist/_chunks/{message-card-D6iyPacd.js → message-card-BbRhZkDI.js} +3 -3
- package/dist/_chunks/{message-tray-Bh-0ra-Y.js → message-tray-B762TKuv.js} +11 -10
- package/dist/_chunks/{multi-select-dSe6Xtc4.js → multi-select-DOLO3K_z.js} +26 -25
- package/dist/_chunks/{navigation-menu-CyS1fBJ7.js → navigation-menu-C6lBYVv9.js} +3 -3
- package/dist/_chunks/nl-DjPaaWaW.js +326 -0
- package/dist/_chunks/{notification-card-vaMaA7Wa.js → notification-card-DMdO4g54.js} +2 -2
- package/dist/_chunks/{notification-tray-Cnum6LwM.js → notification-tray-Dl3FTleW.js} +17 -16
- package/dist/_chunks/{number-input-BZXu6bPY.js → number-input-Dj5L3pXK.js} +2 -2
- package/dist/_chunks/{otp-input-BDF_iNpa.js → otp-input-BEg_sn8A.js} +2 -2
- package/dist/_chunks/{pagination-BWaXF7W0.js → pagination-DQOgnxxw.js} +2 -2
- package/dist/_chunks/{parseISO-Dk4xa7q6.js → parseISO-DEpUNwxZ.js} +2 -2
- package/dist/_chunks/{patient-search-ZpHN-pgJ.js → patient-search-hFiYbqcl.js} +8 -8
- package/dist/_chunks/{patient-shell-CYaNkbA1.js → patient-shell-CDvMw_Nk.js} +6 -6
- package/dist/_chunks/{payment-form-Ds3rxvad.js → payment-form-D5rgnZu7.js} +2 -2
- package/dist/_chunks/{pdf-viewer-CIuaocnq.js → pdf-viewer-DvtEHcEP.js} +347 -320
- package/dist/_chunks/{phone-input-DKSHX7NQ.js → phone-input-DfZbPPvh.js} +217 -201
- package/dist/_chunks/pl-Cl4lOx2N.js +514 -0
- package/dist/_chunks/{popover-BfHSBEKq.js → popover-Devce-tT.js} +3 -3
- package/dist/_chunks/practice-results-JQunxBIg.js +1618 -0
- package/dist/_chunks/{privacy-lock-C6Ra5m3p.js → privacy-lock-DD-wHxBg.js} +3 -3
- package/dist/_chunks/{progress-B-PSO5OS.js → progress-kzIRcdaq.js} +11 -10
- package/dist/_chunks/pt-D7qO5CzD.js +370 -0
- package/dist/_chunks/{public-footer.agent-Bc99tE5Z.js → public-footer.agent-Bh0rnx4i.js} +21 -14
- package/dist/_chunks/{public-header.agent-B-B0WDAi.js → public-header.agent-B2dDg2_d.js} +3 -3
- package/dist/_chunks/{radio-i4ogu3cq.js → radio-TWf9Q-mp.js} +2 -2
- package/dist/_chunks/{radio-group-CTlGc36r.js → radio-group-BcF92GEF.js} +4 -4
- package/dist/_chunks/{react-day-picker-D3yzgvDB.js → react-day-picker-DsjfS7uI.js} +662 -615
- package/dist/_chunks/recaptcha-widget-CFYyLSEX.js +221 -0
- package/dist/_chunks/refresh-cw-CC8jSKMr.js +17 -0
- package/dist/_chunks/registry-nPAVE19X.js +21 -0
- package/dist/_chunks/{resizable-COV-cnth.js → resizable-3vzqDlg6.js} +29 -28
- package/dist/_chunks/{reviews-panel-bKEUKSic.js → reviews-panel-yanuBZs-.js} +4 -4
- package/dist/_chunks/{rich-text-editor-J-wAz9eN.js → rich-text-editor-CHmr9Bz8.js} +2 -2
- package/dist/_chunks/ro-CP2-VJ_O.js +361 -0
- package/dist/_chunks/ru-RPn9_Lpq.js +561 -0
- package/dist/_chunks/{scroll-area-DEDU-lp-.js → scroll-area-BWqCkEGz.js} +2 -2
- package/dist/_chunks/{search-bar-BRMW1-WG.js → search-bar-CP6wUJFY.js} +3 -3
- package/dist/_chunks/{search-input-CIA6pPfn.js → search-input-C1C3jQpD.js} +24 -23
- package/dist/_chunks/{select-C92AT_OZ.js → select-hsCaJSX3.js} +3 -3
- package/dist/_chunks/{sheet-D8Yl0nKR.js → sheet-BV-yuLE2.js} +3 -3
- package/dist/_chunks/{sidebar-DkyC6GvS.js → sidebar-BbR8f6oe.js} +3 -3
- package/dist/_chunks/{signature-capture-DjMlFOzS.js → signature-capture-C-fF71xI.js} +213 -205
- package/dist/_chunks/{slider-CfEzeseL.js → slider-BHWzXdjt.js} +3 -3
- package/dist/_chunks/{slot-grid-Q94gVmhn.js → slot-grid-Dz13dH82.js} +4 -4
- package/dist/_chunks/smile-BSYLAHy6.js +17 -0
- package/dist/_chunks/{sparkline-B5Ms55PZ.js → sparkline-DEROcSl0.js} +2 -2
- package/dist/_chunks/sq-AQvefouo.js +355 -0
- package/dist/_chunks/{stepper-progress-jFY8BSf7.js → stepper-progress-DDjq5nei.js} +16 -15
- package/dist/_chunks/streaming-text-GH07yIYh.js +127 -0
- package/dist/_chunks/sv-zkx9eBtD.js +376 -0
- package/dist/_chunks/{switch-D916VW86.js → switch-BJ6HD3Mn.js} +2 -2
- package/dist/_chunks/{tabs-aEQfQV3x.js → tabs-BpPYVme_.js} +4 -4
- package/dist/_chunks/{tag-bBPAvXyh.js → tag-CyoaEmf_.js} +2 -2
- package/dist/_chunks/{task-tray-6NlryfMJ.js → task-tray-DRK0b0Qb.js} +3 -3
- package/dist/_chunks/{text-area-D5GAe8pV.js → text-area-BIx0tZ05.js} +27 -26
- package/dist/_chunks/{text-input-CakysYnD.js → text-input-BaClJL8Y.js} +2 -2
- package/dist/_chunks/{theme-toggle-JoeMs_ws.js → theme-toggle-DpC28kt5.js} +6 -6
- package/dist/_chunks/{time-picker-DeVZkIY2.js → time-picker-B5umYwfv.js} +2 -2
- package/dist/_chunks/{timeline-CR7HjZCK.js → timeline-D0Wo7v_o.js} +3 -3
- package/dist/_chunks/{toast.agent-DVpKt38p.js → toast.agent-WHHfw5VX.js} +322 -320
- package/dist/_chunks/{tooltip-ClJd0ciy.js → tooltip-DvmfrNvB.js} +29 -20
- package/dist/_chunks/{tooth-scheme-3mITSXiZ.js → tooth-scheme-CxlsLjfN.js} +2 -2
- package/dist/_chunks/tr-Dmr412Ac.js +378 -0
- package/dist/_chunks/{transaction-chip-z9ENE50O.js → transaction-chip-B8ujzowA.js} +47 -60
- package/dist/_chunks/{transcript-panel-QUQ9XJmf.js → transcript-panel-DyhTpAP7.js} +21 -20
- package/dist/_chunks/{use-direction-D6rvvG9G.js → use-direction-Dp8h70PP.js} +7 -6
- package/dist/_chunks/use-isomorphic-layout-effect-BGfaCOP1.js +6 -0
- package/dist/_chunks/use-media-query-CcAx5SMM.js +16 -0
- package/dist/_chunks/{use-password-requirements-E0sSfx5X.js → use-password-requirements-DsgduV1x.js} +3 -3
- package/dist/_chunks/use-scroll-to-first-error-4Za-u5Nw.js +43 -0
- package/dist/_chunks/{workflow-map-DlWBJJBt.js → workflow-map-BSvQS3be.js} +6 -6
- package/dist/_chunks/zh-CN-DxVt64Zk.js +388 -0
- package/dist/agent/registry.d.ts +1 -6
- package/dist/agent-catalog.json +42 -1
- package/dist/components/_shared/date-locale.d.ts +7 -2
- package/dist/components/_shared/index.d.ts +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +6 -6
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +10 -0
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.d.ts +4 -0
- package/dist/components/practice-results/index.js +6 -0
- package/dist/components/practice-results/practice-results.agent.d.ts +4 -0
- package/dist/components/practice-results/practice-results.d.ts +159 -0
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/stepper-progress/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.js +69 -66
- package/dist/i18n/locales/ar.d.ts +92 -0
- package/dist/i18n/locales/ar.js +82 -0
- package/dist/i18n/locales/de.d.ts +92 -0
- package/dist/i18n/locales/de.js +81 -0
- package/dist/i18n/locales/el.d.ts +92 -0
- package/dist/i18n/locales/el.js +82 -0
- package/dist/i18n/locales/en.d.ts +92 -0
- package/dist/i18n/locales/en.js +92 -0
- package/dist/i18n/locales/es.d.ts +92 -0
- package/dist/i18n/locales/es.js +81 -0
- package/dist/i18n/locales/fr.d.ts +92 -0
- package/dist/i18n/locales/fr.js +81 -0
- package/dist/i18n/locales/hi.d.ts +92 -0
- package/dist/i18n/locales/hi.js +82 -0
- package/dist/i18n/locales/it.d.ts +92 -0
- package/dist/i18n/locales/it.js +81 -0
- package/dist/i18n/locales/ja.d.ts +92 -0
- package/dist/i18n/locales/ja.js +82 -0
- package/dist/i18n/locales/nl.d.ts +92 -0
- package/dist/i18n/locales/nl.js +81 -0
- package/dist/i18n/locales/pl.d.ts +92 -0
- package/dist/i18n/locales/pl.js +82 -0
- package/dist/i18n/locales/pt.d.ts +92 -0
- package/dist/i18n/locales/pt.js +83 -0
- package/dist/i18n/locales/ro.d.ts +92 -0
- package/dist/i18n/locales/ro.js +82 -0
- package/dist/i18n/locales/ru.d.ts +92 -0
- package/dist/i18n/locales/ru.js +82 -0
- package/dist/i18n/locales/sq.d.ts +92 -0
- package/dist/i18n/locales/sq.js +82 -0
- package/dist/i18n/locales/sv.d.ts +92 -0
- package/dist/i18n/locales/sv.js +82 -0
- package/dist/i18n/locales/tr.d.ts +92 -0
- package/dist/i18n/locales/tr.js +82 -0
- package/dist/i18n/locales/zh.d.ts +92 -0
- package/dist/i18n/locales/zh.js +82 -0
- package/dist/index.js +532 -528
- package/dist/locales/ar.json +92 -0
- package/dist/locales/de.json +92 -0
- package/dist/locales/el.json +92 -0
- package/dist/locales/en.json +92 -0
- package/dist/locales/es.json +92 -0
- package/dist/locales/fr.json +92 -0
- package/dist/locales/hi.json +92 -0
- package/dist/locales/it.json +92 -0
- package/dist/locales/ja.json +92 -0
- package/dist/locales/nl.json +92 -0
- package/dist/locales/pl.json +92 -0
- package/dist/locales/pt.json +92 -0
- package/dist/locales/ro.json +92 -0
- package/dist/locales/ru.json +92 -0
- package/dist/locales/sq.json +92 -0
- package/dist/locales/sv.json +92 -0
- package/dist/locales/tr.json +92 -0
- package/dist/locales/zh.json +92 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -2
- package/dist/_chunks/audio-visualiser-I-T4Z7EU.js +0 -145
- package/dist/_chunks/recaptcha-widget-BtBNb6tB.js +0 -192
- package/dist/_chunks/registry-C9nwlNyL.js +0 -21
- package/dist/_chunks/streaming-text-BgjCTVOw.js +0 -105
- package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +0 -55
|
@@ -1,73 +1,65 @@
|
|
|
1
1
|
import { jsx as s, jsxs as E } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as
|
|
2
|
+
import { useMemo as z, forwardRef as _, useState as R, useCallback as M, useEffect as P, useRef as X, createContext as Ne, useContext as Se, isValidElement as we, cloneElement as Fe, useImperativeHandle as Tt } from "react";
|
|
3
3
|
import { S as xt } from "./skeleton-CZbwyJAA.js";
|
|
4
4
|
import { E as Ct } from "./empty-state-BLy7tigq.js";
|
|
5
5
|
import { c as Nt } from "./index-D2ZczOXr.js";
|
|
6
6
|
import { useTranslation as F } from "react-i18next";
|
|
7
7
|
import { useGridFilter as J, AgGridReact as St } from "ag-grid-react";
|
|
8
8
|
import { ModuleRegistry as wt, AllCommunityModule as Ft } from "ag-grid-community";
|
|
9
|
-
import { B as
|
|
10
|
-
import { I as B } from "./icon-button-
|
|
11
|
-
import { P as Z } from "./popover-
|
|
12
|
-
import { C as Re } from "./checkbox-
|
|
13
|
-
import { T as fe } from "./text-input-
|
|
14
|
-
import { T as ae } from "./tag-
|
|
15
|
-
import { D as Y } from "./dropdown-menu-
|
|
9
|
+
import { B as L } from "./button-DD_0Xdmr.js";
|
|
10
|
+
import { I as B } from "./icon-button-CKEOrN37.js";
|
|
11
|
+
import { P as Z } from "./popover-Devce-tT.js";
|
|
12
|
+
import { C as Re } from "./checkbox-DRcOdmXv.js";
|
|
13
|
+
import { T as fe } from "./text-input-BaClJL8Y.js";
|
|
14
|
+
import { T as ae } from "./tag-CyoaEmf_.js";
|
|
15
|
+
import { D as Y } from "./dropdown-menu-BC5ZdOMo.js";
|
|
16
16
|
import { X as De } from "./x-CCcI3eJp.js";
|
|
17
|
-
import {
|
|
18
|
-
import { S as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { F as
|
|
23
|
-
import Et from "
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { A as Ae } from "./
|
|
32
|
-
import {
|
|
17
|
+
import { R as Rt } from "./refresh-cw-CC8jSKMr.js";
|
|
18
|
+
import { S as pe } from "./search-BonnQsHv.js";
|
|
19
|
+
import { c as ke } from "./createLucideIcon-CrFbzy84.js";
|
|
20
|
+
import { G as Dt } from "./grip-vertical-Dlg0_k5C.js";
|
|
21
|
+
import { P as kt } from "./printer-CeVEWfQq.js";
|
|
22
|
+
import { F as Ee } from "./file-text-DSNuv2B8.js";
|
|
23
|
+
import { F as Et } from "./file-spreadsheet-zUkY8rJ2.js";
|
|
24
|
+
import It from "i18next";
|
|
25
|
+
import { S as Ie } from "./select-hsCaJSX3.js";
|
|
26
|
+
import { u as zt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
27
|
+
import { u as At } from "./use-theme-C2dHKUAN.js";
|
|
28
|
+
import { u as Pt } from "./registry-nPAVE19X.js";
|
|
29
|
+
import { D as ze } from "./date-range-picker-D4dgDlLU.js";
|
|
30
|
+
import { M as Ot } from "./multi-select-DOLO3K_z.js";
|
|
31
|
+
import { A as Ae } from "./autocomplete-DIgdhCGJ.js";
|
|
32
|
+
import { N as ee } from "./number-input-Dj5L3pXK.js";
|
|
33
|
+
import { B as Mt } from "./badge-CptERaHx.js";
|
|
34
|
+
import { A as Pe } from "./avatar-BNQNhoyL.js";
|
|
35
|
+
import { T as jt } from "./tooltip-DvmfrNvB.js";
|
|
33
36
|
import { T as he } from "./timestamp-BV2lC-wV.js";
|
|
34
|
-
import { S as
|
|
35
|
-
import { S as
|
|
36
|
-
import {
|
|
37
|
+
import { S as Lt } from "./square-check-big-Jr-0202D.js";
|
|
38
|
+
import { S as _t } from "./square-CZoGU14v.js";
|
|
39
|
+
import { u as $t } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
40
|
+
import { c as Oe, a as Me, b as je, d as Le } from "./input-surface-xyERuLU_.js";
|
|
37
41
|
/**
|
|
38
42
|
* @license lucide-react v1.8.0 - ISC
|
|
39
43
|
*
|
|
40
44
|
* This source code is licensed under the ISC license.
|
|
41
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
42
46
|
*/
|
|
43
|
-
const
|
|
47
|
+
const qt = [
|
|
44
48
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
45
49
|
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
46
|
-
],
|
|
50
|
+
], Gt = ke("columns-2", qt);
|
|
47
51
|
/**
|
|
48
52
|
* @license lucide-react v1.8.0 - ISC
|
|
49
53
|
*
|
|
50
54
|
* This source code is licensed under the ISC license.
|
|
51
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
52
56
|
*/
|
|
53
|
-
const
|
|
57
|
+
const Vt = [
|
|
54
58
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
55
59
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
56
60
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
57
|
-
], ne =
|
|
58
|
-
|
|
59
|
-
* @license lucide-react v1.8.0 - ISC
|
|
60
|
-
*
|
|
61
|
-
* This source code is licensed under the ISC license.
|
|
62
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/
|
|
64
|
-
const $t = [
|
|
65
|
-
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
66
|
-
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
67
|
-
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
68
|
-
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
69
|
-
], qt = pe("refresh-cw", $t);
|
|
70
|
-
function Gt(t) {
|
|
61
|
+
], ne = ke("download", Vt);
|
|
62
|
+
function Bt(t) {
|
|
71
63
|
if (!we(t)) return t;
|
|
72
64
|
const e = t, a = e.props.className ?? "", n = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} ds:size-4`.trim();
|
|
73
65
|
return Fe(e, { className: n, size: e.props.size ?? 16 });
|
|
@@ -81,19 +73,19 @@ function $(t) {
|
|
|
81
73
|
);
|
|
82
74
|
return e;
|
|
83
75
|
}
|
|
84
|
-
function
|
|
76
|
+
function Ut({
|
|
85
77
|
getApi: t,
|
|
86
78
|
selectionCount: e,
|
|
87
79
|
onPrint: a,
|
|
88
80
|
children: n
|
|
89
81
|
}) {
|
|
90
|
-
const r =
|
|
82
|
+
const r = z(
|
|
91
83
|
() => ({ getApi: t, selectionCount: e, onPrint: a }),
|
|
92
84
|
[t, e, a]
|
|
93
85
|
);
|
|
94
86
|
return /* @__PURE__ */ s(_e.Provider, { value: r, children: n });
|
|
95
87
|
}
|
|
96
|
-
const
|
|
88
|
+
const Kt = [
|
|
97
89
|
"data-table-toolbar",
|
|
98
90
|
// Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
|
|
99
91
|
// Actions cluster on narrow screens. From `sm` (≥640px) we switch to
|
|
@@ -112,20 +104,20 @@ const Bt = [
|
|
|
112
104
|
"ds:border ds:border-[color:var(--card-border)]",
|
|
113
105
|
"ds:shadow-[var(--shadow-sm)]",
|
|
114
106
|
"ds:py-[var(--spacing-sm)] ds:px-[var(--spacing-md)]"
|
|
115
|
-
].join(" "),
|
|
107
|
+
].join(" "), $e = _(
|
|
116
108
|
({ className: t, children: e, ...a }, n) => /* @__PURE__ */ s(
|
|
117
109
|
"div",
|
|
118
110
|
{
|
|
119
111
|
ref: n,
|
|
120
112
|
role: "toolbar",
|
|
121
|
-
className: [
|
|
113
|
+
className: [Kt, t ?? ""].join(" ").trim(),
|
|
122
114
|
...a,
|
|
123
115
|
children: e
|
|
124
116
|
}
|
|
125
117
|
)
|
|
126
118
|
);
|
|
127
|
-
|
|
128
|
-
const
|
|
119
|
+
$e.displayName = "DataTable.Toolbar";
|
|
120
|
+
const qe = _(
|
|
129
121
|
({ className: t, children: e, ...a }, n) => /* @__PURE__ */ s(
|
|
130
122
|
"div",
|
|
131
123
|
{
|
|
@@ -144,8 +136,8 @@ const $e = j(
|
|
|
144
136
|
}
|
|
145
137
|
)
|
|
146
138
|
);
|
|
147
|
-
|
|
148
|
-
const
|
|
139
|
+
qe.displayName = "DataTable.Toolbar.FilterBar";
|
|
140
|
+
const Ge = _(
|
|
149
141
|
({ className: t, children: e, ...a }, n) => /* @__PURE__ */ s(
|
|
150
142
|
"div",
|
|
151
143
|
{
|
|
@@ -160,8 +152,8 @@ const qe = j(
|
|
|
160
152
|
}
|
|
161
153
|
)
|
|
162
154
|
);
|
|
163
|
-
|
|
164
|
-
const
|
|
155
|
+
Ge.displayName = "DataTable.Toolbar.Actions";
|
|
156
|
+
const Ve = _(
|
|
165
157
|
({ label: t, onExport: e, intent: a = "outline", ...n }, r) => {
|
|
166
158
|
const { t: o } = F(), { getApi: l } = $("DataTable.Toolbar.ExportCsv"), u = M(() => {
|
|
167
159
|
const d = l();
|
|
@@ -181,8 +173,8 @@ const Ge = j(
|
|
|
181
173
|
);
|
|
182
174
|
}
|
|
183
175
|
);
|
|
184
|
-
|
|
185
|
-
function
|
|
176
|
+
Ve.displayName = "DataTable.Toolbar.ExportCsv";
|
|
177
|
+
function H(t, e = [30, 30, 30]) {
|
|
186
178
|
if (typeof document > "u") return e;
|
|
187
179
|
const a = document.createElement("span");
|
|
188
180
|
a.style.color = `hsl(var(${t}))`, a.style.position = "absolute", a.style.visibility = "hidden", document.body.appendChild(a);
|
|
@@ -191,7 +183,7 @@ function K(t, e = [30, 30, 30]) {
|
|
|
191
183
|
const r = n.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
|
|
192
184
|
return r ? [Number(r[1]), Number(r[2]), Number(r[3])] : e;
|
|
193
185
|
}
|
|
194
|
-
async function
|
|
186
|
+
async function Be(t, e) {
|
|
195
187
|
if (!t) return;
|
|
196
188
|
const [{ jsPDF: a }, { default: n }] = await Promise.all([
|
|
197
189
|
import("./jspdf.es.min-DaapWjR1.js").then((g) => g.j),
|
|
@@ -211,7 +203,7 @@ async function Ve(t, e) {
|
|
|
211
203
|
});
|
|
212
204
|
u.push(b);
|
|
213
205
|
});
|
|
214
|
-
const d =
|
|
206
|
+
const d = H("--muted", [240, 240, 240]), i = H("--foreground", [30, 30, 30]), c = H("--card-foreground", [30, 30, 30]), p = H("--card", [250, 250, 250]), v = new a({ orientation: "landscape" });
|
|
215
207
|
n(v, {
|
|
216
208
|
head: l,
|
|
217
209
|
body: u,
|
|
@@ -225,7 +217,7 @@ async function Ve(t, e) {
|
|
|
225
217
|
}
|
|
226
218
|
}), v.save(e.fileName);
|
|
227
219
|
}
|
|
228
|
-
const
|
|
220
|
+
const Ue = _(
|
|
229
221
|
({ label: t, onClick: e, fileName: a, intent: n = "outline", ...r }, o) => {
|
|
230
222
|
const { t: l } = F(), { getApi: u } = $("DataTable.Toolbar.ExportPdf"), d = M(() => {
|
|
231
223
|
const i = u();
|
|
@@ -233,7 +225,7 @@ const Be = j(
|
|
|
233
225
|
e(i);
|
|
234
226
|
return;
|
|
235
227
|
}
|
|
236
|
-
|
|
228
|
+
Be(i, {
|
|
237
229
|
fileName: a ?? "data-table-export.pdf"
|
|
238
230
|
});
|
|
239
231
|
}, [u, e, a]);
|
|
@@ -243,7 +235,7 @@ const Be = j(
|
|
|
243
235
|
ref: o,
|
|
244
236
|
type: "button",
|
|
245
237
|
intent: n,
|
|
246
|
-
icon: /* @__PURE__ */ s(
|
|
238
|
+
icon: /* @__PURE__ */ s(Ee, { "aria-hidden": !0 }),
|
|
247
239
|
tooltip: t ?? l("dataTable.exportPdf"),
|
|
248
240
|
onClick: d,
|
|
249
241
|
...r
|
|
@@ -251,8 +243,8 @@ const Be = j(
|
|
|
251
243
|
);
|
|
252
244
|
}
|
|
253
245
|
);
|
|
254
|
-
|
|
255
|
-
const
|
|
246
|
+
Ue.displayName = "DataTable.Toolbar.ExportPdf";
|
|
247
|
+
const Ke = _(
|
|
256
248
|
({ label: t, intent: e = "outline", ...a }, n) => {
|
|
257
249
|
const { t: r } = F(), { onPrint: o } = $("DataTable.Toolbar.Print");
|
|
258
250
|
return /* @__PURE__ */ s(
|
|
@@ -261,7 +253,7 @@ const Ue = j(
|
|
|
261
253
|
ref: n,
|
|
262
254
|
type: "button",
|
|
263
255
|
intent: e,
|
|
264
|
-
icon: /* @__PURE__ */ s(
|
|
256
|
+
icon: /* @__PURE__ */ s(kt, { "aria-hidden": !0 }),
|
|
265
257
|
tooltip: t ?? r("dataTable.print"),
|
|
266
258
|
onClick: o,
|
|
267
259
|
...a
|
|
@@ -269,7 +261,7 @@ const Ue = j(
|
|
|
269
261
|
);
|
|
270
262
|
}
|
|
271
263
|
);
|
|
272
|
-
|
|
264
|
+
Ke.displayName = "DataTable.Toolbar.Print";
|
|
273
265
|
const He = ({ placeholder: t, debounceMs: e = 150 }) => {
|
|
274
266
|
const { t: a } = F(), { getApi: n } = $("DataTable.Toolbar.QuickSearch"), [r, o] = R(""), l = X(void 0);
|
|
275
267
|
return P(() => (l.current && window.clearTimeout(l.current), l.current = window.setTimeout(() => {
|
|
@@ -292,7 +284,7 @@ const He = ({ placeholder: t, debounceMs: e = 150 }) => {
|
|
|
292
284
|
value: r,
|
|
293
285
|
onChange: (u) => o(u.target.value),
|
|
294
286
|
placeholder: t ?? a("dataTable.quickSearch.placeholder", "Search…"),
|
|
295
|
-
startAdornment: /* @__PURE__ */ s(
|
|
287
|
+
startAdornment: /* @__PURE__ */ s(pe, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
296
288
|
clearable: !0,
|
|
297
289
|
onClear: () => o(""),
|
|
298
290
|
"aria-label": a("dataTable.quickSearch.label", "Quick search")
|
|
@@ -300,7 +292,7 @@ const He = ({ placeholder: t, debounceMs: e = 150 }) => {
|
|
|
300
292
|
) });
|
|
301
293
|
};
|
|
302
294
|
He.displayName = "DataTable.Toolbar.QuickSearch";
|
|
303
|
-
const
|
|
295
|
+
const We = _(
|
|
304
296
|
({ onRefresh: t, label: e, intent: a = "outline", ...n }, r) => {
|
|
305
297
|
const { t: o } = F();
|
|
306
298
|
return /* @__PURE__ */ s(
|
|
@@ -309,7 +301,7 @@ const Ke = j(
|
|
|
309
301
|
ref: r,
|
|
310
302
|
type: "button",
|
|
311
303
|
intent: a,
|
|
312
|
-
icon: /* @__PURE__ */ s(
|
|
304
|
+
icon: /* @__PURE__ */ s(Rt, { "aria-hidden": !0 }),
|
|
313
305
|
tooltip: e ?? o("dataTable.refresh", "Refresh"),
|
|
314
306
|
onClick: t,
|
|
315
307
|
...n
|
|
@@ -317,8 +309,8 @@ const Ke = j(
|
|
|
317
309
|
);
|
|
318
310
|
}
|
|
319
311
|
);
|
|
320
|
-
|
|
321
|
-
function
|
|
312
|
+
We.displayName = "DataTable.Toolbar.Refresh";
|
|
313
|
+
function Ht(t) {
|
|
322
314
|
if (!t || typeof t != "object") return "";
|
|
323
315
|
const e = t;
|
|
324
316
|
if (typeof e.filter == "string" || typeof e.filter == "number") {
|
|
@@ -327,7 +319,7 @@ function Ut(t) {
|
|
|
327
319
|
}
|
|
328
320
|
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(", ") : "";
|
|
329
321
|
}
|
|
330
|
-
const
|
|
322
|
+
const Qe = () => {
|
|
331
323
|
const { t } = F(), { getApi: e } = $("DataTable.Toolbar.FilterChips"), [a, n] = R([]), [r, o] = R(""), l = M(() => {
|
|
332
324
|
const c = e();
|
|
333
325
|
if (!c) {
|
|
@@ -340,7 +332,7 @@ const We = () => {
|
|
|
340
332
|
g.push({
|
|
341
333
|
colId: y,
|
|
342
334
|
headerName: f,
|
|
343
|
-
text:
|
|
335
|
+
text: Ht(p[y])
|
|
344
336
|
});
|
|
345
337
|
}
|
|
346
338
|
n(g);
|
|
@@ -393,7 +385,7 @@ const We = () => {
|
|
|
393
385
|
c.colId
|
|
394
386
|
)),
|
|
395
387
|
/* @__PURE__ */ s(
|
|
396
|
-
|
|
388
|
+
L,
|
|
397
389
|
{
|
|
398
390
|
type: "button",
|
|
399
391
|
intent: "ghost",
|
|
@@ -407,8 +399,8 @@ const We = () => {
|
|
|
407
399
|
}
|
|
408
400
|
);
|
|
409
401
|
};
|
|
410
|
-
|
|
411
|
-
const
|
|
402
|
+
Qe.displayName = "DataTable.Toolbar.FilterChips";
|
|
403
|
+
const Xe = ({
|
|
412
404
|
field: t,
|
|
413
405
|
options: e,
|
|
414
406
|
label: a
|
|
@@ -437,7 +429,7 @@ const Qe = ({
|
|
|
437
429
|
children: e.map((d) => {
|
|
438
430
|
const i = o === d.value;
|
|
439
431
|
return /* @__PURE__ */ s(
|
|
440
|
-
|
|
432
|
+
L,
|
|
441
433
|
{
|
|
442
434
|
type: "button",
|
|
443
435
|
size: "sm",
|
|
@@ -452,9 +444,9 @@ const Qe = ({
|
|
|
452
444
|
}
|
|
453
445
|
);
|
|
454
446
|
};
|
|
455
|
-
|
|
456
|
-
const
|
|
457
|
-
async function
|
|
447
|
+
Xe.displayName = "DataTable.Toolbar.FacetFilter";
|
|
448
|
+
const Wt = ["csv", "xlsx", "pdf"];
|
|
449
|
+
async function Qt(t, e) {
|
|
458
450
|
if (!t) return;
|
|
459
451
|
const a = await import("./exceljs.min-DUJ-5CGx.js").then((y) => y.e), n = new a.Workbook(), r = n.addWorksheet("Sheet1"), l = (t.getColumns() ?? []).filter((y) => y.isVisible());
|
|
460
452
|
r.addRow(
|
|
@@ -473,7 +465,7 @@ async function Kt(t, e) {
|
|
|
473
465
|
})
|
|
474
466
|
);
|
|
475
467
|
});
|
|
476
|
-
const u =
|
|
468
|
+
const u = H("--muted", [240, 240, 240]), d = H("--foreground", [30, 30, 30]), i = r.getRow(1), c = ([y, x, f]) => `${y.toString(16).padStart(2, "0")}${x.toString(16).padStart(2, "0")}${f.toString(16).padStart(2, "0")}`.toUpperCase();
|
|
477
469
|
i.eachCell((y) => {
|
|
478
470
|
y.font = { bold: !0, color: { argb: `FF${c(d)}` } }, y.fill = {
|
|
479
471
|
type: "pattern",
|
|
@@ -486,18 +478,18 @@ async function Kt(t, e) {
|
|
|
486
478
|
}), g = URL.createObjectURL(v), b = document.createElement("a");
|
|
487
479
|
b.href = g, b.download = e.fileName, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(g);
|
|
488
480
|
}
|
|
489
|
-
const
|
|
490
|
-
function
|
|
491
|
-
const t = Se(
|
|
481
|
+
const Je = Ne(null);
|
|
482
|
+
function Xt() {
|
|
483
|
+
const t = Se(Je);
|
|
492
484
|
if (!t)
|
|
493
485
|
throw new Error(
|
|
494
486
|
"DataTable.Toolbar.ExportMenu.Item must be rendered inside DataTable.Toolbar.ExportMenu."
|
|
495
487
|
);
|
|
496
488
|
return t;
|
|
497
489
|
}
|
|
498
|
-
const
|
|
499
|
-
const { t: a } = F(), { getApi: n } = $("DataTable.Toolbar.ExportMenu"), r =
|
|
500
|
-
return /* @__PURE__ */ s(
|
|
490
|
+
const Ze = ({ children: t, label: e }) => {
|
|
491
|
+
const { t: a } = F(), { getApi: n } = $("DataTable.Toolbar.ExportMenu"), r = z(() => ({ getApi: n }), [n]), o = t ?? Wt.map((l) => /* @__PURE__ */ s(me, { format: l }, l));
|
|
492
|
+
return /* @__PURE__ */ s(Je.Provider, { value: r, children: /* @__PURE__ */ E(Y.Root, { children: [
|
|
501
493
|
/* @__PURE__ */ s(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
|
|
502
494
|
B,
|
|
503
495
|
{
|
|
@@ -512,33 +504,33 @@ const Je = ({ children: t, label: e }) => {
|
|
|
512
504
|
/* @__PURE__ */ s(Y.Content, { align: "end", sideOffset: 4, children: o })
|
|
513
505
|
] }) });
|
|
514
506
|
};
|
|
515
|
-
|
|
516
|
-
function
|
|
507
|
+
Ze.displayName = "DataTable.Toolbar.ExportMenu";
|
|
508
|
+
function Jt(t, e) {
|
|
517
509
|
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");
|
|
518
510
|
}
|
|
519
|
-
function
|
|
520
|
-
return t === "csv" ? /* @__PURE__ */ s(ne, { "aria-hidden": !0, className: "ds:size-4" }) : t === "xlsx" ? /* @__PURE__ */ s(
|
|
511
|
+
function Zt(t) {
|
|
512
|
+
return t === "csv" ? /* @__PURE__ */ s(ne, { "aria-hidden": !0, className: "ds:size-4" }) : t === "xlsx" ? /* @__PURE__ */ s(Et, { "aria-hidden": !0, className: "ds:size-4" }) : t === "pdf" ? /* @__PURE__ */ s(Ee, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ s(ne, { "aria-hidden": !0, className: "ds:size-4" });
|
|
521
513
|
}
|
|
522
|
-
const
|
|
514
|
+
const me = ({
|
|
523
515
|
format: t,
|
|
524
516
|
label: e,
|
|
525
517
|
onClick: a,
|
|
526
518
|
fileName: n
|
|
527
519
|
}) => {
|
|
528
|
-
const { t: r } = F(), { getApi: o } =
|
|
520
|
+
const { t: r } = F(), { getApi: o } = Xt(), l = M(() => {
|
|
529
521
|
const u = o();
|
|
530
522
|
if (t === "csv") {
|
|
531
523
|
u == null || u.exportDataAsCsv();
|
|
532
524
|
return;
|
|
533
525
|
}
|
|
534
526
|
if (t === "pdf") {
|
|
535
|
-
|
|
527
|
+
Be(u, {
|
|
536
528
|
fileName: n ?? "data-table-export.pdf"
|
|
537
529
|
});
|
|
538
530
|
return;
|
|
539
531
|
}
|
|
540
532
|
if (t === "xlsx") {
|
|
541
|
-
|
|
533
|
+
Qt(u, {
|
|
542
534
|
fileName: n ?? "data-table-export.xlsx"
|
|
543
535
|
});
|
|
544
536
|
return;
|
|
@@ -546,22 +538,22 @@ const ge = ({
|
|
|
546
538
|
a == null || a(u);
|
|
547
539
|
}, [t, n, a, o]);
|
|
548
540
|
return /* @__PURE__ */ s(Y.Item, { onSelect: l, children: /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
549
|
-
|
|
550
|
-
/* @__PURE__ */ s("span", { children: e ??
|
|
541
|
+
Zt(t),
|
|
542
|
+
/* @__PURE__ */ s("span", { children: e ?? Jt(r, t) })
|
|
551
543
|
] }) });
|
|
552
544
|
};
|
|
553
|
-
|
|
554
|
-
function
|
|
545
|
+
me.displayName = "DataTable.Toolbar.ExportMenu.Item";
|
|
546
|
+
function Yt(t) {
|
|
555
547
|
return t ? (t.getColumns() ?? []).map((a) => a.getColDef().hide === void 0 && a.getColId().startsWith("ag-Grid-") ? null : {
|
|
556
548
|
colId: a.getColId(),
|
|
557
549
|
displayName: t.getDisplayNameForColumn(a, null) || a.getColId(),
|
|
558
550
|
visible: a.isVisible()
|
|
559
551
|
}).filter((a) => a !== null) : [];
|
|
560
552
|
}
|
|
561
|
-
const
|
|
553
|
+
const Ye = ({ label: t }) => {
|
|
562
554
|
const { t: e } = F(), { getApi: a } = $("DataTable.Toolbar.ColumnToggle"), [n, r] = R(!1), [o, l] = R([]), [u, d] = R(null), [i, c] = R(null);
|
|
563
555
|
P(() => {
|
|
564
|
-
n && l(
|
|
556
|
+
n && l(Yt(a()));
|
|
565
557
|
}, [n, a]);
|
|
566
558
|
const p = M(
|
|
567
559
|
(b, y) => {
|
|
@@ -581,8 +573,8 @@ const Ze = ({ label: t }) => {
|
|
|
581
573
|
l((m) => {
|
|
582
574
|
const h = m.findIndex((D) => D.colId === b), C = m.findIndex((D) => D.colId === y);
|
|
583
575
|
if (h < 0 || C < 0) return m;
|
|
584
|
-
const S = [...m], [
|
|
585
|
-
return S.splice(C, 0,
|
|
576
|
+
const S = [...m], [I] = S.splice(h, 1);
|
|
577
|
+
return S.splice(C, 0, I), S;
|
|
586
578
|
});
|
|
587
579
|
const f = o.findIndex((m) => m.colId === y);
|
|
588
580
|
f >= 0 && x.moveColumns([b], f);
|
|
@@ -595,7 +587,7 @@ const Ze = ({ label: t }) => {
|
|
|
595
587
|
{
|
|
596
588
|
type: "button",
|
|
597
589
|
intent: "outline",
|
|
598
|
-
icon: /* @__PURE__ */ s(
|
|
590
|
+
icon: /* @__PURE__ */ s(Gt, { "aria-hidden": !0 }),
|
|
599
591
|
"aria-label": g,
|
|
600
592
|
"aria-haspopup": "dialog"
|
|
601
593
|
}
|
|
@@ -641,7 +633,7 @@ const Ze = ({ label: t }) => {
|
|
|
641
633
|
{
|
|
642
634
|
"aria-hidden": "true",
|
|
643
635
|
className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
|
|
644
|
-
children: /* @__PURE__ */ s(
|
|
636
|
+
children: /* @__PURE__ */ s(Dt, { className: "ds:size-4" })
|
|
645
637
|
}
|
|
646
638
|
),
|
|
647
639
|
/* @__PURE__ */ s(
|
|
@@ -662,20 +654,20 @@ const Ze = ({ label: t }) => {
|
|
|
662
654
|
] })
|
|
663
655
|
] });
|
|
664
656
|
};
|
|
665
|
-
|
|
666
|
-
const
|
|
657
|
+
Ye.displayName = "DataTable.Toolbar.ColumnToggle";
|
|
658
|
+
const et = _(
|
|
667
659
|
({ label: t, icon: e, onClick: a, variant: n = "default", size: r = "sm", ...o }, l) => {
|
|
668
660
|
const { t: u } = F(), { getApi: d, selectionCount: i } = $(
|
|
669
661
|
"DataTable.Toolbar.BulkAction"
|
|
670
662
|
);
|
|
671
663
|
return i === 0 ? null : /* @__PURE__ */ E(
|
|
672
|
-
|
|
664
|
+
L,
|
|
673
665
|
{
|
|
674
666
|
ref: l,
|
|
675
667
|
type: "button",
|
|
676
668
|
intent: n === "destructive" ? "destructive" : "secondary",
|
|
677
669
|
size: r,
|
|
678
|
-
startIcon:
|
|
670
|
+
startIcon: Bt(e),
|
|
679
671
|
onClick: () => a(d()),
|
|
680
672
|
"aria-label": `${t} (${u("dataTable.bulkAction", { count: i })})`,
|
|
681
673
|
...o,
|
|
@@ -694,32 +686,32 @@ const Ye = j(
|
|
|
694
686
|
);
|
|
695
687
|
}
|
|
696
688
|
);
|
|
697
|
-
|
|
698
|
-
const
|
|
699
|
-
Item:
|
|
700
|
-
}), te = Object.assign(
|
|
701
|
-
FilterBar:
|
|
702
|
-
Actions:
|
|
689
|
+
et.displayName = "DataTable.Toolbar.BulkAction";
|
|
690
|
+
const ea = Object.assign(Ze, {
|
|
691
|
+
Item: me
|
|
692
|
+
}), te = Object.assign($e, {
|
|
693
|
+
FilterBar: qe,
|
|
694
|
+
Actions: Ge,
|
|
703
695
|
/** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
|
|
704
|
-
ExportCsv:
|
|
696
|
+
ExportCsv: Ve,
|
|
705
697
|
/** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
|
|
706
|
-
ExportPdf:
|
|
707
|
-
Print:
|
|
708
|
-
ColumnToggle:
|
|
709
|
-
BulkAction:
|
|
698
|
+
ExportPdf: Ue,
|
|
699
|
+
Print: Ke,
|
|
700
|
+
ColumnToggle: Ye,
|
|
701
|
+
BulkAction: et,
|
|
710
702
|
QuickSearch: He,
|
|
711
|
-
Refresh:
|
|
712
|
-
FilterChips:
|
|
713
|
-
FacetFilter:
|
|
714
|
-
ExportMenu:
|
|
715
|
-
}),
|
|
703
|
+
Refresh: We,
|
|
704
|
+
FilterChips: Qe,
|
|
705
|
+
FacetFilter: Xe,
|
|
706
|
+
ExportMenu: ea
|
|
707
|
+
}), ta = [
|
|
716
708
|
"contains",
|
|
717
709
|
"equals",
|
|
718
710
|
"startsWith",
|
|
719
711
|
"endsWith",
|
|
720
712
|
"notContains"
|
|
721
713
|
];
|
|
722
|
-
function
|
|
714
|
+
function aa(t) {
|
|
723
715
|
const e = new Intl.Collator(t, {
|
|
724
716
|
sensitivity: "base",
|
|
725
717
|
usage: "search"
|
|
@@ -742,20 +734,20 @@ function ea(t) {
|
|
|
742
734
|
) === 0
|
|
743
735
|
};
|
|
744
736
|
}
|
|
745
|
-
function
|
|
737
|
+
function na(t) {
|
|
746
738
|
return t == null ? null : typeof t == "string" ? t : String(t);
|
|
747
739
|
}
|
|
748
|
-
function
|
|
740
|
+
function ra(t) {
|
|
749
741
|
const { model: e, onModelChange: a, getValue: n, placeholder: r, defaultOperator: o } = t, { t: l } = F("ui"), u = (e == null ? void 0 : e.type) ?? o ?? "contains", [d, i] = R(u), [c, p] = R((e == null ? void 0 : e.filter) ?? "");
|
|
750
742
|
P(() => {
|
|
751
743
|
i((e == null ? void 0 : e.type) ?? o ?? "contains"), p((e == null ? void 0 : e.filter) ?? "");
|
|
752
744
|
}, [e, o]);
|
|
753
|
-
const v =
|
|
745
|
+
const v = z(() => aa(It.language), []);
|
|
754
746
|
J({
|
|
755
747
|
doesFilterPass: (f) => {
|
|
756
748
|
const m = e;
|
|
757
749
|
if (!m || m.filter === "") return !0;
|
|
758
|
-
const h =
|
|
750
|
+
const h = na(n(f.node));
|
|
759
751
|
if (h === null) return !1;
|
|
760
752
|
switch (m.type) {
|
|
761
753
|
case "equals":
|
|
@@ -783,7 +775,7 @@ function aa(t) {
|
|
|
783
775
|
function b() {
|
|
784
776
|
p(""), i(o ?? "contains"), a(null);
|
|
785
777
|
}
|
|
786
|
-
const y =
|
|
778
|
+
const y = ta.map(
|
|
787
779
|
(f) => ({
|
|
788
780
|
value: f,
|
|
789
781
|
label: l(`dataTable.textFilter.operators.${f}`)
|
|
@@ -796,7 +788,7 @@ function aa(t) {
|
|
|
796
788
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
797
789
|
children: [
|
|
798
790
|
/* @__PURE__ */ s(
|
|
799
|
-
|
|
791
|
+
Ie,
|
|
800
792
|
{
|
|
801
793
|
size: "sm",
|
|
802
794
|
options: y,
|
|
@@ -818,18 +810,18 @@ function aa(t) {
|
|
|
818
810
|
},
|
|
819
811
|
placeholder: x,
|
|
820
812
|
"aria-label": x,
|
|
821
|
-
startAdornment: /* @__PURE__ */ s(
|
|
813
|
+
startAdornment: /* @__PURE__ */ s(pe, { "aria-hidden": "true", className: "ds:size-4" })
|
|
822
814
|
}
|
|
823
815
|
),
|
|
824
816
|
/* @__PURE__ */ E("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: [
|
|
825
|
-
/* @__PURE__ */ s(
|
|
826
|
-
/* @__PURE__ */ s(
|
|
817
|
+
/* @__PURE__ */ s(L, { intent: "ghost", size: "sm", onClick: b, type: "button", children: l("dataTable.textFilter.clear") }),
|
|
818
|
+
/* @__PURE__ */ s(L, { intent: "primary", size: "sm", onClick: g, type: "button", children: l("dataTable.textFilter.apply") })
|
|
827
819
|
] })
|
|
828
820
|
]
|
|
829
821
|
}
|
|
830
822
|
);
|
|
831
823
|
}
|
|
832
|
-
function
|
|
824
|
+
function sa(t) {
|
|
833
825
|
var p, v;
|
|
834
826
|
const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((v = (p = n == null ? void 0 : n.getColDef) == null ? void 0 : p.call(n)) == null ? void 0 : v.filterParams) ?? {}, l = o.defaultOperator ?? "contains", u = o.placeholder ?? r("dataTable.textFilter.placeholder"), [d, i] = R((e == null ? void 0 : e.filter) ?? "");
|
|
835
827
|
P(() => {
|
|
@@ -856,7 +848,7 @@ function na(t) {
|
|
|
856
848
|
onChange: (g) => i(g.target.value),
|
|
857
849
|
placeholder: u,
|
|
858
850
|
"aria-label": u,
|
|
859
|
-
startAdornment: /* @__PURE__ */ s(
|
|
851
|
+
startAdornment: /* @__PURE__ */ s(pe, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
860
852
|
endAdornment: d.length > 0 ? /* @__PURE__ */ s(
|
|
861
853
|
"button",
|
|
862
854
|
{
|
|
@@ -870,7 +862,7 @@ function na(t) {
|
|
|
870
862
|
}
|
|
871
863
|
) });
|
|
872
864
|
}
|
|
873
|
-
const
|
|
865
|
+
const oa = {
|
|
874
866
|
id: "data-table",
|
|
875
867
|
capabilities: [
|
|
876
868
|
"select_single",
|
|
@@ -979,7 +971,7 @@ const ra = {
|
|
|
979
971
|
}
|
|
980
972
|
};
|
|
981
973
|
wt.registerModules([Ft]);
|
|
982
|
-
const
|
|
974
|
+
const la = Nt("ag-theme-alfadocs ds:w-full", {
|
|
983
975
|
variants: {
|
|
984
976
|
density: {
|
|
985
977
|
default: "",
|
|
@@ -996,9 +988,9 @@ const sa = Nt("ag-theme-alfadocs ds:w-full", {
|
|
|
996
988
|
bordered: !0
|
|
997
989
|
}
|
|
998
990
|
});
|
|
999
|
-
function
|
|
991
|
+
function ia() {
|
|
1000
992
|
const { t } = F();
|
|
1001
|
-
return
|
|
993
|
+
return z(
|
|
1002
994
|
() => ({
|
|
1003
995
|
// Filter strings
|
|
1004
996
|
contains: t("dataTable.agGrid.contains"),
|
|
@@ -1030,7 +1022,7 @@ function oa() {
|
|
|
1030
1022
|
[t]
|
|
1031
1023
|
);
|
|
1032
1024
|
}
|
|
1033
|
-
function
|
|
1025
|
+
function ca() {
|
|
1034
1026
|
return /* @__PURE__ */ s(
|
|
1035
1027
|
"div",
|
|
1036
1028
|
{
|
|
@@ -1048,7 +1040,7 @@ function la() {
|
|
|
1048
1040
|
}
|
|
1049
1041
|
);
|
|
1050
1042
|
}
|
|
1051
|
-
function
|
|
1043
|
+
function da() {
|
|
1052
1044
|
const { t } = F();
|
|
1053
1045
|
return /* @__PURE__ */ s(
|
|
1054
1046
|
Ct,
|
|
@@ -1060,7 +1052,7 @@ function ia() {
|
|
|
1060
1052
|
}
|
|
1061
1053
|
);
|
|
1062
1054
|
}
|
|
1063
|
-
function
|
|
1055
|
+
function ua(t) {
|
|
1064
1056
|
try {
|
|
1065
1057
|
const e = localStorage.getItem(`data-table-col-state:${t}`);
|
|
1066
1058
|
return e ? JSON.parse(e) : null;
|
|
@@ -1068,7 +1060,7 @@ function ca(t) {
|
|
|
1068
1060
|
return null;
|
|
1069
1061
|
}
|
|
1070
1062
|
}
|
|
1071
|
-
function
|
|
1063
|
+
function fa(t, e) {
|
|
1072
1064
|
try {
|
|
1073
1065
|
localStorage.setItem(
|
|
1074
1066
|
`data-table-col-state:${t}`,
|
|
@@ -1077,7 +1069,7 @@ function da(t, e) {
|
|
|
1077
1069
|
} catch {
|
|
1078
1070
|
}
|
|
1079
1071
|
}
|
|
1080
|
-
function
|
|
1072
|
+
function pa(t, e) {
|
|
1081
1073
|
const {
|
|
1082
1074
|
columnDefs: a,
|
|
1083
1075
|
rowData: n,
|
|
@@ -1099,8 +1091,8 @@ function ua(t, e) {
|
|
|
1099
1091
|
getRowClass: h,
|
|
1100
1092
|
pinnedBottomRowData: C,
|
|
1101
1093
|
printMode: S = !1,
|
|
1102
|
-
children:
|
|
1103
|
-
} = t, { t: D, i18n: q } = F(), k = X(null), [G,
|
|
1094
|
+
children: I
|
|
1095
|
+
} = t, { t: D, i18n: q } = F(), k = X(null), [G, at] = R(0), [se, oe] = R(""), nt = ia(), le = z(
|
|
1104
1096
|
() => ({
|
|
1105
1097
|
getSelection: () => {
|
|
1106
1098
|
var w;
|
|
@@ -1128,9 +1120,9 @@ function ua(t, e) {
|
|
|
1128
1120
|
w.forEachNodeAfterFilterAndSort((U) => {
|
|
1129
1121
|
U.id != null && O.push(U.id);
|
|
1130
1122
|
});
|
|
1131
|
-
const A = O.indexOf(T),
|
|
1132
|
-
if (A < 0 ||
|
|
1133
|
-
const [V, ce] = A <=
|
|
1123
|
+
const A = O.indexOf(T), j = O.indexOf(N);
|
|
1124
|
+
if (A < 0 || j < 0) return;
|
|
1125
|
+
const [V, ce] = A <= j ? [A, j] : [j, A], de = new Set(O.slice(V, ce + 1));
|
|
1134
1126
|
w.forEachNode((U) => {
|
|
1135
1127
|
U.id != null && U.setSelected(de.has(U.id));
|
|
1136
1128
|
});
|
|
@@ -1157,8 +1149,8 @@ function ua(t, e) {
|
|
|
1157
1149
|
const N = (O = k.current) == null ? void 0 : O.api;
|
|
1158
1150
|
if (!N) return;
|
|
1159
1151
|
const w = N.getColumnState().map((A) => {
|
|
1160
|
-
const
|
|
1161
|
-
return { ...A, sort:
|
|
1152
|
+
const j = T.find((V) => V.colId === A.colId);
|
|
1153
|
+
return { ...A, sort: j ? j.sort : null };
|
|
1162
1154
|
});
|
|
1163
1155
|
N.applyColumnState({ state: w, defaultState: { sort: null } });
|
|
1164
1156
|
},
|
|
@@ -1177,45 +1169,39 @@ function ua(t, e) {
|
|
|
1177
1169
|
}),
|
|
1178
1170
|
[]
|
|
1179
1171
|
);
|
|
1180
|
-
|
|
1181
|
-
const
|
|
1182
|
-
() => window.matchMedia("(prefers-reduced-motion: reduce)").matches,
|
|
1183
|
-
[]
|
|
1184
|
-
), ot = I(
|
|
1185
|
-
() => document.documentElement.classList.contains("theme-accessible"),
|
|
1186
|
-
[]
|
|
1187
|
-
) && y === "compact" ? "default" : y, lt = I(() => {
|
|
1172
|
+
Tt(e, () => le, [le]), Pt(oa, le, d);
|
|
1173
|
+
const rt = q.dir() === "rtl", st = n === void 0, ot = zt(), { resolvedTheme: ge } = At(), lt = (ge === "light-accessible" || ge === "dark-accessible") && y === "compact" ? "default" : y, it = z(() => {
|
|
1188
1174
|
if (r)
|
|
1189
1175
|
return r === "single" ? { mode: "singleRow" } : {
|
|
1190
1176
|
mode: "multiRow",
|
|
1191
1177
|
headerCheckbox: !0,
|
|
1192
1178
|
checkboxes: !0
|
|
1193
1179
|
};
|
|
1194
|
-
}, [r]),
|
|
1180
|
+
}, [r]), ct = M(() => {
|
|
1195
1181
|
var N;
|
|
1196
1182
|
if (!d || !((N = k.current) != null && N.api)) return;
|
|
1197
|
-
const T =
|
|
1183
|
+
const T = ua(d);
|
|
1198
1184
|
T && k.current.api.applyColumnState({
|
|
1199
1185
|
state: T,
|
|
1200
1186
|
applyOrder: !0
|
|
1201
1187
|
});
|
|
1202
1188
|
}, [d]), ie = M(() => {
|
|
1203
1189
|
var T;
|
|
1204
|
-
d && ((T = k.current) != null && T.api) &&
|
|
1205
|
-
}, [d]),
|
|
1190
|
+
d && ((T = k.current) != null && T.api) && fa(d, k.current.api);
|
|
1191
|
+
}, [d]), dt = M(() => {
|
|
1206
1192
|
var w;
|
|
1207
1193
|
const T = (w = k.current) == null ? void 0 : w.api;
|
|
1208
1194
|
if (!T) return;
|
|
1209
1195
|
const N = T.getSelectedRows();
|
|
1210
|
-
|
|
1211
|
-
}, [i]),
|
|
1196
|
+
at(N.length), i == null || i(N);
|
|
1197
|
+
}, [i]), ut = M(
|
|
1212
1198
|
(T) => {
|
|
1213
1199
|
var w;
|
|
1214
1200
|
const N = (w = k.current) == null ? void 0 : w.api;
|
|
1215
1201
|
if (N) {
|
|
1216
|
-
const A = N.getColumnState().find((
|
|
1202
|
+
const A = N.getColumnState().find((j) => j.sort);
|
|
1217
1203
|
if (A) {
|
|
1218
|
-
const
|
|
1204
|
+
const j = A.colId, V = N.getColumnDef(j), ce = (V == null ? void 0 : V.headerName) ?? j, de = A.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
|
|
1219
1205
|
oe(
|
|
1220
1206
|
D("dataTable.sortAnnounce", {
|
|
1221
1207
|
column: ce,
|
|
@@ -1228,7 +1214,7 @@ function ua(t, e) {
|
|
|
1228
1214
|
c == null || c(T);
|
|
1229
1215
|
},
|
|
1230
1216
|
[c, D]
|
|
1231
|
-
),
|
|
1217
|
+
), ft = M(
|
|
1232
1218
|
(T) => {
|
|
1233
1219
|
p == null || p(T);
|
|
1234
1220
|
},
|
|
@@ -1239,41 +1225,41 @@ function ua(t, e) {
|
|
|
1239
1225
|
const T = setTimeout(() => oe(""), 3e3);
|
|
1240
1226
|
return () => clearTimeout(T);
|
|
1241
1227
|
}, [se]);
|
|
1242
|
-
const
|
|
1228
|
+
const pt = v ?? da, mt = g ?? ca, gt = M(
|
|
1243
1229
|
() => {
|
|
1244
1230
|
var T;
|
|
1245
1231
|
return (T = k.current) == null ? void 0 : T.api;
|
|
1246
1232
|
},
|
|
1247
1233
|
[]
|
|
1248
|
-
),
|
|
1234
|
+
), bt = M(() => {
|
|
1249
1235
|
typeof window < "u" && window.print();
|
|
1250
|
-
}, []),
|
|
1251
|
-
density:
|
|
1236
|
+
}, []), ht = la({
|
|
1237
|
+
density: lt,
|
|
1252
1238
|
bordered: x,
|
|
1253
1239
|
className: m
|
|
1254
|
-
}),
|
|
1240
|
+
}), vt = I ?? /* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(te.Actions, { children: /* @__PURE__ */ s(te.ExportMenu, {}) }) }), yt = S ? !1 : o;
|
|
1255
1241
|
return /* @__PURE__ */ E(
|
|
1256
1242
|
"div",
|
|
1257
1243
|
{
|
|
1258
1244
|
className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1259
|
-
"aria-busy":
|
|
1245
|
+
"aria-busy": st ? "true" : void 0,
|
|
1260
1246
|
"data-component": "data-table",
|
|
1261
1247
|
"data-component-id": d,
|
|
1262
1248
|
"data-print-mode": S ? "true" : void 0,
|
|
1263
1249
|
children: [
|
|
1264
1250
|
!S && /* @__PURE__ */ s(
|
|
1265
|
-
|
|
1251
|
+
Ut,
|
|
1266
1252
|
{
|
|
1267
|
-
getApi:
|
|
1253
|
+
getApi: gt,
|
|
1268
1254
|
selectionCount: G,
|
|
1269
|
-
onPrint:
|
|
1270
|
-
children:
|
|
1255
|
+
onPrint: bt,
|
|
1256
|
+
children: vt
|
|
1271
1257
|
}
|
|
1272
1258
|
),
|
|
1273
1259
|
/* @__PURE__ */ s(
|
|
1274
1260
|
"div",
|
|
1275
1261
|
{
|
|
1276
|
-
className: [
|
|
1262
|
+
className: [ht, S ? "" : f].join(" ").trim(),
|
|
1277
1263
|
children: /* @__PURE__ */ s(
|
|
1278
1264
|
St,
|
|
1279
1265
|
{
|
|
@@ -1288,8 +1274,8 @@ function ua(t, e) {
|
|
|
1288
1274
|
// language instead of AG Grid's stock browser-skinned input.
|
|
1289
1275
|
// Number / date / select columns opt into their dedicated
|
|
1290
1276
|
// wrapper per-column.
|
|
1291
|
-
filter:
|
|
1292
|
-
floatingFilterComponent:
|
|
1277
|
+
filter: ra,
|
|
1278
|
+
floatingFilterComponent: sa,
|
|
1293
1279
|
resizable: !0,
|
|
1294
1280
|
floatingFilter: !0,
|
|
1295
1281
|
// §13d — faint sort icon advertises which columns are
|
|
@@ -1297,13 +1283,13 @@ function ua(t, e) {
|
|
|
1297
1283
|
unSortIcon: !0,
|
|
1298
1284
|
...b == null ? void 0 : b.defaultColDef
|
|
1299
1285
|
},
|
|
1300
|
-
rowSelection:
|
|
1301
|
-
pagination:
|
|
1286
|
+
rowSelection: it,
|
|
1287
|
+
pagination: yt,
|
|
1302
1288
|
paginationPageSize: l,
|
|
1303
1289
|
paginationPageSizeSelector: u,
|
|
1304
1290
|
paginationNumberFormatter: (T) => new Intl.NumberFormat(q.language).format(T.value),
|
|
1305
|
-
animateRows: !
|
|
1306
|
-
enableRtl:
|
|
1291
|
+
animateRows: !ot,
|
|
1292
|
+
enableRtl: rt,
|
|
1307
1293
|
ensureDomOrder: !0,
|
|
1308
1294
|
enableCellSpan: !0,
|
|
1309
1295
|
enableCellTextSelection: !0,
|
|
@@ -1321,19 +1307,19 @@ function ua(t, e) {
|
|
|
1321
1307
|
undoRedoCellEditingLimit: 20,
|
|
1322
1308
|
suppressCellFocus: !1,
|
|
1323
1309
|
rowBuffer: 10,
|
|
1324
|
-
localeText:
|
|
1325
|
-
noRowsOverlayComponent:
|
|
1326
|
-
loadingOverlayComponent:
|
|
1310
|
+
localeText: nt,
|
|
1311
|
+
noRowsOverlayComponent: pt,
|
|
1312
|
+
loadingOverlayComponent: mt,
|
|
1327
1313
|
getRowClass: h,
|
|
1328
1314
|
pinnedBottomRowData: C,
|
|
1329
1315
|
domLayout: S ? "autoHeight" : void 0,
|
|
1330
|
-
onGridReady:
|
|
1316
|
+
onGridReady: ct,
|
|
1331
1317
|
onColumnMoved: ie,
|
|
1332
1318
|
onColumnResized: ie,
|
|
1333
1319
|
onColumnPinned: ie,
|
|
1334
|
-
onSortChanged:
|
|
1335
|
-
onFilterChanged:
|
|
1336
|
-
onSelectionChanged:
|
|
1320
|
+
onSortChanged: ut,
|
|
1321
|
+
onFilterChanged: ft,
|
|
1322
|
+
onSelectionChanged: dt,
|
|
1337
1323
|
...b
|
|
1338
1324
|
}
|
|
1339
1325
|
)
|
|
@@ -1345,13 +1331,13 @@ function ua(t, e) {
|
|
|
1345
1331
|
}
|
|
1346
1332
|
);
|
|
1347
1333
|
}
|
|
1348
|
-
const
|
|
1349
|
-
|
|
1350
|
-
const
|
|
1334
|
+
const tt = _(pa);
|
|
1335
|
+
tt.displayName = "DataTable";
|
|
1336
|
+
const Tn = Object.assign(tt, {
|
|
1351
1337
|
Toolbar: te
|
|
1352
1338
|
});
|
|
1353
|
-
function
|
|
1354
|
-
return
|
|
1339
|
+
function xn(t, e, a) {
|
|
1340
|
+
return z(() => {
|
|
1355
1341
|
const n = {};
|
|
1356
1342
|
for (const r of e) {
|
|
1357
1343
|
let o = 0;
|
|
@@ -1372,7 +1358,7 @@ function Q(t) {
|
|
|
1372
1358
|
const e = new Date(t);
|
|
1373
1359
|
return Number.isNaN(e.getTime()) ? void 0 : e;
|
|
1374
1360
|
}
|
|
1375
|
-
function
|
|
1361
|
+
function Cn(t) {
|
|
1376
1362
|
const { model: e, onModelChange: a, getValue: n, doesRowPassOtherFilter: r } = t, o = {
|
|
1377
1363
|
from: Q(e == null ? void 0 : e.dateFrom),
|
|
1378
1364
|
to: Q(e == null ? void 0 : e.dateTo)
|
|
@@ -1396,9 +1382,9 @@ function bn(t) {
|
|
|
1396
1382
|
dateTo: re(i.to)
|
|
1397
1383
|
});
|
|
1398
1384
|
}
|
|
1399
|
-
return /* @__PURE__ */ s("div", { className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]", children: /* @__PURE__ */ s(
|
|
1385
|
+
return /* @__PURE__ */ s("div", { className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]", children: /* @__PURE__ */ s(ze, { value: l, onChange: d, size: "sm" }) });
|
|
1400
1386
|
}
|
|
1401
|
-
function
|
|
1387
|
+
function Nn(t) {
|
|
1402
1388
|
const { model: e, onModelChange: a } = t, [n, r] = R({
|
|
1403
1389
|
from: Q(e == null ? void 0 : e.dateFrom),
|
|
1404
1390
|
to: Q(e == null ? void 0 : e.dateTo)
|
|
@@ -1414,27 +1400,27 @@ function hn(t) {
|
|
|
1414
1400
|
dateTo: re(l.to)
|
|
1415
1401
|
});
|
|
1416
1402
|
}
|
|
1417
|
-
return /* @__PURE__ */ s("div", { "data-component": "date-range-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
|
|
1403
|
+
return /* @__PURE__ */ s("div", { "data-component": "date-range-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(ze, { value: n, onChange: o, size: "sm" }) });
|
|
1418
1404
|
}
|
|
1419
|
-
function
|
|
1405
|
+
function K(t) {
|
|
1420
1406
|
return typeof t == "number" ? `n:${t}` : `s:${t}`;
|
|
1421
1407
|
}
|
|
1422
|
-
function
|
|
1423
|
-
const { model: e, onModelChange: a, getValue: n, api: r, column: o, options: l, placeholder: u } = t, { t: d } = F("ui"), i =
|
|
1408
|
+
function Sn(t) {
|
|
1409
|
+
const { model: e, onModelChange: a, getValue: n, api: r, column: o, options: l, placeholder: u } = t, { t: d } = F("ui"), i = z(() => {
|
|
1424
1410
|
if (l && l.length > 0) return l;
|
|
1425
1411
|
if (!r || !o) return [];
|
|
1426
1412
|
const f = /* @__PURE__ */ new Map();
|
|
1427
1413
|
return r.forEachNode((m) => {
|
|
1428
1414
|
const h = n(m);
|
|
1429
1415
|
if (h == null) return;
|
|
1430
|
-
const C = typeof h == "string" || typeof h == "number" ? h : String(h), S =
|
|
1416
|
+
const C = typeof h == "string" || typeof h == "number" ? h : String(h), S = K(C);
|
|
1431
1417
|
f.has(S) || f.set(S, { value: C, label: String(C) });
|
|
1432
1418
|
}), Array.from(f.values()).sort(
|
|
1433
1419
|
(m, h) => String(m.label).localeCompare(String(h.label))
|
|
1434
1420
|
);
|
|
1435
|
-
}, [l, r, o, n]), c =
|
|
1421
|
+
}, [l, r, o, n]), c = z(() => {
|
|
1436
1422
|
const f = /* @__PURE__ */ new Set(), m = (e == null ? void 0 : e.values) ?? [];
|
|
1437
|
-
for (const h of m) f.add(
|
|
1423
|
+
for (const h of m) f.add(K(h));
|
|
1438
1424
|
return f;
|
|
1439
1425
|
}, [e]), [p, v] = R(c);
|
|
1440
1426
|
P(() => {
|
|
@@ -1445,8 +1431,8 @@ function vn(t) {
|
|
|
1445
1431
|
if (!m || m.length === 0) return !0;
|
|
1446
1432
|
const h = n(f.node);
|
|
1447
1433
|
if (h == null) return !1;
|
|
1448
|
-
const C = typeof h == "string" || typeof h == "number" ? h : String(h), S =
|
|
1449
|
-
return m.some((
|
|
1434
|
+
const C = typeof h == "string" || typeof h == "number" ? h : String(h), S = K(C);
|
|
1435
|
+
return m.some((I) => K(I) === S);
|
|
1450
1436
|
}
|
|
1451
1437
|
});
|
|
1452
1438
|
function g(f) {
|
|
@@ -1462,7 +1448,7 @@ function vn(t) {
|
|
|
1462
1448
|
}
|
|
1463
1449
|
const f = [];
|
|
1464
1450
|
for (const m of i)
|
|
1465
|
-
p.has(
|
|
1451
|
+
p.has(K(m.value)) && f.push(m.value);
|
|
1466
1452
|
a({ type: "set", values: f });
|
|
1467
1453
|
}
|
|
1468
1454
|
function y() {
|
|
@@ -1482,7 +1468,7 @@ function vn(t) {
|
|
|
1482
1468
|
"aria-label": x,
|
|
1483
1469
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:max-h-[240px] ds:overflow-y-auto",
|
|
1484
1470
|
children: i.length === 0 ? /* @__PURE__ */ s("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children: d("dataTable.agGrid.noRowsToShow") }) : i.map((f) => {
|
|
1485
|
-
const m =
|
|
1471
|
+
const m = K(f.value);
|
|
1486
1472
|
return /* @__PURE__ */ s(
|
|
1487
1473
|
Re,
|
|
1488
1474
|
{
|
|
@@ -1497,26 +1483,26 @@ function vn(t) {
|
|
|
1497
1483
|
}
|
|
1498
1484
|
),
|
|
1499
1485
|
/* @__PURE__ */ E("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: [
|
|
1500
|
-
/* @__PURE__ */ s(
|
|
1501
|
-
/* @__PURE__ */ s(
|
|
1486
|
+
/* @__PURE__ */ s(L, { intent: "ghost", size: "sm", onClick: y, type: "button", children: d("dataTable.selectFilter.clear") }),
|
|
1487
|
+
/* @__PURE__ */ s(L, { intent: "primary", size: "sm", onClick: b, type: "button", children: d("dataTable.selectFilter.apply") })
|
|
1502
1488
|
] })
|
|
1503
1489
|
]
|
|
1504
1490
|
}
|
|
1505
1491
|
);
|
|
1506
1492
|
}
|
|
1507
|
-
function
|
|
1493
|
+
function wn(t) {
|
|
1508
1494
|
var c, p;
|
|
1509
|
-
const { model: e, onModelChange: a, column: n } = t, r = ((p = (c = n == null ? void 0 : n.getColDef) == null ? void 0 : c.call(n)) == null ? void 0 : p.filterParams) ?? {}, o = r.options ?? [], l =
|
|
1495
|
+
const { model: e, onModelChange: a, column: n } = t, r = ((p = (c = n == null ? void 0 : n.getColDef) == null ? void 0 : c.call(n)) == null ? void 0 : p.filterParams) ?? {}, o = r.options ?? [], l = z(() => {
|
|
1510
1496
|
const v = /* @__PURE__ */ new Map();
|
|
1511
1497
|
for (const g of o) v.set(String(g.value), g.value);
|
|
1512
1498
|
return v;
|
|
1513
|
-
}, [o]), u =
|
|
1499
|
+
}, [o]), u = z(
|
|
1514
1500
|
() => o.map((v) => ({
|
|
1515
1501
|
value: String(v.value),
|
|
1516
1502
|
label: v.label
|
|
1517
1503
|
})),
|
|
1518
1504
|
[o]
|
|
1519
|
-
), d =
|
|
1505
|
+
), d = z(
|
|
1520
1506
|
() => ((e == null ? void 0 : e.values) ?? []).map((v) => String(v)),
|
|
1521
1507
|
[e]
|
|
1522
1508
|
);
|
|
@@ -1533,7 +1519,7 @@ function yn(t) {
|
|
|
1533
1519
|
a({ type: "set", values: g });
|
|
1534
1520
|
}
|
|
1535
1521
|
return /* @__PURE__ */ s("div", { "data-component": "select-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
|
|
1536
|
-
|
|
1522
|
+
Ot,
|
|
1537
1523
|
{
|
|
1538
1524
|
size: "sm",
|
|
1539
1525
|
options: u,
|
|
@@ -1547,7 +1533,7 @@ function yn(t) {
|
|
|
1547
1533
|
function W(t) {
|
|
1548
1534
|
return t.trim().toLocaleLowerCase();
|
|
1549
1535
|
}
|
|
1550
|
-
function
|
|
1536
|
+
function Fn(t) {
|
|
1551
1537
|
const {
|
|
1552
1538
|
model: e,
|
|
1553
1539
|
onModelChange: a,
|
|
@@ -1557,7 +1543,7 @@ function Tn(t) {
|
|
|
1557
1543
|
options: l,
|
|
1558
1544
|
loadOptions: u,
|
|
1559
1545
|
placeholder: d
|
|
1560
|
-
} = t, { t: i } = F("ui"), c =
|
|
1546
|
+
} = t, { t: i } = F("ui"), c = z(() => {
|
|
1561
1547
|
if (l && l.length > 0) return l;
|
|
1562
1548
|
if (!r || !o) return [];
|
|
1563
1549
|
const m = /* @__PURE__ */ new Map();
|
|
@@ -1569,11 +1555,11 @@ function Tn(t) {
|
|
|
1569
1555
|
}), Array.from(m.values()).sort(
|
|
1570
1556
|
(h, C) => h.label.localeCompare(C.label)
|
|
1571
1557
|
);
|
|
1572
|
-
}, [l, r, o, n]), p =
|
|
1558
|
+
}, [l, r, o, n]), p = z(() => async (m, h) => {
|
|
1573
1559
|
if (u)
|
|
1574
1560
|
return (await u(m, h)).map((D) => ({ value: D.value, label: D.label }));
|
|
1575
1561
|
const C = W(m);
|
|
1576
|
-
return (C ? c.filter((
|
|
1562
|
+
return (C ? c.filter((I) => W(I.label).includes(C)) : c).slice(0, 50).map((I) => ({ value: I.value, label: I.label }));
|
|
1577
1563
|
}, [u, c]), [v, g] = R((e == null ? void 0 : e.value) ?? "");
|
|
1578
1564
|
P(() => {
|
|
1579
1565
|
g((e == null ? void 0 : e.value) ?? "");
|
|
@@ -1604,7 +1590,7 @@ function Tn(t) {
|
|
|
1604
1590
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
1605
1591
|
children: [
|
|
1606
1592
|
/* @__PURE__ */ s(
|
|
1607
|
-
|
|
1593
|
+
Ae,
|
|
1608
1594
|
{
|
|
1609
1595
|
size: "sm",
|
|
1610
1596
|
value: v,
|
|
@@ -1615,14 +1601,14 @@ function Tn(t) {
|
|
|
1615
1601
|
"aria-label": f
|
|
1616
1602
|
}
|
|
1617
1603
|
),
|
|
1618
|
-
/* @__PURE__ */ s("div", { className: "ds:flex ds:items-center ds:justify-end ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: /* @__PURE__ */ s(
|
|
1604
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:items-center ds:justify-end ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: /* @__PURE__ */ s(L, { intent: "ghost", size: "sm", onClick: x, type: "button", children: i("dataTable.typeaheadFilter.clear") }) })
|
|
1619
1605
|
]
|
|
1620
1606
|
}
|
|
1621
1607
|
);
|
|
1622
1608
|
}
|
|
1623
|
-
function
|
|
1609
|
+
function Rn(t) {
|
|
1624
1610
|
var b, y;
|
|
1625
|
-
const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((y = (b = n == null ? void 0 : n.getColDef) == null ? void 0 : b.call(n)) == null ? void 0 : y.filterParams) ?? {}, l = o.options ?? [], u = o.loadOptions, d = o.placeholder ?? r("dataTable.typeaheadFilter.placeholder"), i =
|
|
1611
|
+
const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((y = (b = n == null ? void 0 : n.getColDef) == null ? void 0 : b.call(n)) == null ? void 0 : y.filterParams) ?? {}, l = o.options ?? [], u = o.loadOptions, d = o.placeholder ?? r("dataTable.typeaheadFilter.placeholder"), i = z(() => async (x, f) => {
|
|
1626
1612
|
if (u)
|
|
1627
1613
|
return (await u(x, f)).map((S) => ({ value: S.value, label: S.label }));
|
|
1628
1614
|
const m = W(x);
|
|
@@ -1638,7 +1624,7 @@ function xn(t) {
|
|
|
1638
1624
|
p(x), x === "" && e && a(null);
|
|
1639
1625
|
}
|
|
1640
1626
|
return /* @__PURE__ */ s("div", { "data-component": "typeahead-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
|
|
1641
|
-
|
|
1627
|
+
Ae,
|
|
1642
1628
|
{
|
|
1643
1629
|
size: "sm",
|
|
1644
1630
|
value: c,
|
|
@@ -1650,7 +1636,7 @@ function xn(t) {
|
|
|
1650
1636
|
}
|
|
1651
1637
|
) });
|
|
1652
1638
|
}
|
|
1653
|
-
const
|
|
1639
|
+
const ma = [
|
|
1654
1640
|
"equals",
|
|
1655
1641
|
"notEqual",
|
|
1656
1642
|
"greaterThan",
|
|
@@ -1667,7 +1653,7 @@ function ve(t) {
|
|
|
1667
1653
|
function ye(t) {
|
|
1668
1654
|
return t === "inRange";
|
|
1669
1655
|
}
|
|
1670
|
-
function
|
|
1656
|
+
function ga(t, e, a, n) {
|
|
1671
1657
|
if (t === "blank") return e === null;
|
|
1672
1658
|
if (t === "notBlank") return e !== null;
|
|
1673
1659
|
if (e === null) return !1;
|
|
@@ -1694,12 +1680,12 @@ function pa(t, e, a, n) {
|
|
|
1694
1680
|
return !0;
|
|
1695
1681
|
}
|
|
1696
1682
|
}
|
|
1697
|
-
function
|
|
1683
|
+
function ba(t) {
|
|
1698
1684
|
if (t == null || t === "") return null;
|
|
1699
1685
|
const e = typeof t == "number" ? t : Number(t);
|
|
1700
1686
|
return Number.isNaN(e) ? null : e;
|
|
1701
1687
|
}
|
|
1702
|
-
function
|
|
1688
|
+
function Dn(t) {
|
|
1703
1689
|
const {
|
|
1704
1690
|
model: e,
|
|
1705
1691
|
onModelChange: a,
|
|
@@ -1721,8 +1707,8 @@ function Cn(t) {
|
|
|
1721
1707
|
}, [e, r]), J({
|
|
1722
1708
|
doesFilterPass: (D) => {
|
|
1723
1709
|
if (!e) return !0;
|
|
1724
|
-
const q =
|
|
1725
|
-
return
|
|
1710
|
+
const q = ba(n(D.node));
|
|
1711
|
+
return ga(
|
|
1726
1712
|
e.type,
|
|
1727
1713
|
q,
|
|
1728
1714
|
e.filter ?? null,
|
|
@@ -1730,8 +1716,8 @@ function Cn(t) {
|
|
|
1730
1716
|
);
|
|
1731
1717
|
}
|
|
1732
1718
|
});
|
|
1733
|
-
const f =
|
|
1734
|
-
() =>
|
|
1719
|
+
const f = z(
|
|
1720
|
+
() => ma.map((D) => ({
|
|
1735
1721
|
value: D,
|
|
1736
1722
|
label: i(`dataTable.numberFilter.operators.${D}`)
|
|
1737
1723
|
})),
|
|
@@ -1759,7 +1745,7 @@ function Cn(t) {
|
|
|
1759
1745
|
function C() {
|
|
1760
1746
|
v(r ?? "equals"), b(null), x(null), a(null);
|
|
1761
1747
|
}
|
|
1762
|
-
const S = ve(p),
|
|
1748
|
+
const S = ve(p), I = ye(p);
|
|
1763
1749
|
return /* @__PURE__ */ E(
|
|
1764
1750
|
"div",
|
|
1765
1751
|
{
|
|
@@ -1767,7 +1753,7 @@ function Cn(t) {
|
|
|
1767
1753
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
1768
1754
|
children: [
|
|
1769
1755
|
/* @__PURE__ */ s(
|
|
1770
|
-
|
|
1756
|
+
Ie,
|
|
1771
1757
|
{
|
|
1772
1758
|
size: "sm",
|
|
1773
1759
|
options: f,
|
|
@@ -1778,7 +1764,7 @@ function Cn(t) {
|
|
|
1778
1764
|
"aria-label": i("dataTable.numberFilter.operators.equals")
|
|
1779
1765
|
}
|
|
1780
1766
|
),
|
|
1781
|
-
S && !
|
|
1767
|
+
S && !I && /* @__PURE__ */ s(
|
|
1782
1768
|
ee,
|
|
1783
1769
|
{
|
|
1784
1770
|
size: "sm",
|
|
@@ -1791,7 +1777,7 @@ function Cn(t) {
|
|
|
1791
1777
|
"aria-label": m
|
|
1792
1778
|
}
|
|
1793
1779
|
),
|
|
1794
|
-
|
|
1780
|
+
I && /* @__PURE__ */ E("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1795
1781
|
/* @__PURE__ */ s(
|
|
1796
1782
|
ee,
|
|
1797
1783
|
{
|
|
@@ -1820,14 +1806,14 @@ function Cn(t) {
|
|
|
1820
1806
|
)
|
|
1821
1807
|
] }),
|
|
1822
1808
|
/* @__PURE__ */ E("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: [
|
|
1823
|
-
/* @__PURE__ */ s(
|
|
1824
|
-
/* @__PURE__ */ s(
|
|
1809
|
+
/* @__PURE__ */ s(L, { intent: "ghost", size: "sm", onClick: C, type: "button", children: i("dataTable.numberFilter.clear") }),
|
|
1810
|
+
/* @__PURE__ */ s(L, { intent: "primary", size: "sm", onClick: h, type: "button", children: i("dataTable.numberFilter.apply") })
|
|
1825
1811
|
] })
|
|
1826
1812
|
]
|
|
1827
1813
|
}
|
|
1828
1814
|
);
|
|
1829
1815
|
}
|
|
1830
|
-
function
|
|
1816
|
+
function kn(t) {
|
|
1831
1817
|
var c, p;
|
|
1832
1818
|
const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((p = (c = n == null ? void 0 : n.getColDef) == null ? void 0 : c.call(n)) == null ? void 0 : p.filterParams) ?? {}, l = o.defaultOperator ?? "equals", u = o.placeholder ?? r("dataTable.numberFilter.placeholder"), [d, i] = R((e == null ? void 0 : e.filter) ?? null);
|
|
1833
1819
|
return P(() => {
|
|
@@ -1856,22 +1842,22 @@ function Nn(t) {
|
|
|
1856
1842
|
}
|
|
1857
1843
|
) });
|
|
1858
1844
|
}
|
|
1859
|
-
function
|
|
1845
|
+
function En(t) {
|
|
1860
1846
|
const { value: e, variantMap: a } = t, n = (a == null ? void 0 : a[e]) ?? "neutral";
|
|
1861
|
-
return /* @__PURE__ */ s(
|
|
1847
|
+
return /* @__PURE__ */ s(Mt, { variant: n, withDot: !0, size: "sm", children: String(e ?? "") });
|
|
1862
1848
|
}
|
|
1863
|
-
function
|
|
1849
|
+
function In(t) {
|
|
1864
1850
|
const { value: e } = t;
|
|
1865
1851
|
return e ? /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
1866
|
-
/* @__PURE__ */ s(
|
|
1852
|
+
/* @__PURE__ */ s(Pe, { name: e.name, src: e.src, size: "sm" }),
|
|
1867
1853
|
/* @__PURE__ */ s("span", { children: e.name })
|
|
1868
1854
|
] }) : null;
|
|
1869
1855
|
}
|
|
1870
|
-
const
|
|
1856
|
+
const ha = {
|
|
1871
1857
|
sm: "ds:size-8",
|
|
1872
1858
|
md: "ds:size-10",
|
|
1873
1859
|
lg: "ds:size-12"
|
|
1874
|
-
},
|
|
1860
|
+
}, va = {
|
|
1875
1861
|
square: "ds:rounded-none",
|
|
1876
1862
|
rounded: "ds:rounded-[var(--radius-md)]",
|
|
1877
1863
|
circle: "ds:rounded-[var(--radius-full)]"
|
|
@@ -1881,14 +1867,14 @@ function ue(t, e) {
|
|
|
1881
1867
|
const a = t[e];
|
|
1882
1868
|
return typeof a == "string" ? a : void 0;
|
|
1883
1869
|
}
|
|
1884
|
-
const
|
|
1885
|
-
function
|
|
1870
|
+
const ya = /^(?:https?:|data:image\/)/i;
|
|
1871
|
+
function Ta(t) {
|
|
1886
1872
|
if (!t) return;
|
|
1887
1873
|
const e = t.trim();
|
|
1888
1874
|
if (e.length !== 0)
|
|
1889
|
-
return
|
|
1875
|
+
return ya.test(e) ? e : void 0;
|
|
1890
1876
|
}
|
|
1891
|
-
function
|
|
1877
|
+
function zn(t) {
|
|
1892
1878
|
const {
|
|
1893
1879
|
data: e,
|
|
1894
1880
|
srcField: a,
|
|
@@ -1898,7 +1884,7 @@ function Fn(t) {
|
|
|
1898
1884
|
shape: l = "rounded"
|
|
1899
1885
|
} = t;
|
|
1900
1886
|
if (!e) return null;
|
|
1901
|
-
const u = ue(e, a), d =
|
|
1887
|
+
const u = ue(e, a), d = Ta(u), i = n ? ue(e, n) ?? "" : "", c = r ? ue(e, r) : void 0;
|
|
1902
1888
|
return d ? /* @__PURE__ */ s(
|
|
1903
1889
|
"img",
|
|
1904
1890
|
{
|
|
@@ -1906,19 +1892,19 @@ function Fn(t) {
|
|
|
1906
1892
|
alt: i,
|
|
1907
1893
|
loading: "lazy",
|
|
1908
1894
|
decoding: "async",
|
|
1909
|
-
className: ["ds:object-cover",
|
|
1895
|
+
className: ["ds:object-cover", ha[o], va[l]].join(
|
|
1910
1896
|
" "
|
|
1911
1897
|
)
|
|
1912
1898
|
}
|
|
1913
|
-
) : c ? /* @__PURE__ */ s(
|
|
1899
|
+
) : c ? /* @__PURE__ */ s(Pe, { name: c, size: o }) : null;
|
|
1914
1900
|
}
|
|
1915
|
-
function
|
|
1901
|
+
function An(t) {
|
|
1916
1902
|
const { value: e, maxVisible: a = 3 } = t, { t: n } = F();
|
|
1917
1903
|
if (!Array.isArray(e) || e.length === 0) return null;
|
|
1918
1904
|
const r = e.slice(0, a), o = e.length - a;
|
|
1919
1905
|
return /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1920
1906
|
r.map((l) => /* @__PURE__ */ s(ae, { label: l, size: "sm" }, l)),
|
|
1921
|
-
o > 0 && /* @__PURE__ */ s(
|
|
1907
|
+
o > 0 && /* @__PURE__ */ s(jt, { label: e.slice(a).join(", "), children: /* @__PURE__ */ s(
|
|
1922
1908
|
ae,
|
|
1923
1909
|
{
|
|
1924
1910
|
label: n("inputs.multiSelect.overflow", { count: o }),
|
|
@@ -1929,7 +1915,7 @@ function Rn(t) {
|
|
|
1929
1915
|
) })
|
|
1930
1916
|
] });
|
|
1931
1917
|
}
|
|
1932
|
-
const
|
|
1918
|
+
const xa = {
|
|
1933
1919
|
date: { year: "numeric", month: "short", day: "numeric" },
|
|
1934
1920
|
time: { hour: "2-digit", minute: "2-digit" },
|
|
1935
1921
|
datetime: {
|
|
@@ -1940,7 +1926,7 @@ const ya = {
|
|
|
1940
1926
|
minute: "2-digit"
|
|
1941
1927
|
}
|
|
1942
1928
|
};
|
|
1943
|
-
function
|
|
1929
|
+
function Pn(t) {
|
|
1944
1930
|
const { value: e, format: a = "date", options: n } = t;
|
|
1945
1931
|
return e == null || e === "" ? null : a === "relative" && !n ? /* @__PURE__ */ s(he, { value: e, shape: "bare" }) : /* @__PURE__ */ s(
|
|
1946
1932
|
he,
|
|
@@ -1948,23 +1934,23 @@ function Dn(t) {
|
|
|
1948
1934
|
value: e,
|
|
1949
1935
|
format: "absolute",
|
|
1950
1936
|
shape: "bare",
|
|
1951
|
-
absoluteFormat: n ??
|
|
1937
|
+
absoluteFormat: n ?? xa[a === "relative" ? "date" : a]
|
|
1952
1938
|
}
|
|
1953
1939
|
);
|
|
1954
1940
|
}
|
|
1955
|
-
function
|
|
1941
|
+
function Ca(t) {
|
|
1956
1942
|
if (t == null || t === "") return null;
|
|
1957
1943
|
const e = typeof t == "number" ? t : Number(t);
|
|
1958
1944
|
return Number.isFinite(e) ? e : null;
|
|
1959
1945
|
}
|
|
1960
|
-
function
|
|
1946
|
+
function On(t) {
|
|
1961
1947
|
const {
|
|
1962
1948
|
value: e,
|
|
1963
1949
|
currency: a = "EUR",
|
|
1964
1950
|
colorNegative: n,
|
|
1965
1951
|
strikethrough: r,
|
|
1966
1952
|
options: o
|
|
1967
|
-
} = t, { i18n: l } = F(), u =
|
|
1953
|
+
} = t, { i18n: l } = F(), u = Ca(e);
|
|
1968
1954
|
if (u === null) return null;
|
|
1969
1955
|
const d = l.language || "en", i = new Intl.NumberFormat(d, {
|
|
1970
1956
|
style: "currency",
|
|
@@ -1973,7 +1959,7 @@ function kn(t) {
|
|
|
1973
1959
|
}).format(u), c = ["ds:tabular-nums"];
|
|
1974
1960
|
return n && u < 0 && c.push("ds:text-[color:var(--destructive)]"), r && c.push("line-through"), /* @__PURE__ */ s("span", { className: c.join(" "), children: i });
|
|
1975
1961
|
}
|
|
1976
|
-
function
|
|
1962
|
+
function Na(t) {
|
|
1977
1963
|
if (!we(t)) return t;
|
|
1978
1964
|
const e = t, a = e.props.className ?? "", n = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} size-4`.trim();
|
|
1979
1965
|
return Fe(e, { className: n, size: e.props.size ?? 16 });
|
|
@@ -1981,7 +1967,7 @@ function xa(t) {
|
|
|
1981
1967
|
function Te(t, e) {
|
|
1982
1968
|
return typeof t == "function" ? t(e) : !!t;
|
|
1983
1969
|
}
|
|
1984
|
-
function
|
|
1970
|
+
function Mn(t) {
|
|
1985
1971
|
const { data: e, actions: a } = t;
|
|
1986
1972
|
return e ? /* @__PURE__ */ s("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: a.map((n, r) => {
|
|
1987
1973
|
if (Te(n.hidden, e)) return null;
|
|
@@ -1991,7 +1977,7 @@ function En(t) {
|
|
|
1991
1977
|
{
|
|
1992
1978
|
size: "sm",
|
|
1993
1979
|
intent: "ghost",
|
|
1994
|
-
icon:
|
|
1980
|
+
icon: Na(n.icon),
|
|
1995
1981
|
tooltip: l,
|
|
1996
1982
|
"aria-label": n.label,
|
|
1997
1983
|
disabled: o,
|
|
@@ -2007,10 +1993,10 @@ function En(t) {
|
|
|
2007
1993
|
function xe(t, e) {
|
|
2008
1994
|
return typeof t == "function" ? t(e) : t;
|
|
2009
1995
|
}
|
|
2010
|
-
function
|
|
1996
|
+
function Sa(t) {
|
|
2011
1997
|
return /^(https?:\/\/|\/|#|mailto:|tel:)/i.test(t) ? t : "#";
|
|
2012
1998
|
}
|
|
2013
|
-
function
|
|
1999
|
+
function jn(t) {
|
|
2014
2000
|
const { value: e, data: a, href: n, onClick: r, secondary: o } = t;
|
|
2015
2001
|
if (!a) return null;
|
|
2016
2002
|
const l = xe(n, a), u = xe(o, a), d = e == null || e === "" ? "" : String(e), i = [
|
|
@@ -2028,7 +2014,7 @@ function In(t) {
|
|
|
2028
2014
|
l ? /* @__PURE__ */ s(
|
|
2029
2015
|
"a",
|
|
2030
2016
|
{
|
|
2031
|
-
href:
|
|
2017
|
+
href: Sa(l),
|
|
2032
2018
|
onClick: c,
|
|
2033
2019
|
className: i,
|
|
2034
2020
|
children: d
|
|
@@ -2048,7 +2034,7 @@ function In(t) {
|
|
|
2048
2034
|
u ? /* @__PURE__ */ s("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: u }) : null
|
|
2049
2035
|
] });
|
|
2050
2036
|
}
|
|
2051
|
-
function
|
|
2037
|
+
function Ln(t) {
|
|
2052
2038
|
const {
|
|
2053
2039
|
value: e,
|
|
2054
2040
|
data: a,
|
|
@@ -2061,7 +2047,7 @@ function zn(t) {
|
|
|
2061
2047
|
label: i
|
|
2062
2048
|
} = t, { t: c } = F(), [p, v] = R(!1);
|
|
2063
2049
|
if (!a) return null;
|
|
2064
|
-
const g = !!e, b = g ? o ?? /* @__PURE__ */ s(
|
|
2050
|
+
const g = !!e, b = g ? o ?? /* @__PURE__ */ s(Lt, { "aria-hidden": !0, className: "ds:size-4" }) : l ?? /* @__PURE__ */ s(_t, { "aria-hidden": !0, className: "ds:size-4" }), y = g ? u : d, x = i ?? c(g ? "inputs.switch.on" : "inputs.switch.off");
|
|
2065
2051
|
async function f(m) {
|
|
2066
2052
|
if (m.stopPropagation(), p || !a) return;
|
|
2067
2053
|
const C = n(a, !g);
|
|
@@ -2102,7 +2088,7 @@ function zn(t) {
|
|
|
2102
2088
|
}
|
|
2103
2089
|
);
|
|
2104
2090
|
}
|
|
2105
|
-
const
|
|
2091
|
+
const wa = {
|
|
2106
2092
|
sm: "ds:size-[var(--icon-size-sm)]",
|
|
2107
2093
|
md: "ds:size-[var(--icon-size-md)]",
|
|
2108
2094
|
lg: "ds:size-[var(--icon-size-lg)]"
|
|
@@ -2112,16 +2098,16 @@ function Ce(t, e) {
|
|
|
2112
2098
|
const a = t[e];
|
|
2113
2099
|
return typeof a == "string" ? a : void 0;
|
|
2114
2100
|
}
|
|
2115
|
-
const
|
|
2116
|
-
function
|
|
2101
|
+
const Fa = /^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i, Ra = /^rgba?\(\s*[\d.\s,%/]+\)$/i, Da = /^hsla?\(\s*[\d.\s,%/]+\)$/i, ka = /^var\(--[a-z0-9-]+(?:,\s*[^)]+)?\)$/i;
|
|
2102
|
+
function Ea(t) {
|
|
2117
2103
|
if (!t) return;
|
|
2118
2104
|
const e = t.trim();
|
|
2119
|
-
if (
|
|
2105
|
+
if (Fa.test(e) || Ra.test(e) || Da.test(e) || ka.test(e))
|
|
2120
2106
|
return e;
|
|
2121
2107
|
}
|
|
2122
|
-
function
|
|
2123
|
-
const { data: e, colorField: a, size: n = "md", labelField: r } = t, o = X(null), l = e ? Ce(e, a) : void 0, u =
|
|
2124
|
-
return
|
|
2108
|
+
function _n(t) {
|
|
2109
|
+
const { data: e, colorField: a, size: n = "md", labelField: r } = t, o = X(null), l = e ? Ce(e, a) : void 0, u = Ea(l), d = e && r ? Ce(e, r) : void 0;
|
|
2110
|
+
return $t(() => {
|
|
2125
2111
|
const i = o.current;
|
|
2126
2112
|
i && (u ? i.style.setProperty("--data-table-dot-color", u) : i.style.removeProperty("--data-table-dot-color"));
|
|
2127
2113
|
}, [u]), u ? /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
@@ -2134,23 +2120,23 @@ function An(t) {
|
|
|
2134
2120
|
"ds:inline-block ds:shrink-0 ds:rounded-[var(--radius-full)]",
|
|
2135
2121
|
"ds:bg-[var(--data-table-dot-color)]",
|
|
2136
2122
|
"ds:border ds:border-[color:var(--border)]",
|
|
2137
|
-
|
|
2123
|
+
wa[n]
|
|
2138
2124
|
].join(" ")
|
|
2139
2125
|
}
|
|
2140
2126
|
),
|
|
2141
2127
|
d ? /* @__PURE__ */ s("span", { children: d }) : null
|
|
2142
2128
|
] }) : null;
|
|
2143
2129
|
}
|
|
2144
|
-
function
|
|
2130
|
+
function Ia(t, e) {
|
|
2145
2131
|
if (!t || typeof t != "object") return null;
|
|
2146
2132
|
const a = t[e], n = typeof a == "number" ? a : Number(a);
|
|
2147
2133
|
return Number.isFinite(n) ? n : null;
|
|
2148
2134
|
}
|
|
2149
|
-
function
|
|
2135
|
+
function $n(t) {
|
|
2150
2136
|
const { data: e, lines: a, currency: n = "EUR", highlightNegative: r } = t, { i18n: o } = F();
|
|
2151
2137
|
if (!e) return null;
|
|
2152
2138
|
const l = o.language || "en", u = (i) => {
|
|
2153
|
-
const c =
|
|
2139
|
+
const c = Ia(e, i.valueField);
|
|
2154
2140
|
if (c === null) return null;
|
|
2155
2141
|
let p;
|
|
2156
2142
|
switch (i.format ?? "number") {
|
|
@@ -2221,7 +2207,7 @@ function Pn(t) {
|
|
|
2221
2207
|
}
|
|
2222
2208
|
);
|
|
2223
2209
|
}
|
|
2224
|
-
function
|
|
2210
|
+
function qn(t) {
|
|
2225
2211
|
var i, c;
|
|
2226
2212
|
const { initialValue: e, onValueChange: a, stopEditing: n, column: r } = t, [o, l] = R(e ?? ""), u = X(null);
|
|
2227
2213
|
P(() => {
|
|
@@ -2246,18 +2232,18 @@ function On(t) {
|
|
|
2246
2232
|
className: [
|
|
2247
2233
|
"ds:block ds:w-full ds:appearance-none",
|
|
2248
2234
|
// Input surface chrome: rounded border + bg + focus halo.
|
|
2249
|
-
|
|
2235
|
+
Oe,
|
|
2250
2236
|
// Use the `md` height (`--min-target-size`) so the input
|
|
2251
2237
|
// auto-lifts to 48px under `.theme-accessible` to satisfy
|
|
2252
2238
|
// WCAG 2.5.5 target size.
|
|
2253
|
-
|
|
2254
|
-
|
|
2239
|
+
Me.md,
|
|
2240
|
+
je.sm,
|
|
2255
2241
|
Le.sm
|
|
2256
2242
|
].join(" ")
|
|
2257
2243
|
}
|
|
2258
2244
|
);
|
|
2259
2245
|
}
|
|
2260
|
-
function
|
|
2246
|
+
function Gn(t) {
|
|
2261
2247
|
var y, x;
|
|
2262
2248
|
const {
|
|
2263
2249
|
initialValue: e,
|
|
@@ -2275,7 +2261,7 @@ function Mn(t) {
|
|
|
2275
2261
|
function g(f) {
|
|
2276
2262
|
var q, k;
|
|
2277
2263
|
if (f.trim().length === 0) return null;
|
|
2278
|
-
const m = d.language || "en", h = new Intl.NumberFormat(m).formatToParts(12345.6), C = ((q = h.find((G) => G.type === "group")) == null ? void 0 : q.value) ?? "", S = ((k = h.find((G) => G.type === "decimal")) == null ? void 0 : k.value) ?? ".",
|
|
2264
|
+
const m = d.language || "en", h = new Intl.NumberFormat(m).formatToParts(12345.6), C = ((q = h.find((G) => G.type === "group")) == null ? void 0 : q.value) ?? "", S = ((k = h.find((G) => G.type === "decimal")) == null ? void 0 : k.value) ?? ".", I = f.replace(new RegExp(`\\${C}`, "g"), "").replace(S, ".").replace(/[^\d.-]/g, ""), D = Number(I);
|
|
2279
2265
|
return Number.isFinite(D) ? D : null;
|
|
2280
2266
|
}
|
|
2281
2267
|
function b(f) {
|
|
@@ -2306,44 +2292,44 @@ function Mn(t) {
|
|
|
2306
2292
|
},
|
|
2307
2293
|
className: [
|
|
2308
2294
|
"ds:block ds:w-full ds:appearance-none ds:text-end ds:tabular-nums",
|
|
2309
|
-
|
|
2295
|
+
Oe,
|
|
2310
2296
|
// Use `md` height — see editable-text-cell-renderer for rationale.
|
|
2311
|
-
|
|
2312
|
-
|
|
2297
|
+
Me.md,
|
|
2298
|
+
je.sm,
|
|
2313
2299
|
Le.sm
|
|
2314
2300
|
].join(" ")
|
|
2315
2301
|
}
|
|
2316
2302
|
);
|
|
2317
2303
|
}
|
|
2318
2304
|
export {
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2305
|
+
Mn as A,
|
|
2306
|
+
$n as B,
|
|
2307
|
+
_n as C,
|
|
2308
|
+
Tn as D,
|
|
2309
|
+
Gn as E,
|
|
2310
|
+
zn as I,
|
|
2311
|
+
jn as L,
|
|
2312
|
+
Dn as N,
|
|
2313
|
+
Sn as S,
|
|
2314
|
+
An as T,
|
|
2315
|
+
In as U,
|
|
2316
|
+
On as a,
|
|
2317
|
+
Pn as b,
|
|
2318
|
+
Cn as c,
|
|
2319
|
+
Nn as d,
|
|
2320
|
+
qn as e,
|
|
2321
|
+
kn as f,
|
|
2322
|
+
wn as g,
|
|
2323
|
+
En as h,
|
|
2324
|
+
ra as i,
|
|
2325
|
+
sa as j,
|
|
2326
|
+
Ln as k,
|
|
2341
2327
|
te as l,
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2328
|
+
Ut as m,
|
|
2329
|
+
Fn as n,
|
|
2330
|
+
Rn as o,
|
|
2331
|
+
oa as p,
|
|
2332
|
+
Be as q,
|
|
2333
|
+
xn as u
|
|
2348
2334
|
};
|
|
2349
|
-
//# sourceMappingURL=editable-currency-cell-renderer-
|
|
2335
|
+
//# sourceMappingURL=editable-currency-cell-renderer-BpicmolK.js.map
|