@alfadocs/ui-kit 0.1.4 → 0.1.5
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-card-C_hQGErS.js → agenda-card-DIWDvWum.js} +10 -10
- package/dist/_chunks/agenda-card-DIWDvWum.js.map +1 -0
- package/dist/_chunks/{agenda-tray-CBaVMJLO.js → agenda-tray-BqQZwiHc.js} +5 -5
- package/dist/_chunks/{agenda-tray-CBaVMJLO.js.map → agenda-tray-BqQZwiHc.js.map} +1 -1
- package/dist/_chunks/{ai-prompt-input-K94oVLG2.js → ai-prompt-input-CI27KmZ1.js} +4 -4
- package/dist/_chunks/ai-prompt-input-CI27KmZ1.js.map +1 -0
- package/dist/_chunks/{alert-rOM4EG0P.js → alert-BlOUMkXj.js} +39 -39
- package/dist/_chunks/alert-BlOUMkXj.js.map +1 -0
- package/dist/_chunks/{audio-recorder-Cn8z2zC9.js → audio-recorder-B-8SKgKn.js} +5 -5
- package/dist/_chunks/{audio-recorder-Cn8z2zC9.js.map → audio-recorder-B-8SKgKn.js.map} +1 -1
- package/dist/_chunks/{autocomplete.agent-DRrp-Rsx.js → autocomplete.agent-DqOy0_1P.js} +31 -31
- package/dist/_chunks/autocomplete.agent-DqOy0_1P.js.map +1 -0
- package/dist/_chunks/{avatar-Biffh-_H.js → avatar-Dcr6XuDQ.js} +19 -19
- package/dist/_chunks/avatar-Dcr6XuDQ.js.map +1 -0
- package/dist/_chunks/{balance-cell-renderer-CiyezQhi.js → balance-cell-renderer-BRWt3neo.js} +166 -166
- package/dist/_chunks/balance-cell-renderer-BRWt3neo.js.map +1 -0
- package/dist/_chunks/breadcrumb-D6xpsP7n.js +293 -0
- package/dist/_chunks/breadcrumb-D6xpsP7n.js.map +1 -0
- package/dist/_chunks/{button-7dTew-IV.js → button-7mLWcMp_.js} +9 -9
- package/dist/_chunks/{button-7dTew-IV.js.map → button-7mLWcMp_.js.map} +1 -1
- package/dist/_chunks/{calendar-BkDeDTaX.js → calendar-nGEgelJs.js} +100 -100
- package/dist/_chunks/calendar-nGEgelJs.js.map +1 -0
- package/dist/_chunks/{chat-input-xiBIujMv.js → chat-input-DsIrWM4f.js} +2 -2
- package/dist/_chunks/{chat-input-xiBIujMv.js.map → chat-input-DsIrWM4f.js.map} +1 -1
- package/dist/_chunks/{chat-message-BtxUyugB.js → chat-message-ByouZpPP.js} +3 -3
- package/dist/_chunks/{chat-message-BtxUyugB.js.map → chat-message-ByouZpPP.js.map} +1 -1
- package/dist/_chunks/{checkbox-Ni6C_KJg.js → checkbox-DNK4qS2_.js} +13 -13
- package/dist/_chunks/checkbox-DNK4qS2_.js.map +1 -0
- package/dist/_chunks/{checkbox-group-BFZ4oN5t.js → checkbox-group-CWpGZEF6.js} +13 -13
- package/dist/_chunks/checkbox-group-CWpGZEF6.js.map +1 -0
- package/dist/_chunks/{collapsible-fFMqzpdL.js → collapsible-D4LOdLxp.js} +18 -18
- package/dist/_chunks/collapsible-D4LOdLxp.js.map +1 -0
- package/dist/_chunks/{color-picker-Cl3KdjJd.js → color-picker-e9PmpaGH.js} +161 -161
- package/dist/_chunks/color-picker-e9PmpaGH.js.map +1 -0
- package/dist/_chunks/{combobox.agent-DjdivI3X.js → combobox.agent-ByobCLJ_.js} +28 -28
- package/dist/_chunks/combobox.agent-ByobCLJ_.js.map +1 -0
- package/dist/_chunks/{command-palette.agent-BUjzr2ET.js → command-palette.agent-js2rxgeR.js} +117 -117
- package/dist/_chunks/command-palette.agent-js2rxgeR.js.map +1 -0
- package/dist/_chunks/{description-list-C_1NX8P3.js → description-list-DvJbp6Yg.js} +2 -2
- package/dist/_chunks/{description-list-C_1NX8P3.js.map → description-list-DvJbp6Yg.js.map} +1 -1
- package/dist/_chunks/{dialog.agent-C2lP9H0h.js → dialog.agent-DEG_fVzG.js} +42 -42
- package/dist/_chunks/dialog.agent-DEG_fVzG.js.map +1 -0
- package/dist/_chunks/{dropdown-menu-2HgU1Emf.js → dropdown-menu-JNo66A-j.js} +2 -2
- package/dist/_chunks/dropdown-menu-JNo66A-j.js.map +1 -0
- package/dist/_chunks/{empty-state-BHrItOiE.js → empty-state-DQPtRp2b.js} +2 -2
- package/dist/_chunks/{empty-state-BHrItOiE.js.map → empty-state-DQPtRp2b.js.map} +1 -1
- package/dist/_chunks/{file-upload.agent-LlC0W468.js → file-upload.agent-B9AN82LA.js} +2 -2
- package/dist/_chunks/{file-upload.agent-LlC0W468.js.map → file-upload.agent-B9AN82LA.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-Dr9aOtOC.js → freemium-paywall-CkefGLM_.js} +4 -4
- package/dist/_chunks/{freemium-paywall-Dr9aOtOC.js.map → freemium-paywall-CkefGLM_.js.map} +1 -1
- package/dist/_chunks/{header-BpU9U-1X.js → header-BGn1mRp8.js} +2 -2
- package/dist/_chunks/{header-BpU9U-1X.js.map → header-BGn1mRp8.js.map} +1 -1
- package/dist/_chunks/{icon-button-CNjWCD1X.js → icon-button-Wnnde5lc.js} +6 -6
- package/dist/_chunks/icon-button-Wnnde5lc.js.map +1 -0
- package/dist/_chunks/input-surface-u4QB0lxe.js +32 -0
- package/dist/_chunks/input-surface-u4QB0lxe.js.map +1 -0
- package/dist/_chunks/{key-value-pair-C9hpjC_B.js → key-value-pair-JRFS9Xrh.js} +10 -10
- package/dist/_chunks/key-value-pair-JRFS9Xrh.js.map +1 -0
- package/dist/_chunks/{leo-sidebar-CNjZqljo.js → leo-sidebar-BzN4pJ7j.js} +16 -16
- package/dist/_chunks/leo-sidebar-BzN4pJ7j.js.map +1 -0
- package/dist/_chunks/{message-card-CZzNO4ov.js → message-card-qAp2-WQK.js} +12 -12
- package/dist/_chunks/message-card-qAp2-WQK.js.map +1 -0
- package/dist/_chunks/{message-tray-BWbjXW3F.js → message-tray-VaLpQU5t.js} +5 -5
- package/dist/_chunks/{message-tray-BWbjXW3F.js.map → message-tray-VaLpQU5t.js.map} +1 -1
- package/dist/_chunks/{multi-select.agent-BSGEW10d.js → multi-select.agent-CNsyW3n9.js} +66 -66
- package/dist/_chunks/multi-select.agent-CNsyW3n9.js.map +1 -0
- package/dist/_chunks/navigation-menu-EVFau1O2.js +180 -0
- package/dist/_chunks/navigation-menu-EVFau1O2.js.map +1 -0
- package/dist/_chunks/{notification-card-DgW-vVg-.js → notification-card-BF2_veHy.js} +11 -11
- package/dist/_chunks/notification-card-BF2_veHy.js.map +1 -0
- package/dist/_chunks/{notification-tray-CKUgl2jc.js → notification-tray-Bq-08ReD.js} +5 -5
- package/dist/_chunks/{notification-tray-CKUgl2jc.js.map → notification-tray-Bq-08ReD.js.map} +1 -1
- package/dist/_chunks/{number-input-BPPhekLu.js → number-input-DjpT_RXJ.js} +46 -46
- package/dist/_chunks/number-input-DjpT_RXJ.js.map +1 -0
- package/dist/_chunks/pagination.agent-oEaqmtx5.js +380 -0
- package/dist/_chunks/pagination.agent-oEaqmtx5.js.map +1 -0
- package/dist/_chunks/{password-input-DAT5HQth.js → password-input-DJDVznWH.js} +5 -5
- package/dist/_chunks/password-input-DJDVznWH.js.map +1 -0
- package/dist/_chunks/{patient-shell-BzHhg6uA.js → patient-shell-DP54y6rc.js} +5 -5
- package/dist/_chunks/{patient-shell-BzHhg6uA.js.map → patient-shell-DP54y6rc.js.map} +1 -1
- package/dist/_chunks/{payment-form-YlxrCpZQ.js → payment-form-hcl-gGrp.js} +2 -2
- package/dist/_chunks/{payment-form-YlxrCpZQ.js.map → payment-form-hcl-gGrp.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer.agent-sMned5Xn.js → pdf-viewer.agent-CfIHhcHx.js} +3 -3
- package/dist/_chunks/{pdf-viewer.agent-sMned5Xn.js.map → pdf-viewer.agent-CfIHhcHx.js.map} +1 -1
- package/dist/_chunks/{phone-input-BuRe5PyI.js → phone-input-DE_39q65.js} +103 -103
- package/dist/_chunks/phone-input-DE_39q65.js.map +1 -0
- package/dist/_chunks/{popover-Ds1iOdiv.js → popover-DvAtFOi-.js} +2 -2
- package/dist/_chunks/{popover-Ds1iOdiv.js.map → popover-DvAtFOi-.js.map} +1 -1
- package/dist/_chunks/{privacy-lock-up2ervfF.js → privacy-lock-DS6QRo2N.js} +3 -3
- package/dist/_chunks/{privacy-lock-up2ervfF.js.map → privacy-lock-DS6QRo2N.js.map} +1 -1
- package/dist/_chunks/{progress-D4ELgHG3.js → progress-B4Of_pzz.js} +57 -57
- package/dist/_chunks/progress-B4Of_pzz.js.map +1 -0
- package/dist/_chunks/{radio-XSSNX3Af.js → radio-cs8N1wJi.js} +29 -29
- package/dist/_chunks/radio-cs8N1wJi.js.map +1 -0
- package/dist/_chunks/{radio-group-DBrUOPcy.js → radio-group-BIUbpWml.js} +3 -3
- package/dist/_chunks/radio-group-BIUbpWml.js.map +1 -0
- package/dist/_chunks/{scroll-area-HIq0hJyJ.js → scroll-area-DLr5w9Dd.js} +9 -9
- package/dist/_chunks/scroll-area-DLr5w9Dd.js.map +1 -0
- package/dist/_chunks/{search-bar-9Zbew4yM.js → search-bar-fcGqDFW3.js} +30 -30
- package/dist/_chunks/{search-bar-9Zbew4yM.js.map → search-bar-fcGqDFW3.js.map} +1 -1
- package/dist/_chunks/{search-input-CtkWITO2.js → search-input-BVMCONyN.js} +2 -2
- package/dist/_chunks/{search-input-CtkWITO2.js.map → search-input-BVMCONyN.js.map} +1 -1
- package/dist/_chunks/{select-DdAOtomN.js → select-IY_JQa-F.js} +50 -50
- package/dist/_chunks/select-IY_JQa-F.js.map +1 -0
- package/dist/_chunks/{sheet-D7GRhnWw.js → sheet-BhNpLHc9.js} +8 -8
- package/dist/_chunks/sheet-BhNpLHc9.js.map +1 -0
- package/dist/_chunks/{sidebar-Dc2ffrbf.js → sidebar-OVzwN3jE.js} +294 -294
- package/dist/_chunks/sidebar-OVzwN3jE.js.map +1 -0
- package/dist/_chunks/{sign-in-with-alfadocs-button-BotwPDcW.js → sign-in-with-alfadocs-button-BN_FPGHT.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-BotwPDcW.js.map → sign-in-with-alfadocs-button-BN_FPGHT.js.map} +1 -1
- package/dist/_chunks/{skeleton-DAdPFx9d.js → skeleton-dtqyF09N.js} +8 -8
- package/dist/_chunks/skeleton-dtqyF09N.js.map +1 -0
- package/dist/_chunks/{slot-grid-WHc5A8-z.js → slot-grid-D_l5VsHG.js} +5 -5
- package/dist/_chunks/{slot-grid-WHc5A8-z.js.map → slot-grid-D_l5VsHG.js.map} +1 -1
- package/dist/_chunks/{stepper-accordion-2_7Pw0tC.js → stepper-accordion-CGog0JSF.js} +64 -64
- package/dist/_chunks/stepper-accordion-CGog0JSF.js.map +1 -0
- package/dist/_chunks/{stepper-calendar-CWZcFgt_.js → stepper-calendar-_fLOAjus.js} +7 -7
- package/dist/_chunks/{stepper-calendar-CWZcFgt_.js.map → stepper-calendar-_fLOAjus.js.map} +1 -1
- package/dist/_chunks/{switch-DhSORO9C.js → switch-aN2EYxHh.js} +4 -4
- package/dist/_chunks/switch-aN2EYxHh.js.map +1 -0
- package/dist/_chunks/{tabs.agent-BtaNGxRh.js → tabs.agent-BpbVA-Zh.js} +55 -55
- package/dist/_chunks/tabs.agent-BpbVA-Zh.js.map +1 -0
- package/dist/_chunks/{tag--uLKOb9f.js → tag-BqidXKo3.js} +2 -2
- package/dist/_chunks/tag-BqidXKo3.js.map +1 -0
- package/dist/_chunks/{task-card-BeSuntXP.js → task-card-yW7tKlG4.js} +17 -17
- package/dist/_chunks/task-card-yW7tKlG4.js.map +1 -0
- package/dist/_chunks/{task-tray-pRk6u8Ik.js → task-tray-BzahI5FQ.js} +5 -5
- package/dist/_chunks/{task-tray-pRk6u8Ik.js.map → task-tray-BzahI5FQ.js.map} +1 -1
- package/dist/_chunks/{text-area-xf9-6iDf.js → text-area-DmKSd2DG.js} +2 -2
- package/dist/_chunks/text-area-DmKSd2DG.js.map +1 -0
- package/dist/_chunks/{text-input-exh7VD7D.js → text-input-CRHvl5zk.js} +19 -19
- package/dist/_chunks/text-input-CRHvl5zk.js.map +1 -0
- package/dist/_chunks/{theme-toggle-CJgA6G24.js → theme-toggle-COHFwO2H.js} +4 -4
- package/dist/_chunks/{theme-toggle-CJgA6G24.js.map → theme-toggle-COHFwO2H.js.map} +1 -1
- package/dist/_chunks/{timeline-DIueH4TJ.js → timeline-RgAIzpMd.js} +2 -2
- package/dist/_chunks/{timeline-DIueH4TJ.js.map → timeline-RgAIzpMd.js.map} +1 -1
- package/dist/_chunks/{toast-q0SlabGr.js → toast-lOhJDKOH.js} +12 -12
- package/dist/_chunks/{toast-q0SlabGr.js.map → toast-lOhJDKOH.js.map} +1 -1
- package/dist/_chunks/{transcript-panel-DFnhbrlQ.js → transcript-panel-CNbVGG9L.js} +59 -59
- package/dist/_chunks/transcript-panel-CNbVGG9L.js.map +1 -0
- package/dist/_chunks/{visually-hidden-BlkhaZWe.js → visually-hidden-Bw7vBHLm.js} +6 -6
- package/dist/_chunks/{visually-hidden-BlkhaZWe.js.map → visually-hidden-Bw7vBHLm.js.map} +1 -1
- package/dist/_chunks/{warning-stack-DCmO0R07.js → warning-stack-8Pa3pekh.js} +24 -24
- package/dist/_chunks/warning-stack-8Pa3pekh.js.map +1 -0
- package/dist/_chunks/{workflow-map-CAM6Uy_J.js → workflow-map-DGJwVcO-.js} +106 -106
- package/dist/_chunks/workflow-map-DGJwVcO-.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/input-surface.d.ts +11 -11
- 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/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/calendar/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/data-table/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/empty-state/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/icon-button/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/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/privacy-lock/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- 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/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/stepper-calendar/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-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/visually-hidden/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/index.js +72 -72
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/agenda-card-C_hQGErS.js.map +0 -1
- package/dist/_chunks/ai-prompt-input-K94oVLG2.js.map +0 -1
- package/dist/_chunks/alert-rOM4EG0P.js.map +0 -1
- package/dist/_chunks/autocomplete.agent-DRrp-Rsx.js.map +0 -1
- package/dist/_chunks/avatar-Biffh-_H.js.map +0 -1
- package/dist/_chunks/balance-cell-renderer-CiyezQhi.js.map +0 -1
- package/dist/_chunks/breadcrumb-CcZovmIq.js +0 -293
- package/dist/_chunks/breadcrumb-CcZovmIq.js.map +0 -1
- package/dist/_chunks/calendar-BkDeDTaX.js.map +0 -1
- package/dist/_chunks/checkbox-Ni6C_KJg.js.map +0 -1
- package/dist/_chunks/checkbox-group-BFZ4oN5t.js.map +0 -1
- package/dist/_chunks/collapsible-fFMqzpdL.js.map +0 -1
- package/dist/_chunks/color-picker-Cl3KdjJd.js.map +0 -1
- package/dist/_chunks/combobox.agent-DjdivI3X.js.map +0 -1
- package/dist/_chunks/command-palette.agent-BUjzr2ET.js.map +0 -1
- package/dist/_chunks/dialog.agent-C2lP9H0h.js.map +0 -1
- package/dist/_chunks/dropdown-menu-2HgU1Emf.js.map +0 -1
- package/dist/_chunks/icon-button-CNjWCD1X.js.map +0 -1
- package/dist/_chunks/input-surface-D5OMCB1W.js +0 -32
- package/dist/_chunks/input-surface-D5OMCB1W.js.map +0 -1
- package/dist/_chunks/key-value-pair-C9hpjC_B.js.map +0 -1
- package/dist/_chunks/leo-sidebar-CNjZqljo.js.map +0 -1
- package/dist/_chunks/message-card-CZzNO4ov.js.map +0 -1
- package/dist/_chunks/multi-select.agent-BSGEW10d.js.map +0 -1
- package/dist/_chunks/navigation-menu-DxOMvrKM.js +0 -180
- package/dist/_chunks/navigation-menu-DxOMvrKM.js.map +0 -1
- package/dist/_chunks/notification-card-DgW-vVg-.js.map +0 -1
- package/dist/_chunks/number-input-BPPhekLu.js.map +0 -1
- package/dist/_chunks/pagination.agent-CmA0Ocr5.js +0 -380
- package/dist/_chunks/pagination.agent-CmA0Ocr5.js.map +0 -1
- package/dist/_chunks/password-input-DAT5HQth.js.map +0 -1
- package/dist/_chunks/phone-input-BuRe5PyI.js.map +0 -1
- package/dist/_chunks/progress-D4ELgHG3.js.map +0 -1
- package/dist/_chunks/radio-XSSNX3Af.js.map +0 -1
- package/dist/_chunks/radio-group-DBrUOPcy.js.map +0 -1
- package/dist/_chunks/scroll-area-HIq0hJyJ.js.map +0 -1
- package/dist/_chunks/select-DdAOtomN.js.map +0 -1
- package/dist/_chunks/sheet-D7GRhnWw.js.map +0 -1
- package/dist/_chunks/sidebar-Dc2ffrbf.js.map +0 -1
- package/dist/_chunks/skeleton-DAdPFx9d.js.map +0 -1
- package/dist/_chunks/stepper-accordion-2_7Pw0tC.js.map +0 -1
- package/dist/_chunks/switch-DhSORO9C.js.map +0 -1
- package/dist/_chunks/tabs.agent-BtaNGxRh.js.map +0 -1
- package/dist/_chunks/tag--uLKOb9f.js.map +0 -1
- package/dist/_chunks/task-card-BeSuntXP.js.map +0 -1
- package/dist/_chunks/text-area-xf9-6iDf.js.map +0 -1
- package/dist/_chunks/text-input-exh7VD7D.js.map +0 -1
- package/dist/_chunks/transcript-panel-DFnhbrlQ.js.map +0 -1
- package/dist/_chunks/warning-stack-DCmO0R07.js.map +0 -1
- package/dist/_chunks/workflow-map-CAM6Uy_J.js.map +0 -1
package/dist/_chunks/{balance-cell-renderer-CiyezQhi.js → balance-cell-renderer-BRWt3neo.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as r, jsxs as w } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as R, forwardRef as x, useState as G, useEffect as X, useCallback as C, createContext as _e, useContext as je, isValidElement as Q, cloneElement as Y, useRef as ee, useImperativeHandle as Le, useLayoutEffect as Me } from "react";
|
|
3
|
-
import { S as $e } from "./skeleton-
|
|
4
|
-
import { E as Ke } from "./empty-state-
|
|
3
|
+
import { S as $e } from "./skeleton-dtqyF09N.js";
|
|
4
|
+
import { E as Ke } from "./empty-state-DQPtRp2b.js";
|
|
5
5
|
import { c as Ve } from "./index-D2ZczOXr.js";
|
|
6
6
|
import { useTranslation as T } from "react-i18next";
|
|
7
7
|
import { AgGridReact as He } from "ag-grid-react";
|
|
8
8
|
import { ModuleRegistry as qe, AllCommunityModule as We } from "ag-grid-community";
|
|
9
|
-
import { B as Ue } from "./button-
|
|
10
|
-
import { I as P } from "./icon-button-
|
|
11
|
-
import { P as E } from "./popover-
|
|
12
|
-
import { C as Je } from "./checkbox-
|
|
9
|
+
import { B as Ue } from "./button-7mLWcMp_.js";
|
|
10
|
+
import { I as P } from "./icon-button-Wnnde5lc.js";
|
|
11
|
+
import { P as E } from "./popover-DvAtFOi-.js";
|
|
12
|
+
import { C as Je } from "./checkbox-DNK4qS2_.js";
|
|
13
13
|
import { c as te } from "./createLucideIcon-CrFbzy84.js";
|
|
14
14
|
import { P as Ze } from "./printer-CeVEWfQq.js";
|
|
15
15
|
import { F as Xe } from "./file-text-DSNuv2B8.js";
|
|
16
16
|
import { u as Qe } from "./registry-C9nwlNyL.js";
|
|
17
17
|
import { B as Ye } from "./badge-mrstWxve.js";
|
|
18
|
-
import { A as et } from "./avatar-
|
|
19
|
-
import { T as q } from "./tag
|
|
18
|
+
import { A as et } from "./avatar-Dcr6XuDQ.js";
|
|
19
|
+
import { T as q } from "./tag-BqidXKo3.js";
|
|
20
20
|
import { T as tt } from "./tooltip-DHik5yRI.js";
|
|
21
21
|
import { T as W } from "./timestamp-BV2lC-wV.js";
|
|
22
22
|
import { S as at } from "./square-check-big-Jr-0202D.js";
|
|
@@ -30,21 +30,21 @@ import { S as nt } from "./square-CZoGU14v.js";
|
|
|
30
30
|
const rt = [
|
|
31
31
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
32
32
|
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
33
|
-
],
|
|
33
|
+
], st = te("columns-2", rt);
|
|
34
34
|
/**
|
|
35
35
|
* @license lucide-react v1.8.0 - ISC
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the ISC license.
|
|
38
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
const
|
|
40
|
+
const ot = [
|
|
41
41
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
42
42
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
43
43
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
44
|
-
], it = te("download",
|
|
44
|
+
], it = te("download", ot);
|
|
45
45
|
function lt(e) {
|
|
46
46
|
if (!Q(e)) return e;
|
|
47
|
-
const t = e, a = t.props.className ?? "", n = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} size-4`.trim();
|
|
47
|
+
const t = e, a = t.props.className ?? "", n = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} ds:size-4`.trim();
|
|
48
48
|
return Y(t, { className: n, size: t.props.size ?? 16 });
|
|
49
49
|
}
|
|
50
50
|
const ae = _e(null);
|
|
@@ -56,7 +56,7 @@ function z(e) {
|
|
|
56
56
|
);
|
|
57
57
|
return t;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function dt({
|
|
60
60
|
getApi: e,
|
|
61
61
|
selectionCount: t,
|
|
62
62
|
onPrint: a,
|
|
@@ -68,17 +68,17 @@ function ct({
|
|
|
68
68
|
);
|
|
69
69
|
return /* @__PURE__ */ r(ae.Provider, { value: l, children: n });
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const ct = [
|
|
72
72
|
"data-table-toolbar",
|
|
73
|
-
"flex flex-wrap items-center gap-[var(--spacing-sm)]",
|
|
74
|
-
"pb-[var(--spacing-sm)]"
|
|
73
|
+
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
74
|
+
"ds:pb-[var(--spacing-sm)]"
|
|
75
75
|
].join(" "), ne = x(
|
|
76
76
|
({ className: e, children: t, ...a }, n) => /* @__PURE__ */ r(
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
79
79
|
ref: n,
|
|
80
80
|
role: "toolbar",
|
|
81
|
-
className: [
|
|
81
|
+
className: [ct, e ?? ""].join(" ").trim(),
|
|
82
82
|
...a,
|
|
83
83
|
children: t
|
|
84
84
|
}
|
|
@@ -101,7 +101,7 @@ const re = x(
|
|
|
101
101
|
)
|
|
102
102
|
);
|
|
103
103
|
re.displayName = "DataTable.Toolbar.FilterBar";
|
|
104
|
-
const
|
|
104
|
+
const se = x(
|
|
105
105
|
({ className: e, children: t, ...a }, n) => /* @__PURE__ */ r(
|
|
106
106
|
"div",
|
|
107
107
|
{
|
|
@@ -116,12 +116,12 @@ const oe = x(
|
|
|
116
116
|
}
|
|
117
117
|
)
|
|
118
118
|
);
|
|
119
|
-
|
|
120
|
-
const
|
|
119
|
+
se.displayName = "DataTable.Toolbar.Actions";
|
|
120
|
+
const oe = x(
|
|
121
121
|
({ label: e, onExport: t, intent: a = "outline", ...n }, l) => {
|
|
122
|
-
const { t: m } = T(), { getApi: u } = z("DataTable.Toolbar.ExportCsv"),
|
|
123
|
-
const
|
|
124
|
-
|
|
122
|
+
const { t: m } = T(), { getApi: u } = z("DataTable.Toolbar.ExportCsv"), d = C(() => {
|
|
123
|
+
const o = u();
|
|
124
|
+
o && (t ? t(o) : o.exportDataAsCsv());
|
|
125
125
|
}, [u, t]);
|
|
126
126
|
return /* @__PURE__ */ r(
|
|
127
127
|
P,
|
|
@@ -131,13 +131,13 @@ const se = x(
|
|
|
131
131
|
intent: a,
|
|
132
132
|
icon: /* @__PURE__ */ r(it, { "aria-hidden": !0 }),
|
|
133
133
|
tooltip: e ?? m("dataTable.exportCsv"),
|
|
134
|
-
onClick:
|
|
134
|
+
onClick: d,
|
|
135
135
|
...n
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
|
-
|
|
140
|
+
oe.displayName = "DataTable.Toolbar.ExportCsv";
|
|
141
141
|
const ie = x(
|
|
142
142
|
({ label: e, onClick: t, intent: a = "outline", ...n }, l) => {
|
|
143
143
|
const { t: m } = T(), { getApi: u } = z("DataTable.Toolbar.ExportPdf");
|
|
@@ -181,58 +181,58 @@ function ut(e) {
|
|
|
181
181
|
visible: a.isVisible()
|
|
182
182
|
}).filter((a) => a !== null) : [];
|
|
183
183
|
}
|
|
184
|
-
const
|
|
184
|
+
const de = ({ label: e }) => {
|
|
185
185
|
const { t } = T(), { getApi: a } = z("DataTable.Toolbar.ColumnToggle"), [n, l] = G(!1), [m, u] = G([]);
|
|
186
186
|
X(() => {
|
|
187
187
|
n && u(ut(a()));
|
|
188
188
|
}, [n, a]);
|
|
189
|
-
const
|
|
190
|
-
(
|
|
189
|
+
const d = C(
|
|
190
|
+
(c, f) => {
|
|
191
191
|
const y = a();
|
|
192
|
-
y && (y.setColumnsVisible([
|
|
193
|
-
(D) => D.map((S) => S.colId ===
|
|
192
|
+
y && (y.setColumnsVisible([c], f), u(
|
|
193
|
+
(D) => D.map((S) => S.colId === c ? { ...S, visible: f } : S)
|
|
194
194
|
));
|
|
195
195
|
},
|
|
196
196
|
[a]
|
|
197
|
-
),
|
|
197
|
+
), o = e ?? t("dataTable.columnToggle");
|
|
198
198
|
return /* @__PURE__ */ w(E.Root, { open: n, onOpenChange: l, children: [
|
|
199
199
|
/* @__PURE__ */ r(E.Trigger, { asChild: !0, children: /* @__PURE__ */ r(
|
|
200
200
|
P,
|
|
201
201
|
{
|
|
202
202
|
type: "button",
|
|
203
203
|
intent: "outline",
|
|
204
|
-
icon: /* @__PURE__ */ r(
|
|
205
|
-
"aria-label":
|
|
204
|
+
icon: /* @__PURE__ */ r(st, { "aria-hidden": !0 }),
|
|
205
|
+
"aria-label": o,
|
|
206
206
|
"aria-haspopup": "dialog"
|
|
207
207
|
}
|
|
208
208
|
) }),
|
|
209
209
|
/* @__PURE__ */ w(E.Content, { size: "sm", align: "end", children: [
|
|
210
|
-
/* @__PURE__ */ r(E.Heading, { children:
|
|
210
|
+
/* @__PURE__ */ r(E.Heading, { children: o }),
|
|
211
211
|
/* @__PURE__ */ r(
|
|
212
212
|
"ul",
|
|
213
213
|
{
|
|
214
214
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
215
|
-
"aria-label":
|
|
216
|
-
children: m.map((
|
|
215
|
+
"aria-label": o,
|
|
216
|
+
children: m.map((c) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(
|
|
217
217
|
Je,
|
|
218
218
|
{
|
|
219
|
-
label:
|
|
220
|
-
checked:
|
|
221
|
-
onCheckedChange: (f) => c
|
|
219
|
+
label: c.displayName,
|
|
220
|
+
checked: c.visible,
|
|
221
|
+
onCheckedChange: (f) => d(c.colId, f === !0)
|
|
222
222
|
}
|
|
223
|
-
) },
|
|
223
|
+
) }, c.colId))
|
|
224
224
|
}
|
|
225
225
|
)
|
|
226
226
|
] })
|
|
227
227
|
] });
|
|
228
228
|
};
|
|
229
|
-
|
|
230
|
-
const
|
|
229
|
+
de.displayName = "DataTable.Toolbar.ColumnToggle";
|
|
230
|
+
const ce = x(
|
|
231
231
|
({ label: e, icon: t, onClick: a, variant: n = "default", size: l = "sm", ...m }, u) => {
|
|
232
|
-
const { t:
|
|
232
|
+
const { t: d } = T(), { getApi: o, selectionCount: c } = z(
|
|
233
233
|
"DataTable.Toolbar.BulkAction"
|
|
234
234
|
);
|
|
235
|
-
return
|
|
235
|
+
return c === 0 ? null : /* @__PURE__ */ w(
|
|
236
236
|
Ue,
|
|
237
237
|
{
|
|
238
238
|
ref: u,
|
|
@@ -240,8 +240,8 @@ const de = x(
|
|
|
240
240
|
intent: n === "destructive" ? "destructive" : "secondary",
|
|
241
241
|
size: l,
|
|
242
242
|
startIcon: lt(t),
|
|
243
|
-
onClick: () => a(
|
|
244
|
-
"aria-label": `${e} (${
|
|
243
|
+
onClick: () => a(o()),
|
|
244
|
+
"aria-label": `${e} (${d("dataTable.bulkAction", { count: c })})`,
|
|
245
245
|
...m,
|
|
246
246
|
children: [
|
|
247
247
|
/* @__PURE__ */ r("span", { children: e }),
|
|
@@ -250,7 +250,7 @@ const de = x(
|
|
|
250
250
|
{
|
|
251
251
|
"aria-hidden": "true",
|
|
252
252
|
className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
|
|
253
|
-
children:
|
|
253
|
+
children: d("dataTable.bulkAction", { count: c })
|
|
254
254
|
}
|
|
255
255
|
)
|
|
256
256
|
]
|
|
@@ -258,15 +258,15 @@ const de = x(
|
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
260
|
);
|
|
261
|
-
|
|
261
|
+
ce.displayName = "DataTable.Toolbar.BulkAction";
|
|
262
262
|
const B = Object.assign(ne, {
|
|
263
263
|
FilterBar: re,
|
|
264
|
-
Actions:
|
|
265
|
-
ExportCsv:
|
|
264
|
+
Actions: se,
|
|
265
|
+
ExportCsv: oe,
|
|
266
266
|
ExportPdf: ie,
|
|
267
267
|
Print: le,
|
|
268
|
-
ColumnToggle:
|
|
269
|
-
BulkAction:
|
|
268
|
+
ColumnToggle: de,
|
|
269
|
+
BulkAction: ce
|
|
270
270
|
}), mt = {
|
|
271
271
|
id: "data-table",
|
|
272
272
|
capabilities: [
|
|
@@ -482,9 +482,9 @@ function yt(e, t) {
|
|
|
482
482
|
rowSelection: l,
|
|
483
483
|
pagination: m = !1,
|
|
484
484
|
paginationPageSize: u = 25,
|
|
485
|
-
serverSideDatasource:
|
|
486
|
-
gridId:
|
|
487
|
-
onSelectionChanged:
|
|
485
|
+
serverSideDatasource: d,
|
|
486
|
+
gridId: o,
|
|
487
|
+
onSelectionChanged: c,
|
|
488
488
|
onSortChanged: f,
|
|
489
489
|
onFilterChanged: y,
|
|
490
490
|
noRowsOverlay: D,
|
|
@@ -492,7 +492,7 @@ function yt(e, t) {
|
|
|
492
492
|
gridOptions: O,
|
|
493
493
|
density: H,
|
|
494
494
|
bordered: me,
|
|
495
|
-
heightClass: pe = "h-[500px]",
|
|
495
|
+
heightClass: pe = "ds:h-[500px]",
|
|
496
496
|
className: fe,
|
|
497
497
|
getRowClass: ge,
|
|
498
498
|
pinnedBottomRowData: be,
|
|
@@ -502,23 +502,23 @@ function yt(e, t) {
|
|
|
502
502
|
() => ({
|
|
503
503
|
getSelection: () => {
|
|
504
504
|
var p;
|
|
505
|
-
const
|
|
506
|
-
if (!
|
|
505
|
+
const s = (p = g.current) == null ? void 0 : p.api;
|
|
506
|
+
if (!s) return [];
|
|
507
507
|
const i = [];
|
|
508
|
-
for (const h of
|
|
508
|
+
for (const h of s.getSelectedNodes())
|
|
509
509
|
h.id != null && i.push(h.id);
|
|
510
510
|
return i;
|
|
511
511
|
},
|
|
512
|
-
setSelection: (
|
|
512
|
+
setSelection: (s) => {
|
|
513
513
|
var h;
|
|
514
514
|
const i = (h = g.current) == null ? void 0 : h.api;
|
|
515
515
|
if (!i) return;
|
|
516
|
-
const p = new Set(
|
|
516
|
+
const p = new Set(s);
|
|
517
517
|
i.forEachNode((b) => {
|
|
518
518
|
b.id != null && b.setSelected(p.has(b.id));
|
|
519
519
|
});
|
|
520
520
|
},
|
|
521
|
-
selectRange: (
|
|
521
|
+
selectRange: (s, i) => {
|
|
522
522
|
var I;
|
|
523
523
|
const p = (I = g.current) == null ? void 0 : I.api;
|
|
524
524
|
if (!p) return;
|
|
@@ -526,7 +526,7 @@ function yt(e, t) {
|
|
|
526
526
|
p.forEachNodeAfterFilterAndSort((A) => {
|
|
527
527
|
A.id != null && h.push(A.id);
|
|
528
528
|
});
|
|
529
|
-
const b = h.indexOf(
|
|
529
|
+
const b = h.indexOf(s), v = h.indexOf(i);
|
|
530
530
|
if (b < 0 || v < 0) return;
|
|
531
531
|
const [N, K] = b <= v ? [b, v] : [v, b], V = new Set(h.slice(N, K + 1));
|
|
532
532
|
p.forEachNode((A) => {
|
|
@@ -534,48 +534,48 @@ function yt(e, t) {
|
|
|
534
534
|
});
|
|
535
535
|
},
|
|
536
536
|
clearSelection: () => {
|
|
537
|
-
var
|
|
538
|
-
(i = (
|
|
537
|
+
var s, i;
|
|
538
|
+
(i = (s = g.current) == null ? void 0 : s.api) == null || i.deselectAll();
|
|
539
539
|
},
|
|
540
540
|
getFilter: () => {
|
|
541
|
-
var
|
|
542
|
-
return ((i = (
|
|
541
|
+
var s, i;
|
|
542
|
+
return ((i = (s = g.current) == null ? void 0 : s.api) == null ? void 0 : i.getFilterModel()) ?? {};
|
|
543
543
|
},
|
|
544
|
-
setFilter: (
|
|
544
|
+
setFilter: (s) => {
|
|
545
545
|
var i, p;
|
|
546
|
-
(p = (i = g.current) == null ? void 0 : i.api) == null || p.setFilterModel(
|
|
546
|
+
(p = (i = g.current) == null ? void 0 : i.api) == null || p.setFilterModel(s);
|
|
547
547
|
},
|
|
548
548
|
getSort: () => {
|
|
549
549
|
var i;
|
|
550
|
-
const
|
|
551
|
-
return
|
|
550
|
+
const s = (i = g.current) == null ? void 0 : i.api;
|
|
551
|
+
return s ? s.getColumnState().filter((p) => p.sort === "asc" || p.sort === "desc").map((p) => ({ colId: p.colId, sort: p.sort })) : [];
|
|
552
552
|
},
|
|
553
|
-
setSort: (
|
|
553
|
+
setSort: (s) => {
|
|
554
554
|
var h;
|
|
555
555
|
const i = (h = g.current) == null ? void 0 : h.api;
|
|
556
556
|
if (!i) return;
|
|
557
557
|
const p = i.getColumnState().map((b) => {
|
|
558
|
-
const v =
|
|
558
|
+
const v = s.find((N) => N.colId === b.colId);
|
|
559
559
|
return { ...b, sort: v ? v.sort : null };
|
|
560
560
|
});
|
|
561
561
|
i.applyColumnState({ state: p, defaultState: { sort: null } });
|
|
562
562
|
},
|
|
563
563
|
getCurrentPage: () => {
|
|
564
|
-
var
|
|
565
|
-
return ((i = (
|
|
564
|
+
var s, i;
|
|
565
|
+
return ((i = (s = g.current) == null ? void 0 : s.api) == null ? void 0 : i.paginationGetCurrentPage()) ?? 0;
|
|
566
566
|
},
|
|
567
|
-
goToPage: (
|
|
567
|
+
goToPage: (s) => {
|
|
568
568
|
var i, p;
|
|
569
|
-
(p = (i = g.current) == null ? void 0 : i.api) == null || p.paginationGoToPage(
|
|
569
|
+
(p = (i = g.current) == null ? void 0 : i.api) == null || p.paginationGoToPage(s);
|
|
570
570
|
},
|
|
571
571
|
getRawApi: () => {
|
|
572
|
-
var
|
|
573
|
-
return (
|
|
572
|
+
var s;
|
|
573
|
+
return (s = g.current) == null ? void 0 : s.api;
|
|
574
574
|
}
|
|
575
575
|
}),
|
|
576
576
|
[]
|
|
577
577
|
);
|
|
578
|
-
Le(t, () => M, [M]), Qe(mt, M,
|
|
578
|
+
Le(t, () => M, [M]), Qe(mt, M, o);
|
|
579
579
|
const Ce = ve.dir() === "rtl", we = n === void 0, xe = R(
|
|
580
580
|
() => window.matchMedia("(prefers-reduced-motion: reduce)").matches,
|
|
581
581
|
[]
|
|
@@ -589,22 +589,22 @@ function yt(e, t) {
|
|
|
589
589
|
headerCheckbox: !0,
|
|
590
590
|
checkboxes: !0
|
|
591
591
|
};
|
|
592
|
-
}, [l]), Re =
|
|
592
|
+
}, [l]), Re = d ? "serverSide" : "clientSide", ke = C(() => {
|
|
593
593
|
var i;
|
|
594
|
-
if (!
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
}, [
|
|
598
|
-
var
|
|
599
|
-
|
|
600
|
-
}, [
|
|
594
|
+
if (!o || !((i = g.current) != null && i.api)) return;
|
|
595
|
+
const s = ht(o);
|
|
596
|
+
s && g.current.api.applyColumnState({ state: s, applyOrder: !0 });
|
|
597
|
+
}, [o]), $ = C(() => {
|
|
598
|
+
var s;
|
|
599
|
+
o && ((s = g.current) != null && s.api) && vt(o, g.current.api);
|
|
600
|
+
}, [o]), Ae = C(() => {
|
|
601
601
|
var p;
|
|
602
|
-
const
|
|
603
|
-
if (!
|
|
604
|
-
const i =
|
|
605
|
-
ye(i.length),
|
|
606
|
-
}, [
|
|
607
|
-
(
|
|
602
|
+
const s = (p = g.current) == null ? void 0 : p.api;
|
|
603
|
+
if (!s) return;
|
|
604
|
+
const i = s.getSelectedRows();
|
|
605
|
+
ye(i.length), c == null || c(i);
|
|
606
|
+
}, [c]), De = C(
|
|
607
|
+
(s) => {
|
|
608
608
|
var p;
|
|
609
609
|
const i = (p = g.current) == null ? void 0 : p.api;
|
|
610
610
|
if (i) {
|
|
@@ -622,24 +622,24 @@ function yt(e, t) {
|
|
|
622
622
|
} else
|
|
623
623
|
L("");
|
|
624
624
|
}
|
|
625
|
-
f == null || f(
|
|
625
|
+
f == null || f(s);
|
|
626
626
|
},
|
|
627
627
|
[a, f, F]
|
|
628
628
|
), Ie = C(
|
|
629
|
-
(
|
|
630
|
-
y == null || y(
|
|
629
|
+
(s) => {
|
|
630
|
+
y == null || y(s);
|
|
631
631
|
},
|
|
632
632
|
[y]
|
|
633
633
|
);
|
|
634
634
|
X(() => {
|
|
635
635
|
if (!j) return;
|
|
636
|
-
const
|
|
637
|
-
return () => clearTimeout(
|
|
636
|
+
const s = setTimeout(() => L(""), 3e3);
|
|
637
|
+
return () => clearTimeout(s);
|
|
638
638
|
}, [j]);
|
|
639
639
|
const Pe = D ?? bt, ze = S ?? gt, Fe = C(
|
|
640
640
|
() => {
|
|
641
|
-
var
|
|
642
|
-
return (
|
|
641
|
+
var s;
|
|
642
|
+
return (s = g.current) == null ? void 0 : s.api;
|
|
643
643
|
},
|
|
644
644
|
[]
|
|
645
645
|
), Ee = C(() => {
|
|
@@ -655,11 +655,11 @@ function yt(e, t) {
|
|
|
655
655
|
className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
656
656
|
"aria-busy": we ? "true" : void 0,
|
|
657
657
|
"data-component": "data-table",
|
|
658
|
-
"data-component-id":
|
|
658
|
+
"data-component-id": o,
|
|
659
659
|
"data-print-mode": k ? "true" : void 0,
|
|
660
660
|
children: [
|
|
661
661
|
!k && /* @__PURE__ */ r(
|
|
662
|
-
|
|
662
|
+
dt,
|
|
663
663
|
{
|
|
664
664
|
getApi: Fe,
|
|
665
665
|
selectionCount: _,
|
|
@@ -675,7 +675,7 @@ function yt(e, t) {
|
|
|
675
675
|
columnDefs: a,
|
|
676
676
|
rowData: n,
|
|
677
677
|
rowModelType: Re,
|
|
678
|
-
serverSideDatasource:
|
|
678
|
+
serverSideDatasource: d,
|
|
679
679
|
rowSelection: Ne,
|
|
680
680
|
pagination: Oe,
|
|
681
681
|
paginationPageSize: u,
|
|
@@ -717,8 +717,8 @@ function aa(e, t, a) {
|
|
|
717
717
|
for (const l of t) {
|
|
718
718
|
let m = 0;
|
|
719
719
|
for (const u of e ?? []) {
|
|
720
|
-
const
|
|
721
|
-
Number.isFinite(
|
|
720
|
+
const d = u[l], o = typeof d == "number" ? d : Number(d);
|
|
721
|
+
Number.isFinite(o) && (m += o);
|
|
722
722
|
}
|
|
723
723
|
n[l] = m;
|
|
724
724
|
}
|
|
@@ -736,7 +736,7 @@ function ra(e) {
|
|
|
736
736
|
/* @__PURE__ */ r("span", { children: t.name })
|
|
737
737
|
] }) : null;
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function sa(e) {
|
|
740
740
|
const { value: t, maxVisible: a = 3 } = e, { t: n } = T();
|
|
741
741
|
if (!Array.isArray(t) || t.length === 0) return null;
|
|
742
742
|
const l = t.slice(0, a), m = t.length - a;
|
|
@@ -764,7 +764,7 @@ const Tt = {
|
|
|
764
764
|
minute: "2-digit"
|
|
765
765
|
}
|
|
766
766
|
};
|
|
767
|
-
function
|
|
767
|
+
function oa(e) {
|
|
768
768
|
const { value: t, format: a = "date", options: n } = e;
|
|
769
769
|
return t == null || t === "" ? null : a === "relative" && !n ? /* @__PURE__ */ r(W, { value: t, shape: "bare" }) : /* @__PURE__ */ r(
|
|
770
770
|
W,
|
|
@@ -782,14 +782,14 @@ function Ct(e) {
|
|
|
782
782
|
return Number.isFinite(t) ? t : null;
|
|
783
783
|
}
|
|
784
784
|
function ia(e) {
|
|
785
|
-
const { value: t, currency: a = "EUR", colorNegative: n, strikethrough: l, options: m } = e, { i18n: u } = T(),
|
|
786
|
-
if (
|
|
787
|
-
const
|
|
785
|
+
const { value: t, currency: a = "EUR", colorNegative: n, strikethrough: l, options: m } = e, { i18n: u } = T(), d = Ct(t);
|
|
786
|
+
if (d === null) return null;
|
|
787
|
+
const o = u.language || "en", c = new Intl.NumberFormat(o, {
|
|
788
788
|
style: "currency",
|
|
789
789
|
currency: a,
|
|
790
790
|
...m
|
|
791
|
-
}).format(
|
|
792
|
-
return n &&
|
|
791
|
+
}).format(d), f = ["ds:tabular-nums"];
|
|
792
|
+
return n && d < 0 && f.push("ds:text-[color:var(--destructive)]"), l && f.push("line-through"), /* @__PURE__ */ r("span", { className: f.join(" "), children: c });
|
|
793
793
|
}
|
|
794
794
|
function wt(e) {
|
|
795
795
|
if (!Q(e)) return e;
|
|
@@ -803,7 +803,7 @@ function la(e) {
|
|
|
803
803
|
const { data: t, actions: a } = e;
|
|
804
804
|
return t ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: a.map((n, l) => {
|
|
805
805
|
if (U(n.hidden, t)) return null;
|
|
806
|
-
const m = U(n.disabled, t), u = m && n.disabledReason ? n.disabledReason : n.label,
|
|
806
|
+
const m = U(n.disabled, t), u = m && n.disabledReason ? n.disabledReason : n.label, d = n.variant === "destructive";
|
|
807
807
|
return /* @__PURE__ */ r(
|
|
808
808
|
P,
|
|
809
809
|
{
|
|
@@ -813,10 +813,10 @@ function la(e) {
|
|
|
813
813
|
tooltip: u,
|
|
814
814
|
"aria-label": n.label,
|
|
815
815
|
disabled: m,
|
|
816
|
-
onClick: (
|
|
817
|
-
|
|
816
|
+
onClick: (o) => {
|
|
817
|
+
o.stopPropagation(), n.onClick(t);
|
|
818
818
|
},
|
|
819
|
-
className:
|
|
819
|
+
className: d ? "ds:text-[color:var(--destructive)] ds:hover:text-[color:var(--destructive-hover)]" : void 0
|
|
820
820
|
},
|
|
821
821
|
l
|
|
822
822
|
);
|
|
@@ -828,17 +828,17 @@ function J(e, t) {
|
|
|
828
828
|
function xt(e) {
|
|
829
829
|
return /^(https?:\/\/|\/|#|mailto:|tel:)/i.test(e) ? e : "#";
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function da(e) {
|
|
832
832
|
const { value: t, data: a, href: n, onClick: l, secondary: m } = e;
|
|
833
833
|
if (!a) return null;
|
|
834
|
-
const u = J(n, a),
|
|
835
|
-
"text-[color:var(--primary)]",
|
|
836
|
-
"hover:underline",
|
|
837
|
-
"focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
838
|
-
"focus-visible:outline-solid",
|
|
839
|
-
"focus-visible:outline-[color:var(--ring)]",
|
|
840
|
-
"focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
841
|
-
"rounded-[var(--radius-sm)]"
|
|
834
|
+
const u = J(n, a), d = J(m, a), o = t == null || t === "" ? "" : String(t), c = [
|
|
835
|
+
"ds:text-[color:var(--primary)]",
|
|
836
|
+
"ds:hover:underline",
|
|
837
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
838
|
+
"ds:focus-visible:outline-solid",
|
|
839
|
+
"ds:focus-visible:outline-[color:var(--ring)]",
|
|
840
|
+
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
841
|
+
"ds:rounded-[var(--radius-sm)]"
|
|
842
842
|
].join(" "), f = (y) => {
|
|
843
843
|
l && (u || y.preventDefault(), y.stopPropagation(), l(a));
|
|
844
844
|
};
|
|
@@ -848,34 +848,34 @@ function ca(e) {
|
|
|
848
848
|
{
|
|
849
849
|
href: xt(u),
|
|
850
850
|
onClick: f,
|
|
851
|
-
className:
|
|
852
|
-
children:
|
|
851
|
+
className: c,
|
|
852
|
+
children: o
|
|
853
853
|
}
|
|
854
854
|
) : /* @__PURE__ */ r(
|
|
855
855
|
"button",
|
|
856
856
|
{
|
|
857
857
|
type: "button",
|
|
858
858
|
onClick: f,
|
|
859
|
-
className: ["ds:appearance-none ds:bg-transparent ds:p-0 ds:text-start",
|
|
860
|
-
children:
|
|
859
|
+
className: ["ds:appearance-none ds:bg-transparent ds:p-0 ds:text-start", c].join(" "),
|
|
860
|
+
children: o
|
|
861
861
|
}
|
|
862
862
|
),
|
|
863
|
-
|
|
863
|
+
d ? /* @__PURE__ */ r("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: d }) : null
|
|
864
864
|
] });
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function ca(e) {
|
|
867
867
|
const {
|
|
868
868
|
value: t,
|
|
869
869
|
data: a,
|
|
870
870
|
onToggle: n,
|
|
871
871
|
trueIcon: l,
|
|
872
872
|
falseIcon: m,
|
|
873
|
-
trueClass: u = "text-[color:var(--success)]",
|
|
874
|
-
falseClass:
|
|
875
|
-
label:
|
|
876
|
-
} = e, { t:
|
|
873
|
+
trueClass: u = "ds:text-[color:var(--success)]",
|
|
874
|
+
falseClass: d = "ds:text-[color:var(--muted-foreground)]",
|
|
875
|
+
label: o
|
|
876
|
+
} = e, { t: c } = T();
|
|
877
877
|
if (!a) return null;
|
|
878
|
-
const f = !!t, y = f ? l ?? /* @__PURE__ */ r(at, { "aria-hidden": !0, className: "ds:size-4" }) : m ?? /* @__PURE__ */ r(nt, { "aria-hidden": !0, className: "ds:size-4" }), D = f ? u :
|
|
878
|
+
const f = !!t, y = f ? l ?? /* @__PURE__ */ r(at, { "aria-hidden": !0, className: "ds:size-4" }) : m ?? /* @__PURE__ */ r(nt, { "aria-hidden": !0, className: "ds:size-4" }), D = f ? u : d, S = o ?? c(f ? "inputs.switch.on" : "inputs.switch.off");
|
|
879
879
|
return /* @__PURE__ */ r(
|
|
880
880
|
"button",
|
|
881
881
|
{
|
|
@@ -902,9 +902,9 @@ function da(e) {
|
|
|
902
902
|
);
|
|
903
903
|
}
|
|
904
904
|
const St = {
|
|
905
|
-
sm: "size-[var(--icon-size-sm)]",
|
|
906
|
-
md: "size-[var(--icon-size-md)]",
|
|
907
|
-
lg: "size-[var(--icon-size-lg)]"
|
|
905
|
+
sm: "ds:size-[var(--icon-size-sm)]",
|
|
906
|
+
md: "ds:size-[var(--icon-size-md)]",
|
|
907
|
+
lg: "ds:size-[var(--icon-size-lg)]"
|
|
908
908
|
};
|
|
909
909
|
function Z(e, t) {
|
|
910
910
|
if (!e || typeof e != "object") return;
|
|
@@ -919,11 +919,11 @@ function Dt(e) {
|
|
|
919
919
|
return t;
|
|
920
920
|
}
|
|
921
921
|
function ua(e) {
|
|
922
|
-
const { data: t, colorField: a, size: n = "md", labelField: l } = e, m = ee(null), u = t ? Z(t, a) : void 0,
|
|
922
|
+
const { data: t, colorField: a, size: n = "md", labelField: l } = e, m = ee(null), u = t ? Z(t, a) : void 0, d = Dt(u), o = t && l ? Z(t, l) : void 0;
|
|
923
923
|
return Me(() => {
|
|
924
|
-
const
|
|
925
|
-
|
|
926
|
-
}, [
|
|
924
|
+
const c = m.current;
|
|
925
|
+
c && (d ? c.style.setProperty("--data-table-dot-color", d) : c.style.removeProperty("--data-table-dot-color"));
|
|
926
|
+
}, [d]), d ? /* @__PURE__ */ w("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
927
927
|
/* @__PURE__ */ r(
|
|
928
928
|
"span",
|
|
929
929
|
{
|
|
@@ -937,7 +937,7 @@ function ua(e) {
|
|
|
937
937
|
].join(" ")
|
|
938
938
|
}
|
|
939
939
|
),
|
|
940
|
-
|
|
940
|
+
o ? /* @__PURE__ */ r("span", { children: o }) : null
|
|
941
941
|
] }) : null;
|
|
942
942
|
}
|
|
943
943
|
function It(e, t) {
|
|
@@ -949,31 +949,31 @@ function ma(e) {
|
|
|
949
949
|
const { data: t, lines: a, currency: n = "EUR", highlightNegative: l } = e, { i18n: m } = T();
|
|
950
950
|
if (!t) return null;
|
|
951
951
|
const u = m.language || "en";
|
|
952
|
-
return /* @__PURE__ */ r("dl", { className: "ds:grid ds:grid-cols-[auto_1fr] ds:gap-x-[var(--spacing-sm)] ds:gap-y-0 type-meta ds:leading-tight", children: a.map((
|
|
953
|
-
const
|
|
954
|
-
if (
|
|
955
|
-
let
|
|
956
|
-
switch (
|
|
952
|
+
return /* @__PURE__ */ r("dl", { className: "ds:grid ds:grid-cols-[auto_1fr] ds:gap-x-[var(--spacing-sm)] ds:gap-y-0 type-meta ds:leading-tight", children: a.map((d) => {
|
|
953
|
+
const o = It(t, d.valueField);
|
|
954
|
+
if (o === null) return null;
|
|
955
|
+
let c;
|
|
956
|
+
switch (d.format ?? "number") {
|
|
957
957
|
case "currency":
|
|
958
|
-
|
|
958
|
+
c = new Intl.NumberFormat(u, {
|
|
959
959
|
style: "currency",
|
|
960
960
|
currency: n
|
|
961
|
-
}).format(
|
|
961
|
+
}).format(o);
|
|
962
962
|
break;
|
|
963
963
|
case "percent":
|
|
964
|
-
|
|
964
|
+
c = new Intl.NumberFormat(u, {
|
|
965
965
|
style: "percent",
|
|
966
966
|
maximumFractionDigits: 1
|
|
967
|
-
}).format(
|
|
967
|
+
}).format(o / 100);
|
|
968
968
|
break;
|
|
969
969
|
default:
|
|
970
|
-
|
|
970
|
+
c = new Intl.NumberFormat(u).format(o);
|
|
971
971
|
}
|
|
972
|
-
const f = ["tabular-nums", "text-end", "font-medium"];
|
|
973
|
-
return l &&
|
|
974
|
-
/* @__PURE__ */ r("dt", { className: "ds:text-[color:var(--muted-foreground)]", children:
|
|
975
|
-
/* @__PURE__ */ r("dd", { className: f.join(" "), children:
|
|
976
|
-
] },
|
|
972
|
+
const f = ["ds:tabular-nums", "ds:text-end", "ds:font-medium"];
|
|
973
|
+
return l && o < 0 && f.push("ds:text-[color:var(--destructive)]"), /* @__PURE__ */ w("div", { className: "ds:contents", children: [
|
|
974
|
+
/* @__PURE__ */ r("dt", { className: "ds:text-[color:var(--muted-foreground)]", children: d.label }),
|
|
975
|
+
/* @__PURE__ */ r("dd", { className: f.join(" "), children: c })
|
|
976
|
+
] }, d.valueField);
|
|
977
977
|
}) });
|
|
978
978
|
}
|
|
979
979
|
export {
|
|
@@ -981,16 +981,16 @@ export {
|
|
|
981
981
|
ma as B,
|
|
982
982
|
ua as C,
|
|
983
983
|
ta as D,
|
|
984
|
-
|
|
984
|
+
da as L,
|
|
985
985
|
na as S,
|
|
986
|
-
|
|
986
|
+
sa as T,
|
|
987
987
|
ra as U,
|
|
988
988
|
ia as a,
|
|
989
|
-
|
|
990
|
-
|
|
989
|
+
oa as b,
|
|
990
|
+
ca as c,
|
|
991
991
|
B as d,
|
|
992
|
-
|
|
992
|
+
dt as e,
|
|
993
993
|
mt as f,
|
|
994
994
|
aa as u
|
|
995
995
|
};
|
|
996
|
-
//# sourceMappingURL=balance-cell-renderer-
|
|
996
|
+
//# sourceMappingURL=balance-cell-renderer-BRWt3neo.js.map
|