@alfadocs/ui-kit 0.64.0 → 0.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{agenda-tray-DA6qj8BL.js → agenda-tray-Bh1KfEOG.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-DBKV27je.js → ai-consent-banner-Btzmk8OH.js} +3 -2
- package/dist/_chunks/{ai-prompt-input-Dx8eXoPm.js → ai-prompt-input-BwEACCPm.js} +2 -2
- package/dist/_chunks/{ai-tools-rail-7tC3GT4h.js → ai-tools-rail-JnlTqfS4.js} +2 -2
- package/dist/_chunks/{alia-sidebar-DlvyXgVC.js → alia-sidebar-CN8pA6c-.js} +7 -7
- package/dist/_chunks/{anamnesis-card-CmkBVAln.js → anamnesis-card-qeLYRG79.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-CdiqkF05.js → antenatal-schedule-timeline-BfzFjEyb.js} +3 -3
- package/dist/_chunks/{appointment-tray-BwDHhWWC.js → appointment-tray-BQnJEora.js} +2 -2
- package/dist/_chunks/{ar-C68WKG5a.js → ar-Cn5Fq48Z.js} +2 -2
- package/dist/_chunks/{audio-recorder-CdXuT9ln.js → audio-recorder-DjXLP4aF.js} +2 -2
- package/dist/_chunks/{autocomplete-CDqxB68B.js → autocomplete-CcCFlVf-.js} +4 -4
- package/dist/_chunks/{bishop-score-CzjSx-dm.js → bishop-score-x2fNqbuZ.js} +2 -2
- package/dist/_chunks/{bmi-calculator-DA2NGmVK.js → bmi-calculator-C3roxbqD.js} +2 -2
- package/dist/_chunks/{booking-ChfvWy3P.js → booking-L8-YP8BJ.js} +148 -148
- package/dist/_chunks/calendar-B6soK1Yb.js +17 -0
- package/dist/_chunks/{calendar-CkuJIg3s.js → calendar-oYWOCrnf.js} +1 -1
- package/dist/_chunks/{care-plan-card-DhZNoXs4.js → care-plan-card-D42WD4-T.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-DW70yBOD.js → care-plan-entry-card-BukNI7Uy.js} +2 -2
- package/dist/_chunks/{carousel.agent-DrX96W-1.js → carousel.agent-vt21A_el.js} +2 -2
- package/dist/_chunks/{chat-input-CFwc7JxL.js → chat-input-B5zjNEUN.js} +2 -2
- package/dist/_chunks/{chat-message-Dm8U2RY1.js → chat-message-3V54YipB.js} +2 -2
- package/dist/_chunks/{code-block-HoddNOKJ.js → code-block-BBWHhIc8.js} +2 -2
- package/dist/_chunks/{contact-profile-card-DvvVfAA2.js → contact-profile-card-CCeJmjbd.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C_t1Hs8V.js → cycle-calculator-DrVXbIB4.js} +4 -4
- package/dist/_chunks/{date-picker-BfHblqwA.js → date-picker-oGg5BnXL.js} +12 -11
- package/dist/_chunks/{date-picker-variants-CXEAx3O_.js → date-picker-variants-DAcSLTua.js} +358 -372
- package/dist/_chunks/{date-range-picker-hcAMs1wO.js → date-range-picker-C5BWfH_T.js} +34 -25
- package/dist/_chunks/{date-time-picker-H-3Pwqlb.js → date-time-picker-Ze1My59T.js} +18 -17
- package/dist/_chunks/{de-DK4A9_a8.js → de-CrJs4ZsX.js} +2 -2
- package/dist/_chunks/{description-list-BEbK2g93.js → description-list-gkNGWk5G.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Q8MIwEVV.js → due-date-calculator-D4K1BnE2.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-BQgaKFCz.js → editable-currency-cell-renderer-CFqQc56y.js} +304 -294
- package/dist/_chunks/editor-overlay-wYm22wZK.js +88 -0
- package/dist/_chunks/{el-B29HXhG5.js → el-DHdMOIhL.js} +6 -6
- package/dist/_chunks/{es-BOwPVwWn.js → es-DCATCfqo.js} +2 -2
- package/dist/_chunks/{fetal-weight-D1a6BmM-.js → fetal-weight-B_pBjlO7.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-BZ0FxwUl.js → fiscal-code-input-DPtqluVb.js} +2 -2
- package/dist/_chunks/{fr-DoDBtn0T.js → fr-BfGEMshF.js} +2 -2
- package/dist/_chunks/{freemium-paywall-gHGA44dW.js → freemium-paywall-CkWjv3o6.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-D85E8lGN.js → gestational-age-calculator-BETQAVkA.js} +6 -6
- package/dist/_chunks/{hcg-doubling-Dg0Hr7ey.js → hcg-doubling-8zXCJgAQ.js} +3 -3
- package/dist/_chunks/{header-Ce1Br27u.js → header-CNszv2WQ.js} +2 -2
- package/dist/_chunks/{header-settings-D5Z2B_Yz.js → header-settings-CNOqIhoW.js} +3 -3
- package/dist/_chunks/{hi-DGByrKby.js → hi-CBFRXEIm.js} +2 -2
- package/dist/_chunks/icon-button-LqoiKcUN.js +78 -0
- package/dist/_chunks/{insert-result-C1SYdueh.js → insert-result-DIAG3ltJ.js} +115 -136
- package/dist/_chunks/{isSameWeek-B1odL2vR.js → isSameWeek-I3DfXUp1.js} +2 -2
- package/dist/_chunks/{it-B16rEecm.js → it-nz6vAKwG.js} +7 -7
- package/dist/_chunks/{ja-B0viOgft.js → ja-DQcqdAEJ.js} +2 -2
- package/dist/_chunks/{key-value-pair-CkQIb9EG.js → key-value-pair-BrgbMfbF.js} +2 -2
- package/dist/_chunks/{locale-picker-D99UyZVJ.js → locale-picker-C9JmBht3.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-C4OYAC22.js → marketplace-app-shell-BXfRMiRk.js} +4 -4
- package/dist/_chunks/{message-card-Dvl1TgaN.js → message-card-Bgcvfj6-.js} +2 -2
- package/dist/_chunks/{message-tray-Dl6GQaaV.js → message-tray-saAVMeHP.js} +3 -3
- package/dist/_chunks/{multi-select-DOLO3K_z.js → multi-select-BcPylvHR.js} +100 -90
- package/dist/_chunks/{nl-cBxEX2QU.js → nl-L5SuDjyl.js} +2 -2
- package/dist/_chunks/{notification-card-CObnGdJu.js → notification-card-BiESdm8q.js} +2 -2
- package/dist/_chunks/{notification-tray-BWHDIjgd.js → notification-tray-DlgenTEe.js} +3 -3
- package/dist/_chunks/{patient-search-CArmRKeg.js → patient-search-Bw9ONucF.js} +2 -2
- package/dist/_chunks/{patient-shell-Coarf346.js → patient-shell-CF_qon7C.js} +3 -3
- package/dist/_chunks/{patient-summary-card-BnTqxcTr.js → patient-summary-card-Bgso0p_l.js} +2 -2
- package/dist/_chunks/{payment-form-DJ9vnzrT.js → payment-form-nXocS_MX.js} +11 -4
- package/dist/_chunks/{payment-request-card-B_lyobd0.js → payment-request-card-DBz3hVDz.js} +3 -3
- package/dist/_chunks/{pdf-viewer-chMpwpA4.js → pdf-viewer-GsfNqeeT.js} +3 -3
- package/dist/_chunks/{periodontal-chart-card-BYs9hax1.js → periodontal-chart-card-AYyHtU9K.js} +2 -2
- package/dist/_chunks/phone-input-DVXhNlIl.js +563 -0
- package/dist/_chunks/{pl-DtS08ioY.js → pl-YAn5z2wR.js} +3 -3
- package/dist/_chunks/{popover-Devce-tT.js → popover-DTbfAuR0.js} +2 -2
- package/dist/_chunks/{practice-results-CtfciF2v.js → practice-results-CVAgY2RZ.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-7NUaAfob.js → pregnancy-dating-BuzLTwjy.js} +6 -6
- package/dist/_chunks/{pregnancy-weight-gain-DI7X-0JX.js → pregnancy-weight-gain-aicn7qs7.js} +2 -2
- package/dist/_chunks/{privacy-lock-BN3L-alb.js → privacy-lock-C7JyMf0y.js} +2 -2
- package/dist/_chunks/{product-hub-panel-CkfZBA3t.js → product-hub-panel-CAXDFeGP.js} +2 -2
- package/dist/_chunks/{pt-yFXs1VvH.js → pt-D9xdT5KQ.js} +6 -6
- package/dist/_chunks/{public-header.agent-CYQK6T6F.js → public-header.agent-BOhJgZEU.js} +3 -3
- package/dist/_chunks/{reviews-panel-CPrXu5TX.js → reviews-panel-DBktKm7i.js} +2 -2
- package/dist/_chunks/rich-text-editor-u36FqSWz.js +1190 -0
- package/dist/_chunks/{ro-DsCzSrzR.js → ro-Cp--52bT.js} +2 -2
- package/dist/_chunks/{ru-DgDxL0pc.js → ru-BM8eX_Zz.js} +3 -3
- package/dist/_chunks/{search-bar-CvN_S0jW.js → search-bar-SY2BcV2N.js} +2 -2
- package/dist/_chunks/{search-input-D3aMvi4l.js → search-input-DbxrnHkW.js} +3 -3
- package/dist/_chunks/{sheet-xbzu4YiY.js → sheet-taJer-Ha.js} +2 -2
- package/dist/_chunks/{sign-document--nr5cxsB.js → sign-document-CdAiHiCh.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-BpAjVmsI.js → sign-in-with-alfadocs-button-LppxjlFt.js} +2 -2
- package/dist/_chunks/{signature-field-DbhbpLha.js → signature-field-Dy1JRjzE.js} +10 -3
- package/dist/_chunks/{slot-grid-BlHHP9Qy.js → slot-grid-FsqumOaS.js} +2 -2
- package/dist/_chunks/smart-date-CWikAqZx.js +114 -0
- package/dist/_chunks/{social-sign-in-button-uJYLM366.js → social-sign-in-button-dlpPI5l7.js} +2 -2
- package/dist/_chunks/{spinner-OjQNn8oN.js → spinner-hbwuKwMf.js} +10 -10
- package/dist/_chunks/{sq-DHlCYN67.js → sq-XRpr0r49.js} +6 -6
- package/dist/_chunks/{streaming-text-CfhDqtIT.js → streaming-text-BB9mvK4m.js} +2 -2
- package/dist/_chunks/subDays-BcYv1Lxi.js +8 -0
- package/dist/_chunks/{sv-O0QaQs_s.js → sv-Z3APomE8.js} +2 -2
- package/dist/_chunks/{task-tray-Cb_hK4yb.js → task-tray-CAncV-QQ.js} +2 -2
- package/dist/_chunks/{theme-toggle-DAW7uC0B.js → theme-toggle-DETmSu_h.js} +2 -2
- package/dist/_chunks/{toast.agent-B0MCsvdZ.js → toast.agent-vuLRRn2a.js} +2 -2
- package/dist/_chunks/{tooth-scheme-CiphQaON.js → tooth-scheme-BIx1O2aJ.js} +3 -3
- package/dist/_chunks/{tr-BmNDRuio.js → tr-e0-P4FON.js} +2 -2
- package/dist/_chunks/{transcript-panel-B4HiC7ed.js → transcript-panel-CLHmv83g.js} +2 -2
- package/dist/_chunks/type-DZ5OMRA2.js +28 -0
- package/dist/_chunks/{unit-converter-BIbXHIQA.js → unit-converter-CHN2cZ4b.js} +2 -2
- package/dist/_chunks/{wallet-pay-button-DuDPBlCO.js → wallet-pay-button--dnR6NfJ.js} +2 -2
- package/dist/_chunks/{workflow-map-BJDUNYlX.js → workflow-map-BX3JY1Bu.js} +3 -3
- package/dist/_chunks/{zh-CN-CgVJZEzz.js → zh-CN-B-igM5gY.js} +3 -3
- package/dist/agent-catalog.json +32 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/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/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/editor-overlay.d.ts +19 -0
- package/dist/components/editor-overlay/index.d.ts +3 -0
- package/dist/components/editor-overlay/index.js +5 -0
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts +9 -0
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +16 -0
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +25 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +43 -0
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/smart-date/index.d.ts +3 -0
- package/dist/components/smart-date/index.js +5 -0
- package/dist/components/smart-date/smart-date.d.ts +32 -0
- package/dist/components/social-sign-in-button/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/wallet-pay-button/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +44 -0
- package/dist/i18n/locales/ar.js +45 -1
- package/dist/i18n/locales/de.d.ts +44 -0
- package/dist/i18n/locales/de.js +45 -1
- package/dist/i18n/locales/el.d.ts +44 -0
- package/dist/i18n/locales/el.js +45 -1
- package/dist/i18n/locales/en.d.ts +44 -0
- package/dist/i18n/locales/en.js +49 -1
- package/dist/i18n/locales/es.d.ts +44 -0
- package/dist/i18n/locales/es.js +45 -1
- package/dist/i18n/locales/fr.d.ts +44 -0
- package/dist/i18n/locales/fr.js +45 -1
- package/dist/i18n/locales/hi.d.ts +44 -0
- package/dist/i18n/locales/hi.js +45 -1
- package/dist/i18n/locales/it.d.ts +44 -0
- package/dist/i18n/locales/it.js +45 -1
- package/dist/i18n/locales/ja.d.ts +44 -0
- package/dist/i18n/locales/ja.js +45 -1
- package/dist/i18n/locales/nl.d.ts +44 -0
- package/dist/i18n/locales/nl.js +45 -1
- package/dist/i18n/locales/pl.d.ts +44 -0
- package/dist/i18n/locales/pl.js +45 -1
- package/dist/i18n/locales/pt.d.ts +44 -0
- package/dist/i18n/locales/pt.js +45 -1
- package/dist/i18n/locales/ro.d.ts +44 -0
- package/dist/i18n/locales/ro.js +45 -1
- package/dist/i18n/locales/ru.d.ts +44 -0
- package/dist/i18n/locales/ru.js +45 -1
- package/dist/i18n/locales/sq.d.ts +44 -0
- package/dist/i18n/locales/sq.js +45 -1
- package/dist/i18n/locales/sv.d.ts +44 -0
- package/dist/i18n/locales/sv.js +45 -1
- package/dist/i18n/locales/tr.d.ts +44 -0
- package/dist/i18n/locales/tr.js +45 -1
- package/dist/i18n/locales/zh.d.ts +44 -0
- package/dist/i18n/locales/zh.js +45 -1
- package/dist/index.js +494 -490
- package/dist/locales/ar.json +45 -1
- package/dist/locales/de.json +45 -1
- package/dist/locales/el.json +45 -1
- package/dist/locales/en.json +45 -1
- package/dist/locales/es.json +45 -1
- package/dist/locales/fr.json +45 -1
- package/dist/locales/hi.json +45 -1
- package/dist/locales/it.json +45 -1
- package/dist/locales/ja.json +45 -1
- package/dist/locales/nl.json +45 -1
- package/dist/locales/pl.json +45 -1
- package/dist/locales/pt.json +45 -1
- package/dist/locales/ro.json +45 -1
- package/dist/locales/ru.json +45 -1
- package/dist/locales/sq.json +45 -1
- package/dist/locales/sv.json +45 -1
- package/dist/locales/tr.json +45 -1
- package/dist/locales/zh.json +45 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +36 -22
- package/package.json +10 -1
- package/dist/_chunks/icon-button-CKEOrN37.js +0 -70
- package/dist/_chunks/phone-input-DfZbPPvh.js +0 -525
- package/dist/_chunks/rich-text-editor-B03qM22-.js +0 -334
- package/dist/_chunks/subDays-Bs00akhK.js +0 -8
|
@@ -6,9 +6,9 @@ import { c as xt } from "./index-D2ZczOXr.js";
|
|
|
6
6
|
import { useTranslation as F } from "react-i18next";
|
|
7
7
|
import { useGridFilter as J, AgGridReact as Nt } from "ag-grid-react";
|
|
8
8
|
import { ModuleRegistry as St, AllCommunityModule as wt } from "ag-grid-community";
|
|
9
|
-
import { B as
|
|
10
|
-
import { I as V } from "./icon-button-
|
|
11
|
-
import { P as Z } from "./popover-
|
|
9
|
+
import { B as j } from "./button-DD_0Xdmr.js";
|
|
10
|
+
import { I as V } from "./icon-button-LqoiKcUN.js";
|
|
11
|
+
import { P as Z } from "./popover-DTbfAuR0.js";
|
|
12
12
|
import { C as Re } from "./checkbox-DRcOdmXv.js";
|
|
13
13
|
import { T as fe } from "./text-input-BaClJL8Y.js";
|
|
14
14
|
import { T as ae } from "./tag-CdA0s_VV.js";
|
|
@@ -27,18 +27,18 @@ import { S as Ee } from "./select-CEtRcon5.js";
|
|
|
27
27
|
import { u as zt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
28
28
|
import { u as At } from "./use-theme-CAuo6EYT.js";
|
|
29
29
|
import { u as Pt } from "./registry-nPAVE19X.js";
|
|
30
|
-
import { D as Ie } from "./date-range-picker-
|
|
31
|
-
import { M as Ot } from "./multi-select-
|
|
32
|
-
import { A as ze } from "./autocomplete-
|
|
30
|
+
import { D as Ie } from "./date-range-picker-C5BWfH_T.js";
|
|
31
|
+
import { M as Ot } from "./multi-select-BcPylvHR.js";
|
|
32
|
+
import { A as ze } from "./autocomplete-CcCFlVf-.js";
|
|
33
33
|
import { N as ee } from "./number-input-Dj5L3pXK.js";
|
|
34
34
|
import { B as Mt } from "./badge-zsf5i5bH.js";
|
|
35
35
|
import { A as Ae } from "./avatar-BNQNhoyL.js";
|
|
36
|
-
import { T as
|
|
36
|
+
import { T as Lt } from "./tooltip-DvmfrNvB.js";
|
|
37
37
|
import { T as he } from "./timestamp-BV2lC-wV.js";
|
|
38
|
-
import { S as
|
|
38
|
+
import { S as jt } from "./square-check-big-Jr-0202D.js";
|
|
39
39
|
import { S as _t } from "./square-CZoGU14v.js";
|
|
40
40
|
import { u as qt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
41
|
-
import { c as Pe, a as Oe, b as Me, d as
|
|
41
|
+
import { c as Pe, a as Oe, b as Me, d as Le } from "./input-surface-xyERuLU_.js";
|
|
42
42
|
/**
|
|
43
43
|
* @license lucide-react v1.8.0 - ISC
|
|
44
44
|
*
|
|
@@ -54,9 +54,9 @@ function Bt(t) {
|
|
|
54
54
|
const e = t, a = e.props.className ?? "", n = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} ds:size-4`.trim();
|
|
55
55
|
return Fe(e, { className: n, size: e.props.size ?? 16 });
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const je = Ne(null);
|
|
58
58
|
function q(t) {
|
|
59
|
-
const e = Se(
|
|
59
|
+
const e = Se(je);
|
|
60
60
|
if (!e)
|
|
61
61
|
throw new Error(
|
|
62
62
|
`${t} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
|
|
@@ -73,7 +73,7 @@ function Vt({
|
|
|
73
73
|
() => ({ getApi: t, selectionCount: e, onPrint: a }),
|
|
74
74
|
[t, e, a]
|
|
75
75
|
);
|
|
76
|
-
return /* @__PURE__ */ s(
|
|
76
|
+
return /* @__PURE__ */ s(je.Provider, { value: r, children: n });
|
|
77
77
|
}
|
|
78
78
|
const Ut = [
|
|
79
79
|
"data-table-toolbar",
|
|
@@ -183,39 +183,39 @@ async function Be(t, e) {
|
|
|
183
183
|
], u = [];
|
|
184
184
|
t.forEachNodeAfterFilterAndSort((g) => {
|
|
185
185
|
if (!g.data) return;
|
|
186
|
-
const b = o.map((
|
|
187
|
-
const
|
|
186
|
+
const b = o.map((v) => {
|
|
187
|
+
const y = t.getCellValue({
|
|
188
188
|
rowNode: g,
|
|
189
|
-
colKey:
|
|
189
|
+
colKey: v,
|
|
190
190
|
useFormatter: !0
|
|
191
191
|
});
|
|
192
|
-
return
|
|
192
|
+
return y == null ? "" : String(y);
|
|
193
193
|
});
|
|
194
194
|
u.push(b);
|
|
195
195
|
});
|
|
196
|
-
const d = W("--muted", [240, 240, 240]),
|
|
197
|
-
n(
|
|
196
|
+
const d = W("--muted", [240, 240, 240]), c = W("--foreground", [30, 30, 30]), i = W("--card-foreground", [30, 30, 30]), p = W("--card", [250, 250, 250]), C = new a({ orientation: "landscape" });
|
|
197
|
+
n(C, {
|
|
198
198
|
head: l,
|
|
199
199
|
body: u,
|
|
200
|
-
headStyles: { fillColor: d, textColor:
|
|
201
|
-
bodyStyles: { textColor:
|
|
200
|
+
headStyles: { fillColor: d, textColor: c },
|
|
201
|
+
bodyStyles: { textColor: i },
|
|
202
202
|
alternateRowStyles: { fillColor: p },
|
|
203
203
|
styles: {
|
|
204
204
|
font: "helvetica",
|
|
205
205
|
fontSize: 10,
|
|
206
206
|
cellPadding: 4
|
|
207
207
|
}
|
|
208
|
-
}),
|
|
208
|
+
}), C.save(e.fileName);
|
|
209
209
|
}
|
|
210
210
|
const Ve = _(
|
|
211
211
|
({ label: t, onClick: e, fileName: a, intent: n = "outline", ...r }, o) => {
|
|
212
212
|
const { t: l } = F(), { getApi: u } = q("DataTable.Toolbar.ExportPdf"), d = M(() => {
|
|
213
|
-
const
|
|
213
|
+
const c = u();
|
|
214
214
|
if (e) {
|
|
215
|
-
e(
|
|
215
|
+
e(c);
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
|
-
Be(
|
|
218
|
+
Be(c, {
|
|
219
219
|
fileName: a ?? "data-table-export.pdf"
|
|
220
220
|
});
|
|
221
221
|
}, [u, e, a]);
|
|
@@ -311,39 +311,39 @@ function Kt(t) {
|
|
|
311
311
|
}
|
|
312
312
|
const He = () => {
|
|
313
313
|
const { t } = F(), { getApi: e } = q("DataTable.Toolbar.FilterChips"), [a, n] = R([]), [r, o] = R(""), l = M(() => {
|
|
314
|
-
const
|
|
315
|
-
if (!
|
|
314
|
+
const i = e();
|
|
315
|
+
if (!i) {
|
|
316
316
|
n([]), o("");
|
|
317
317
|
return;
|
|
318
318
|
}
|
|
319
|
-
const p =
|
|
320
|
-
for (const
|
|
321
|
-
const
|
|
319
|
+
const p = i.getFilterModel() ?? {}, C = i.getColumns() ?? [], g = [];
|
|
320
|
+
for (const v of Object.keys(p)) {
|
|
321
|
+
const y = C.find((m) => m.getColId() === v), f = i.getDisplayNameForColumn(y, null) ?? v;
|
|
322
322
|
g.push({
|
|
323
|
-
colId:
|
|
323
|
+
colId: v,
|
|
324
324
|
headerName: f,
|
|
325
|
-
text: Kt(p[
|
|
325
|
+
text: Kt(p[v])
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
n(g);
|
|
329
|
-
const b =
|
|
329
|
+
const b = i.getGridOption("quickFilterText");
|
|
330
330
|
o(typeof b == "string" ? b : "");
|
|
331
331
|
}, [e]);
|
|
332
332
|
if (P(() => {
|
|
333
|
-
const
|
|
334
|
-
if (!
|
|
335
|
-
const p = (
|
|
336
|
-
return
|
|
337
|
-
|
|
333
|
+
const i = e();
|
|
334
|
+
if (!i) return;
|
|
335
|
+
const p = (C) => l();
|
|
336
|
+
return i.addEventListener("filterChanged", p), l(), () => {
|
|
337
|
+
i.removeEventListener("filterChanged", p);
|
|
338
338
|
};
|
|
339
339
|
}, [e, l]), a.length + (r ? 1 : 0) === 0) return null;
|
|
340
|
-
function d(
|
|
340
|
+
function d(i) {
|
|
341
341
|
const p = e();
|
|
342
|
-
p && p.destroyFilter(
|
|
342
|
+
p && p.destroyFilter(i);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
345
|
-
const
|
|
346
|
-
|
|
344
|
+
function c() {
|
|
345
|
+
const i = e();
|
|
346
|
+
i && (i.setFilterModel(null), i.setGridOption("quickFilterText", ""), o(""));
|
|
347
347
|
}
|
|
348
348
|
return /* @__PURE__ */ E(
|
|
349
349
|
"div",
|
|
@@ -359,28 +359,28 @@ const He = () => {
|
|
|
359
359
|
size: "sm",
|
|
360
360
|
fill: "outline",
|
|
361
361
|
onRemove: () => {
|
|
362
|
-
const
|
|
363
|
-
|
|
362
|
+
const i = e();
|
|
363
|
+
i == null || i.setGridOption("quickFilterText", ""), o("");
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
),
|
|
367
|
-
a.map((
|
|
367
|
+
a.map((i) => /* @__PURE__ */ s(
|
|
368
368
|
ae,
|
|
369
369
|
{
|
|
370
|
-
label:
|
|
370
|
+
label: i.text ? `${i.headerName}: ${i.text}` : i.headerName,
|
|
371
371
|
size: "sm",
|
|
372
372
|
fill: "outline",
|
|
373
|
-
onRemove: () => d(
|
|
373
|
+
onRemove: () => d(i.colId)
|
|
374
374
|
},
|
|
375
|
-
|
|
375
|
+
i.colId
|
|
376
376
|
)),
|
|
377
377
|
/* @__PURE__ */ s(
|
|
378
|
-
|
|
378
|
+
j,
|
|
379
379
|
{
|
|
380
380
|
type: "button",
|
|
381
381
|
intent: "ghost",
|
|
382
382
|
size: "sm",
|
|
383
|
-
onClick:
|
|
383
|
+
onClick: c,
|
|
384
384
|
startIcon: /* @__PURE__ */ s(De, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
385
385
|
children: t("dataTable.filterChips.clearAll", "Clear all")
|
|
386
386
|
}
|
|
@@ -398,16 +398,16 @@ const Qe = ({
|
|
|
398
398
|
const { t: n } = F(), { getApi: r } = q("DataTable.Toolbar.FacetFilter"), [o, l] = R(null);
|
|
399
399
|
function u(d) {
|
|
400
400
|
l(d);
|
|
401
|
-
const
|
|
402
|
-
if (
|
|
401
|
+
const c = r();
|
|
402
|
+
if (c) {
|
|
403
403
|
if (d === null) {
|
|
404
|
-
|
|
404
|
+
c.destroyFilter(t);
|
|
405
405
|
return;
|
|
406
406
|
}
|
|
407
|
-
|
|
407
|
+
c.setColumnFilterModel(t, {
|
|
408
408
|
type: "equals",
|
|
409
409
|
filter: d
|
|
410
|
-
}),
|
|
410
|
+
}), c.onFilterChanged();
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
return /* @__PURE__ */ s(
|
|
@@ -417,14 +417,14 @@ const Qe = ({
|
|
|
417
417
|
"aria-label": a ?? n("dataTable.facetFilter.label", "Filter"),
|
|
418
418
|
className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
419
419
|
children: e.map((d) => {
|
|
420
|
-
const
|
|
420
|
+
const c = o === d.value;
|
|
421
421
|
return /* @__PURE__ */ s(
|
|
422
|
-
|
|
422
|
+
j,
|
|
423
423
|
{
|
|
424
424
|
type: "button",
|
|
425
425
|
size: "sm",
|
|
426
|
-
intent:
|
|
427
|
-
"aria-pressed":
|
|
426
|
+
intent: c ? "primary" : "secondary",
|
|
427
|
+
"aria-pressed": c,
|
|
428
428
|
onClick: () => u(d.value),
|
|
429
429
|
children: d.label
|
|
430
430
|
},
|
|
@@ -438,34 +438,34 @@ Qe.displayName = "DataTable.Toolbar.FacetFilter";
|
|
|
438
438
|
const Wt = ["csv", "xlsx", "pdf"];
|
|
439
439
|
async function Ht(t, e) {
|
|
440
440
|
if (!t) return;
|
|
441
|
-
const a = await import("./exceljs.min-DUJ-5CGx.js").then((
|
|
441
|
+
const a = await import("./exceljs.min-DUJ-5CGx.js").then((v) => v.e), n = new a.Workbook(), r = n.addWorksheet("Sheet1"), l = (t.getColumns() ?? []).filter((v) => v.isVisible());
|
|
442
442
|
r.addRow(
|
|
443
443
|
l.map(
|
|
444
|
-
(
|
|
444
|
+
(v) => t.getDisplayNameForColumn(v, null) ?? v.getColId()
|
|
445
445
|
)
|
|
446
|
-
), t.forEachNodeAfterFilterAndSort((
|
|
447
|
-
|
|
448
|
-
l.map((
|
|
446
|
+
), t.forEachNodeAfterFilterAndSort((v) => {
|
|
447
|
+
v.data && r.addRow(
|
|
448
|
+
l.map((y) => {
|
|
449
449
|
const f = t.getCellValue({
|
|
450
|
-
rowNode:
|
|
451
|
-
colKey:
|
|
450
|
+
rowNode: v,
|
|
451
|
+
colKey: y,
|
|
452
452
|
useFormatter: !0
|
|
453
453
|
});
|
|
454
454
|
return f ?? "";
|
|
455
455
|
})
|
|
456
456
|
);
|
|
457
457
|
});
|
|
458
|
-
const u = W("--muted", [240, 240, 240]), d = W("--foreground", [30, 30, 30]),
|
|
459
|
-
|
|
460
|
-
|
|
458
|
+
const u = W("--muted", [240, 240, 240]), d = W("--foreground", [30, 30, 30]), c = r.getRow(1), i = ([v, y, f]) => `${v.toString(16).padStart(2, "0")}${y.toString(16).padStart(2, "0")}${f.toString(16).padStart(2, "0")}`.toUpperCase();
|
|
459
|
+
c.eachCell((v) => {
|
|
460
|
+
v.font = { bold: !0, color: { argb: `FF${i(d)}` } }, v.fill = {
|
|
461
461
|
type: "pattern",
|
|
462
462
|
pattern: "solid",
|
|
463
|
-
fgColor: { argb: `FF${
|
|
463
|
+
fgColor: { argb: `FF${i(u)}` }
|
|
464
464
|
};
|
|
465
465
|
});
|
|
466
|
-
const p = await n.xlsx.writeBuffer(),
|
|
466
|
+
const p = await n.xlsx.writeBuffer(), C = new Blob([p], {
|
|
467
467
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
468
|
-
}), g = URL.createObjectURL(
|
|
468
|
+
}), g = URL.createObjectURL(C), b = document.createElement("a");
|
|
469
469
|
b.href = g, b.download = e.fileName, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(g);
|
|
470
470
|
}
|
|
471
471
|
const Xe = Ne(null);
|
|
@@ -541,33 +541,33 @@ function Zt(t) {
|
|
|
541
541
|
}).filter((a) => a !== null) : [];
|
|
542
542
|
}
|
|
543
543
|
const Ze = ({ label: t }) => {
|
|
544
|
-
const { t: e } = F(), { getApi: a } = q("DataTable.Toolbar.ColumnToggle"), [n, r] = R(!1), [o, l] = R([]), [u, d] = R(null), [
|
|
544
|
+
const { t: e } = F(), { getApi: a } = q("DataTable.Toolbar.ColumnToggle"), [n, r] = R(!1), [o, l] = R([]), [u, d] = R(null), [c, i] = R(null);
|
|
545
545
|
P(() => {
|
|
546
546
|
n && l(Zt(a()));
|
|
547
547
|
}, [n, a]);
|
|
548
548
|
const p = M(
|
|
549
|
-
(b,
|
|
550
|
-
const
|
|
551
|
-
|
|
549
|
+
(b, v) => {
|
|
550
|
+
const y = a();
|
|
551
|
+
y && (y.setColumnsVisible([b], v), l(
|
|
552
552
|
(f) => f.map(
|
|
553
|
-
(m) => m.colId === b ? { ...m, visible:
|
|
553
|
+
(m) => m.colId === b ? { ...m, visible: v } : m
|
|
554
554
|
)
|
|
555
555
|
));
|
|
556
556
|
},
|
|
557
557
|
[a]
|
|
558
|
-
),
|
|
559
|
-
(b,
|
|
560
|
-
if (b ===
|
|
561
|
-
const
|
|
562
|
-
if (!
|
|
558
|
+
), C = M(
|
|
559
|
+
(b, v) => {
|
|
560
|
+
if (b === v) return;
|
|
561
|
+
const y = a();
|
|
562
|
+
if (!y) return;
|
|
563
563
|
l((m) => {
|
|
564
|
-
const h = m.findIndex((D) => D.colId === b), x = m.findIndex((D) => D.colId ===
|
|
564
|
+
const h = m.findIndex((D) => D.colId === b), x = m.findIndex((D) => D.colId === v);
|
|
565
565
|
if (h < 0 || x < 0) return m;
|
|
566
566
|
const S = [...m], [I] = S.splice(h, 1);
|
|
567
567
|
return S.splice(x, 0, I), S;
|
|
568
568
|
});
|
|
569
|
-
const f = o.findIndex((m) => m.colId ===
|
|
570
|
-
f >= 0 &&
|
|
569
|
+
const f = o.findIndex((m) => m.colId === v);
|
|
570
|
+
f >= 0 && y.moveColumns([b], f);
|
|
571
571
|
},
|
|
572
572
|
[a, o]
|
|
573
573
|
), g = t ?? e("dataTable.columnToggle");
|
|
@@ -590,7 +590,7 @@ const Ze = ({ label: t }) => {
|
|
|
590
590
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
591
591
|
"aria-label": g,
|
|
592
592
|
children: o.map((b) => {
|
|
593
|
-
const
|
|
593
|
+
const v = u === b.colId, y = c === b.colId && u !== b.colId;
|
|
594
594
|
return /* @__PURE__ */ E(
|
|
595
595
|
"li",
|
|
596
596
|
{
|
|
@@ -599,23 +599,23 @@ const Ze = ({ label: t }) => {
|
|
|
599
599
|
d(b.colId), f.dataTransfer.effectAllowed = "move", f.dataTransfer.setData("text/plain", b.colId);
|
|
600
600
|
},
|
|
601
601
|
onDragOver: (f) => {
|
|
602
|
-
f.preventDefault(), f.dataTransfer.dropEffect = "move",
|
|
602
|
+
f.preventDefault(), f.dataTransfer.dropEffect = "move", i(b.colId);
|
|
603
603
|
},
|
|
604
604
|
onDragLeave: () => {
|
|
605
|
-
|
|
605
|
+
i((f) => f === b.colId ? null : f);
|
|
606
606
|
},
|
|
607
607
|
onDrop: (f) => {
|
|
608
608
|
f.preventDefault();
|
|
609
609
|
const m = f.dataTransfer.getData("text/plain");
|
|
610
|
-
m &&
|
|
610
|
+
m && C(m, b.colId), d(null), i(null);
|
|
611
611
|
},
|
|
612
612
|
onDragEnd: () => {
|
|
613
|
-
d(null),
|
|
613
|
+
d(null), i(null);
|
|
614
614
|
},
|
|
615
615
|
className: [
|
|
616
616
|
"ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-xs)] ds:py-[var(--spacing-2xs,var(--spacing-xs))] ds:transition-colors",
|
|
617
|
-
|
|
618
|
-
|
|
617
|
+
v ? "ds:opacity-50" : "",
|
|
618
|
+
y ? "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]" : ""
|
|
619
619
|
].filter(Boolean).join(" "),
|
|
620
620
|
children: [
|
|
621
621
|
/* @__PURE__ */ s(
|
|
@@ -647,11 +647,11 @@ const Ze = ({ label: t }) => {
|
|
|
647
647
|
Ze.displayName = "DataTable.Toolbar.ColumnToggle";
|
|
648
648
|
const Ye = _(
|
|
649
649
|
({ label: t, icon: e, onClick: a, variant: n = "default", size: r = "sm", ...o }, l) => {
|
|
650
|
-
const { t: u } = F(), { getApi: d, selectionCount:
|
|
650
|
+
const { t: u } = F(), { getApi: d, selectionCount: c } = q(
|
|
651
651
|
"DataTable.Toolbar.BulkAction"
|
|
652
652
|
);
|
|
653
|
-
return
|
|
654
|
-
|
|
653
|
+
return c === 0 ? null : /* @__PURE__ */ E(
|
|
654
|
+
j,
|
|
655
655
|
{
|
|
656
656
|
ref: l,
|
|
657
657
|
type: "button",
|
|
@@ -659,7 +659,7 @@ const Ye = _(
|
|
|
659
659
|
size: r,
|
|
660
660
|
startIcon: Bt(e),
|
|
661
661
|
onClick: () => a(d()),
|
|
662
|
-
"aria-label": `${t} (${u("dataTable.bulkAction", { count:
|
|
662
|
+
"aria-label": `${t} (${u("dataTable.bulkAction", { count: c })})`,
|
|
663
663
|
...o,
|
|
664
664
|
children: [
|
|
665
665
|
/* @__PURE__ */ s("span", { children: t }),
|
|
@@ -668,7 +668,7 @@ const Ye = _(
|
|
|
668
668
|
{
|
|
669
669
|
"aria-hidden": "true",
|
|
670
670
|
className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
|
|
671
|
-
children: u("dataTable.bulkAction", { count:
|
|
671
|
+
children: u("dataTable.bulkAction", { count: c })
|
|
672
672
|
}
|
|
673
673
|
)
|
|
674
674
|
]
|
|
@@ -728,11 +728,11 @@ function aa(t) {
|
|
|
728
728
|
return t == null ? null : typeof t == "string" ? t : String(t);
|
|
729
729
|
}
|
|
730
730
|
function na(t) {
|
|
731
|
-
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,
|
|
731
|
+
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, c] = R(u), [i, p] = R((e == null ? void 0 : e.filter) ?? "");
|
|
732
732
|
P(() => {
|
|
733
|
-
|
|
733
|
+
c((e == null ? void 0 : e.type) ?? o ?? "contains"), p((e == null ? void 0 : e.filter) ?? "");
|
|
734
734
|
}, [e, o]);
|
|
735
|
-
const
|
|
735
|
+
const C = z(() => ta(It.language), []);
|
|
736
736
|
J({
|
|
737
737
|
doesFilterPass: (f) => {
|
|
738
738
|
const m = e;
|
|
@@ -741,36 +741,36 @@ function na(t) {
|
|
|
741
741
|
if (h === null) return !1;
|
|
742
742
|
switch (m.type) {
|
|
743
743
|
case "equals":
|
|
744
|
-
return
|
|
744
|
+
return C.equals(h, m.filter);
|
|
745
745
|
case "contains":
|
|
746
|
-
return
|
|
746
|
+
return C.contains(h, m.filter);
|
|
747
747
|
case "startsWith":
|
|
748
|
-
return
|
|
748
|
+
return C.startsWith(h, m.filter);
|
|
749
749
|
case "endsWith":
|
|
750
|
-
return
|
|
750
|
+
return C.endsWith(h, m.filter);
|
|
751
751
|
case "notContains":
|
|
752
|
-
return !
|
|
752
|
+
return !C.contains(h, m.filter);
|
|
753
753
|
default:
|
|
754
754
|
return !0;
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
});
|
|
758
758
|
function g() {
|
|
759
|
-
if (
|
|
759
|
+
if (i.trim() === "") {
|
|
760
760
|
a(null);
|
|
761
761
|
return;
|
|
762
762
|
}
|
|
763
|
-
a({ type: d, filter:
|
|
763
|
+
a({ type: d, filter: i });
|
|
764
764
|
}
|
|
765
765
|
function b() {
|
|
766
|
-
p(""),
|
|
766
|
+
p(""), c(o ?? "contains"), a(null);
|
|
767
767
|
}
|
|
768
|
-
const
|
|
768
|
+
const v = ea.map(
|
|
769
769
|
(f) => ({
|
|
770
770
|
value: f,
|
|
771
771
|
label: l(`dataTable.textFilter.operators.${f}`)
|
|
772
772
|
})
|
|
773
|
-
),
|
|
773
|
+
), y = r ?? l("dataTable.textFilter.placeholder");
|
|
774
774
|
return /* @__PURE__ */ E(
|
|
775
775
|
"div",
|
|
776
776
|
{
|
|
@@ -781,10 +781,10 @@ function na(t) {
|
|
|
781
781
|
Ee,
|
|
782
782
|
{
|
|
783
783
|
size: "sm",
|
|
784
|
-
options:
|
|
784
|
+
options: v,
|
|
785
785
|
value: d,
|
|
786
786
|
onValueChange: (f) => {
|
|
787
|
-
f !== "" &&
|
|
787
|
+
f !== "" && c(f);
|
|
788
788
|
},
|
|
789
789
|
"aria-label": l("dataTable.textFilter.operators.contains")
|
|
790
790
|
}
|
|
@@ -793,29 +793,29 @@ function na(t) {
|
|
|
793
793
|
fe,
|
|
794
794
|
{
|
|
795
795
|
size: "sm",
|
|
796
|
-
value:
|
|
796
|
+
value: i,
|
|
797
797
|
onChange: (f) => p(f.target.value),
|
|
798
798
|
onKeyDown: (f) => {
|
|
799
799
|
f.key === "Enter" && (f.preventDefault(), g());
|
|
800
800
|
},
|
|
801
|
-
placeholder:
|
|
802
|
-
"aria-label":
|
|
801
|
+
placeholder: y,
|
|
802
|
+
"aria-label": y,
|
|
803
803
|
startAdornment: /* @__PURE__ */ s(pe, { "aria-hidden": "true", className: "ds:size-4" })
|
|
804
804
|
}
|
|
805
805
|
),
|
|
806
806
|
/* @__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: [
|
|
807
|
-
/* @__PURE__ */ s(
|
|
808
|
-
/* @__PURE__ */ s(
|
|
807
|
+
/* @__PURE__ */ s(j, { intent: "ghost", size: "sm", onClick: b, type: "button", children: l("dataTable.textFilter.clear") }),
|
|
808
|
+
/* @__PURE__ */ s(j, { intent: "primary", size: "sm", onClick: g, type: "button", children: l("dataTable.textFilter.apply") })
|
|
809
809
|
] })
|
|
810
810
|
]
|
|
811
811
|
}
|
|
812
812
|
);
|
|
813
813
|
}
|
|
814
814
|
function ra(t) {
|
|
815
|
-
var p,
|
|
816
|
-
const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((
|
|
815
|
+
var p, C;
|
|
816
|
+
const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((C = (p = n == null ? void 0 : n.getColDef) == null ? void 0 : p.call(n)) == null ? void 0 : C.filterParams) ?? {}, l = o.defaultOperator ?? "contains", u = o.placeholder ?? r("dataTable.textFilter.placeholder"), [d, c] = R((e == null ? void 0 : e.filter) ?? "");
|
|
817
817
|
P(() => {
|
|
818
|
-
|
|
818
|
+
c((e == null ? void 0 : e.filter) ?? "");
|
|
819
819
|
}, [e == null ? void 0 : e.filter]), P(() => {
|
|
820
820
|
if (d === ((e == null ? void 0 : e.filter) ?? "")) return;
|
|
821
821
|
const g = setTimeout(() => {
|
|
@@ -827,15 +827,15 @@ function ra(t) {
|
|
|
827
827
|
}, 200);
|
|
828
828
|
return () => clearTimeout(g);
|
|
829
829
|
}, [d, l, e, a]);
|
|
830
|
-
function
|
|
831
|
-
|
|
830
|
+
function i() {
|
|
831
|
+
c(""), e && a(null);
|
|
832
832
|
}
|
|
833
833
|
return /* @__PURE__ */ s("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
|
|
834
834
|
fe,
|
|
835
835
|
{
|
|
836
836
|
size: "sm",
|
|
837
837
|
value: d,
|
|
838
|
-
onChange: (g) =>
|
|
838
|
+
onChange: (g) => c(g.target.value),
|
|
839
839
|
placeholder: u,
|
|
840
840
|
"aria-label": u,
|
|
841
841
|
startAdornment: /* @__PURE__ */ s(pe, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
@@ -844,7 +844,7 @@ function ra(t) {
|
|
|
844
844
|
{
|
|
845
845
|
type: "button",
|
|
846
846
|
"aria-label": r("dataTable.textFilter.clear"),
|
|
847
|
-
onClick:
|
|
847
|
+
onClick: i,
|
|
848
848
|
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",
|
|
849
849
|
children: /* @__PURE__ */ s(De, { "aria-hidden": "true", className: "ds:size-4" })
|
|
850
850
|
}
|
|
@@ -1068,14 +1068,14 @@ function fa(t, e) {
|
|
|
1068
1068
|
paginationPageSize: l = 25,
|
|
1069
1069
|
paginationPageSizeSelector: u = [10, 25, 50, 100],
|
|
1070
1070
|
gridId: d,
|
|
1071
|
-
onSelectionChanged:
|
|
1072
|
-
onSortChanged:
|
|
1071
|
+
onSelectionChanged: c,
|
|
1072
|
+
onSortChanged: i,
|
|
1073
1073
|
onFilterChanged: p,
|
|
1074
|
-
noRowsOverlay:
|
|
1074
|
+
noRowsOverlay: C,
|
|
1075
1075
|
loadingOverlay: g,
|
|
1076
1076
|
gridOptions: b,
|
|
1077
|
-
density:
|
|
1078
|
-
bordered:
|
|
1077
|
+
density: v,
|
|
1078
|
+
bordered: y,
|
|
1079
1079
|
heightClass: f = "ds:h-[500px]",
|
|
1080
1080
|
className: m,
|
|
1081
1081
|
getRowClass: h,
|
|
@@ -1110,9 +1110,9 @@ function fa(t, e) {
|
|
|
1110
1110
|
w.forEachNodeAfterFilterAndSort((U) => {
|
|
1111
1111
|
U.id != null && O.push(U.id);
|
|
1112
1112
|
});
|
|
1113
|
-
const A = O.indexOf(T),
|
|
1114
|
-
if (A < 0 ||
|
|
1115
|
-
const [B, ce] = A <=
|
|
1113
|
+
const A = O.indexOf(T), L = O.indexOf(N);
|
|
1114
|
+
if (A < 0 || L < 0) return;
|
|
1115
|
+
const [B, ce] = A <= L ? [A, L] : [L, A], de = new Set(O.slice(B, ce + 1));
|
|
1116
1116
|
w.forEachNode((U) => {
|
|
1117
1117
|
U.id != null && U.setSelected(de.has(U.id));
|
|
1118
1118
|
});
|
|
@@ -1139,8 +1139,8 @@ function fa(t, e) {
|
|
|
1139
1139
|
const N = (O = k.current) == null ? void 0 : O.api;
|
|
1140
1140
|
if (!N) return;
|
|
1141
1141
|
const w = N.getColumnState().map((A) => {
|
|
1142
|
-
const
|
|
1143
|
-
return { ...A, sort:
|
|
1142
|
+
const L = T.find((B) => B.colId === A.colId);
|
|
1143
|
+
return { ...A, sort: L ? L.sort : null };
|
|
1144
1144
|
});
|
|
1145
1145
|
N.applyColumnState({ state: w, defaultState: { sort: null } });
|
|
1146
1146
|
},
|
|
@@ -1160,7 +1160,7 @@ function fa(t, e) {
|
|
|
1160
1160
|
[]
|
|
1161
1161
|
);
|
|
1162
1162
|
yt(e, () => le, [le]), Pt(sa, le, d);
|
|
1163
|
-
const nt = $.dir() === "rtl", rt = n === void 0, st = zt(), { resolvedTheme: ge } = At(), ot = (ge === "light-accessible" || ge === "dark-accessible") &&
|
|
1163
|
+
const nt = $.dir() === "rtl", rt = n === void 0, st = zt(), { resolvedTheme: ge } = At(), ot = (ge === "light-accessible" || ge === "dark-accessible") && v === "compact" ? "default" : v, lt = z(() => {
|
|
1164
1164
|
if (r)
|
|
1165
1165
|
return r === "single" ? { mode: "singleRow" } : {
|
|
1166
1166
|
mode: "multiRow",
|
|
@@ -1183,15 +1183,15 @@ function fa(t, e) {
|
|
|
1183
1183
|
const T = (w = k.current) == null ? void 0 : w.api;
|
|
1184
1184
|
if (!T) return;
|
|
1185
1185
|
const N = T.getSelectedRows();
|
|
1186
|
-
tt(N.length),
|
|
1187
|
-
}, [
|
|
1186
|
+
tt(N.length), c == null || c(N);
|
|
1187
|
+
}, [c]), dt = M(
|
|
1188
1188
|
(T) => {
|
|
1189
1189
|
var w;
|
|
1190
1190
|
const N = (w = k.current) == null ? void 0 : w.api;
|
|
1191
1191
|
if (N) {
|
|
1192
|
-
const A = N.getColumnState().find((
|
|
1192
|
+
const A = N.getColumnState().find((L) => L.sort);
|
|
1193
1193
|
if (A) {
|
|
1194
|
-
const
|
|
1194
|
+
const L = A.colId, B = N.getColumnDef(L), ce = (B == null ? void 0 : B.headerName) ?? L, de = A.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
|
|
1195
1195
|
oe(
|
|
1196
1196
|
D("dataTable.sortAnnounce", {
|
|
1197
1197
|
column: ce,
|
|
@@ -1201,9 +1201,9 @@ function fa(t, e) {
|
|
|
1201
1201
|
} else
|
|
1202
1202
|
oe("");
|
|
1203
1203
|
}
|
|
1204
|
-
|
|
1204
|
+
i == null || i(T);
|
|
1205
1205
|
},
|
|
1206
|
-
[
|
|
1206
|
+
[i, D]
|
|
1207
1207
|
), ut = M(
|
|
1208
1208
|
(T) => {
|
|
1209
1209
|
p == null || p(T);
|
|
@@ -1215,7 +1215,7 @@ function fa(t, e) {
|
|
|
1215
1215
|
const T = setTimeout(() => oe(""), 3e3);
|
|
1216
1216
|
return () => clearTimeout(T);
|
|
1217
1217
|
}, [se]);
|
|
1218
|
-
const ft =
|
|
1218
|
+
const ft = C ?? ca, pt = g ?? ia, mt = M(
|
|
1219
1219
|
() => {
|
|
1220
1220
|
var T;
|
|
1221
1221
|
return (T = k.current) == null ? void 0 : T.api;
|
|
@@ -1225,7 +1225,7 @@ function fa(t, e) {
|
|
|
1225
1225
|
typeof window < "u" && window.print();
|
|
1226
1226
|
}, []), bt = oa({
|
|
1227
1227
|
density: ot,
|
|
1228
|
-
bordered:
|
|
1228
|
+
bordered: y,
|
|
1229
1229
|
className: m
|
|
1230
1230
|
}), ht = I ?? /* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(te.Actions, { children: /* @__PURE__ */ s(te.ExportMenu, {}) }) }), vt = S ? !1 : o;
|
|
1231
1231
|
return /* @__PURE__ */ E(
|
|
@@ -1354,49 +1354,58 @@ function xn(t) {
|
|
|
1354
1354
|
to: Q(e == null ? void 0 : e.dateTo)
|
|
1355
1355
|
}, [l, u] = R(o);
|
|
1356
1356
|
J({
|
|
1357
|
-
doesFilterPass: (
|
|
1358
|
-
const
|
|
1359
|
-
if (!
|
|
1360
|
-
const p =
|
|
1357
|
+
doesFilterPass: (c) => {
|
|
1358
|
+
const i = n(c.node);
|
|
1359
|
+
if (!i) return !1;
|
|
1360
|
+
const p = i instanceof Date ? i : Q(String(i));
|
|
1361
1361
|
return !(!p || l.from && p < l.from || l.to && p > l.to);
|
|
1362
1362
|
}
|
|
1363
1363
|
});
|
|
1364
|
-
function d(
|
|
1365
|
-
if (u(
|
|
1364
|
+
function d(c) {
|
|
1365
|
+
if (u(c), !c.from && !c.to) {
|
|
1366
1366
|
a(null);
|
|
1367
1367
|
return;
|
|
1368
1368
|
}
|
|
1369
1369
|
a({
|
|
1370
1370
|
type: "inRange",
|
|
1371
|
-
dateFrom: re(
|
|
1372
|
-
dateTo: re(
|
|
1371
|
+
dateFrom: re(c.from),
|
|
1372
|
+
dateTo: re(c.to)
|
|
1373
1373
|
});
|
|
1374
1374
|
}
|
|
1375
1375
|
return /* @__PURE__ */ s("div", { className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]", children: /* @__PURE__ */ s(Ie, { value: l, onChange: d, size: "sm" }) });
|
|
1376
1376
|
}
|
|
1377
1377
|
function Nn(t) {
|
|
1378
|
-
|
|
1378
|
+
var d, c;
|
|
1379
|
+
const { model: e, onModelChange: a, column: n } = t, r = ((c = (d = n == null ? void 0 : n.getColDef) == null ? void 0 : d.call(n)) == null ? void 0 : c.filterParams) ?? {}, [o, l] = R({
|
|
1379
1380
|
from: Q(e == null ? void 0 : e.dateFrom),
|
|
1380
1381
|
to: Q(e == null ? void 0 : e.dateTo)
|
|
1381
1382
|
});
|
|
1382
|
-
function
|
|
1383
|
-
if (
|
|
1383
|
+
function u(i) {
|
|
1384
|
+
if (l(i), !i.from && !i.to) {
|
|
1384
1385
|
a(null);
|
|
1385
1386
|
return;
|
|
1386
1387
|
}
|
|
1387
1388
|
a({
|
|
1388
1389
|
type: "inRange",
|
|
1389
|
-
dateFrom: re(
|
|
1390
|
-
dateTo: re(
|
|
1390
|
+
dateFrom: re(i.from),
|
|
1391
|
+
dateTo: re(i.to)
|
|
1391
1392
|
});
|
|
1392
1393
|
}
|
|
1393
|
-
return /* @__PURE__ */ s("div", { "data-component": "date-range-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
|
|
1394
|
+
return /* @__PURE__ */ s("div", { "data-component": "date-range-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
|
|
1395
|
+
Ie,
|
|
1396
|
+
{
|
|
1397
|
+
value: o,
|
|
1398
|
+
onChange: u,
|
|
1399
|
+
size: "sm",
|
|
1400
|
+
placeholder: r.placeholder
|
|
1401
|
+
}
|
|
1402
|
+
) });
|
|
1394
1403
|
}
|
|
1395
1404
|
function K(t) {
|
|
1396
1405
|
return typeof t == "number" ? `n:${t}` : `s:${t}`;
|
|
1397
1406
|
}
|
|
1398
1407
|
function Sn(t) {
|
|
1399
|
-
const { model: e, onModelChange: a, getValue: n, api: r, column: o, options: l, placeholder: u } = t, { t: d } = F("ui"),
|
|
1408
|
+
const { model: e, onModelChange: a, getValue: n, api: r, column: o, options: l, placeholder: u } = t, { t: d } = F("ui"), c = z(() => {
|
|
1400
1409
|
if (l && l.length > 0) return l;
|
|
1401
1410
|
if (!r || !o) return [];
|
|
1402
1411
|
const f = /* @__PURE__ */ new Map();
|
|
@@ -1408,14 +1417,14 @@ function Sn(t) {
|
|
|
1408
1417
|
}), Array.from(f.values()).sort(
|
|
1409
1418
|
(m, h) => String(m.label).localeCompare(String(h.label))
|
|
1410
1419
|
);
|
|
1411
|
-
}, [l, r, o, n]),
|
|
1420
|
+
}, [l, r, o, n]), i = z(() => {
|
|
1412
1421
|
const f = /* @__PURE__ */ new Set(), m = (e == null ? void 0 : e.values) ?? [];
|
|
1413
1422
|
for (const h of m) f.add(K(h));
|
|
1414
1423
|
return f;
|
|
1415
|
-
}, [e]), [p,
|
|
1424
|
+
}, [e]), [p, C] = R(i);
|
|
1416
1425
|
P(() => {
|
|
1417
|
-
|
|
1418
|
-
}, [
|
|
1426
|
+
C(i);
|
|
1427
|
+
}, [i]), J({
|
|
1419
1428
|
doesFilterPass: (f) => {
|
|
1420
1429
|
const m = e == null ? void 0 : e.values;
|
|
1421
1430
|
if (!m || m.length === 0) return !0;
|
|
@@ -1426,7 +1435,7 @@ function Sn(t) {
|
|
|
1426
1435
|
}
|
|
1427
1436
|
});
|
|
1428
1437
|
function g(f) {
|
|
1429
|
-
|
|
1438
|
+
C((m) => {
|
|
1430
1439
|
const h = new Set(m);
|
|
1431
1440
|
return h.has(f) ? h.delete(f) : h.add(f), h;
|
|
1432
1441
|
});
|
|
@@ -1437,14 +1446,14 @@ function Sn(t) {
|
|
|
1437
1446
|
return;
|
|
1438
1447
|
}
|
|
1439
1448
|
const f = [];
|
|
1440
|
-
for (const m of
|
|
1449
|
+
for (const m of c)
|
|
1441
1450
|
p.has(K(m.value)) && f.push(m.value);
|
|
1442
1451
|
a({ type: "set", values: f });
|
|
1443
1452
|
}
|
|
1444
|
-
function
|
|
1445
|
-
|
|
1453
|
+
function v() {
|
|
1454
|
+
C(/* @__PURE__ */ new Set()), a(null);
|
|
1446
1455
|
}
|
|
1447
|
-
const
|
|
1456
|
+
const y = u ?? d("dataTable.selectFilter.all");
|
|
1448
1457
|
return /* @__PURE__ */ E(
|
|
1449
1458
|
"div",
|
|
1450
1459
|
{
|
|
@@ -1455,9 +1464,9 @@ function Sn(t) {
|
|
|
1455
1464
|
"div",
|
|
1456
1465
|
{
|
|
1457
1466
|
role: "group",
|
|
1458
|
-
"aria-label":
|
|
1467
|
+
"aria-label": y,
|
|
1459
1468
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:max-h-[240px] ds:overflow-y-auto",
|
|
1460
|
-
children:
|
|
1469
|
+
children: c.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") }) : c.map((f) => {
|
|
1461
1470
|
const m = K(f.value);
|
|
1462
1471
|
return /* @__PURE__ */ s(
|
|
1463
1472
|
Re,
|
|
@@ -1473,49 +1482,50 @@ function Sn(t) {
|
|
|
1473
1482
|
}
|
|
1474
1483
|
),
|
|
1475
1484
|
/* @__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: [
|
|
1476
|
-
/* @__PURE__ */ s(
|
|
1477
|
-
/* @__PURE__ */ s(
|
|
1485
|
+
/* @__PURE__ */ s(j, { intent: "ghost", size: "sm", onClick: v, type: "button", children: d("dataTable.selectFilter.clear") }),
|
|
1486
|
+
/* @__PURE__ */ s(j, { intent: "primary", size: "sm", onClick: b, type: "button", children: d("dataTable.selectFilter.apply") })
|
|
1478
1487
|
] })
|
|
1479
1488
|
]
|
|
1480
1489
|
}
|
|
1481
1490
|
);
|
|
1482
1491
|
}
|
|
1483
1492
|
function wn(t) {
|
|
1484
|
-
var
|
|
1485
|
-
const { model: e, onModelChange: a, column: n } = t, r = (
|
|
1486
|
-
const
|
|
1487
|
-
for (const
|
|
1488
|
-
return
|
|
1489
|
-
}, [
|
|
1490
|
-
() =>
|
|
1491
|
-
value: String(
|
|
1492
|
-
label:
|
|
1493
|
+
var C;
|
|
1494
|
+
const { model: e, onModelChange: a, column: n } = t, r = (C = n == null ? void 0 : n.getColDef) == null ? void 0 : C.call(n), o = (r == null ? void 0 : r.filterParams) ?? {}, l = o.options ?? [], u = o.placeholder ?? (typeof (r == null ? void 0 : r.headerName) == "string" ? r.headerName : void 0), d = z(() => {
|
|
1495
|
+
const g = /* @__PURE__ */ new Map();
|
|
1496
|
+
for (const b of l) g.set(String(b.value), b.value);
|
|
1497
|
+
return g;
|
|
1498
|
+
}, [l]), c = z(
|
|
1499
|
+
() => l.map((g) => ({
|
|
1500
|
+
value: String(g.value),
|
|
1501
|
+
label: g.label
|
|
1493
1502
|
})),
|
|
1494
|
-
[
|
|
1495
|
-
),
|
|
1496
|
-
() => ((e == null ? void 0 : e.values) ?? []).map((
|
|
1503
|
+
[l]
|
|
1504
|
+
), i = z(
|
|
1505
|
+
() => ((e == null ? void 0 : e.values) ?? []).map((g) => String(g)),
|
|
1497
1506
|
[e]
|
|
1498
1507
|
);
|
|
1499
|
-
function
|
|
1500
|
-
if (
|
|
1508
|
+
function p(g) {
|
|
1509
|
+
if (g.length === 0) {
|
|
1501
1510
|
a(null);
|
|
1502
1511
|
return;
|
|
1503
1512
|
}
|
|
1504
|
-
const
|
|
1505
|
-
for (const
|
|
1506
|
-
const y =
|
|
1507
|
-
y !== void 0 &&
|
|
1513
|
+
const b = [];
|
|
1514
|
+
for (const v of g) {
|
|
1515
|
+
const y = d.get(v);
|
|
1516
|
+
y !== void 0 && b.push(y);
|
|
1508
1517
|
}
|
|
1509
|
-
a({ type: "set", values:
|
|
1518
|
+
a({ type: "set", values: b });
|
|
1510
1519
|
}
|
|
1511
1520
|
return /* @__PURE__ */ s("div", { "data-component": "select-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
|
|
1512
1521
|
Ot,
|
|
1513
1522
|
{
|
|
1514
1523
|
size: "sm",
|
|
1515
|
-
options:
|
|
1516
|
-
value:
|
|
1517
|
-
onChange:
|
|
1518
|
-
placeholder:
|
|
1524
|
+
options: c,
|
|
1525
|
+
value: i,
|
|
1526
|
+
onChange: p,
|
|
1527
|
+
placeholder: o.placeholder,
|
|
1528
|
+
"aria-label": u,
|
|
1519
1529
|
allowClear: !0
|
|
1520
1530
|
}
|
|
1521
1531
|
) });
|
|
@@ -1533,7 +1543,7 @@ function Fn(t) {
|
|
|
1533
1543
|
options: l,
|
|
1534
1544
|
loadOptions: u,
|
|
1535
1545
|
placeholder: d
|
|
1536
|
-
} = t, { t:
|
|
1546
|
+
} = t, { t: c } = F("ui"), i = z(() => {
|
|
1537
1547
|
if (l && l.length > 0) return l;
|
|
1538
1548
|
if (!r || !o) return [];
|
|
1539
1549
|
const m = /* @__PURE__ */ new Map();
|
|
@@ -1549,8 +1559,8 @@ function Fn(t) {
|
|
|
1549
1559
|
if (u)
|
|
1550
1560
|
return (await u(m, h)).map((D) => ({ value: D.value, label: D.label }));
|
|
1551
1561
|
const x = H(m);
|
|
1552
|
-
return (x ?
|
|
1553
|
-
}, [u,
|
|
1562
|
+
return (x ? i.filter((I) => H(I.label).includes(x)) : i).slice(0, 50).map((I) => ({ value: I.value, label: I.label }));
|
|
1563
|
+
}, [u, i]), [C, g] = R((e == null ? void 0 : e.value) ?? "");
|
|
1554
1564
|
P(() => {
|
|
1555
1565
|
g((e == null ? void 0 : e.value) ?? "");
|
|
1556
1566
|
}, [e == null ? void 0 : e.value]), J({
|
|
@@ -1566,13 +1576,13 @@ function Fn(t) {
|
|
|
1566
1576
|
function b(m) {
|
|
1567
1577
|
g(m.label), a({ type: "equals", value: m.value });
|
|
1568
1578
|
}
|
|
1569
|
-
function
|
|
1579
|
+
function v(m) {
|
|
1570
1580
|
g(m), m === "" && e && a(null);
|
|
1571
1581
|
}
|
|
1572
|
-
function
|
|
1582
|
+
function y() {
|
|
1573
1583
|
g(""), a(null);
|
|
1574
1584
|
}
|
|
1575
|
-
const f = d ??
|
|
1585
|
+
const f = d ?? c("dataTable.typeaheadFilter.placeholder");
|
|
1576
1586
|
return /* @__PURE__ */ E(
|
|
1577
1587
|
"div",
|
|
1578
1588
|
{
|
|
@@ -1583,44 +1593,44 @@ function Fn(t) {
|
|
|
1583
1593
|
ze,
|
|
1584
1594
|
{
|
|
1585
1595
|
size: "sm",
|
|
1586
|
-
value:
|
|
1587
|
-
onChange:
|
|
1596
|
+
value: C,
|
|
1597
|
+
onChange: v,
|
|
1588
1598
|
onSelect: b,
|
|
1589
1599
|
loadOptions: p,
|
|
1590
1600
|
placeholder: f,
|
|
1591
1601
|
"aria-label": f
|
|
1592
1602
|
}
|
|
1593
1603
|
),
|
|
1594
|
-
/* @__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(j, { intent: "ghost", size: "sm", onClick: y, type: "button", children: c("dataTable.typeaheadFilter.clear") }) })
|
|
1595
1605
|
]
|
|
1596
1606
|
}
|
|
1597
1607
|
);
|
|
1598
1608
|
}
|
|
1599
1609
|
function Rn(t) {
|
|
1600
|
-
var b,
|
|
1601
|
-
const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((
|
|
1610
|
+
var b, v;
|
|
1611
|
+
const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((v = (b = n == null ? void 0 : n.getColDef) == null ? void 0 : b.call(n)) == null ? void 0 : v.filterParams) ?? {}, l = o.options ?? [], u = o.loadOptions, d = o.placeholder ?? r("dataTable.typeaheadFilter.placeholder"), c = z(() => async (y, f) => {
|
|
1602
1612
|
if (u)
|
|
1603
|
-
return (await u(
|
|
1604
|
-
const m = H(
|
|
1613
|
+
return (await u(y, f)).map((S) => ({ value: S.value, label: S.label }));
|
|
1614
|
+
const m = H(y);
|
|
1605
1615
|
return (m ? l.filter((x) => H(x.label).includes(m)) : l).slice(0, 50).map((x) => ({ value: x.value, label: x.label }));
|
|
1606
|
-
}, [u, l]), [
|
|
1616
|
+
}, [u, l]), [i, p] = R((e == null ? void 0 : e.value) ?? "");
|
|
1607
1617
|
P(() => {
|
|
1608
1618
|
p((e == null ? void 0 : e.value) ?? "");
|
|
1609
1619
|
}, [e == null ? void 0 : e.value]);
|
|
1610
|
-
function
|
|
1611
|
-
p(
|
|
1620
|
+
function C(y) {
|
|
1621
|
+
p(y.label), a({ type: "equals", value: y.value });
|
|
1612
1622
|
}
|
|
1613
|
-
function g(
|
|
1614
|
-
p(
|
|
1623
|
+
function g(y) {
|
|
1624
|
+
p(y), y === "" && e && a(null);
|
|
1615
1625
|
}
|
|
1616
1626
|
return /* @__PURE__ */ s("div", { "data-component": "typeahead-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
|
|
1617
1627
|
ze,
|
|
1618
1628
|
{
|
|
1619
1629
|
size: "sm",
|
|
1620
|
-
value:
|
|
1630
|
+
value: i,
|
|
1621
1631
|
onChange: g,
|
|
1622
|
-
onSelect:
|
|
1623
|
-
loadOptions:
|
|
1632
|
+
onSelect: C,
|
|
1633
|
+
loadOptions: c,
|
|
1624
1634
|
placeholder: d,
|
|
1625
1635
|
"aria-label": d
|
|
1626
1636
|
}
|
|
@@ -1685,15 +1695,15 @@ function Dn(t) {
|
|
|
1685
1695
|
max: l,
|
|
1686
1696
|
step: u,
|
|
1687
1697
|
placeholder: d
|
|
1688
|
-
} = t, { t:
|
|
1698
|
+
} = t, { t: c } = F("ui"), i = (e == null ? void 0 : e.type) ?? r ?? "equals", [p, C] = R(i), [g, b] = R((e == null ? void 0 : e.filter) ?? null), [v, y] = R(
|
|
1689
1699
|
(e == null ? void 0 : e.filterTo) ?? null
|
|
1690
1700
|
);
|
|
1691
1701
|
P(() => {
|
|
1692
1702
|
if (e === null) {
|
|
1693
|
-
|
|
1703
|
+
C(r ?? "equals"), b(null), y(null);
|
|
1694
1704
|
return;
|
|
1695
1705
|
}
|
|
1696
|
-
|
|
1706
|
+
C(e.type), b(e.filter ?? null), y(e.filterTo ?? null);
|
|
1697
1707
|
}, [e, r]), J({
|
|
1698
1708
|
doesFilterPass: (D) => {
|
|
1699
1709
|
if (!e) return !0;
|
|
@@ -1709,10 +1719,10 @@ function Dn(t) {
|
|
|
1709
1719
|
const f = z(
|
|
1710
1720
|
() => pa.map((D) => ({
|
|
1711
1721
|
value: D,
|
|
1712
|
-
label:
|
|
1722
|
+
label: c(`dataTable.numberFilter.operators.${D}`)
|
|
1713
1723
|
})),
|
|
1714
|
-
[
|
|
1715
|
-
), m = d ??
|
|
1724
|
+
[c]
|
|
1725
|
+
), m = d ?? c("dataTable.numberFilter.placeholder");
|
|
1716
1726
|
function h() {
|
|
1717
1727
|
if (!ve(p)) {
|
|
1718
1728
|
a({ type: p, filter: 0 });
|
|
@@ -1726,14 +1736,14 @@ function Dn(t) {
|
|
|
1726
1736
|
a({
|
|
1727
1737
|
type: p,
|
|
1728
1738
|
filter: g,
|
|
1729
|
-
filterTo:
|
|
1739
|
+
filterTo: v ?? void 0
|
|
1730
1740
|
});
|
|
1731
1741
|
return;
|
|
1732
1742
|
}
|
|
1733
1743
|
a({ type: p, filter: g });
|
|
1734
1744
|
}
|
|
1735
1745
|
function x() {
|
|
1736
|
-
|
|
1746
|
+
C(r ?? "equals"), b(null), y(null), a(null);
|
|
1737
1747
|
}
|
|
1738
1748
|
const S = ve(p), I = ye(p);
|
|
1739
1749
|
return /* @__PURE__ */ E(
|
|
@@ -1749,9 +1759,9 @@ function Dn(t) {
|
|
|
1749
1759
|
options: f,
|
|
1750
1760
|
value: p,
|
|
1751
1761
|
onValueChange: (D) => {
|
|
1752
|
-
D !== "" &&
|
|
1762
|
+
D !== "" && C(D);
|
|
1753
1763
|
},
|
|
1754
|
-
"aria-label":
|
|
1764
|
+
"aria-label": c("dataTable.numberFilter.operators.equals")
|
|
1755
1765
|
}
|
|
1756
1766
|
),
|
|
1757
1767
|
S && !I && /* @__PURE__ */ s(
|
|
@@ -1777,53 +1787,53 @@ function Dn(t) {
|
|
|
1777
1787
|
min: o,
|
|
1778
1788
|
max: l,
|
|
1779
1789
|
step: u,
|
|
1780
|
-
placeholder:
|
|
1781
|
-
"aria-label":
|
|
1790
|
+
placeholder: c("dataTable.numberFilter.from"),
|
|
1791
|
+
"aria-label": c("dataTable.numberFilter.from")
|
|
1782
1792
|
}
|
|
1783
1793
|
),
|
|
1784
1794
|
/* @__PURE__ */ s(
|
|
1785
1795
|
ee,
|
|
1786
1796
|
{
|
|
1787
1797
|
size: "sm",
|
|
1788
|
-
value:
|
|
1789
|
-
onChange:
|
|
1798
|
+
value: v,
|
|
1799
|
+
onChange: y,
|
|
1790
1800
|
min: o,
|
|
1791
1801
|
max: l,
|
|
1792
1802
|
step: u,
|
|
1793
|
-
placeholder:
|
|
1794
|
-
"aria-label":
|
|
1803
|
+
placeholder: c("dataTable.numberFilter.to"),
|
|
1804
|
+
"aria-label": c("dataTable.numberFilter.to")
|
|
1795
1805
|
}
|
|
1796
1806
|
)
|
|
1797
1807
|
] }),
|
|
1798
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: [
|
|
1799
|
-
/* @__PURE__ */ s(
|
|
1800
|
-
/* @__PURE__ */ s(
|
|
1809
|
+
/* @__PURE__ */ s(j, { intent: "ghost", size: "sm", onClick: x, type: "button", children: c("dataTable.numberFilter.clear") }),
|
|
1810
|
+
/* @__PURE__ */ s(j, { intent: "primary", size: "sm", onClick: h, type: "button", children: c("dataTable.numberFilter.apply") })
|
|
1801
1811
|
] })
|
|
1802
1812
|
]
|
|
1803
1813
|
}
|
|
1804
1814
|
);
|
|
1805
1815
|
}
|
|
1806
1816
|
function kn(t) {
|
|
1807
|
-
var
|
|
1808
|
-
const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((p = (
|
|
1817
|
+
var i, p;
|
|
1818
|
+
const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((p = (i = n == null ? void 0 : n.getColDef) == null ? void 0 : i.call(n)) == null ? void 0 : p.filterParams) ?? {}, l = o.defaultOperator ?? "equals", u = o.placeholder ?? r("dataTable.numberFilter.placeholder"), [d, c] = R((e == null ? void 0 : e.filter) ?? null);
|
|
1809
1819
|
return P(() => {
|
|
1810
|
-
|
|
1820
|
+
c((e == null ? void 0 : e.filter) ?? null);
|
|
1811
1821
|
}, [e == null ? void 0 : e.filter]), P(() => {
|
|
1812
1822
|
if (d === ((e == null ? void 0 : e.filter) ?? null)) return;
|
|
1813
|
-
const
|
|
1823
|
+
const C = setTimeout(() => {
|
|
1814
1824
|
if (d === null || Number.isNaN(d)) {
|
|
1815
1825
|
a(null);
|
|
1816
1826
|
return;
|
|
1817
1827
|
}
|
|
1818
1828
|
a({ type: l, filter: d });
|
|
1819
1829
|
}, 200);
|
|
1820
|
-
return () => clearTimeout(
|
|
1830
|
+
return () => clearTimeout(C);
|
|
1821
1831
|
}, [d, l]), /* @__PURE__ */ s("div", { "data-component": "number-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
|
|
1822
1832
|
ee,
|
|
1823
1833
|
{
|
|
1824
1834
|
size: "sm",
|
|
1825
1835
|
value: d,
|
|
1826
|
-
onChange:
|
|
1836
|
+
onChange: c,
|
|
1827
1837
|
min: o.min,
|
|
1828
1838
|
max: o.max,
|
|
1829
1839
|
step: o.step,
|
|
@@ -1874,19 +1884,19 @@ function zn(t) {
|
|
|
1874
1884
|
shape: l = "rounded"
|
|
1875
1885
|
} = t;
|
|
1876
1886
|
if (!e) return null;
|
|
1877
|
-
const u = ue(e, a), d = ya(u),
|
|
1887
|
+
const u = ue(e, a), d = ya(u), c = n ? ue(e, n) ?? "" : "", i = r ? ue(e, r) : void 0;
|
|
1878
1888
|
return d ? /* @__PURE__ */ s(
|
|
1879
1889
|
"img",
|
|
1880
1890
|
{
|
|
1881
1891
|
src: d,
|
|
1882
|
-
alt:
|
|
1892
|
+
alt: c,
|
|
1883
1893
|
loading: "lazy",
|
|
1884
1894
|
decoding: "async",
|
|
1885
1895
|
className: ["ds:object-cover", ba[o], ha[l]].join(
|
|
1886
1896
|
" "
|
|
1887
1897
|
)
|
|
1888
1898
|
}
|
|
1889
|
-
) :
|
|
1899
|
+
) : i ? /* @__PURE__ */ s(Ae, { name: i, size: o }) : null;
|
|
1890
1900
|
}
|
|
1891
1901
|
function An(t) {
|
|
1892
1902
|
const { value: e, maxVisible: a = 3 } = t, { t: n } = F();
|
|
@@ -1894,7 +1904,7 @@ function An(t) {
|
|
|
1894
1904
|
const r = e.slice(0, a), o = e.length - a;
|
|
1895
1905
|
return /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1896
1906
|
r.map((l) => /* @__PURE__ */ s(ae, { label: l, size: "sm" }, l)),
|
|
1897
|
-
o > 0 && /* @__PURE__ */ s(
|
|
1907
|
+
o > 0 && /* @__PURE__ */ s(Lt, { label: e.slice(a).join(", "), children: /* @__PURE__ */ s(
|
|
1898
1908
|
ae,
|
|
1899
1909
|
{
|
|
1900
1910
|
label: n("inputs.multiSelect.overflow", { count: o }),
|
|
@@ -1942,12 +1952,12 @@ function On(t) {
|
|
|
1942
1952
|
options: o
|
|
1943
1953
|
} = t, { i18n: l } = F(), u = Ca(e);
|
|
1944
1954
|
if (u === null) return null;
|
|
1945
|
-
const d = l.language || "en",
|
|
1955
|
+
const d = l.language || "en", c = new Intl.NumberFormat(d, {
|
|
1946
1956
|
style: "currency",
|
|
1947
1957
|
currency: a,
|
|
1948
1958
|
...o
|
|
1949
|
-
}).format(u),
|
|
1950
|
-
return n && u < 0 &&
|
|
1959
|
+
}).format(u), i = ["ds:tabular-nums"];
|
|
1960
|
+
return n && u < 0 && i.push("ds:text-[color:var(--destructive)]"), r && i.push("line-through"), /* @__PURE__ */ s("span", { className: i.join(" "), children: c });
|
|
1951
1961
|
}
|
|
1952
1962
|
function xa(t) {
|
|
1953
1963
|
if (!we(t)) return t;
|
|
@@ -1986,10 +1996,10 @@ function Ce(t, e) {
|
|
|
1986
1996
|
function Na(t) {
|
|
1987
1997
|
return /^(https?:\/\/|\/|#|mailto:|tel:)/i.test(t) ? t : "#";
|
|
1988
1998
|
}
|
|
1989
|
-
function
|
|
1999
|
+
function Ln(t) {
|
|
1990
2000
|
const { value: e, data: a, href: n, onClick: r, secondary: o } = t;
|
|
1991
2001
|
if (!a) return null;
|
|
1992
|
-
const l = Ce(n, a), u = Ce(o, a), d = e == null || e === "" ? "" : String(e),
|
|
2002
|
+
const l = Ce(n, a), u = Ce(o, a), d = e == null || e === "" ? "" : String(e), c = [
|
|
1993
2003
|
"ds:text-[color:var(--primary)]",
|
|
1994
2004
|
"ds:hover:underline",
|
|
1995
2005
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
@@ -1997,7 +2007,7 @@ function jn(t) {
|
|
|
1997
2007
|
"ds:focus-visible:outline-[color:var(--ring)]",
|
|
1998
2008
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1999
2009
|
"ds:rounded-[var(--radius-sm)]"
|
|
2000
|
-
].join(" "),
|
|
2010
|
+
].join(" "), i = (p) => {
|
|
2001
2011
|
r && (l || p.preventDefault(), p.stopPropagation(), r(a));
|
|
2002
2012
|
};
|
|
2003
2013
|
return /* @__PURE__ */ E("span", { className: "ds:flex ds:flex-col ds:leading-tight", children: [
|
|
@@ -2005,18 +2015,18 @@ function jn(t) {
|
|
|
2005
2015
|
"a",
|
|
2006
2016
|
{
|
|
2007
2017
|
href: Na(l),
|
|
2008
|
-
onClick:
|
|
2009
|
-
className:
|
|
2018
|
+
onClick: i,
|
|
2019
|
+
className: c,
|
|
2010
2020
|
children: d
|
|
2011
2021
|
}
|
|
2012
2022
|
) : /* @__PURE__ */ s(
|
|
2013
2023
|
"button",
|
|
2014
2024
|
{
|
|
2015
2025
|
type: "button",
|
|
2016
|
-
onClick:
|
|
2026
|
+
onClick: i,
|
|
2017
2027
|
className: [
|
|
2018
2028
|
"ds:appearance-none ds:bg-transparent ds:p-0 ds:text-start",
|
|
2019
|
-
|
|
2029
|
+
c
|
|
2020
2030
|
].join(" "),
|
|
2021
2031
|
children: d
|
|
2022
2032
|
}
|
|
@@ -2024,7 +2034,7 @@ function jn(t) {
|
|
|
2024
2034
|
u ? /* @__PURE__ */ s("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: u }) : null
|
|
2025
2035
|
] });
|
|
2026
2036
|
}
|
|
2027
|
-
function
|
|
2037
|
+
function jn(t) {
|
|
2028
2038
|
const {
|
|
2029
2039
|
value: e,
|
|
2030
2040
|
data: a,
|
|
@@ -2034,21 +2044,21 @@ function Ln(t) {
|
|
|
2034
2044
|
falseIcon: l,
|
|
2035
2045
|
trueClass: u = "ds:text-[color:var(--success)]",
|
|
2036
2046
|
falseClass: d = "ds:text-[color:var(--muted-foreground)]",
|
|
2037
|
-
label:
|
|
2038
|
-
} = t, { t:
|
|
2047
|
+
label: c
|
|
2048
|
+
} = t, { t: i } = F(), [p, C] = R(!1);
|
|
2039
2049
|
if (!a) return null;
|
|
2040
|
-
const g = !!e, b = g ? o ?? /* @__PURE__ */ s(
|
|
2050
|
+
const g = !!e, b = g ? o ?? /* @__PURE__ */ s(jt, { "aria-hidden": !0, className: "ds:size-4" }) : l ?? /* @__PURE__ */ s(_t, { "aria-hidden": !0, className: "ds:size-4" }), v = g ? u : d, y = c ?? i(g ? "inputs.switch.on" : "inputs.switch.off");
|
|
2041
2051
|
async function f(m) {
|
|
2042
2052
|
if (m.stopPropagation(), p || !a) return;
|
|
2043
2053
|
const x = n(a, !g);
|
|
2044
2054
|
if (x && typeof x.then == "function") {
|
|
2045
|
-
|
|
2055
|
+
C(!0);
|
|
2046
2056
|
try {
|
|
2047
2057
|
await x;
|
|
2048
2058
|
} catch (S) {
|
|
2049
2059
|
r == null || r(a, S);
|
|
2050
2060
|
} finally {
|
|
2051
|
-
|
|
2061
|
+
C(!1);
|
|
2052
2062
|
}
|
|
2053
2063
|
}
|
|
2054
2064
|
}
|
|
@@ -2059,7 +2069,7 @@ function Ln(t) {
|
|
|
2059
2069
|
role: "switch",
|
|
2060
2070
|
"aria-checked": g,
|
|
2061
2071
|
"aria-busy": p,
|
|
2062
|
-
"aria-label":
|
|
2072
|
+
"aria-label": y,
|
|
2063
2073
|
disabled: p,
|
|
2064
2074
|
onClick: f,
|
|
2065
2075
|
className: [
|
|
@@ -2072,7 +2082,7 @@ function Ln(t) {
|
|
|
2072
2082
|
"ds:focus-visible:outline-[color:var(--ring)]",
|
|
2073
2083
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
2074
2084
|
"ds:disabled:opacity-50",
|
|
2075
|
-
|
|
2085
|
+
v
|
|
2076
2086
|
].join(" "),
|
|
2077
2087
|
children: b
|
|
2078
2088
|
}
|
|
@@ -2098,8 +2108,8 @@ function ka(t) {
|
|
|
2098
2108
|
function _n(t) {
|
|
2099
2109
|
const { data: e, colorField: a, size: n = "md", labelField: r } = t, o = X(null), l = e ? xe(e, a) : void 0, u = ka(l), d = e && r ? xe(e, r) : void 0;
|
|
2100
2110
|
return qt(() => {
|
|
2101
|
-
const
|
|
2102
|
-
|
|
2111
|
+
const c = o.current;
|
|
2112
|
+
c && (u ? c.style.setProperty("--data-table-dot-color", u) : c.style.removeProperty("--data-table-dot-color"));
|
|
2103
2113
|
}, [u]), u ? /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
2104
2114
|
/* @__PURE__ */ s(
|
|
2105
2115
|
"span",
|
|
@@ -2125,33 +2135,33 @@ function Ea(t, e) {
|
|
|
2125
2135
|
function qn(t) {
|
|
2126
2136
|
const { data: e, lines: a, currency: n = "EUR", highlightNegative: r } = t, { i18n: o } = F();
|
|
2127
2137
|
if (!e) return null;
|
|
2128
|
-
const l = o.language || "en", u = (
|
|
2129
|
-
const
|
|
2130
|
-
if (
|
|
2138
|
+
const l = o.language || "en", u = (c) => {
|
|
2139
|
+
const i = Ea(e, c.valueField);
|
|
2140
|
+
if (i === null) return null;
|
|
2131
2141
|
let p;
|
|
2132
|
-
switch (
|
|
2142
|
+
switch (c.format ?? "number") {
|
|
2133
2143
|
case "currency":
|
|
2134
2144
|
p = new Intl.NumberFormat(l, {
|
|
2135
2145
|
style: "currency",
|
|
2136
2146
|
currency: n
|
|
2137
|
-
}).format(
|
|
2147
|
+
}).format(i);
|
|
2138
2148
|
break;
|
|
2139
2149
|
case "percent":
|
|
2140
2150
|
p = new Intl.NumberFormat(l, {
|
|
2141
2151
|
style: "percent",
|
|
2142
2152
|
maximumFractionDigits: 1
|
|
2143
|
-
}).format(
|
|
2153
|
+
}).format(i / 100);
|
|
2144
2154
|
break;
|
|
2145
2155
|
default:
|
|
2146
|
-
p = new Intl.NumberFormat(l).format(
|
|
2156
|
+
p = new Intl.NumberFormat(l).format(i);
|
|
2147
2157
|
}
|
|
2148
2158
|
return {
|
|
2149
|
-
label:
|
|
2159
|
+
label: c.label,
|
|
2150
2160
|
formatted: p,
|
|
2151
|
-
negative: !!r &&
|
|
2161
|
+
negative: !!r && i < 0
|
|
2152
2162
|
};
|
|
2153
2163
|
}, d = a.map(u).filter(
|
|
2154
|
-
(
|
|
2164
|
+
(c) => c !== null
|
|
2155
2165
|
);
|
|
2156
2166
|
return d.length === 0 ? null : /* @__PURE__ */ s(
|
|
2157
2167
|
"div",
|
|
@@ -2165,12 +2175,12 @@ function qn(t) {
|
|
|
2165
2175
|
"type-meta",
|
|
2166
2176
|
"ds:leading-tight"
|
|
2167
2177
|
].join(" "),
|
|
2168
|
-
children: d.map((
|
|
2178
|
+
children: d.map((c, i) => /* @__PURE__ */ E(
|
|
2169
2179
|
"span",
|
|
2170
2180
|
{
|
|
2171
2181
|
className: "ds:inline-flex ds:items-baseline ds:gap-x-[var(--spacing-xs)]",
|
|
2172
2182
|
children: [
|
|
2173
|
-
|
|
2183
|
+
i > 0 ? /* @__PURE__ */ s(
|
|
2174
2184
|
"span",
|
|
2175
2185
|
{
|
|
2176
2186
|
"aria-hidden": "true",
|
|
@@ -2178,33 +2188,33 @@ function qn(t) {
|
|
|
2178
2188
|
children: "·"
|
|
2179
2189
|
}
|
|
2180
2190
|
) : null,
|
|
2181
|
-
/* @__PURE__ */ s("span", { className: "ds:text-[color:var(--muted-foreground)]", children:
|
|
2191
|
+
/* @__PURE__ */ s("span", { className: "ds:text-[color:var(--muted-foreground)]", children: c.label }),
|
|
2182
2192
|
/* @__PURE__ */ s(
|
|
2183
2193
|
"span",
|
|
2184
2194
|
{
|
|
2185
2195
|
className: [
|
|
2186
2196
|
"ds:tabular-nums",
|
|
2187
2197
|
"ds:font-medium",
|
|
2188
|
-
|
|
2198
|
+
c.negative ? "ds:text-[color:var(--destructive)]" : ""
|
|
2189
2199
|
].filter(Boolean).join(" "),
|
|
2190
|
-
children:
|
|
2200
|
+
children: c.formatted
|
|
2191
2201
|
}
|
|
2192
2202
|
)
|
|
2193
2203
|
]
|
|
2194
2204
|
},
|
|
2195
|
-
`${
|
|
2205
|
+
`${c.label}-${i}`
|
|
2196
2206
|
))
|
|
2197
2207
|
}
|
|
2198
2208
|
);
|
|
2199
2209
|
}
|
|
2200
2210
|
function $n(t) {
|
|
2201
|
-
var
|
|
2211
|
+
var c, i;
|
|
2202
2212
|
const { initialValue: e, onValueChange: a, stopEditing: n, column: r } = t, [o, l] = R(e ?? ""), u = X(null);
|
|
2203
2213
|
P(() => {
|
|
2204
2214
|
const p = u.current;
|
|
2205
2215
|
p && (p.focus(), p.select());
|
|
2206
2216
|
}, []);
|
|
2207
|
-
const d = ((
|
|
2217
|
+
const d = ((i = (c = r == null ? void 0 : r.getColDef) == null ? void 0 : c.call(r)) == null ? void 0 : i.headerName) ?? void 0;
|
|
2208
2218
|
return /* @__PURE__ */ s(
|
|
2209
2219
|
"input",
|
|
2210
2220
|
{
|
|
@@ -2213,8 +2223,8 @@ function $n(t) {
|
|
|
2213
2223
|
value: o,
|
|
2214
2224
|
"aria-label": d,
|
|
2215
2225
|
onChange: (p) => {
|
|
2216
|
-
const
|
|
2217
|
-
l(
|
|
2226
|
+
const C = p.target.value;
|
|
2227
|
+
l(C), a(C);
|
|
2218
2228
|
},
|
|
2219
2229
|
onKeyDown: (p) => {
|
|
2220
2230
|
p.key === "Enter" && (p.preventDefault(), n());
|
|
@@ -2228,13 +2238,13 @@ function $n(t) {
|
|
|
2228
2238
|
// WCAG 2.5.5 target size.
|
|
2229
2239
|
Oe.md,
|
|
2230
2240
|
Me.sm,
|
|
2231
|
-
|
|
2241
|
+
Le.sm
|
|
2232
2242
|
].join(" ")
|
|
2233
2243
|
}
|
|
2234
2244
|
);
|
|
2235
2245
|
}
|
|
2236
2246
|
function Gn(t) {
|
|
2237
|
-
var
|
|
2247
|
+
var v, y;
|
|
2238
2248
|
const {
|
|
2239
2249
|
initialValue: e,
|
|
2240
2250
|
onValueChange: a,
|
|
@@ -2243,9 +2253,9 @@ function Gn(t) {
|
|
|
2243
2253
|
decimals: o = 2,
|
|
2244
2254
|
min: l,
|
|
2245
2255
|
max: u
|
|
2246
|
-
} = t, { i18n: d } = F(),
|
|
2256
|
+
} = t, { i18n: d } = F(), c = X(null), i = ((y = (v = r == null ? void 0 : r.getColDef) == null ? void 0 : v.call(r)) == null ? void 0 : y.headerName) ?? void 0, [p, C] = R(() => e == null || Number.isNaN(e) ? "" : String(e));
|
|
2247
2257
|
P(() => {
|
|
2248
|
-
const f =
|
|
2258
|
+
const f = c.current;
|
|
2249
2259
|
f && (f.focus(), f.select());
|
|
2250
2260
|
}, []);
|
|
2251
2261
|
function g(f) {
|
|
@@ -2268,14 +2278,14 @@ function Gn(t) {
|
|
|
2268
2278
|
return /* @__PURE__ */ s(
|
|
2269
2279
|
"input",
|
|
2270
2280
|
{
|
|
2271
|
-
ref:
|
|
2281
|
+
ref: c,
|
|
2272
2282
|
type: "text",
|
|
2273
2283
|
inputMode: "decimal",
|
|
2274
2284
|
value: p,
|
|
2275
|
-
"aria-label":
|
|
2285
|
+
"aria-label": i,
|
|
2276
2286
|
onChange: (f) => {
|
|
2277
2287
|
const m = f.target.value;
|
|
2278
|
-
|
|
2288
|
+
C(m), b(m);
|
|
2279
2289
|
},
|
|
2280
2290
|
onKeyDown: (f) => {
|
|
2281
2291
|
f.key === "Enter" && (f.preventDefault(), n());
|
|
@@ -2286,7 +2296,7 @@ function Gn(t) {
|
|
|
2286
2296
|
// Use `md` height — see editable-text-cell-renderer for rationale.
|
|
2287
2297
|
Oe.md,
|
|
2288
2298
|
Me.sm,
|
|
2289
|
-
|
|
2299
|
+
Le.sm
|
|
2290
2300
|
].join(" ")
|
|
2291
2301
|
}
|
|
2292
2302
|
);
|
|
@@ -2298,7 +2308,7 @@ export {
|
|
|
2298
2308
|
Tn as D,
|
|
2299
2309
|
Gn as E,
|
|
2300
2310
|
zn as I,
|
|
2301
|
-
|
|
2311
|
+
Ln as L,
|
|
2302
2312
|
Dn as N,
|
|
2303
2313
|
Sn as S,
|
|
2304
2314
|
An as T,
|
|
@@ -2313,7 +2323,7 @@ export {
|
|
|
2313
2323
|
En as h,
|
|
2314
2324
|
na as i,
|
|
2315
2325
|
ra as j,
|
|
2316
|
-
|
|
2326
|
+
jn as k,
|
|
2317
2327
|
te as l,
|
|
2318
2328
|
Vt as m,
|
|
2319
2329
|
Fn as n,
|
|
@@ -2322,4 +2332,4 @@ export {
|
|
|
2322
2332
|
Be as q,
|
|
2323
2333
|
Cn as u
|
|
2324
2334
|
};
|
|
2325
|
-
//# sourceMappingURL=editable-currency-cell-renderer-
|
|
2335
|
+
//# sourceMappingURL=editable-currency-cell-renderer-CFqQc56y.js.map
|