@alfadocs/ui-kit 0.31.0 → 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-Bhk9IYm3.js → booking-BIZ9GSer.js} +15 -15
- 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/{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-Od3Q-Y8J.js → editable-currency-cell-renderer-BpicmolK.js} +314 -317
- 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/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/{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/{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 +1 -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/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.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +23 -1
- 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/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 +27 -0
- package/dist/i18n/locales/en.js +27 -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 +541 -540
- 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 +27 -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 +1 -2
- package/dist/_chunks/audio-visualiser-I-T4Z7EU.js +0 -145
- package/dist/_chunks/practice-results-CEKjwsgS.js +0 -1441
- 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,88 +1,91 @@
|
|
|
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
|
|
13
|
-
import { T as fe } from "./text-input-
|
|
14
|
-
import { T as ae } from "./tag-
|
|
15
|
-
import { D as Y } from "./dropdown-menu-
|
|
16
|
-
import { X as
|
|
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
|
+
import { X as De } from "./x-CCcI3eJp.js";
|
|
17
17
|
import { R as Rt } from "./refresh-cw-CC8jSKMr.js";
|
|
18
18
|
import { S as pe } from "./search-BonnQsHv.js";
|
|
19
|
-
import { c as
|
|
19
|
+
import { c as ke } from "./createLucideIcon-CrFbzy84.js";
|
|
20
20
|
import { G as Dt } from "./grip-vertical-Dlg0_k5C.js";
|
|
21
21
|
import { P as kt } from "./printer-CeVEWfQq.js";
|
|
22
|
-
import { F as
|
|
22
|
+
import { F as Ee } from "./file-text-DSNuv2B8.js";
|
|
23
23
|
import { F as Et } from "./file-spreadsheet-zUkY8rJ2.js";
|
|
24
24
|
import It from "i18next";
|
|
25
|
-
import { S as
|
|
26
|
-
import { u as zt } from "./
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
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";
|
|
36
|
+
import { T as he } from "./timestamp-BV2lC-wV.js";
|
|
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";
|
|
38
41
|
/**
|
|
39
42
|
* @license lucide-react v1.8.0 - ISC
|
|
40
43
|
*
|
|
41
44
|
* This source code is licensed under the ISC license.
|
|
42
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
43
46
|
*/
|
|
44
|
-
const
|
|
47
|
+
const qt = [
|
|
45
48
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
46
49
|
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
47
|
-
],
|
|
50
|
+
], Gt = ke("columns-2", qt);
|
|
48
51
|
/**
|
|
49
52
|
* @license lucide-react v1.8.0 - ISC
|
|
50
53
|
*
|
|
51
54
|
* This source code is licensed under the ISC license.
|
|
52
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
53
56
|
*/
|
|
54
|
-
const
|
|
57
|
+
const Vt = [
|
|
55
58
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
56
59
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
57
60
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
58
|
-
], ne =
|
|
59
|
-
function
|
|
60
|
-
if (!
|
|
61
|
+
], ne = ke("download", Vt);
|
|
62
|
+
function Bt(t) {
|
|
63
|
+
if (!we(t)) return t;
|
|
61
64
|
const e = t, a = e.props.className ?? "", n = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} ds:size-4`.trim();
|
|
62
|
-
return
|
|
65
|
+
return Fe(e, { className: n, size: e.props.size ?? 16 });
|
|
63
66
|
}
|
|
64
|
-
const
|
|
67
|
+
const _e = Ne(null);
|
|
65
68
|
function $(t) {
|
|
66
|
-
const e =
|
|
69
|
+
const e = Se(_e);
|
|
67
70
|
if (!e)
|
|
68
71
|
throw new Error(
|
|
69
72
|
`${t} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
|
|
70
73
|
);
|
|
71
74
|
return e;
|
|
72
75
|
}
|
|
73
|
-
function
|
|
76
|
+
function Ut({
|
|
74
77
|
getApi: t,
|
|
75
78
|
selectionCount: e,
|
|
76
79
|
onPrint: a,
|
|
77
80
|
children: n
|
|
78
81
|
}) {
|
|
79
|
-
const r =
|
|
82
|
+
const r = z(
|
|
80
83
|
() => ({ getApi: t, selectionCount: e, onPrint: a }),
|
|
81
84
|
[t, e, a]
|
|
82
85
|
);
|
|
83
|
-
return /* @__PURE__ */ s(
|
|
86
|
+
return /* @__PURE__ */ s(_e.Provider, { value: r, children: n });
|
|
84
87
|
}
|
|
85
|
-
const
|
|
88
|
+
const Kt = [
|
|
86
89
|
"data-table-toolbar",
|
|
87
90
|
// Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
|
|
88
91
|
// Actions cluster on narrow screens. From `sm` (≥640px) we switch to
|
|
@@ -101,20 +104,20 @@ const Vt = [
|
|
|
101
104
|
"ds:border ds:border-[color:var(--card-border)]",
|
|
102
105
|
"ds:shadow-[var(--shadow-sm)]",
|
|
103
106
|
"ds:py-[var(--spacing-sm)] ds:px-[var(--spacing-md)]"
|
|
104
|
-
].join(" "),
|
|
107
|
+
].join(" "), $e = _(
|
|
105
108
|
({ className: t, children: e, ...a }, n) => /* @__PURE__ */ s(
|
|
106
109
|
"div",
|
|
107
110
|
{
|
|
108
111
|
ref: n,
|
|
109
112
|
role: "toolbar",
|
|
110
|
-
className: [
|
|
113
|
+
className: [Kt, t ?? ""].join(" ").trim(),
|
|
111
114
|
...a,
|
|
112
115
|
children: e
|
|
113
116
|
}
|
|
114
117
|
)
|
|
115
118
|
);
|
|
116
|
-
|
|
117
|
-
const
|
|
119
|
+
$e.displayName = "DataTable.Toolbar";
|
|
120
|
+
const qe = _(
|
|
118
121
|
({ className: t, children: e, ...a }, n) => /* @__PURE__ */ s(
|
|
119
122
|
"div",
|
|
120
123
|
{
|
|
@@ -133,8 +136,8 @@ const $e = _(
|
|
|
133
136
|
}
|
|
134
137
|
)
|
|
135
138
|
);
|
|
136
|
-
|
|
137
|
-
const
|
|
139
|
+
qe.displayName = "DataTable.Toolbar.FilterBar";
|
|
140
|
+
const Ge = _(
|
|
138
141
|
({ className: t, children: e, ...a }, n) => /* @__PURE__ */ s(
|
|
139
142
|
"div",
|
|
140
143
|
{
|
|
@@ -149,8 +152,8 @@ const qe = _(
|
|
|
149
152
|
}
|
|
150
153
|
)
|
|
151
154
|
);
|
|
152
|
-
|
|
153
|
-
const
|
|
155
|
+
Ge.displayName = "DataTable.Toolbar.Actions";
|
|
156
|
+
const Ve = _(
|
|
154
157
|
({ label: t, onExport: e, intent: a = "outline", ...n }, r) => {
|
|
155
158
|
const { t: o } = F(), { getApi: l } = $("DataTable.Toolbar.ExportCsv"), u = M(() => {
|
|
156
159
|
const d = l();
|
|
@@ -170,7 +173,7 @@ const Ge = _(
|
|
|
170
173
|
);
|
|
171
174
|
}
|
|
172
175
|
);
|
|
173
|
-
|
|
176
|
+
Ve.displayName = "DataTable.Toolbar.ExportCsv";
|
|
174
177
|
function H(t, e = [30, 30, 30]) {
|
|
175
178
|
if (typeof document > "u") return e;
|
|
176
179
|
const a = document.createElement("span");
|
|
@@ -180,7 +183,7 @@ function H(t, e = [30, 30, 30]) {
|
|
|
180
183
|
const r = n.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
|
|
181
184
|
return r ? [Number(r[1]), Number(r[2]), Number(r[3])] : e;
|
|
182
185
|
}
|
|
183
|
-
async function
|
|
186
|
+
async function Be(t, e) {
|
|
184
187
|
if (!t) return;
|
|
185
188
|
const [{ jsPDF: a }, { default: n }] = await Promise.all([
|
|
186
189
|
import("./jspdf.es.min-DaapWjR1.js").then((g) => g.j),
|
|
@@ -214,7 +217,7 @@ async function Ve(t, e) {
|
|
|
214
217
|
}
|
|
215
218
|
}), v.save(e.fileName);
|
|
216
219
|
}
|
|
217
|
-
const
|
|
220
|
+
const Ue = _(
|
|
218
221
|
({ label: t, onClick: e, fileName: a, intent: n = "outline", ...r }, o) => {
|
|
219
222
|
const { t: l } = F(), { getApi: u } = $("DataTable.Toolbar.ExportPdf"), d = M(() => {
|
|
220
223
|
const i = u();
|
|
@@ -222,7 +225,7 @@ const Be = _(
|
|
|
222
225
|
e(i);
|
|
223
226
|
return;
|
|
224
227
|
}
|
|
225
|
-
|
|
228
|
+
Be(i, {
|
|
226
229
|
fileName: a ?? "data-table-export.pdf"
|
|
227
230
|
});
|
|
228
231
|
}, [u, e, a]);
|
|
@@ -232,7 +235,7 @@ const Be = _(
|
|
|
232
235
|
ref: o,
|
|
233
236
|
type: "button",
|
|
234
237
|
intent: n,
|
|
235
|
-
icon: /* @__PURE__ */ s(
|
|
238
|
+
icon: /* @__PURE__ */ s(Ee, { "aria-hidden": !0 }),
|
|
236
239
|
tooltip: t ?? l("dataTable.exportPdf"),
|
|
237
240
|
onClick: d,
|
|
238
241
|
...r
|
|
@@ -240,8 +243,8 @@ const Be = _(
|
|
|
240
243
|
);
|
|
241
244
|
}
|
|
242
245
|
);
|
|
243
|
-
|
|
244
|
-
const
|
|
246
|
+
Ue.displayName = "DataTable.Toolbar.ExportPdf";
|
|
247
|
+
const Ke = _(
|
|
245
248
|
({ label: t, intent: e = "outline", ...a }, n) => {
|
|
246
249
|
const { t: r } = F(), { onPrint: o } = $("DataTable.Toolbar.Print");
|
|
247
250
|
return /* @__PURE__ */ s(
|
|
@@ -258,8 +261,8 @@ const Ue = _(
|
|
|
258
261
|
);
|
|
259
262
|
}
|
|
260
263
|
);
|
|
261
|
-
|
|
262
|
-
const
|
|
264
|
+
Ke.displayName = "DataTable.Toolbar.Print";
|
|
265
|
+
const He = ({ placeholder: t, debounceMs: e = 150 }) => {
|
|
263
266
|
const { t: a } = F(), { getApi: n } = $("DataTable.Toolbar.QuickSearch"), [r, o] = R(""), l = X(void 0);
|
|
264
267
|
return P(() => (l.current && window.clearTimeout(l.current), l.current = window.setTimeout(() => {
|
|
265
268
|
const u = n();
|
|
@@ -288,8 +291,8 @@ const Ke = ({ placeholder: t, debounceMs: e = 150 }) => {
|
|
|
288
291
|
}
|
|
289
292
|
) });
|
|
290
293
|
};
|
|
291
|
-
|
|
292
|
-
const
|
|
294
|
+
He.displayName = "DataTable.Toolbar.QuickSearch";
|
|
295
|
+
const We = _(
|
|
293
296
|
({ onRefresh: t, label: e, intent: a = "outline", ...n }, r) => {
|
|
294
297
|
const { t: o } = F();
|
|
295
298
|
return /* @__PURE__ */ s(
|
|
@@ -306,8 +309,8 @@ const He = _(
|
|
|
306
309
|
);
|
|
307
310
|
}
|
|
308
311
|
);
|
|
309
|
-
|
|
310
|
-
function
|
|
312
|
+
We.displayName = "DataTable.Toolbar.Refresh";
|
|
313
|
+
function Ht(t) {
|
|
311
314
|
if (!t || typeof t != "object") return "";
|
|
312
315
|
const e = t;
|
|
313
316
|
if (typeof e.filter == "string" || typeof e.filter == "number") {
|
|
@@ -316,7 +319,7 @@ function Bt(t) {
|
|
|
316
319
|
}
|
|
317
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(", ") : "";
|
|
318
321
|
}
|
|
319
|
-
const
|
|
322
|
+
const Qe = () => {
|
|
320
323
|
const { t } = F(), { getApi: e } = $("DataTable.Toolbar.FilterChips"), [a, n] = R([]), [r, o] = R(""), l = M(() => {
|
|
321
324
|
const c = e();
|
|
322
325
|
if (!c) {
|
|
@@ -329,7 +332,7 @@ const We = () => {
|
|
|
329
332
|
g.push({
|
|
330
333
|
colId: y,
|
|
331
334
|
headerName: f,
|
|
332
|
-
text:
|
|
335
|
+
text: Ht(p[y])
|
|
333
336
|
});
|
|
334
337
|
}
|
|
335
338
|
n(g);
|
|
@@ -382,13 +385,13 @@ const We = () => {
|
|
|
382
385
|
c.colId
|
|
383
386
|
)),
|
|
384
387
|
/* @__PURE__ */ s(
|
|
385
|
-
|
|
388
|
+
L,
|
|
386
389
|
{
|
|
387
390
|
type: "button",
|
|
388
391
|
intent: "ghost",
|
|
389
392
|
size: "sm",
|
|
390
393
|
onClick: i,
|
|
391
|
-
startIcon: /* @__PURE__ */ s(
|
|
394
|
+
startIcon: /* @__PURE__ */ s(De, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
392
395
|
children: t("dataTable.filterChips.clearAll", "Clear all")
|
|
393
396
|
}
|
|
394
397
|
)
|
|
@@ -396,8 +399,8 @@ const We = () => {
|
|
|
396
399
|
}
|
|
397
400
|
);
|
|
398
401
|
};
|
|
399
|
-
|
|
400
|
-
const
|
|
402
|
+
Qe.displayName = "DataTable.Toolbar.FilterChips";
|
|
403
|
+
const Xe = ({
|
|
401
404
|
field: t,
|
|
402
405
|
options: e,
|
|
403
406
|
label: a
|
|
@@ -426,7 +429,7 @@ const Qe = ({
|
|
|
426
429
|
children: e.map((d) => {
|
|
427
430
|
const i = o === d.value;
|
|
428
431
|
return /* @__PURE__ */ s(
|
|
429
|
-
|
|
432
|
+
L,
|
|
430
433
|
{
|
|
431
434
|
type: "button",
|
|
432
435
|
size: "sm",
|
|
@@ -441,9 +444,9 @@ const Qe = ({
|
|
|
441
444
|
}
|
|
442
445
|
);
|
|
443
446
|
};
|
|
444
|
-
|
|
445
|
-
const
|
|
446
|
-
async function
|
|
447
|
+
Xe.displayName = "DataTable.Toolbar.FacetFilter";
|
|
448
|
+
const Wt = ["csv", "xlsx", "pdf"];
|
|
449
|
+
async function Qt(t, e) {
|
|
447
450
|
if (!t) return;
|
|
448
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());
|
|
449
452
|
r.addRow(
|
|
@@ -475,18 +478,18 @@ async function Kt(t, e) {
|
|
|
475
478
|
}), g = URL.createObjectURL(v), b = document.createElement("a");
|
|
476
479
|
b.href = g, b.download = e.fileName, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(g);
|
|
477
480
|
}
|
|
478
|
-
const
|
|
479
|
-
function
|
|
480
|
-
const t =
|
|
481
|
+
const Je = Ne(null);
|
|
482
|
+
function Xt() {
|
|
483
|
+
const t = Se(Je);
|
|
481
484
|
if (!t)
|
|
482
485
|
throw new Error(
|
|
483
486
|
"DataTable.Toolbar.ExportMenu.Item must be rendered inside DataTable.Toolbar.ExportMenu."
|
|
484
487
|
);
|
|
485
488
|
return t;
|
|
486
489
|
}
|
|
487
|
-
const
|
|
488
|
-
const { t: a } = F(), { getApi: n } = $("DataTable.Toolbar.ExportMenu"), r =
|
|
489
|
-
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: [
|
|
490
493
|
/* @__PURE__ */ s(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
|
|
491
494
|
B,
|
|
492
495
|
{
|
|
@@ -501,12 +504,12 @@ const Je = ({ children: t, label: e }) => {
|
|
|
501
504
|
/* @__PURE__ */ s(Y.Content, { align: "end", sideOffset: 4, children: o })
|
|
502
505
|
] }) });
|
|
503
506
|
};
|
|
504
|
-
|
|
505
|
-
function
|
|
507
|
+
Ze.displayName = "DataTable.Toolbar.ExportMenu";
|
|
508
|
+
function Jt(t, e) {
|
|
506
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");
|
|
507
510
|
}
|
|
508
|
-
function
|
|
509
|
-
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(
|
|
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" });
|
|
510
513
|
}
|
|
511
514
|
const me = ({
|
|
512
515
|
format: t,
|
|
@@ -514,20 +517,20 @@ const me = ({
|
|
|
514
517
|
onClick: a,
|
|
515
518
|
fileName: n
|
|
516
519
|
}) => {
|
|
517
|
-
const { t: r } = F(), { getApi: o } =
|
|
520
|
+
const { t: r } = F(), { getApi: o } = Xt(), l = M(() => {
|
|
518
521
|
const u = o();
|
|
519
522
|
if (t === "csv") {
|
|
520
523
|
u == null || u.exportDataAsCsv();
|
|
521
524
|
return;
|
|
522
525
|
}
|
|
523
526
|
if (t === "pdf") {
|
|
524
|
-
|
|
527
|
+
Be(u, {
|
|
525
528
|
fileName: n ?? "data-table-export.pdf"
|
|
526
529
|
});
|
|
527
530
|
return;
|
|
528
531
|
}
|
|
529
532
|
if (t === "xlsx") {
|
|
530
|
-
|
|
533
|
+
Qt(u, {
|
|
531
534
|
fileName: n ?? "data-table-export.xlsx"
|
|
532
535
|
});
|
|
533
536
|
return;
|
|
@@ -535,22 +538,22 @@ const me = ({
|
|
|
535
538
|
a == null || a(u);
|
|
536
539
|
}, [t, n, a, o]);
|
|
537
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: [
|
|
538
|
-
|
|
539
|
-
/* @__PURE__ */ s("span", { children: e ??
|
|
541
|
+
Zt(t),
|
|
542
|
+
/* @__PURE__ */ s("span", { children: e ?? Jt(r, t) })
|
|
540
543
|
] }) });
|
|
541
544
|
};
|
|
542
545
|
me.displayName = "DataTable.Toolbar.ExportMenu.Item";
|
|
543
|
-
function
|
|
546
|
+
function Yt(t) {
|
|
544
547
|
return t ? (t.getColumns() ?? []).map((a) => a.getColDef().hide === void 0 && a.getColId().startsWith("ag-Grid-") ? null : {
|
|
545
548
|
colId: a.getColId(),
|
|
546
549
|
displayName: t.getDisplayNameForColumn(a, null) || a.getColId(),
|
|
547
550
|
visible: a.isVisible()
|
|
548
551
|
}).filter((a) => a !== null) : [];
|
|
549
552
|
}
|
|
550
|
-
const
|
|
553
|
+
const Ye = ({ label: t }) => {
|
|
551
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);
|
|
552
555
|
P(() => {
|
|
553
|
-
n && l(
|
|
556
|
+
n && l(Yt(a()));
|
|
554
557
|
}, [n, a]);
|
|
555
558
|
const p = M(
|
|
556
559
|
(b, y) => {
|
|
@@ -570,8 +573,8 @@ const Ze = ({ label: t }) => {
|
|
|
570
573
|
l((m) => {
|
|
571
574
|
const h = m.findIndex((D) => D.colId === b), C = m.findIndex((D) => D.colId === y);
|
|
572
575
|
if (h < 0 || C < 0) return m;
|
|
573
|
-
const S = [...m], [
|
|
574
|
-
return S.splice(C, 0,
|
|
576
|
+
const S = [...m], [I] = S.splice(h, 1);
|
|
577
|
+
return S.splice(C, 0, I), S;
|
|
575
578
|
});
|
|
576
579
|
const f = o.findIndex((m) => m.colId === y);
|
|
577
580
|
f >= 0 && x.moveColumns([b], f);
|
|
@@ -584,7 +587,7 @@ const Ze = ({ label: t }) => {
|
|
|
584
587
|
{
|
|
585
588
|
type: "button",
|
|
586
589
|
intent: "outline",
|
|
587
|
-
icon: /* @__PURE__ */ s(
|
|
590
|
+
icon: /* @__PURE__ */ s(Gt, { "aria-hidden": !0 }),
|
|
588
591
|
"aria-label": g,
|
|
589
592
|
"aria-haspopup": "dialog"
|
|
590
593
|
}
|
|
@@ -634,7 +637,7 @@ const Ze = ({ label: t }) => {
|
|
|
634
637
|
}
|
|
635
638
|
),
|
|
636
639
|
/* @__PURE__ */ s(
|
|
637
|
-
|
|
640
|
+
Re,
|
|
638
641
|
{
|
|
639
642
|
label: b.displayName,
|
|
640
643
|
checked: b.visible,
|
|
@@ -651,20 +654,20 @@ const Ze = ({ label: t }) => {
|
|
|
651
654
|
] })
|
|
652
655
|
] });
|
|
653
656
|
};
|
|
654
|
-
|
|
655
|
-
const
|
|
657
|
+
Ye.displayName = "DataTable.Toolbar.ColumnToggle";
|
|
658
|
+
const et = _(
|
|
656
659
|
({ label: t, icon: e, onClick: a, variant: n = "default", size: r = "sm", ...o }, l) => {
|
|
657
660
|
const { t: u } = F(), { getApi: d, selectionCount: i } = $(
|
|
658
661
|
"DataTable.Toolbar.BulkAction"
|
|
659
662
|
);
|
|
660
663
|
return i === 0 ? null : /* @__PURE__ */ E(
|
|
661
|
-
|
|
664
|
+
L,
|
|
662
665
|
{
|
|
663
666
|
ref: l,
|
|
664
667
|
type: "button",
|
|
665
668
|
intent: n === "destructive" ? "destructive" : "secondary",
|
|
666
669
|
size: r,
|
|
667
|
-
startIcon:
|
|
670
|
+
startIcon: Bt(e),
|
|
668
671
|
onClick: () => a(d()),
|
|
669
672
|
"aria-label": `${t} (${u("dataTable.bulkAction", { count: i })})`,
|
|
670
673
|
...o,
|
|
@@ -683,32 +686,32 @@ const Ye = _(
|
|
|
683
686
|
);
|
|
684
687
|
}
|
|
685
688
|
);
|
|
686
|
-
|
|
687
|
-
const
|
|
689
|
+
et.displayName = "DataTable.Toolbar.BulkAction";
|
|
690
|
+
const ea = Object.assign(Ze, {
|
|
688
691
|
Item: me
|
|
689
|
-
}), te = Object.assign(
|
|
690
|
-
FilterBar:
|
|
691
|
-
Actions:
|
|
692
|
+
}), te = Object.assign($e, {
|
|
693
|
+
FilterBar: qe,
|
|
694
|
+
Actions: Ge,
|
|
692
695
|
/** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
|
|
693
|
-
ExportCsv:
|
|
696
|
+
ExportCsv: Ve,
|
|
694
697
|
/** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
|
|
695
|
-
ExportPdf:
|
|
696
|
-
Print:
|
|
697
|
-
ColumnToggle:
|
|
698
|
-
BulkAction:
|
|
699
|
-
QuickSearch:
|
|
700
|
-
Refresh:
|
|
701
|
-
FilterChips:
|
|
702
|
-
FacetFilter:
|
|
703
|
-
ExportMenu:
|
|
704
|
-
}),
|
|
698
|
+
ExportPdf: Ue,
|
|
699
|
+
Print: Ke,
|
|
700
|
+
ColumnToggle: Ye,
|
|
701
|
+
BulkAction: et,
|
|
702
|
+
QuickSearch: He,
|
|
703
|
+
Refresh: We,
|
|
704
|
+
FilterChips: Qe,
|
|
705
|
+
FacetFilter: Xe,
|
|
706
|
+
ExportMenu: ea
|
|
707
|
+
}), ta = [
|
|
705
708
|
"contains",
|
|
706
709
|
"equals",
|
|
707
710
|
"startsWith",
|
|
708
711
|
"endsWith",
|
|
709
712
|
"notContains"
|
|
710
713
|
];
|
|
711
|
-
function
|
|
714
|
+
function aa(t) {
|
|
712
715
|
const e = new Intl.Collator(t, {
|
|
713
716
|
sensitivity: "base",
|
|
714
717
|
usage: "search"
|
|
@@ -731,20 +734,20 @@ function Yt(t) {
|
|
|
731
734
|
) === 0
|
|
732
735
|
};
|
|
733
736
|
}
|
|
734
|
-
function
|
|
737
|
+
function na(t) {
|
|
735
738
|
return t == null ? null : typeof t == "string" ? t : String(t);
|
|
736
739
|
}
|
|
737
|
-
function
|
|
740
|
+
function ra(t) {
|
|
738
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) ?? "");
|
|
739
742
|
P(() => {
|
|
740
743
|
i((e == null ? void 0 : e.type) ?? o ?? "contains"), p((e == null ? void 0 : e.filter) ?? "");
|
|
741
744
|
}, [e, o]);
|
|
742
|
-
const v =
|
|
745
|
+
const v = z(() => aa(It.language), []);
|
|
743
746
|
J({
|
|
744
747
|
doesFilterPass: (f) => {
|
|
745
748
|
const m = e;
|
|
746
749
|
if (!m || m.filter === "") return !0;
|
|
747
|
-
const h =
|
|
750
|
+
const h = na(n(f.node));
|
|
748
751
|
if (h === null) return !1;
|
|
749
752
|
switch (m.type) {
|
|
750
753
|
case "equals":
|
|
@@ -772,7 +775,7 @@ function ta(t) {
|
|
|
772
775
|
function b() {
|
|
773
776
|
p(""), i(o ?? "contains"), a(null);
|
|
774
777
|
}
|
|
775
|
-
const y =
|
|
778
|
+
const y = ta.map(
|
|
776
779
|
(f) => ({
|
|
777
780
|
value: f,
|
|
778
781
|
label: l(`dataTable.textFilter.operators.${f}`)
|
|
@@ -785,7 +788,7 @@ function ta(t) {
|
|
|
785
788
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
786
789
|
children: [
|
|
787
790
|
/* @__PURE__ */ s(
|
|
788
|
-
|
|
791
|
+
Ie,
|
|
789
792
|
{
|
|
790
793
|
size: "sm",
|
|
791
794
|
options: y,
|
|
@@ -811,14 +814,14 @@ function ta(t) {
|
|
|
811
814
|
}
|
|
812
815
|
),
|
|
813
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: [
|
|
814
|
-
/* @__PURE__ */ s(
|
|
815
|
-
/* @__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") })
|
|
816
819
|
] })
|
|
817
820
|
]
|
|
818
821
|
}
|
|
819
822
|
);
|
|
820
823
|
}
|
|
821
|
-
function
|
|
824
|
+
function sa(t) {
|
|
822
825
|
var p, v;
|
|
823
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) ?? "");
|
|
824
827
|
P(() => {
|
|
@@ -853,13 +856,13 @@ function aa(t) {
|
|
|
853
856
|
"aria-label": r("dataTable.textFilter.clear"),
|
|
854
857
|
onClick: c,
|
|
855
858
|
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",
|
|
856
|
-
children: /* @__PURE__ */ s(
|
|
859
|
+
children: /* @__PURE__ */ s(De, { "aria-hidden": "true", className: "ds:size-4" })
|
|
857
860
|
}
|
|
858
861
|
) : void 0
|
|
859
862
|
}
|
|
860
863
|
) });
|
|
861
864
|
}
|
|
862
|
-
const
|
|
865
|
+
const oa = {
|
|
863
866
|
id: "data-table",
|
|
864
867
|
capabilities: [
|
|
865
868
|
"select_single",
|
|
@@ -968,7 +971,7 @@ const na = {
|
|
|
968
971
|
}
|
|
969
972
|
};
|
|
970
973
|
wt.registerModules([Ft]);
|
|
971
|
-
const
|
|
974
|
+
const la = Nt("ag-theme-alfadocs ds:w-full", {
|
|
972
975
|
variants: {
|
|
973
976
|
density: {
|
|
974
977
|
default: "",
|
|
@@ -985,9 +988,9 @@ const ra = Nt("ag-theme-alfadocs ds:w-full", {
|
|
|
985
988
|
bordered: !0
|
|
986
989
|
}
|
|
987
990
|
});
|
|
988
|
-
function
|
|
991
|
+
function ia() {
|
|
989
992
|
const { t } = F();
|
|
990
|
-
return
|
|
993
|
+
return z(
|
|
991
994
|
() => ({
|
|
992
995
|
// Filter strings
|
|
993
996
|
contains: t("dataTable.agGrid.contains"),
|
|
@@ -1019,7 +1022,7 @@ function sa() {
|
|
|
1019
1022
|
[t]
|
|
1020
1023
|
);
|
|
1021
1024
|
}
|
|
1022
|
-
function
|
|
1025
|
+
function ca() {
|
|
1023
1026
|
return /* @__PURE__ */ s(
|
|
1024
1027
|
"div",
|
|
1025
1028
|
{
|
|
@@ -1037,7 +1040,7 @@ function oa() {
|
|
|
1037
1040
|
}
|
|
1038
1041
|
);
|
|
1039
1042
|
}
|
|
1040
|
-
function
|
|
1043
|
+
function da() {
|
|
1041
1044
|
const { t } = F();
|
|
1042
1045
|
return /* @__PURE__ */ s(
|
|
1043
1046
|
Ct,
|
|
@@ -1049,7 +1052,7 @@ function la() {
|
|
|
1049
1052
|
}
|
|
1050
1053
|
);
|
|
1051
1054
|
}
|
|
1052
|
-
function
|
|
1055
|
+
function ua(t) {
|
|
1053
1056
|
try {
|
|
1054
1057
|
const e = localStorage.getItem(`data-table-col-state:${t}`);
|
|
1055
1058
|
return e ? JSON.parse(e) : null;
|
|
@@ -1057,7 +1060,7 @@ function ia(t) {
|
|
|
1057
1060
|
return null;
|
|
1058
1061
|
}
|
|
1059
1062
|
}
|
|
1060
|
-
function
|
|
1063
|
+
function fa(t, e) {
|
|
1061
1064
|
try {
|
|
1062
1065
|
localStorage.setItem(
|
|
1063
1066
|
`data-table-col-state:${t}`,
|
|
@@ -1066,7 +1069,7 @@ function ca(t, e) {
|
|
|
1066
1069
|
} catch {
|
|
1067
1070
|
}
|
|
1068
1071
|
}
|
|
1069
|
-
function
|
|
1072
|
+
function pa(t, e) {
|
|
1070
1073
|
const {
|
|
1071
1074
|
columnDefs: a,
|
|
1072
1075
|
rowData: n,
|
|
@@ -1088,8 +1091,8 @@ function da(t, e) {
|
|
|
1088
1091
|
getRowClass: h,
|
|
1089
1092
|
pinnedBottomRowData: C,
|
|
1090
1093
|
printMode: S = !1,
|
|
1091
|
-
children:
|
|
1092
|
-
} = 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(
|
|
1093
1096
|
() => ({
|
|
1094
1097
|
getSelection: () => {
|
|
1095
1098
|
var w;
|
|
@@ -1110,16 +1113,16 @@ function da(t, e) {
|
|
|
1110
1113
|
});
|
|
1111
1114
|
},
|
|
1112
1115
|
selectRange: (T, N) => {
|
|
1113
|
-
var
|
|
1114
|
-
const w = (
|
|
1116
|
+
var be;
|
|
1117
|
+
const w = (be = k.current) == null ? void 0 : be.api;
|
|
1115
1118
|
if (!w) return;
|
|
1116
1119
|
const O = [];
|
|
1117
1120
|
w.forEachNodeAfterFilterAndSort((U) => {
|
|
1118
1121
|
U.id != null && O.push(U.id);
|
|
1119
1122
|
});
|
|
1120
|
-
const A = O.indexOf(T),
|
|
1121
|
-
if (A < 0 ||
|
|
1122
|
-
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));
|
|
1123
1126
|
w.forEachNode((U) => {
|
|
1124
1127
|
U.id != null && U.setSelected(de.has(U.id));
|
|
1125
1128
|
});
|
|
@@ -1146,8 +1149,8 @@ function da(t, e) {
|
|
|
1146
1149
|
const N = (O = k.current) == null ? void 0 : O.api;
|
|
1147
1150
|
if (!N) return;
|
|
1148
1151
|
const w = N.getColumnState().map((A) => {
|
|
1149
|
-
const
|
|
1150
|
-
return { ...A, sort:
|
|
1152
|
+
const j = T.find((V) => V.colId === A.colId);
|
|
1153
|
+
return { ...A, sort: j ? j.sort : null };
|
|
1151
1154
|
});
|
|
1152
1155
|
N.applyColumnState({ state: w, defaultState: { sort: null } });
|
|
1153
1156
|
},
|
|
@@ -1166,45 +1169,39 @@ function da(t, e) {
|
|
|
1166
1169
|
}),
|
|
1167
1170
|
[]
|
|
1168
1171
|
);
|
|
1169
|
-
|
|
1170
|
-
const
|
|
1171
|
-
() => window.matchMedia("(prefers-reduced-motion: reduce)").matches,
|
|
1172
|
-
[]
|
|
1173
|
-
), ot = I(
|
|
1174
|
-
() => document.documentElement.classList.contains("theme-accessible"),
|
|
1175
|
-
[]
|
|
1176
|
-
) && 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(() => {
|
|
1177
1174
|
if (r)
|
|
1178
1175
|
return r === "single" ? { mode: "singleRow" } : {
|
|
1179
1176
|
mode: "multiRow",
|
|
1180
1177
|
headerCheckbox: !0,
|
|
1181
1178
|
checkboxes: !0
|
|
1182
1179
|
};
|
|
1183
|
-
}, [r]),
|
|
1180
|
+
}, [r]), ct = M(() => {
|
|
1184
1181
|
var N;
|
|
1185
1182
|
if (!d || !((N = k.current) != null && N.api)) return;
|
|
1186
|
-
const T =
|
|
1183
|
+
const T = ua(d);
|
|
1187
1184
|
T && k.current.api.applyColumnState({
|
|
1188
1185
|
state: T,
|
|
1189
1186
|
applyOrder: !0
|
|
1190
1187
|
});
|
|
1191
1188
|
}, [d]), ie = M(() => {
|
|
1192
1189
|
var T;
|
|
1193
|
-
d && ((T = k.current) != null && T.api) &&
|
|
1194
|
-
}, [d]),
|
|
1190
|
+
d && ((T = k.current) != null && T.api) && fa(d, k.current.api);
|
|
1191
|
+
}, [d]), dt = M(() => {
|
|
1195
1192
|
var w;
|
|
1196
1193
|
const T = (w = k.current) == null ? void 0 : w.api;
|
|
1197
1194
|
if (!T) return;
|
|
1198
1195
|
const N = T.getSelectedRows();
|
|
1199
|
-
|
|
1200
|
-
}, [i]),
|
|
1196
|
+
at(N.length), i == null || i(N);
|
|
1197
|
+
}, [i]), ut = M(
|
|
1201
1198
|
(T) => {
|
|
1202
1199
|
var w;
|
|
1203
1200
|
const N = (w = k.current) == null ? void 0 : w.api;
|
|
1204
1201
|
if (N) {
|
|
1205
|
-
const A = N.getColumnState().find((
|
|
1202
|
+
const A = N.getColumnState().find((j) => j.sort);
|
|
1206
1203
|
if (A) {
|
|
1207
|
-
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";
|
|
1208
1205
|
oe(
|
|
1209
1206
|
D("dataTable.sortAnnounce", {
|
|
1210
1207
|
column: ce,
|
|
@@ -1217,7 +1214,7 @@ function da(t, e) {
|
|
|
1217
1214
|
c == null || c(T);
|
|
1218
1215
|
},
|
|
1219
1216
|
[c, D]
|
|
1220
|
-
),
|
|
1217
|
+
), ft = M(
|
|
1221
1218
|
(T) => {
|
|
1222
1219
|
p == null || p(T);
|
|
1223
1220
|
},
|
|
@@ -1228,41 +1225,41 @@ function da(t, e) {
|
|
|
1228
1225
|
const T = setTimeout(() => oe(""), 3e3);
|
|
1229
1226
|
return () => clearTimeout(T);
|
|
1230
1227
|
}, [se]);
|
|
1231
|
-
const
|
|
1228
|
+
const pt = v ?? da, mt = g ?? ca, gt = M(
|
|
1232
1229
|
() => {
|
|
1233
1230
|
var T;
|
|
1234
1231
|
return (T = k.current) == null ? void 0 : T.api;
|
|
1235
1232
|
},
|
|
1236
1233
|
[]
|
|
1237
|
-
),
|
|
1234
|
+
), bt = M(() => {
|
|
1238
1235
|
typeof window < "u" && window.print();
|
|
1239
|
-
}, []),
|
|
1240
|
-
density:
|
|
1236
|
+
}, []), ht = la({
|
|
1237
|
+
density: lt,
|
|
1241
1238
|
bordered: x,
|
|
1242
1239
|
className: m
|
|
1243
|
-
}),
|
|
1240
|
+
}), vt = I ?? /* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(te.Actions, { children: /* @__PURE__ */ s(te.ExportMenu, {}) }) }), yt = S ? !1 : o;
|
|
1244
1241
|
return /* @__PURE__ */ E(
|
|
1245
1242
|
"div",
|
|
1246
1243
|
{
|
|
1247
1244
|
className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1248
|
-
"aria-busy":
|
|
1245
|
+
"aria-busy": st ? "true" : void 0,
|
|
1249
1246
|
"data-component": "data-table",
|
|
1250
1247
|
"data-component-id": d,
|
|
1251
1248
|
"data-print-mode": S ? "true" : void 0,
|
|
1252
1249
|
children: [
|
|
1253
1250
|
!S && /* @__PURE__ */ s(
|
|
1254
|
-
|
|
1251
|
+
Ut,
|
|
1255
1252
|
{
|
|
1256
|
-
getApi:
|
|
1253
|
+
getApi: gt,
|
|
1257
1254
|
selectionCount: G,
|
|
1258
|
-
onPrint:
|
|
1259
|
-
children:
|
|
1255
|
+
onPrint: bt,
|
|
1256
|
+
children: vt
|
|
1260
1257
|
}
|
|
1261
1258
|
),
|
|
1262
1259
|
/* @__PURE__ */ s(
|
|
1263
1260
|
"div",
|
|
1264
1261
|
{
|
|
1265
|
-
className: [
|
|
1262
|
+
className: [ht, S ? "" : f].join(" ").trim(),
|
|
1266
1263
|
children: /* @__PURE__ */ s(
|
|
1267
1264
|
St,
|
|
1268
1265
|
{
|
|
@@ -1277,8 +1274,8 @@ function da(t, e) {
|
|
|
1277
1274
|
// language instead of AG Grid's stock browser-skinned input.
|
|
1278
1275
|
// Number / date / select columns opt into their dedicated
|
|
1279
1276
|
// wrapper per-column.
|
|
1280
|
-
filter:
|
|
1281
|
-
floatingFilterComponent:
|
|
1277
|
+
filter: ra,
|
|
1278
|
+
floatingFilterComponent: sa,
|
|
1282
1279
|
resizable: !0,
|
|
1283
1280
|
floatingFilter: !0,
|
|
1284
1281
|
// §13d — faint sort icon advertises which columns are
|
|
@@ -1286,13 +1283,13 @@ function da(t, e) {
|
|
|
1286
1283
|
unSortIcon: !0,
|
|
1287
1284
|
...b == null ? void 0 : b.defaultColDef
|
|
1288
1285
|
},
|
|
1289
|
-
rowSelection:
|
|
1290
|
-
pagination:
|
|
1286
|
+
rowSelection: it,
|
|
1287
|
+
pagination: yt,
|
|
1291
1288
|
paginationPageSize: l,
|
|
1292
1289
|
paginationPageSizeSelector: u,
|
|
1293
1290
|
paginationNumberFormatter: (T) => new Intl.NumberFormat(q.language).format(T.value),
|
|
1294
|
-
animateRows: !
|
|
1295
|
-
enableRtl:
|
|
1291
|
+
animateRows: !ot,
|
|
1292
|
+
enableRtl: rt,
|
|
1296
1293
|
ensureDomOrder: !0,
|
|
1297
1294
|
enableCellSpan: !0,
|
|
1298
1295
|
enableCellTextSelection: !0,
|
|
@@ -1310,19 +1307,19 @@ function da(t, e) {
|
|
|
1310
1307
|
undoRedoCellEditingLimit: 20,
|
|
1311
1308
|
suppressCellFocus: !1,
|
|
1312
1309
|
rowBuffer: 10,
|
|
1313
|
-
localeText:
|
|
1314
|
-
noRowsOverlayComponent:
|
|
1315
|
-
loadingOverlayComponent:
|
|
1310
|
+
localeText: nt,
|
|
1311
|
+
noRowsOverlayComponent: pt,
|
|
1312
|
+
loadingOverlayComponent: mt,
|
|
1316
1313
|
getRowClass: h,
|
|
1317
1314
|
pinnedBottomRowData: C,
|
|
1318
1315
|
domLayout: S ? "autoHeight" : void 0,
|
|
1319
|
-
onGridReady:
|
|
1316
|
+
onGridReady: ct,
|
|
1320
1317
|
onColumnMoved: ie,
|
|
1321
1318
|
onColumnResized: ie,
|
|
1322
1319
|
onColumnPinned: ie,
|
|
1323
|
-
onSortChanged:
|
|
1324
|
-
onFilterChanged:
|
|
1325
|
-
onSelectionChanged:
|
|
1320
|
+
onSortChanged: ut,
|
|
1321
|
+
onFilterChanged: ft,
|
|
1322
|
+
onSelectionChanged: dt,
|
|
1326
1323
|
...b
|
|
1327
1324
|
}
|
|
1328
1325
|
)
|
|
@@ -1334,13 +1331,13 @@ function da(t, e) {
|
|
|
1334
1331
|
}
|
|
1335
1332
|
);
|
|
1336
1333
|
}
|
|
1337
|
-
const
|
|
1338
|
-
|
|
1339
|
-
const
|
|
1334
|
+
const tt = _(pa);
|
|
1335
|
+
tt.displayName = "DataTable";
|
|
1336
|
+
const Tn = Object.assign(tt, {
|
|
1340
1337
|
Toolbar: te
|
|
1341
1338
|
});
|
|
1342
|
-
function
|
|
1343
|
-
return
|
|
1339
|
+
function xn(t, e, a) {
|
|
1340
|
+
return z(() => {
|
|
1344
1341
|
const n = {};
|
|
1345
1342
|
for (const r of e) {
|
|
1346
1343
|
let o = 0;
|
|
@@ -1361,7 +1358,7 @@ function Q(t) {
|
|
|
1361
1358
|
const e = new Date(t);
|
|
1362
1359
|
return Number.isNaN(e.getTime()) ? void 0 : e;
|
|
1363
1360
|
}
|
|
1364
|
-
function
|
|
1361
|
+
function Cn(t) {
|
|
1365
1362
|
const { model: e, onModelChange: a, getValue: n, doesRowPassOtherFilter: r } = t, o = {
|
|
1366
1363
|
from: Q(e == null ? void 0 : e.dateFrom),
|
|
1367
1364
|
to: Q(e == null ? void 0 : e.dateTo)
|
|
@@ -1385,9 +1382,9 @@ function bn(t) {
|
|
|
1385
1382
|
dateTo: re(i.to)
|
|
1386
1383
|
});
|
|
1387
1384
|
}
|
|
1388
|
-
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" }) });
|
|
1389
1386
|
}
|
|
1390
|
-
function
|
|
1387
|
+
function Nn(t) {
|
|
1391
1388
|
const { model: e, onModelChange: a } = t, [n, r] = R({
|
|
1392
1389
|
from: Q(e == null ? void 0 : e.dateFrom),
|
|
1393
1390
|
to: Q(e == null ? void 0 : e.dateTo)
|
|
@@ -1403,13 +1400,13 @@ function hn(t) {
|
|
|
1403
1400
|
dateTo: re(l.to)
|
|
1404
1401
|
});
|
|
1405
1402
|
}
|
|
1406
|
-
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" }) });
|
|
1407
1404
|
}
|
|
1408
1405
|
function K(t) {
|
|
1409
1406
|
return typeof t == "number" ? `n:${t}` : `s:${t}`;
|
|
1410
1407
|
}
|
|
1411
|
-
function
|
|
1412
|
-
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(() => {
|
|
1413
1410
|
if (l && l.length > 0) return l;
|
|
1414
1411
|
if (!r || !o) return [];
|
|
1415
1412
|
const f = /* @__PURE__ */ new Map();
|
|
@@ -1421,7 +1418,7 @@ function vn(t) {
|
|
|
1421
1418
|
}), Array.from(f.values()).sort(
|
|
1422
1419
|
(m, h) => String(m.label).localeCompare(String(h.label))
|
|
1423
1420
|
);
|
|
1424
|
-
}, [l, r, o, n]), c =
|
|
1421
|
+
}, [l, r, o, n]), c = z(() => {
|
|
1425
1422
|
const f = /* @__PURE__ */ new Set(), m = (e == null ? void 0 : e.values) ?? [];
|
|
1426
1423
|
for (const h of m) f.add(K(h));
|
|
1427
1424
|
return f;
|
|
@@ -1435,7 +1432,7 @@ function vn(t) {
|
|
|
1435
1432
|
const h = n(f.node);
|
|
1436
1433
|
if (h == null) return !1;
|
|
1437
1434
|
const C = typeof h == "string" || typeof h == "number" ? h : String(h), S = K(C);
|
|
1438
|
-
return m.some((
|
|
1435
|
+
return m.some((I) => K(I) === S);
|
|
1439
1436
|
}
|
|
1440
1437
|
});
|
|
1441
1438
|
function g(f) {
|
|
@@ -1473,7 +1470,7 @@ function vn(t) {
|
|
|
1473
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) => {
|
|
1474
1471
|
const m = K(f.value);
|
|
1475
1472
|
return /* @__PURE__ */ s(
|
|
1476
|
-
|
|
1473
|
+
Re,
|
|
1477
1474
|
{
|
|
1478
1475
|
size: "sm",
|
|
1479
1476
|
label: f.label,
|
|
@@ -1486,26 +1483,26 @@ function vn(t) {
|
|
|
1486
1483
|
}
|
|
1487
1484
|
),
|
|
1488
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: [
|
|
1489
|
-
/* @__PURE__ */ s(
|
|
1490
|
-
/* @__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") })
|
|
1491
1488
|
] })
|
|
1492
1489
|
]
|
|
1493
1490
|
}
|
|
1494
1491
|
);
|
|
1495
1492
|
}
|
|
1496
|
-
function
|
|
1493
|
+
function wn(t) {
|
|
1497
1494
|
var c, p;
|
|
1498
|
-
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(() => {
|
|
1499
1496
|
const v = /* @__PURE__ */ new Map();
|
|
1500
1497
|
for (const g of o) v.set(String(g.value), g.value);
|
|
1501
1498
|
return v;
|
|
1502
|
-
}, [o]), u =
|
|
1499
|
+
}, [o]), u = z(
|
|
1503
1500
|
() => o.map((v) => ({
|
|
1504
1501
|
value: String(v.value),
|
|
1505
1502
|
label: v.label
|
|
1506
1503
|
})),
|
|
1507
1504
|
[o]
|
|
1508
|
-
), d =
|
|
1505
|
+
), d = z(
|
|
1509
1506
|
() => ((e == null ? void 0 : e.values) ?? []).map((v) => String(v)),
|
|
1510
1507
|
[e]
|
|
1511
1508
|
);
|
|
@@ -1522,7 +1519,7 @@ function yn(t) {
|
|
|
1522
1519
|
a({ type: "set", values: g });
|
|
1523
1520
|
}
|
|
1524
1521
|
return /* @__PURE__ */ s("div", { "data-component": "select-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
|
|
1525
|
-
|
|
1522
|
+
Ot,
|
|
1526
1523
|
{
|
|
1527
1524
|
size: "sm",
|
|
1528
1525
|
options: u,
|
|
@@ -1536,7 +1533,7 @@ function yn(t) {
|
|
|
1536
1533
|
function W(t) {
|
|
1537
1534
|
return t.trim().toLocaleLowerCase();
|
|
1538
1535
|
}
|
|
1539
|
-
function
|
|
1536
|
+
function Fn(t) {
|
|
1540
1537
|
const {
|
|
1541
1538
|
model: e,
|
|
1542
1539
|
onModelChange: a,
|
|
@@ -1546,7 +1543,7 @@ function Tn(t) {
|
|
|
1546
1543
|
options: l,
|
|
1547
1544
|
loadOptions: u,
|
|
1548
1545
|
placeholder: d
|
|
1549
|
-
} = t, { t: i } = F("ui"), c =
|
|
1546
|
+
} = t, { t: i } = F("ui"), c = z(() => {
|
|
1550
1547
|
if (l && l.length > 0) return l;
|
|
1551
1548
|
if (!r || !o) return [];
|
|
1552
1549
|
const m = /* @__PURE__ */ new Map();
|
|
@@ -1558,11 +1555,11 @@ function Tn(t) {
|
|
|
1558
1555
|
}), Array.from(m.values()).sort(
|
|
1559
1556
|
(h, C) => h.label.localeCompare(C.label)
|
|
1560
1557
|
);
|
|
1561
|
-
}, [l, r, o, n]), p =
|
|
1558
|
+
}, [l, r, o, n]), p = z(() => async (m, h) => {
|
|
1562
1559
|
if (u)
|
|
1563
1560
|
return (await u(m, h)).map((D) => ({ value: D.value, label: D.label }));
|
|
1564
1561
|
const C = W(m);
|
|
1565
|
-
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 }));
|
|
1566
1563
|
}, [u, c]), [v, g] = R((e == null ? void 0 : e.value) ?? "");
|
|
1567
1564
|
P(() => {
|
|
1568
1565
|
g((e == null ? void 0 : e.value) ?? "");
|
|
@@ -1593,7 +1590,7 @@ function Tn(t) {
|
|
|
1593
1590
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
1594
1591
|
children: [
|
|
1595
1592
|
/* @__PURE__ */ s(
|
|
1596
|
-
|
|
1593
|
+
Ae,
|
|
1597
1594
|
{
|
|
1598
1595
|
size: "sm",
|
|
1599
1596
|
value: v,
|
|
@@ -1604,14 +1601,14 @@ function Tn(t) {
|
|
|
1604
1601
|
"aria-label": f
|
|
1605
1602
|
}
|
|
1606
1603
|
),
|
|
1607
|
-
/* @__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") }) })
|
|
1608
1605
|
]
|
|
1609
1606
|
}
|
|
1610
1607
|
);
|
|
1611
1608
|
}
|
|
1612
|
-
function
|
|
1609
|
+
function Rn(t) {
|
|
1613
1610
|
var b, y;
|
|
1614
|
-
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) => {
|
|
1615
1612
|
if (u)
|
|
1616
1613
|
return (await u(x, f)).map((S) => ({ value: S.value, label: S.label }));
|
|
1617
1614
|
const m = W(x);
|
|
@@ -1627,7 +1624,7 @@ function xn(t) {
|
|
|
1627
1624
|
p(x), x === "" && e && a(null);
|
|
1628
1625
|
}
|
|
1629
1626
|
return /* @__PURE__ */ s("div", { "data-component": "typeahead-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
|
|
1630
|
-
|
|
1627
|
+
Ae,
|
|
1631
1628
|
{
|
|
1632
1629
|
size: "sm",
|
|
1633
1630
|
value: c,
|
|
@@ -1639,7 +1636,7 @@ function xn(t) {
|
|
|
1639
1636
|
}
|
|
1640
1637
|
) });
|
|
1641
1638
|
}
|
|
1642
|
-
const
|
|
1639
|
+
const ma = [
|
|
1643
1640
|
"equals",
|
|
1644
1641
|
"notEqual",
|
|
1645
1642
|
"greaterThan",
|
|
@@ -1650,13 +1647,13 @@ const ua = [
|
|
|
1650
1647
|
"blank",
|
|
1651
1648
|
"notBlank"
|
|
1652
1649
|
];
|
|
1653
|
-
function
|
|
1650
|
+
function ve(t) {
|
|
1654
1651
|
return t !== "blank" && t !== "notBlank";
|
|
1655
1652
|
}
|
|
1656
|
-
function
|
|
1653
|
+
function ye(t) {
|
|
1657
1654
|
return t === "inRange";
|
|
1658
1655
|
}
|
|
1659
|
-
function
|
|
1656
|
+
function ga(t, e, a, n) {
|
|
1660
1657
|
if (t === "blank") return e === null;
|
|
1661
1658
|
if (t === "notBlank") return e !== null;
|
|
1662
1659
|
if (e === null) return !1;
|
|
@@ -1683,12 +1680,12 @@ function fa(t, e, a, n) {
|
|
|
1683
1680
|
return !0;
|
|
1684
1681
|
}
|
|
1685
1682
|
}
|
|
1686
|
-
function
|
|
1683
|
+
function ba(t) {
|
|
1687
1684
|
if (t == null || t === "") return null;
|
|
1688
1685
|
const e = typeof t == "number" ? t : Number(t);
|
|
1689
1686
|
return Number.isNaN(e) ? null : e;
|
|
1690
1687
|
}
|
|
1691
|
-
function
|
|
1688
|
+
function Dn(t) {
|
|
1692
1689
|
const {
|
|
1693
1690
|
model: e,
|
|
1694
1691
|
onModelChange: a,
|
|
@@ -1710,8 +1707,8 @@ function Cn(t) {
|
|
|
1710
1707
|
}, [e, r]), J({
|
|
1711
1708
|
doesFilterPass: (D) => {
|
|
1712
1709
|
if (!e) return !0;
|
|
1713
|
-
const q =
|
|
1714
|
-
return
|
|
1710
|
+
const q = ba(n(D.node));
|
|
1711
|
+
return ga(
|
|
1715
1712
|
e.type,
|
|
1716
1713
|
q,
|
|
1717
1714
|
e.filter ?? null,
|
|
@@ -1719,15 +1716,15 @@ function Cn(t) {
|
|
|
1719
1716
|
);
|
|
1720
1717
|
}
|
|
1721
1718
|
});
|
|
1722
|
-
const f =
|
|
1723
|
-
() =>
|
|
1719
|
+
const f = z(
|
|
1720
|
+
() => ma.map((D) => ({
|
|
1724
1721
|
value: D,
|
|
1725
1722
|
label: i(`dataTable.numberFilter.operators.${D}`)
|
|
1726
1723
|
})),
|
|
1727
1724
|
[i]
|
|
1728
1725
|
), m = d ?? i("dataTable.numberFilter.placeholder");
|
|
1729
1726
|
function h() {
|
|
1730
|
-
if (!
|
|
1727
|
+
if (!ve(p)) {
|
|
1731
1728
|
a({ type: p, filter: 0 });
|
|
1732
1729
|
return;
|
|
1733
1730
|
}
|
|
@@ -1735,7 +1732,7 @@ function Cn(t) {
|
|
|
1735
1732
|
a(null);
|
|
1736
1733
|
return;
|
|
1737
1734
|
}
|
|
1738
|
-
if (
|
|
1735
|
+
if (ye(p)) {
|
|
1739
1736
|
a({
|
|
1740
1737
|
type: p,
|
|
1741
1738
|
filter: g,
|
|
@@ -1748,7 +1745,7 @@ function Cn(t) {
|
|
|
1748
1745
|
function C() {
|
|
1749
1746
|
v(r ?? "equals"), b(null), x(null), a(null);
|
|
1750
1747
|
}
|
|
1751
|
-
const S =
|
|
1748
|
+
const S = ve(p), I = ye(p);
|
|
1752
1749
|
return /* @__PURE__ */ E(
|
|
1753
1750
|
"div",
|
|
1754
1751
|
{
|
|
@@ -1756,7 +1753,7 @@ function Cn(t) {
|
|
|
1756
1753
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
|
|
1757
1754
|
children: [
|
|
1758
1755
|
/* @__PURE__ */ s(
|
|
1759
|
-
|
|
1756
|
+
Ie,
|
|
1760
1757
|
{
|
|
1761
1758
|
size: "sm",
|
|
1762
1759
|
options: f,
|
|
@@ -1767,7 +1764,7 @@ function Cn(t) {
|
|
|
1767
1764
|
"aria-label": i("dataTable.numberFilter.operators.equals")
|
|
1768
1765
|
}
|
|
1769
1766
|
),
|
|
1770
|
-
S && !
|
|
1767
|
+
S && !I && /* @__PURE__ */ s(
|
|
1771
1768
|
ee,
|
|
1772
1769
|
{
|
|
1773
1770
|
size: "sm",
|
|
@@ -1780,7 +1777,7 @@ function Cn(t) {
|
|
|
1780
1777
|
"aria-label": m
|
|
1781
1778
|
}
|
|
1782
1779
|
),
|
|
1783
|
-
|
|
1780
|
+
I && /* @__PURE__ */ E("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1784
1781
|
/* @__PURE__ */ s(
|
|
1785
1782
|
ee,
|
|
1786
1783
|
{
|
|
@@ -1809,14 +1806,14 @@ function Cn(t) {
|
|
|
1809
1806
|
)
|
|
1810
1807
|
] }),
|
|
1811
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: [
|
|
1812
|
-
/* @__PURE__ */ s(
|
|
1813
|
-
/* @__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") })
|
|
1814
1811
|
] })
|
|
1815
1812
|
]
|
|
1816
1813
|
}
|
|
1817
1814
|
);
|
|
1818
1815
|
}
|
|
1819
|
-
function
|
|
1816
|
+
function kn(t) {
|
|
1820
1817
|
var c, p;
|
|
1821
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);
|
|
1822
1819
|
return P(() => {
|
|
@@ -1845,22 +1842,22 @@ function Nn(t) {
|
|
|
1845
1842
|
}
|
|
1846
1843
|
) });
|
|
1847
1844
|
}
|
|
1848
|
-
function
|
|
1845
|
+
function En(t) {
|
|
1849
1846
|
const { value: e, variantMap: a } = t, n = (a == null ? void 0 : a[e]) ?? "neutral";
|
|
1850
|
-
return /* @__PURE__ */ s(
|
|
1847
|
+
return /* @__PURE__ */ s(Mt, { variant: n, withDot: !0, size: "sm", children: String(e ?? "") });
|
|
1851
1848
|
}
|
|
1852
|
-
function
|
|
1849
|
+
function In(t) {
|
|
1853
1850
|
const { value: e } = t;
|
|
1854
1851
|
return e ? /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
1855
|
-
/* @__PURE__ */ s(
|
|
1852
|
+
/* @__PURE__ */ s(Pe, { name: e.name, src: e.src, size: "sm" }),
|
|
1856
1853
|
/* @__PURE__ */ s("span", { children: e.name })
|
|
1857
1854
|
] }) : null;
|
|
1858
1855
|
}
|
|
1859
|
-
const
|
|
1856
|
+
const ha = {
|
|
1860
1857
|
sm: "ds:size-8",
|
|
1861
1858
|
md: "ds:size-10",
|
|
1862
1859
|
lg: "ds:size-12"
|
|
1863
|
-
},
|
|
1860
|
+
}, va = {
|
|
1864
1861
|
square: "ds:rounded-none",
|
|
1865
1862
|
rounded: "ds:rounded-[var(--radius-md)]",
|
|
1866
1863
|
circle: "ds:rounded-[var(--radius-full)]"
|
|
@@ -1870,14 +1867,14 @@ function ue(t, e) {
|
|
|
1870
1867
|
const a = t[e];
|
|
1871
1868
|
return typeof a == "string" ? a : void 0;
|
|
1872
1869
|
}
|
|
1873
|
-
const
|
|
1874
|
-
function
|
|
1870
|
+
const ya = /^(?:https?:|data:image\/)/i;
|
|
1871
|
+
function Ta(t) {
|
|
1875
1872
|
if (!t) return;
|
|
1876
1873
|
const e = t.trim();
|
|
1877
1874
|
if (e.length !== 0)
|
|
1878
|
-
return
|
|
1875
|
+
return ya.test(e) ? e : void 0;
|
|
1879
1876
|
}
|
|
1880
|
-
function
|
|
1877
|
+
function zn(t) {
|
|
1881
1878
|
const {
|
|
1882
1879
|
data: e,
|
|
1883
1880
|
srcField: a,
|
|
@@ -1887,7 +1884,7 @@ function Fn(t) {
|
|
|
1887
1884
|
shape: l = "rounded"
|
|
1888
1885
|
} = t;
|
|
1889
1886
|
if (!e) return null;
|
|
1890
|
-
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;
|
|
1891
1888
|
return d ? /* @__PURE__ */ s(
|
|
1892
1889
|
"img",
|
|
1893
1890
|
{
|
|
@@ -1895,19 +1892,19 @@ function Fn(t) {
|
|
|
1895
1892
|
alt: i,
|
|
1896
1893
|
loading: "lazy",
|
|
1897
1894
|
decoding: "async",
|
|
1898
|
-
className: ["ds:object-cover",
|
|
1895
|
+
className: ["ds:object-cover", ha[o], va[l]].join(
|
|
1899
1896
|
" "
|
|
1900
1897
|
)
|
|
1901
1898
|
}
|
|
1902
|
-
) : c ? /* @__PURE__ */ s(
|
|
1899
|
+
) : c ? /* @__PURE__ */ s(Pe, { name: c, size: o }) : null;
|
|
1903
1900
|
}
|
|
1904
|
-
function
|
|
1901
|
+
function An(t) {
|
|
1905
1902
|
const { value: e, maxVisible: a = 3 } = t, { t: n } = F();
|
|
1906
1903
|
if (!Array.isArray(e) || e.length === 0) return null;
|
|
1907
1904
|
const r = e.slice(0, a), o = e.length - a;
|
|
1908
1905
|
return /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1909
1906
|
r.map((l) => /* @__PURE__ */ s(ae, { label: l, size: "sm" }, l)),
|
|
1910
|
-
o > 0 && /* @__PURE__ */ s(
|
|
1907
|
+
o > 0 && /* @__PURE__ */ s(jt, { label: e.slice(a).join(", "), children: /* @__PURE__ */ s(
|
|
1911
1908
|
ae,
|
|
1912
1909
|
{
|
|
1913
1910
|
label: n("inputs.multiSelect.overflow", { count: o }),
|
|
@@ -1918,7 +1915,7 @@ function Rn(t) {
|
|
|
1918
1915
|
) })
|
|
1919
1916
|
] });
|
|
1920
1917
|
}
|
|
1921
|
-
const
|
|
1918
|
+
const xa = {
|
|
1922
1919
|
date: { year: "numeric", month: "short", day: "numeric" },
|
|
1923
1920
|
time: { hour: "2-digit", minute: "2-digit" },
|
|
1924
1921
|
datetime: {
|
|
@@ -1929,31 +1926,31 @@ const va = {
|
|
|
1929
1926
|
minute: "2-digit"
|
|
1930
1927
|
}
|
|
1931
1928
|
};
|
|
1932
|
-
function
|
|
1929
|
+
function Pn(t) {
|
|
1933
1930
|
const { value: e, format: a = "date", options: n } = t;
|
|
1934
|
-
return e == null || e === "" ? null : a === "relative" && !n ? /* @__PURE__ */ s(
|
|
1935
|
-
|
|
1931
|
+
return e == null || e === "" ? null : a === "relative" && !n ? /* @__PURE__ */ s(he, { value: e, shape: "bare" }) : /* @__PURE__ */ s(
|
|
1932
|
+
he,
|
|
1936
1933
|
{
|
|
1937
1934
|
value: e,
|
|
1938
1935
|
format: "absolute",
|
|
1939
1936
|
shape: "bare",
|
|
1940
|
-
absoluteFormat: n ??
|
|
1937
|
+
absoluteFormat: n ?? xa[a === "relative" ? "date" : a]
|
|
1941
1938
|
}
|
|
1942
1939
|
);
|
|
1943
1940
|
}
|
|
1944
|
-
function
|
|
1941
|
+
function Ca(t) {
|
|
1945
1942
|
if (t == null || t === "") return null;
|
|
1946
1943
|
const e = typeof t == "number" ? t : Number(t);
|
|
1947
1944
|
return Number.isFinite(e) ? e : null;
|
|
1948
1945
|
}
|
|
1949
|
-
function
|
|
1946
|
+
function On(t) {
|
|
1950
1947
|
const {
|
|
1951
1948
|
value: e,
|
|
1952
1949
|
currency: a = "EUR",
|
|
1953
1950
|
colorNegative: n,
|
|
1954
1951
|
strikethrough: r,
|
|
1955
1952
|
options: o
|
|
1956
|
-
} = t, { i18n: l } = F(), u =
|
|
1953
|
+
} = t, { i18n: l } = F(), u = Ca(e);
|
|
1957
1954
|
if (u === null) return null;
|
|
1958
1955
|
const d = l.language || "en", i = new Intl.NumberFormat(d, {
|
|
1959
1956
|
style: "currency",
|
|
@@ -1962,25 +1959,25 @@ function kn(t) {
|
|
|
1962
1959
|
}).format(u), c = ["ds:tabular-nums"];
|
|
1963
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 });
|
|
1964
1961
|
}
|
|
1965
|
-
function
|
|
1966
|
-
if (!
|
|
1962
|
+
function Na(t) {
|
|
1963
|
+
if (!we(t)) return t;
|
|
1967
1964
|
const e = t, a = e.props.className ?? "", n = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} size-4`.trim();
|
|
1968
|
-
return
|
|
1965
|
+
return Fe(e, { className: n, size: e.props.size ?? 16 });
|
|
1969
1966
|
}
|
|
1970
|
-
function
|
|
1967
|
+
function Te(t, e) {
|
|
1971
1968
|
return typeof t == "function" ? t(e) : !!t;
|
|
1972
1969
|
}
|
|
1973
|
-
function
|
|
1970
|
+
function Mn(t) {
|
|
1974
1971
|
const { data: e, actions: a } = t;
|
|
1975
1972
|
return e ? /* @__PURE__ */ s("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: a.map((n, r) => {
|
|
1976
|
-
if (
|
|
1977
|
-
const o =
|
|
1973
|
+
if (Te(n.hidden, e)) return null;
|
|
1974
|
+
const o = Te(n.disabled, e), l = o && n.disabledReason ? n.disabledReason : n.label, u = n.variant === "destructive";
|
|
1978
1975
|
return /* @__PURE__ */ s(
|
|
1979
1976
|
B,
|
|
1980
1977
|
{
|
|
1981
1978
|
size: "sm",
|
|
1982
1979
|
intent: "ghost",
|
|
1983
|
-
icon:
|
|
1980
|
+
icon: Na(n.icon),
|
|
1984
1981
|
tooltip: l,
|
|
1985
1982
|
"aria-label": n.label,
|
|
1986
1983
|
disabled: o,
|
|
@@ -1993,16 +1990,16 @@ function En(t) {
|
|
|
1993
1990
|
);
|
|
1994
1991
|
}) }) : null;
|
|
1995
1992
|
}
|
|
1996
|
-
function
|
|
1993
|
+
function xe(t, e) {
|
|
1997
1994
|
return typeof t == "function" ? t(e) : t;
|
|
1998
1995
|
}
|
|
1999
|
-
function
|
|
1996
|
+
function Sa(t) {
|
|
2000
1997
|
return /^(https?:\/\/|\/|#|mailto:|tel:)/i.test(t) ? t : "#";
|
|
2001
1998
|
}
|
|
2002
|
-
function
|
|
1999
|
+
function jn(t) {
|
|
2003
2000
|
const { value: e, data: a, href: n, onClick: r, secondary: o } = t;
|
|
2004
2001
|
if (!a) return null;
|
|
2005
|
-
const l =
|
|
2002
|
+
const l = xe(n, a), u = xe(o, a), d = e == null || e === "" ? "" : String(e), i = [
|
|
2006
2003
|
"ds:text-[color:var(--primary)]",
|
|
2007
2004
|
"ds:hover:underline",
|
|
2008
2005
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
@@ -2017,7 +2014,7 @@ function In(t) {
|
|
|
2017
2014
|
l ? /* @__PURE__ */ s(
|
|
2018
2015
|
"a",
|
|
2019
2016
|
{
|
|
2020
|
-
href:
|
|
2017
|
+
href: Sa(l),
|
|
2021
2018
|
onClick: c,
|
|
2022
2019
|
className: i,
|
|
2023
2020
|
children: d
|
|
@@ -2037,7 +2034,7 @@ function In(t) {
|
|
|
2037
2034
|
u ? /* @__PURE__ */ s("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: u }) : null
|
|
2038
2035
|
] });
|
|
2039
2036
|
}
|
|
2040
|
-
function
|
|
2037
|
+
function Ln(t) {
|
|
2041
2038
|
const {
|
|
2042
2039
|
value: e,
|
|
2043
2040
|
data: a,
|
|
@@ -2050,7 +2047,7 @@ function zn(t) {
|
|
|
2050
2047
|
label: i
|
|
2051
2048
|
} = t, { t: c } = F(), [p, v] = R(!1);
|
|
2052
2049
|
if (!a) return null;
|
|
2053
|
-
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");
|
|
2054
2051
|
async function f(m) {
|
|
2055
2052
|
if (m.stopPropagation(), p || !a) return;
|
|
2056
2053
|
const C = n(a, !g);
|
|
@@ -2091,26 +2088,26 @@ function zn(t) {
|
|
|
2091
2088
|
}
|
|
2092
2089
|
);
|
|
2093
2090
|
}
|
|
2094
|
-
const
|
|
2091
|
+
const wa = {
|
|
2095
2092
|
sm: "ds:size-[var(--icon-size-sm)]",
|
|
2096
2093
|
md: "ds:size-[var(--icon-size-md)]",
|
|
2097
2094
|
lg: "ds:size-[var(--icon-size-lg)]"
|
|
2098
2095
|
};
|
|
2099
|
-
function
|
|
2096
|
+
function Ce(t, e) {
|
|
2100
2097
|
if (!t || typeof t != "object") return;
|
|
2101
2098
|
const a = t[e];
|
|
2102
2099
|
return typeof a == "string" ? a : void 0;
|
|
2103
2100
|
}
|
|
2104
|
-
const
|
|
2105
|
-
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) {
|
|
2106
2103
|
if (!t) return;
|
|
2107
2104
|
const e = t.trim();
|
|
2108
|
-
if (
|
|
2105
|
+
if (Fa.test(e) || Ra.test(e) || Da.test(e) || ka.test(e))
|
|
2109
2106
|
return e;
|
|
2110
2107
|
}
|
|
2111
|
-
function
|
|
2112
|
-
const { data: e, colorField: a, size: n = "md", labelField: r } = t, o = X(null), l = e ?
|
|
2113
|
-
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(() => {
|
|
2114
2111
|
const i = o.current;
|
|
2115
2112
|
i && (u ? i.style.setProperty("--data-table-dot-color", u) : i.style.removeProperty("--data-table-dot-color"));
|
|
2116
2113
|
}, [u]), u ? /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
@@ -2123,23 +2120,23 @@ function An(t) {
|
|
|
2123
2120
|
"ds:inline-block ds:shrink-0 ds:rounded-[var(--radius-full)]",
|
|
2124
2121
|
"ds:bg-[var(--data-table-dot-color)]",
|
|
2125
2122
|
"ds:border ds:border-[color:var(--border)]",
|
|
2126
|
-
|
|
2123
|
+
wa[n]
|
|
2127
2124
|
].join(" ")
|
|
2128
2125
|
}
|
|
2129
2126
|
),
|
|
2130
2127
|
d ? /* @__PURE__ */ s("span", { children: d }) : null
|
|
2131
2128
|
] }) : null;
|
|
2132
2129
|
}
|
|
2133
|
-
function
|
|
2130
|
+
function Ia(t, e) {
|
|
2134
2131
|
if (!t || typeof t != "object") return null;
|
|
2135
2132
|
const a = t[e], n = typeof a == "number" ? a : Number(a);
|
|
2136
2133
|
return Number.isFinite(n) ? n : null;
|
|
2137
2134
|
}
|
|
2138
|
-
function
|
|
2135
|
+
function $n(t) {
|
|
2139
2136
|
const { data: e, lines: a, currency: n = "EUR", highlightNegative: r } = t, { i18n: o } = F();
|
|
2140
2137
|
if (!e) return null;
|
|
2141
2138
|
const l = o.language || "en", u = (i) => {
|
|
2142
|
-
const c =
|
|
2139
|
+
const c = Ia(e, i.valueField);
|
|
2143
2140
|
if (c === null) return null;
|
|
2144
2141
|
let p;
|
|
2145
2142
|
switch (i.format ?? "number") {
|
|
@@ -2210,7 +2207,7 @@ function Pn(t) {
|
|
|
2210
2207
|
}
|
|
2211
2208
|
);
|
|
2212
2209
|
}
|
|
2213
|
-
function
|
|
2210
|
+
function qn(t) {
|
|
2214
2211
|
var i, c;
|
|
2215
2212
|
const { initialValue: e, onValueChange: a, stopEditing: n, column: r } = t, [o, l] = R(e ?? ""), u = X(null);
|
|
2216
2213
|
P(() => {
|
|
@@ -2235,18 +2232,18 @@ function On(t) {
|
|
|
2235
2232
|
className: [
|
|
2236
2233
|
"ds:block ds:w-full ds:appearance-none",
|
|
2237
2234
|
// Input surface chrome: rounded border + bg + focus halo.
|
|
2238
|
-
|
|
2235
|
+
Oe,
|
|
2239
2236
|
// Use the `md` height (`--min-target-size`) so the input
|
|
2240
2237
|
// auto-lifts to 48px under `.theme-accessible` to satisfy
|
|
2241
2238
|
// WCAG 2.5.5 target size.
|
|
2242
|
-
|
|
2243
|
-
|
|
2239
|
+
Me.md,
|
|
2240
|
+
je.sm,
|
|
2244
2241
|
Le.sm
|
|
2245
2242
|
].join(" ")
|
|
2246
2243
|
}
|
|
2247
2244
|
);
|
|
2248
2245
|
}
|
|
2249
|
-
function
|
|
2246
|
+
function Gn(t) {
|
|
2250
2247
|
var y, x;
|
|
2251
2248
|
const {
|
|
2252
2249
|
initialValue: e,
|
|
@@ -2264,7 +2261,7 @@ function Mn(t) {
|
|
|
2264
2261
|
function g(f) {
|
|
2265
2262
|
var q, k;
|
|
2266
2263
|
if (f.trim().length === 0) return null;
|
|
2267
|
-
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);
|
|
2268
2265
|
return Number.isFinite(D) ? D : null;
|
|
2269
2266
|
}
|
|
2270
2267
|
function b(f) {
|
|
@@ -2295,44 +2292,44 @@ function Mn(t) {
|
|
|
2295
2292
|
},
|
|
2296
2293
|
className: [
|
|
2297
2294
|
"ds:block ds:w-full ds:appearance-none ds:text-end ds:tabular-nums",
|
|
2298
|
-
|
|
2295
|
+
Oe,
|
|
2299
2296
|
// Use `md` height — see editable-text-cell-renderer for rationale.
|
|
2300
|
-
|
|
2301
|
-
|
|
2297
|
+
Me.md,
|
|
2298
|
+
je.sm,
|
|
2302
2299
|
Le.sm
|
|
2303
2300
|
].join(" ")
|
|
2304
2301
|
}
|
|
2305
2302
|
);
|
|
2306
2303
|
}
|
|
2307
2304
|
export {
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
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,
|
|
2330
2327
|
te as l,
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2328
|
+
Ut as m,
|
|
2329
|
+
Fn as n,
|
|
2330
|
+
Rn as o,
|
|
2331
|
+
oa as p,
|
|
2332
|
+
Be as q,
|
|
2333
|
+
xn as u
|
|
2337
2334
|
};
|
|
2338
|
-
//# sourceMappingURL=editable-currency-cell-renderer-
|
|
2335
|
+
//# sourceMappingURL=editable-currency-cell-renderer-BpicmolK.js.map
|