@alfadocs/ui-kit 0.70.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/address-fields-CPbFJ8e8.js +246 -0
- package/dist/_chunks/{ai-prompt-input-CuhTo9mh.js → ai-prompt-input-V4DdOeqv.js} +2 -2
- package/dist/_chunks/{alia-sidebar-B47qRQb5.js → alia-sidebar-DvIUzIX9.js} +107 -106
- package/dist/_chunks/{anatomy-scheme-CJB6dI6p.js → anatomy-scheme-CXSk11UJ.js} +2 -2
- package/dist/_chunks/{app-frame-BYx1gcV7.js → app-frame-DIEMIC5V.js} +67 -56
- package/dist/_chunks/{appointment-card-C06aZqA7.js → appointment-card-DVaeJNVB.js} +82 -98
- package/dist/_chunks/{appointment-timeline-BJM0S_Fg.js → appointment-timeline-PJgnrjFb.js} +159 -157
- package/dist/_chunks/{appointment-tray-DRRw5ROi.js → appointment-tray-B16QPGbm.js} +2 -2
- package/dist/_chunks/{audio-recorder-Cpdk5qpQ.js → audio-recorder-DNDsOLqO.js} +2 -2
- package/dist/_chunks/{autocomplete-DOeGouCL.js → autocomplete-BrONKN8l.js} +168 -146
- package/dist/_chunks/{bishop-score-DnYWtZa_.js → bishop-score-Cym_TeQY.js} +2 -2
- package/dist/_chunks/{booking-DUBI0oqt.js → booking-C7do4vaR.js} +4 -4
- package/dist/_chunks/{button-group-Ciq6J4IW.js → button-group-CvEnVzY7.js} +32 -35
- package/dist/_chunks/{care-plan-card-C5sTfY9G.js → care-plan-card-DzPDYgtK.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CXnxGCWA.js → care-plan-entry-card-CEnQy7YP.js} +3 -3
- package/dist/_chunks/care-plan-header-DcXFXWit.js +198 -0
- package/dist/_chunks/{chat-message-3V54YipB.js → chat-message-DzpcJR-q.js} +25 -23
- package/dist/_chunks/city-input-Dkgaak7I.js +169 -0
- package/dist/_chunks/clipboard-list-S7s-MXQq.js +25 -0
- package/dist/_chunks/{combobox-Clum7gJ1.js → combobox-DnqSF0IH.js} +131 -114
- package/dist/_chunks/connection-status-CY1HV8Wg.js +108 -0
- package/dist/_chunks/control-room-rail-FAQZrGVL.js +333 -0
- package/dist/_chunks/country-select-BwUZQvTa.js +709 -0
- package/dist/_chunks/editable-currency-cell-renderer-CGELrkIj.js +410 -0
- package/dist/_chunks/{entity-card-9_62gY7l.js → entity-card-DmrgYSEX.js} +4 -4
- package/dist/_chunks/entity-summary-CaM1Y-xE.js +291 -0
- package/dist/_chunks/field-array-siUZzfYe.js +146 -0
- package/dist/_chunks/{field-value-NXYczdpO.js → field-value-3jMM0uDx.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CF2ISaYQ.js → gestational-age-calculator-DKzEV5Qi.js} +2 -2
- package/dist/_chunks/iban-input-B0TWzR1R.js +436 -0
- package/dist/_chunks/icon-picker-0B7KhrF1.js +272 -0
- package/dist/_chunks/image-cropper-D9jqJy19.js +367 -0
- package/dist/_chunks/{link-cell-renderer-CTXqtXV-.js → link-cell-renderer-De_SLjSq.js} +262 -261
- package/dist/_chunks/list-checks-BUs75d_o.js +18 -0
- package/dist/_chunks/{marketplace-app-shell-Skhfp6vK.js → marketplace-app-shell-BGqkywsi.js} +3 -3
- package/dist/_chunks/message-card-DsHFFiL1.js +319 -0
- package/dist/_chunks/{message-tray-DwrBLJlf.js → message-tray-C0a6CL1_.js} +172 -135
- package/dist/_chunks/{multi-select-BdHHDrRN.js → multi-select-WE4S9FIF.js} +75 -63
- package/dist/_chunks/nav-grid-9xphY3FM.js +169 -0
- package/dist/_chunks/notes-panel-DXiMfuvp.js +320 -0
- package/dist/_chunks/notification-card-BMqNzCIt.js +290 -0
- package/dist/_chunks/{notification-tray-AEun6DN2.js → notification-tray-BmUlCx3g.js} +201 -166
- package/dist/_chunks/{operator-hero-CR0Rqh4-.js → operator-hero-BO8TqzX2.js} +2 -2
- package/dist/_chunks/panel-header-D313n_9-.js +105 -0
- package/dist/_chunks/{patient-details-Dlhqb5ig.js → patient-details-DgfTJimE.js} +280 -196
- package/dist/_chunks/{patient-search-Be6cLrHR.js → patient-search-CSWQKOSP.js} +2 -2
- package/dist/_chunks/{patient-shell-DV3XEtIB.js → patient-shell-BMwsIKlW.js} +3 -3
- package/dist/_chunks/{patient-summary-card-WySCMwwA.js → patient-summary-card-D4NdgYJB.js} +27 -12
- package/dist/_chunks/{patient-table-CHxf3Oqk.js → patient-table-CERknpd8.js} +3 -3
- package/dist/_chunks/{payment-request-card-BcZJwu9z.js → payment-request-card-Blf-MFNY.js} +2 -2
- package/dist/_chunks/permission-matrix-Bw5oexUt.js +174 -0
- package/dist/_chunks/position-grid-CcvqHaKN.js +169 -0
- package/dist/_chunks/postal-code-input-UCOYuRY2.js +192 -0
- package/dist/_chunks/{practice-results-C6qDfxos.js → practice-results-El5Z-oVp.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-CRVWswD-.js → pregnancy-dating-CunHrOpO.js} +2 -2
- package/dist/_chunks/{product-hub-panel-e6pW220e.js → product-hub-panel-DtU7KXxm.js} +257 -217
- package/dist/_chunks/province-select-D_TZvix3.js +261 -0
- package/dist/_chunks/{public-header.agent-DqkqA-ca.js → public-header.agent-TxmC_x1I.js} +2 -2
- package/dist/_chunks/radiograph-panel.agent-tWjN2nHX.js +553 -0
- package/dist/_chunks/reviews-panel-DxkSrgMl.js +559 -0
- package/dist/_chunks/rich-text-editor-C8tyGjfb.js +2621 -0
- package/dist/_chunks/{scroll-area-5wNK0Cyz.js → scroll-area-BZOvUhwQ.js} +2 -2
- package/dist/_chunks/{select-DMLG44F5.js → select-KsyRr8WH.js} +114 -102
- package/dist/_chunks/{sheet-BxsE7eQm.js → sheet-umkfZjF6.js} +53 -42
- package/dist/_chunks/{sidebar-DY9jGjgt.js → sidebar-QCp9wHNP.js} +125 -113
- package/dist/_chunks/{tabs-BxcOziCo.js → tabs-CYZVKKDl.js} +2 -2
- package/dist/_chunks/task-card-DCdsI0ZT.js +189 -0
- package/dist/_chunks/{task-tray-qOEQflu4.js → task-tray-DNVejijD.js} +2 -2
- package/dist/_chunks/tasks-panel-C9odmawT.js +757 -0
- package/dist/_chunks/token-insert-menu-CFQqTe_n.js +147 -0
- package/dist/_chunks/{ai-tools-rail-B5NEghsp.js → tool-rail-BZx0-yIr.js} +152 -139
- package/dist/_chunks/{tooth-scheme-BhQoPNBD.js → tooth-scheme-DJZtzfeY.js} +470 -468
- package/dist/_chunks/{transcript-panel-3THQX6nJ.js → transcript-panel-CHGHHHdT.js} +95 -83
- package/dist/_chunks/{unit-converter-YEpD9evj.js → unit-converter-CwlZbfdn.js} +2 -2
- package/dist/_chunks/{workflow-map-Dy8mLCqF.js → workflow-map-M8MBBHQm.js} +106 -118
- package/dist/agent-catalog.json +2062 -226
- package/dist/agent-i18n/en.json +206 -8
- package/dist/components/_shared/option.d.ts +2 -0
- package/dist/components/_shared/patient-fields.d.ts +1 -1
- package/dist/components/address-fields/address-fields.agent.d.ts +9 -0
- package/dist/components/address-fields/address-fields.d.ts +29 -0
- package/dist/components/address-fields/index.d.ts +5 -0
- package/dist/components/address-fields/index.js +6 -0
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anatomy-scheme/index.js +1 -1
- package/dist/components/app-frame/app-frame.d.ts +2 -2
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +10 -0
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/care-plan-header.d.ts +16 -5
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/city-input/city-input.agent.d.ts +8 -0
- package/dist/components/city-input/city-input.d.ts +57 -0
- package/dist/components/city-input/index.d.ts +5 -0
- package/dist/components/city-input/index.js +6 -0
- package/dist/components/combobox/combobox.d.ts +17 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/connection-status/connection-status.agent.d.ts +4 -0
- package/dist/components/connection-status/connection-status.d.ts +36 -0
- package/dist/components/connection-status/index.d.ts +4 -0
- package/dist/components/connection-status/index.js +6 -0
- package/dist/components/control-room-rail/control-room-context.d.ts +5 -5
- package/dist/components/control-room-rail/control-room-rail.agent.d.ts +4 -0
- package/dist/components/control-room-rail/control-room-rail.d.ts +5 -5
- package/dist/components/control-room-rail/index.d.ts +1 -0
- package/dist/components/control-room-rail/index.js +4 -3
- package/dist/components/counter/counter.d.ts +1 -1
- package/dist/components/country-select/country-select.agent.d.ts +8 -0
- package/dist/components/country-select/country-select.d.ts +51 -0
- package/dist/components/country-select/index.d.ts +6 -0
- package/dist/components/country-select/index.js +9 -0
- package/dist/components/country-select/iso-3166.d.ts +15 -0
- package/dist/components/data-table/cell-renderers/reorder-cell-renderer.d.ts +34 -0
- package/dist/components/data-table/index.d.ts +2 -0
- package/dist/components/data-table/index.js +13 -11
- package/dist/components/entity-summary/entity-summary.agent.d.ts +4 -0
- package/dist/components/entity-summary/entity-summary.d.ts +53 -4
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/field-array/field-array.agent.d.ts +4 -0
- package/dist/components/field-array/field-array.d.ts +45 -0
- package/dist/components/field-array/index.d.ts +4 -0
- package/dist/components/field-array/index.js +6 -0
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/iban-input/iban-input.agent.d.ts +4 -0
- package/dist/components/iban-input/iban-input.d.ts +51 -0
- package/dist/components/iban-input/index.d.ts +5 -0
- package/dist/components/iban-input/index.js +13 -0
- package/dist/components/iban-input/is-valid-iban.d.ts +31 -0
- package/dist/components/icon-picker/icon-picker.agent.d.ts +4 -0
- package/dist/components/icon-picker/icon-picker.d.ts +41 -0
- package/dist/components/icon-picker/index.d.ts +4 -0
- package/dist/components/icon-picker/index.js +6 -0
- package/dist/components/image-cropper/crop-geometry.d.ts +30 -0
- package/dist/components/image-cropper/image-cropper.agent.d.ts +4 -0
- package/dist/components/image-cropper/image-cropper.d.ts +32 -0
- package/dist/components/image-cropper/index.d.ts +5 -0
- package/dist/components/image-cropper/index.js +11 -0
- package/dist/components/index.d.ts +16 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-card/message-card.d.ts +14 -0
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/message-tray/message-tray.d.ts +4 -0
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/nav-grid/index.d.ts +4 -0
- package/dist/components/nav-grid/index.js +7 -0
- package/dist/components/nav-grid/nav-grid.agent.d.ts +4 -0
- package/dist/components/nav-grid/nav-grid.d.ts +41 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.agent.d.ts +4 -0
- package/dist/components/notes-panel/notes-panel.d.ts +30 -0
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-card/notification-card.d.ts +15 -0
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts +4 -0
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/panel-header/index.d.ts +3 -0
- package/dist/components/panel-header/index.js +7 -0
- package/dist/components/panel-header/panel-header.d.ts +41 -0
- package/dist/components/patient-details/index.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/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/permission-matrix/index.d.ts +4 -0
- package/dist/components/permission-matrix/index.js +7 -0
- package/dist/components/permission-matrix/permission-matrix.agent.d.ts +4 -0
- package/dist/components/permission-matrix/permission-matrix.d.ts +47 -0
- package/dist/components/position-grid/index.d.ts +4 -0
- package/dist/components/position-grid/index.js +7 -0
- package/dist/components/position-grid/position-grid.agent.d.ts +4 -0
- package/dist/components/position-grid/position-grid.d.ts +39 -0
- package/dist/components/postal-code-input/index.d.ts +5 -0
- package/dist/components/postal-code-input/index.js +6 -0
- package/dist/components/postal-code-input/postal-code-input.agent.d.ts +8 -0
- package/dist/components/postal-code-input/postal-code-input.d.ts +27 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-tray.d.ts +13 -1
- package/dist/components/province-select/index.d.ts +6 -0
- package/dist/components/province-select/index.js +7 -0
- package/dist/components/province-select/it-provinces.d.ts +8 -0
- package/dist/components/province-select/province-select.agent.d.ts +8 -0
- package/dist/components/province-select/province-select.d.ts +38 -0
- package/dist/components/public-footer/public-footer.d.ts +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +17 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -2
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +14 -6
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.d.ts +4 -0
- package/dist/components/tasks-panel/index.js +6 -0
- package/dist/components/tasks-panel/tasks-panel.agent.d.ts +4 -0
- package/dist/components/tasks-panel/tasks-panel.d.ts +152 -0
- package/dist/components/token-insert-menu/index.d.ts +4 -0
- package/dist/components/token-insert-menu/index.js +6 -0
- package/dist/components/token-insert-menu/token-insert-menu.agent.d.ts +4 -0
- package/dist/components/token-insert-menu/token-insert-menu.d.ts +33 -0
- package/dist/components/tool-rail/index.d.ts +4 -0
- package/dist/components/tool-rail/index.js +6 -0
- package/dist/components/tool-rail/tool-rail.agent.d.ts +4 -0
- package/dist/components/{ai-tools-rail/ai-tools-rail.d.ts → tool-rail/tool-rail.d.ts} +29 -12
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +9 -0
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/transcript-panel/transcript-panel.d.ts +2 -2
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/use-edge-resize.d.ts +2 -2
- package/dist/i18n/locales/ar.d.ts +167 -2
- package/dist/i18n/locales/ar.js +157 -5
- package/dist/i18n/locales/de.d.ts +167 -2
- package/dist/i18n/locales/de.js +159 -5
- package/dist/i18n/locales/el.d.ts +167 -2
- package/dist/i18n/locales/el.js +164 -5
- package/dist/i18n/locales/en.d.ts +167 -2
- package/dist/i18n/locales/en.js +170 -5
- package/dist/i18n/locales/es.d.ts +167 -2
- package/dist/i18n/locales/es.js +156 -5
- package/dist/i18n/locales/fr.d.ts +167 -2
- package/dist/i18n/locales/fr.js +159 -5
- package/dist/i18n/locales/hi.d.ts +167 -2
- package/dist/i18n/locales/hi.js +155 -5
- package/dist/i18n/locales/it.d.ts +167 -2
- package/dist/i18n/locales/it.js +159 -5
- package/dist/i18n/locales/ja.d.ts +167 -2
- package/dist/i18n/locales/ja.js +160 -5
- package/dist/i18n/locales/nl.d.ts +167 -2
- package/dist/i18n/locales/nl.js +152 -5
- package/dist/i18n/locales/pl.d.ts +167 -2
- package/dist/i18n/locales/pl.js +160 -5
- package/dist/i18n/locales/pt.d.ts +167 -2
- package/dist/i18n/locales/pt.js +164 -5
- package/dist/i18n/locales/ro.d.ts +167 -2
- package/dist/i18n/locales/ro.js +164 -5
- package/dist/i18n/locales/ru.d.ts +167 -2
- package/dist/i18n/locales/ru.js +157 -5
- package/dist/i18n/locales/sq.d.ts +167 -2
- package/dist/i18n/locales/sq.js +161 -5
- package/dist/i18n/locales/sv.d.ts +167 -2
- package/dist/i18n/locales/sv.js +159 -5
- package/dist/i18n/locales/tr.d.ts +167 -2
- package/dist/i18n/locales/tr.js +157 -5
- package/dist/i18n/locales/zh.d.ts +167 -2
- package/dist/i18n/locales/zh.js +152 -5
- package/dist/index.js +823 -755
- package/dist/locales/ar.json +170 -5
- package/dist/locales/de.json +170 -5
- package/dist/locales/el.json +170 -5
- package/dist/locales/en.json +170 -5
- package/dist/locales/es.json +170 -5
- package/dist/locales/fr.json +170 -5
- package/dist/locales/hi.json +170 -5
- package/dist/locales/it.json +170 -5
- package/dist/locales/ja.json +170 -5
- package/dist/locales/nl.json +170 -5
- package/dist/locales/pl.json +170 -5
- package/dist/locales/pt.json +170 -5
- package/dist/locales/ro.json +170 -5
- package/dist/locales/ru.json +170 -5
- package/dist/locales/sq.json +170 -5
- package/dist/locales/sv.json +170 -5
- package/dist/locales/tr.json +170 -5
- package/dist/locales/zh.json +170 -5
- package/dist/patterns/alia-assistant/alia-types.d.ts +9 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +9 -1
- package/package.json +65 -5
- package/dist/_chunks/care-plan-header-BUwqDTtz.js +0 -206
- package/dist/_chunks/control-room-rail-Y8ryLYsP.js +0 -229
- package/dist/_chunks/editable-currency-cell-renderer-C9twtALM.js +0 -328
- package/dist/_chunks/entity-summary-BxRjFh_4.js +0 -138
- package/dist/_chunks/message-card-Bx4GmLvf.js +0 -277
- package/dist/_chunks/notes-panel-ay8_lPrA.js +0 -158
- package/dist/_chunks/notification-card-D2jiKSJJ.js +0 -259
- package/dist/_chunks/radiograph-panel.agent-CAX-C3g3.js +0 -558
- package/dist/_chunks/reviews-panel-Dq7LMDcH.js +0 -555
- package/dist/_chunks/rich-text-editor-DlCqPixb.js +0 -2158
- package/dist/_chunks/task-card-BwY9jaV1.js +0 -124
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +0 -4
- package/dist/components/ai-tools-rail/index.d.ts +0 -4
- package/dist/components/ai-tools-rail/index.js +0 -6
|
@@ -23,21 +23,22 @@ import { F as Ie } from "./file-text-DSNuv2B8.js";
|
|
|
23
23
|
import { D as ae } from "./download-CDF1sbL9.js";
|
|
24
24
|
import { F as Rt } from "./file-spreadsheet-zUkY8rJ2.js";
|
|
25
25
|
import Dt from "i18next";
|
|
26
|
-
import { S as ke } from "./select-
|
|
26
|
+
import { S as ke } from "./select-KsyRr8WH.js";
|
|
27
27
|
import { u as It } from "./registry-DvAUVLHh.js";
|
|
28
28
|
import { u as kt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
29
29
|
import { u as Et } from "./use-theme-CAuo6EYT.js";
|
|
30
30
|
import { D as Ee } from "./date-range-picker-CTUeR6Bj.js";
|
|
31
|
-
import { M as At } from "./multi-select-
|
|
32
|
-
import {
|
|
31
|
+
import { M as At } from "./multi-select-WE4S9FIF.js";
|
|
32
|
+
import { S as Ot } from "./scroll-area-BZOvUhwQ.js";
|
|
33
|
+
import { A as Ae } from "./autocomplete-BrONKN8l.js";
|
|
33
34
|
import { N as Y } from "./number-input-DxphVG_A.js";
|
|
34
|
-
import { B as
|
|
35
|
+
import { B as zt } from "./badge-DCOqV9mI.js";
|
|
35
36
|
import { A as Oe } from "./avatar-BNQNhoyL.js";
|
|
36
|
-
import { T as
|
|
37
|
+
import { T as Pt } from "./tooltip-DvmfrNvB.js";
|
|
37
38
|
import { T as he } from "./timestamp-BV2lC-wV.js";
|
|
38
|
-
import { I as
|
|
39
|
-
import { E as
|
|
40
|
-
function
|
|
39
|
+
import { I as Mt } from "./icon-button-group-C48khLE0.js";
|
|
40
|
+
import { E as qt } from "./ellipsis-rgGdiK_9.js";
|
|
41
|
+
function Lt(t) {
|
|
41
42
|
if (!Ne(t)) return t;
|
|
42
43
|
const e = t, a = e.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} ds:size-4`.trim();
|
|
43
44
|
return Fe(e, { className: r, size: e.props.size ?? 16 });
|
|
@@ -51,7 +52,7 @@ function B(t) {
|
|
|
51
52
|
);
|
|
52
53
|
return e;
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function jt({
|
|
55
56
|
getApi: t,
|
|
56
57
|
selectionCount: e,
|
|
57
58
|
onPrint: a,
|
|
@@ -63,7 +64,7 @@ function Lt({
|
|
|
63
64
|
);
|
|
64
65
|
return /* @__PURE__ */ n(ze.Provider, { value: o, children: r });
|
|
65
66
|
}
|
|
66
|
-
const
|
|
67
|
+
const Gt = [
|
|
67
68
|
"data-table-toolbar",
|
|
68
69
|
// Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
|
|
69
70
|
// Actions cluster on narrow screens. From `sm` (≥640px) we switch to
|
|
@@ -88,7 +89,7 @@ const jt = [
|
|
|
88
89
|
{
|
|
89
90
|
ref: r,
|
|
90
91
|
role: "toolbar",
|
|
91
|
-
className: [
|
|
92
|
+
className: [Gt, t ?? ""].join(" ").trim(),
|
|
92
93
|
...a,
|
|
93
94
|
children: e
|
|
94
95
|
}
|
|
@@ -133,10 +134,10 @@ const qe = G(
|
|
|
133
134
|
qe.displayName = "DataTable.Toolbar.Actions";
|
|
134
135
|
const Le = G(
|
|
135
136
|
({ label: t, onExport: e, intent: a = "outline", ...r }, o) => {
|
|
136
|
-
const { t: s } = F(), { getApi:
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
}, [
|
|
137
|
+
const { t: s } = F(), { getApi: i } = B("DataTable.Toolbar.ExportCsv"), p = M(() => {
|
|
138
|
+
const l = i();
|
|
139
|
+
l && (e ? e(l) : l.exportDataAsCsv());
|
|
140
|
+
}, [i, e]);
|
|
140
141
|
return /* @__PURE__ */ n(
|
|
141
142
|
V,
|
|
142
143
|
{
|
|
@@ -166,7 +167,7 @@ async function je(t, e) {
|
|
|
166
167
|
const [{ jsPDF: a }, { default: r }] = await Promise.all([
|
|
167
168
|
import("./jspdf.es.min-DaapWjR1.js").then((g) => g.j),
|
|
168
169
|
import("./jspdf.plugin.autotable-CSiDNyPn.js")
|
|
169
|
-
]), s = (t.getColumns() ?? []).filter((g) => g.isVisible()),
|
|
170
|
+
]), s = (t.getColumns() ?? []).filter((g) => g.isVisible()), i = [
|
|
170
171
|
s.map((g) => t.getDisplayNameForColumn(g, null) ?? "")
|
|
171
172
|
], p = [];
|
|
172
173
|
t.forEachNodeAfterFilterAndSort((g) => {
|
|
@@ -181,11 +182,11 @@ async function je(t, e) {
|
|
|
181
182
|
});
|
|
182
183
|
p.push(T);
|
|
183
184
|
});
|
|
184
|
-
const
|
|
185
|
+
const l = Q("--muted", [240, 240, 240]), d = Q("--foreground", [30, 30, 30]), c = Q("--card-foreground", [30, 30, 30]), u = Q("--card", [250, 250, 250]), y = new a({ orientation: "landscape" });
|
|
185
186
|
r(y, {
|
|
186
|
-
head:
|
|
187
|
+
head: i,
|
|
187
188
|
body: p,
|
|
188
|
-
headStyles: { fillColor:
|
|
189
|
+
headStyles: { fillColor: l, textColor: d },
|
|
189
190
|
bodyStyles: { textColor: c },
|
|
190
191
|
alternateRowStyles: { fillColor: u },
|
|
191
192
|
styles: {
|
|
@@ -197,7 +198,7 @@ async function je(t, e) {
|
|
|
197
198
|
}
|
|
198
199
|
const Ge = G(
|
|
199
200
|
({ label: t, onClick: e, fileName: a, intent: r = "outline", ...o }, s) => {
|
|
200
|
-
const { t:
|
|
201
|
+
const { t: i } = F(), { getApi: p } = B("DataTable.Toolbar.ExportPdf"), l = M(() => {
|
|
201
202
|
const d = p();
|
|
202
203
|
if (e) {
|
|
203
204
|
e(d);
|
|
@@ -214,8 +215,8 @@ const Ge = G(
|
|
|
214
215
|
type: "button",
|
|
215
216
|
intent: r,
|
|
216
217
|
icon: /* @__PURE__ */ n(Ie, { "aria-hidden": !0 }),
|
|
217
|
-
tooltip: t ??
|
|
218
|
-
onClick:
|
|
218
|
+
tooltip: t ?? i("dataTable.exportPdf"),
|
|
219
|
+
onClick: l,
|
|
219
220
|
...o
|
|
220
221
|
}
|
|
221
222
|
);
|
|
@@ -241,12 +242,12 @@ const Be = G(
|
|
|
241
242
|
);
|
|
242
243
|
Be.displayName = "DataTable.Toolbar.Print";
|
|
243
244
|
const $e = ({ placeholder: t, debounceMs: e = 150 }) => {
|
|
244
|
-
const { t: a } = F(), { getApi: r } = B("DataTable.Toolbar.QuickSearch"), [o, s] = R(""),
|
|
245
|
-
return z(() => (
|
|
245
|
+
const { t: a } = F(), { getApi: r } = B("DataTable.Toolbar.QuickSearch"), [o, s] = R(""), i = xe(void 0);
|
|
246
|
+
return z(() => (i.current && window.clearTimeout(i.current), i.current = window.setTimeout(() => {
|
|
246
247
|
const p = r();
|
|
247
248
|
p && p.setGridOption("quickFilterText", o);
|
|
248
249
|
}, e), () => {
|
|
249
|
-
|
|
250
|
+
i.current && window.clearTimeout(i.current);
|
|
250
251
|
}), [o, e, r]), // Slot wrapper caps the search at a sensible legible width on desktop —
|
|
251
252
|
// without this, TextInput's `w-full` lets the QuickSearch absorb the
|
|
252
253
|
// entire FilterBar row and push trailing Actions onto a second line at
|
|
@@ -288,7 +289,7 @@ const _e = G(
|
|
|
288
289
|
}
|
|
289
290
|
);
|
|
290
291
|
_e.displayName = "DataTable.Toolbar.Refresh";
|
|
291
|
-
function
|
|
292
|
+
function Bt(t) {
|
|
292
293
|
if (!t || typeof t != "object") return "";
|
|
293
294
|
const e = t;
|
|
294
295
|
if (typeof e.filter == "string" || typeof e.filter == "number") {
|
|
@@ -298,7 +299,7 @@ function Gt(t) {
|
|
|
298
299
|
return typeof e.dateFrom == "string" ? typeof e.dateTo == "string" && e.dateTo ? `${e.dateFrom} – ${e.dateTo}` : String(e.dateFrom) : Array.isArray(e.values) ? e.values.map(String).join(", ") : "";
|
|
299
300
|
}
|
|
300
301
|
const Ve = () => {
|
|
301
|
-
const { t } = F(), { getApi: e } = B("DataTable.Toolbar.FilterChips"), [a, r] = R([]), [o, s] = R(""),
|
|
302
|
+
const { t } = F(), { getApi: e } = B("DataTable.Toolbar.FilterChips"), [a, r] = R([]), [o, s] = R(""), i = M(() => {
|
|
302
303
|
const c = e();
|
|
303
304
|
if (!c) {
|
|
304
305
|
r([]), s("");
|
|
@@ -310,7 +311,7 @@ const Ve = () => {
|
|
|
310
311
|
g.push({
|
|
311
312
|
colId: C,
|
|
312
313
|
headerName: f,
|
|
313
|
-
text:
|
|
314
|
+
text: Bt(u[C])
|
|
314
315
|
});
|
|
315
316
|
}
|
|
316
317
|
r(g);
|
|
@@ -319,8 +320,8 @@ const Ve = () => {
|
|
|
319
320
|
}, [e]);
|
|
320
321
|
if (z(() => {
|
|
321
322
|
let c;
|
|
322
|
-
const u = (T) =>
|
|
323
|
-
T.addEventListener("filterChanged", u),
|
|
323
|
+
const u = (T) => i(), y = (T) => {
|
|
324
|
+
T.addEventListener("filterChanged", u), i(), c = () => T.removeEventListener("filterChanged", u);
|
|
324
325
|
}, g = e();
|
|
325
326
|
if (g)
|
|
326
327
|
y(g);
|
|
@@ -332,8 +333,8 @@ const Ve = () => {
|
|
|
332
333
|
c = () => window.clearInterval(T);
|
|
333
334
|
}
|
|
334
335
|
return () => c == null ? void 0 : c();
|
|
335
|
-
}, [e,
|
|
336
|
-
function
|
|
336
|
+
}, [e, i]), a.length + (o ? 1 : 0) === 0) return null;
|
|
337
|
+
function l(c) {
|
|
337
338
|
const u = e();
|
|
338
339
|
u && u.destroyFilter(c);
|
|
339
340
|
}
|
|
@@ -366,7 +367,7 @@ const Ve = () => {
|
|
|
366
367
|
label: c.text ? `${c.headerName}: ${c.text}` : c.headerName,
|
|
367
368
|
size: "sm",
|
|
368
369
|
fill: "outline",
|
|
369
|
-
onRemove: () =>
|
|
370
|
+
onRemove: () => l(c.colId)
|
|
370
371
|
},
|
|
371
372
|
c.colId
|
|
372
373
|
)),
|
|
@@ -391,18 +392,18 @@ const We = ({
|
|
|
391
392
|
options: e,
|
|
392
393
|
label: a
|
|
393
394
|
}) => {
|
|
394
|
-
const { t: r } = F(), { getApi: o } = B("DataTable.Toolbar.FacetFilter"), [s,
|
|
395
|
-
function p(
|
|
396
|
-
l
|
|
395
|
+
const { t: r } = F(), { getApi: o } = B("DataTable.Toolbar.FacetFilter"), [s, i] = R(null);
|
|
396
|
+
function p(l) {
|
|
397
|
+
i(l);
|
|
397
398
|
const d = o();
|
|
398
399
|
if (d) {
|
|
399
|
-
if (
|
|
400
|
+
if (l === null) {
|
|
400
401
|
d.destroyFilter(t);
|
|
401
402
|
return;
|
|
402
403
|
}
|
|
403
404
|
d.setColumnFilterModel(t, {
|
|
404
405
|
type: "equals",
|
|
405
|
-
filter:
|
|
406
|
+
filter: l
|
|
406
407
|
}), d.onFilterChanged();
|
|
407
408
|
}
|
|
408
409
|
}
|
|
@@ -412,8 +413,8 @@ const We = ({
|
|
|
412
413
|
role: "group",
|
|
413
414
|
"aria-label": a ?? r("dataTable.facetFilter.label", "Filter"),
|
|
414
415
|
className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
415
|
-
children: e.map((
|
|
416
|
-
const d = s ===
|
|
416
|
+
children: e.map((l) => {
|
|
417
|
+
const d = s === l.value;
|
|
417
418
|
return /* @__PURE__ */ n(
|
|
418
419
|
j,
|
|
419
420
|
{
|
|
@@ -421,27 +422,27 @@ const We = ({
|
|
|
421
422
|
size: "sm",
|
|
422
423
|
intent: d ? "primary" : "secondary",
|
|
423
424
|
"aria-pressed": d,
|
|
424
|
-
onClick: () => p(
|
|
425
|
-
children:
|
|
425
|
+
onClick: () => p(l.value),
|
|
426
|
+
children: l.label
|
|
426
427
|
},
|
|
427
|
-
String(
|
|
428
|
+
String(l.value)
|
|
428
429
|
);
|
|
429
430
|
})
|
|
430
431
|
}
|
|
431
432
|
);
|
|
432
433
|
};
|
|
433
434
|
We.displayName = "DataTable.Toolbar.FacetFilter";
|
|
434
|
-
const
|
|
435
|
-
async function
|
|
435
|
+
const $t = ["csv", "xlsx", "pdf"];
|
|
436
|
+
async function _t(t, e) {
|
|
436
437
|
if (!t) return;
|
|
437
|
-
const a = await import("./exceljs.min-DUJ-5CGx.js").then((C) => C.e), r = new a.Workbook(), o = r.addWorksheet("Sheet1"),
|
|
438
|
+
const a = await import("./exceljs.min-DUJ-5CGx.js").then((C) => C.e), r = new a.Workbook(), o = r.addWorksheet("Sheet1"), i = (t.getColumns() ?? []).filter((C) => C.isVisible());
|
|
438
439
|
o.addRow(
|
|
439
|
-
|
|
440
|
+
i.map(
|
|
440
441
|
(C) => t.getDisplayNameForColumn(C, null) ?? C.getColId()
|
|
441
442
|
)
|
|
442
443
|
), t.forEachNodeAfterFilterAndSort((C) => {
|
|
443
444
|
C.data && o.addRow(
|
|
444
|
-
|
|
445
|
+
i.map((S) => {
|
|
445
446
|
const f = t.getCellValue({
|
|
446
447
|
rowNode: C,
|
|
447
448
|
colKey: S,
|
|
@@ -451,9 +452,9 @@ async function $t(t, e) {
|
|
|
451
452
|
})
|
|
452
453
|
);
|
|
453
454
|
});
|
|
454
|
-
const p = Q("--muted", [240, 240, 240]),
|
|
455
|
+
const p = Q("--muted", [240, 240, 240]), l = Q("--foreground", [30, 30, 30]), d = o.getRow(1), c = ([C, S, f]) => `${C.toString(16).padStart(2, "0")}${S.toString(16).padStart(2, "0")}${f.toString(16).padStart(2, "0")}`.toUpperCase();
|
|
455
456
|
d.eachCell((C) => {
|
|
456
|
-
C.font = { bold: !0, color: { argb: `FF${c(
|
|
457
|
+
C.font = { bold: !0, color: { argb: `FF${c(l)}` } }, C.fill = {
|
|
457
458
|
type: "pattern",
|
|
458
459
|
pattern: "solid",
|
|
459
460
|
fgColor: { argb: `FF${c(p)}` }
|
|
@@ -465,7 +466,7 @@ async function $t(t, e) {
|
|
|
465
466
|
T.href = g, T.download = e.fileName, document.body.appendChild(T), T.click(), document.body.removeChild(T), URL.revokeObjectURL(g);
|
|
466
467
|
}
|
|
467
468
|
const Ke = Se(null);
|
|
468
|
-
function
|
|
469
|
+
function Vt() {
|
|
469
470
|
const t = we(Ke);
|
|
470
471
|
if (!t)
|
|
471
472
|
throw new Error(
|
|
@@ -474,7 +475,7 @@ function _t() {
|
|
|
474
475
|
return t;
|
|
475
476
|
}
|
|
476
477
|
const Ue = ({ children: t, label: e }) => {
|
|
477
|
-
const { t: a } = F(), { getApi: r } = B("DataTable.Toolbar.ExportMenu"), o = E(() => ({ getApi: r }), [r]), s = t ??
|
|
478
|
+
const { t: a } = F(), { getApi: r } = B("DataTable.Toolbar.ExportMenu"), o = E(() => ({ getApi: r }), [r]), s = t ?? $t.map((i) => /* @__PURE__ */ n(me, { format: i }, i));
|
|
478
479
|
return /* @__PURE__ */ n(Ke.Provider, { value: o, children: /* @__PURE__ */ I(_.Root, { children: [
|
|
479
480
|
/* @__PURE__ */ n(_.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
|
|
480
481
|
V,
|
|
@@ -491,10 +492,10 @@ const Ue = ({ children: t, label: e }) => {
|
|
|
491
492
|
] }) });
|
|
492
493
|
};
|
|
493
494
|
Ue.displayName = "DataTable.Toolbar.ExportMenu";
|
|
494
|
-
function
|
|
495
|
+
function Wt(t, e) {
|
|
495
496
|
return e === "csv" ? t("dataTable.export.csv", "Export CSV") : e === "xlsx" ? t("dataTable.export.xlsx", "Export Excel") : e === "pdf" ? t("dataTable.export.pdf", "Export PDF") : t("dataTable.export.custom", "Export");
|
|
496
497
|
}
|
|
497
|
-
function
|
|
498
|
+
function Kt(t) {
|
|
498
499
|
return t === "csv" ? /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" }) : t === "xlsx" ? /* @__PURE__ */ n(Rt, { "aria-hidden": !0, className: "ds:size-4" }) : t === "pdf" ? /* @__PURE__ */ n(Ie, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" });
|
|
499
500
|
}
|
|
500
501
|
const me = ({
|
|
@@ -503,7 +504,7 @@ const me = ({
|
|
|
503
504
|
onClick: a,
|
|
504
505
|
fileName: r
|
|
505
506
|
}) => {
|
|
506
|
-
const { t: o } = F(), { getApi: s } =
|
|
507
|
+
const { t: o } = F(), { getApi: s } = Vt(), i = M(() => {
|
|
507
508
|
const p = s();
|
|
508
509
|
if (t === "csv") {
|
|
509
510
|
p == null || p.exportDataAsCsv();
|
|
@@ -516,20 +517,20 @@ const me = ({
|
|
|
516
517
|
return;
|
|
517
518
|
}
|
|
518
519
|
if (t === "xlsx") {
|
|
519
|
-
|
|
520
|
+
_t(p, {
|
|
520
521
|
fileName: r ?? "data-table-export.xlsx"
|
|
521
522
|
});
|
|
522
523
|
return;
|
|
523
524
|
}
|
|
524
525
|
a == null || a(p);
|
|
525
526
|
}, [t, r, a, s]);
|
|
526
|
-
return /* @__PURE__ */ n(_.Item, { onSelect:
|
|
527
|
-
|
|
528
|
-
/* @__PURE__ */ n("span", { children: e ??
|
|
527
|
+
return /* @__PURE__ */ n(_.Item, { onSelect: i, children: /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
528
|
+
Kt(t),
|
|
529
|
+
/* @__PURE__ */ n("span", { children: e ?? Wt(o, t) })
|
|
529
530
|
] }) });
|
|
530
531
|
};
|
|
531
532
|
me.displayName = "DataTable.Toolbar.ExportMenu.Item";
|
|
532
|
-
function
|
|
533
|
+
function Ut(t) {
|
|
533
534
|
return t ? (t.getAllGridColumns() ?? []).map((a) => a.getColDef().hide === void 0 && a.getColId().startsWith("ag-Grid-") ? null : {
|
|
534
535
|
colId: a.getColId(),
|
|
535
536
|
displayName: t.getDisplayNameForColumn(a, null) || a.getColId(),
|
|
@@ -537,10 +538,10 @@ function Kt(t) {
|
|
|
537
538
|
}).filter((a) => a !== null) : [];
|
|
538
539
|
}
|
|
539
540
|
const He = ({ label: t, icon: e, footer: a, header: r }) => {
|
|
540
|
-
const { t: o } = F(), { getApi: s } = B("DataTable.Toolbar.ColumnToggle"), [
|
|
541
|
+
const { t: o } = F(), { getApi: s } = B("DataTable.Toolbar.ColumnToggle"), [i, p] = R(!1), [l, d] = R([]), [c, u] = R(null), [y, g] = R(null);
|
|
541
542
|
z(() => {
|
|
542
|
-
|
|
543
|
-
}, [
|
|
543
|
+
i && d(Ut(s()));
|
|
544
|
+
}, [i, s]);
|
|
544
545
|
const T = M(
|
|
545
546
|
(f, m) => {
|
|
546
547
|
const b = s();
|
|
@@ -562,12 +563,12 @@ const He = ({ label: t, icon: e, footer: a, header: r }) => {
|
|
|
562
563
|
const $ = [...w], [D] = $.splice(A, 1);
|
|
563
564
|
return $.splice(k, 0, D), $;
|
|
564
565
|
});
|
|
565
|
-
const h =
|
|
566
|
+
const h = l.findIndex((w) => w.colId === m);
|
|
566
567
|
h >= 0 && b.moveColumns([f], h);
|
|
567
568
|
},
|
|
568
|
-
[s,
|
|
569
|
+
[s, l]
|
|
569
570
|
), S = t ?? o("dataTable.columnToggle");
|
|
570
|
-
return /* @__PURE__ */ I(Z.Root, { open:
|
|
571
|
+
return /* @__PURE__ */ I(Z.Root, { open: i, onOpenChange: p, children: [
|
|
571
572
|
/* @__PURE__ */ n(Z.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
|
|
572
573
|
V,
|
|
573
574
|
{
|
|
@@ -586,7 +587,7 @@ const He = ({ label: t, icon: e, footer: a, header: r }) => {
|
|
|
586
587
|
{
|
|
587
588
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
588
589
|
"aria-label": S,
|
|
589
|
-
children:
|
|
590
|
+
children: l.map((f) => {
|
|
590
591
|
const m = c === f.colId, b = y === f.colId && c !== f.colId;
|
|
591
592
|
return /* @__PURE__ */ I(
|
|
592
593
|
"li",
|
|
@@ -644,19 +645,19 @@ const He = ({ label: t, icon: e, footer: a, header: r }) => {
|
|
|
644
645
|
};
|
|
645
646
|
He.displayName = "DataTable.Toolbar.ColumnToggle";
|
|
646
647
|
const Qe = G(
|
|
647
|
-
({ label: t, icon: e, onClick: a, variant: r = "default", size: o = "sm", ...s },
|
|
648
|
-
const { t: p } = F(), { getApi:
|
|
648
|
+
({ label: t, icon: e, onClick: a, variant: r = "default", size: o = "sm", ...s }, i) => {
|
|
649
|
+
const { t: p } = F(), { getApi: l, selectionCount: d } = B(
|
|
649
650
|
"DataTable.Toolbar.BulkAction"
|
|
650
651
|
);
|
|
651
652
|
return d === 0 ? null : /* @__PURE__ */ I(
|
|
652
653
|
j,
|
|
653
654
|
{
|
|
654
|
-
ref:
|
|
655
|
+
ref: i,
|
|
655
656
|
type: "button",
|
|
656
657
|
intent: r === "destructive" ? "destructive" : "secondary",
|
|
657
658
|
size: o,
|
|
658
|
-
startIcon:
|
|
659
|
-
onClick: () => a(
|
|
659
|
+
startIcon: Lt(e),
|
|
660
|
+
onClick: () => a(l()),
|
|
660
661
|
"aria-label": `${t} (${p("dataTable.bulkAction", { count: d })})`,
|
|
661
662
|
...s,
|
|
662
663
|
children: [
|
|
@@ -675,7 +676,7 @@ const Qe = G(
|
|
|
675
676
|
}
|
|
676
677
|
);
|
|
677
678
|
Qe.displayName = "DataTable.Toolbar.BulkAction";
|
|
678
|
-
const
|
|
679
|
+
const Ht = Object.assign(Ue, {
|
|
679
680
|
Item: me
|
|
680
681
|
}), ee = Object.assign(Pe, {
|
|
681
682
|
FilterBar: Me,
|
|
@@ -691,15 +692,15 @@ const Ut = Object.assign(Ue, {
|
|
|
691
692
|
Refresh: _e,
|
|
692
693
|
FilterChips: Ve,
|
|
693
694
|
FacetFilter: We,
|
|
694
|
-
ExportMenu:
|
|
695
|
-
}),
|
|
695
|
+
ExportMenu: Ht
|
|
696
|
+
}), Qt = [
|
|
696
697
|
"contains",
|
|
697
698
|
"equals",
|
|
698
699
|
"startsWith",
|
|
699
700
|
"endsWith",
|
|
700
701
|
"notContains"
|
|
701
702
|
];
|
|
702
|
-
function
|
|
703
|
+
function Jt(t) {
|
|
703
704
|
const e = new Intl.Collator(t, {
|
|
704
705
|
sensitivity: "base",
|
|
705
706
|
usage: "search"
|
|
@@ -722,20 +723,20 @@ function Qt(t) {
|
|
|
722
723
|
) === 0
|
|
723
724
|
};
|
|
724
725
|
}
|
|
725
|
-
function
|
|
726
|
+
function Xt(t) {
|
|
726
727
|
return t == null ? null : typeof t == "string" ? t : String(t);
|
|
727
728
|
}
|
|
728
|
-
function
|
|
729
|
-
const { model: e, onModelChange: a, getValue: r, placeholder: o, defaultOperator: s } = t, { t:
|
|
729
|
+
function Zt(t) {
|
|
730
|
+
const { model: e, onModelChange: a, getValue: r, placeholder: o, defaultOperator: s } = t, { t: i } = F("ui"), p = (e == null ? void 0 : e.type) ?? s ?? "contains", [l, d] = R(p), [c, u] = R((e == null ? void 0 : e.filter) ?? "");
|
|
730
731
|
z(() => {
|
|
731
732
|
d((e == null ? void 0 : e.type) ?? s ?? "contains"), u((e == null ? void 0 : e.filter) ?? "");
|
|
732
733
|
}, [e, s]);
|
|
733
|
-
const y = E(() =>
|
|
734
|
+
const y = E(() => Jt(Dt.language), []);
|
|
734
735
|
X({
|
|
735
736
|
doesFilterPass: (f) => {
|
|
736
737
|
const m = e;
|
|
737
738
|
if (!m || m.filter === "") return !0;
|
|
738
|
-
const b =
|
|
739
|
+
const b = Xt(r(f.node));
|
|
739
740
|
if (b === null) return !1;
|
|
740
741
|
switch (m.type) {
|
|
741
742
|
case "equals":
|
|
@@ -758,17 +759,17 @@ function Xt(t) {
|
|
|
758
759
|
a(null);
|
|
759
760
|
return;
|
|
760
761
|
}
|
|
761
|
-
a({ type:
|
|
762
|
+
a({ type: l, filter: c });
|
|
762
763
|
}
|
|
763
764
|
function T() {
|
|
764
765
|
u(""), d(s ?? "contains"), a(null);
|
|
765
766
|
}
|
|
766
|
-
const C =
|
|
767
|
+
const C = Qt.map(
|
|
767
768
|
(f) => ({
|
|
768
769
|
value: f,
|
|
769
|
-
label:
|
|
770
|
+
label: i(`dataTable.textFilter.operators.${f}`)
|
|
770
771
|
})
|
|
771
|
-
), S = o ??
|
|
772
|
+
), S = o ?? i("dataTable.textFilter.placeholder");
|
|
772
773
|
return /* @__PURE__ */ I(
|
|
773
774
|
"div",
|
|
774
775
|
{
|
|
@@ -780,11 +781,11 @@ function Xt(t) {
|
|
|
780
781
|
{
|
|
781
782
|
size: "sm",
|
|
782
783
|
options: C,
|
|
783
|
-
value:
|
|
784
|
+
value: l,
|
|
784
785
|
onValueChange: (f) => {
|
|
785
786
|
f !== "" && d(f);
|
|
786
787
|
},
|
|
787
|
-
"aria-label":
|
|
788
|
+
"aria-label": i("dataTable.textFilter.operators.contains")
|
|
788
789
|
}
|
|
789
790
|
),
|
|
790
791
|
/* @__PURE__ */ n(
|
|
@@ -802,29 +803,29 @@ function Xt(t) {
|
|
|
802
803
|
}
|
|
803
804
|
),
|
|
804
805
|
/* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
|
|
805
|
-
/* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: T, type: "button", children:
|
|
806
|
-
/* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: g, type: "button", children:
|
|
806
|
+
/* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: T, type: "button", children: i("dataTable.textFilter.clear") }),
|
|
807
|
+
/* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: g, type: "button", children: i("dataTable.textFilter.apply") })
|
|
807
808
|
] })
|
|
808
809
|
]
|
|
809
810
|
}
|
|
810
811
|
);
|
|
811
812
|
}
|
|
812
|
-
function
|
|
813
|
+
function Yt(t) {
|
|
813
814
|
var u, y;
|
|
814
|
-
const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((y = (u = r == null ? void 0 : r.getColDef) == null ? void 0 : u.call(r)) == null ? void 0 : y.filterParams) ?? {},
|
|
815
|
+
const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((y = (u = r == null ? void 0 : r.getColDef) == null ? void 0 : u.call(r)) == null ? void 0 : y.filterParams) ?? {}, i = s.defaultOperator ?? "contains", p = s.placeholder ?? o("dataTable.textFilter.placeholder"), [l, d] = R((e == null ? void 0 : e.filter) ?? "");
|
|
815
816
|
z(() => {
|
|
816
817
|
d((e == null ? void 0 : e.filter) ?? "");
|
|
817
818
|
}, [e == null ? void 0 : e.filter]), z(() => {
|
|
818
|
-
if (
|
|
819
|
+
if (l === ((e == null ? void 0 : e.filter) ?? "")) return;
|
|
819
820
|
const g = setTimeout(() => {
|
|
820
|
-
if (
|
|
821
|
+
if (l === "") {
|
|
821
822
|
e && a(null);
|
|
822
823
|
return;
|
|
823
824
|
}
|
|
824
|
-
a({ type:
|
|
825
|
+
a({ type: i, filter: l });
|
|
825
826
|
}, 200);
|
|
826
827
|
return () => clearTimeout(g);
|
|
827
|
-
}, [
|
|
828
|
+
}, [l, i, e, a]);
|
|
828
829
|
function c() {
|
|
829
830
|
d(""), e && a(null);
|
|
830
831
|
}
|
|
@@ -832,12 +833,12 @@ function Zt(t) {
|
|
|
832
833
|
pe,
|
|
833
834
|
{
|
|
834
835
|
size: "sm",
|
|
835
|
-
value:
|
|
836
|
+
value: l,
|
|
836
837
|
onChange: (g) => d(g.target.value),
|
|
837
838
|
placeholder: p,
|
|
838
839
|
"aria-label": p,
|
|
839
840
|
startAdornment: /* @__PURE__ */ n(fe, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
840
|
-
endAdornment:
|
|
841
|
+
endAdornment: l.length > 0 ? /* @__PURE__ */ n(
|
|
841
842
|
"button",
|
|
842
843
|
{
|
|
843
844
|
type: "button",
|
|
@@ -850,7 +851,7 @@ function Zt(t) {
|
|
|
850
851
|
}
|
|
851
852
|
) });
|
|
852
853
|
}
|
|
853
|
-
const
|
|
854
|
+
const ea = {
|
|
854
855
|
id: "data-table",
|
|
855
856
|
capabilities: [
|
|
856
857
|
"select_single",
|
|
@@ -1043,7 +1044,7 @@ const Yt = {
|
|
|
1043
1044
|
}
|
|
1044
1045
|
};
|
|
1045
1046
|
Ct.registerModules([xt]);
|
|
1046
|
-
const
|
|
1047
|
+
const ta = Tt("ag-theme-alfadocs ds:w-full", {
|
|
1047
1048
|
variants: {
|
|
1048
1049
|
density: {
|
|
1049
1050
|
default: "",
|
|
@@ -1060,7 +1061,7 @@ const ea = Tt("ag-theme-alfadocs ds:w-full", {
|
|
|
1060
1061
|
bordered: !0
|
|
1061
1062
|
}
|
|
1062
1063
|
});
|
|
1063
|
-
function
|
|
1064
|
+
function aa() {
|
|
1064
1065
|
const { t } = F();
|
|
1065
1066
|
return E(
|
|
1066
1067
|
() => ({
|
|
@@ -1094,7 +1095,7 @@ function ta() {
|
|
|
1094
1095
|
[t]
|
|
1095
1096
|
);
|
|
1096
1097
|
}
|
|
1097
|
-
function
|
|
1098
|
+
function ra() {
|
|
1098
1099
|
return /* @__PURE__ */ n(
|
|
1099
1100
|
"div",
|
|
1100
1101
|
{
|
|
@@ -1112,7 +1113,7 @@ function aa() {
|
|
|
1112
1113
|
}
|
|
1113
1114
|
);
|
|
1114
1115
|
}
|
|
1115
|
-
function
|
|
1116
|
+
function na() {
|
|
1116
1117
|
const { t } = F();
|
|
1117
1118
|
return /* @__PURE__ */ n(
|
|
1118
1119
|
vt,
|
|
@@ -1124,7 +1125,7 @@ function ra() {
|
|
|
1124
1125
|
}
|
|
1125
1126
|
);
|
|
1126
1127
|
}
|
|
1127
|
-
function
|
|
1128
|
+
function oa(t) {
|
|
1128
1129
|
try {
|
|
1129
1130
|
const e = localStorage.getItem(`data-table-col-state:${t}`);
|
|
1130
1131
|
return e ? JSON.parse(e) : null;
|
|
@@ -1132,7 +1133,7 @@ function na(t) {
|
|
|
1132
1133
|
return null;
|
|
1133
1134
|
}
|
|
1134
1135
|
}
|
|
1135
|
-
function
|
|
1136
|
+
function sa(t, e) {
|
|
1136
1137
|
try {
|
|
1137
1138
|
localStorage.setItem(
|
|
1138
1139
|
`data-table-col-state:${t}`,
|
|
@@ -1141,15 +1142,15 @@ function oa(t, e) {
|
|
|
1141
1142
|
} catch {
|
|
1142
1143
|
}
|
|
1143
1144
|
}
|
|
1144
|
-
function
|
|
1145
|
+
function ia(t, e) {
|
|
1145
1146
|
const {
|
|
1146
1147
|
columnDefs: a,
|
|
1147
1148
|
rowData: r,
|
|
1148
1149
|
rowSelection: o,
|
|
1149
1150
|
pagination: s = !1,
|
|
1150
|
-
paginationPageSize:
|
|
1151
|
+
paginationPageSize: i = 25,
|
|
1151
1152
|
paginationPageSizeSelector: p = [10, 25, 50, 100],
|
|
1152
|
-
gridId:
|
|
1153
|
+
gridId: l,
|
|
1153
1154
|
onSelectionChanged: d,
|
|
1154
1155
|
onSortChanged: c,
|
|
1155
1156
|
onFilterChanged: u,
|
|
@@ -1164,7 +1165,7 @@ function sa(t, e) {
|
|
|
1164
1165
|
pinnedBottomRowData: h,
|
|
1165
1166
|
printMode: w = !1,
|
|
1166
1167
|
children: A
|
|
1167
|
-
} = t, { t: k, i18n: $ } = F(), D = xe(null), [W, Xe] = R(0), [ne, oe] = R(""), Ze =
|
|
1168
|
+
} = t, { t: k, i18n: $ } = F(), D = xe(null), [W, Xe] = R(0), [ne, oe] = R(""), Ze = aa(), se = E(
|
|
1168
1169
|
() => ({
|
|
1169
1170
|
getSelection: () => {
|
|
1170
1171
|
var N;
|
|
@@ -1194,7 +1195,7 @@ function sa(t, e) {
|
|
|
1194
1195
|
});
|
|
1195
1196
|
const O = P.indexOf(v), q = P.indexOf(x);
|
|
1196
1197
|
if (O < 0 || q < 0) return;
|
|
1197
|
-
const [K,
|
|
1198
|
+
const [K, le] = O <= q ? [O, q] : [q, O], ce = new Set(P.slice(K, le + 1));
|
|
1198
1199
|
N.forEachNode((U) => {
|
|
1199
1200
|
U.id != null && U.setSelected(ce.has(U.id));
|
|
1200
1201
|
});
|
|
@@ -1241,7 +1242,7 @@ function sa(t, e) {
|
|
|
1241
1242
|
}),
|
|
1242
1243
|
[]
|
|
1243
1244
|
);
|
|
1244
|
-
bt(e, () => se, [se]), It(
|
|
1245
|
+
bt(e, () => se, [se]), It(ea, se, l);
|
|
1245
1246
|
const Ye = $.dir() === "rtl", et = r === void 0, tt = kt(), { resolvedTheme: ge } = Et(), at = (ge === "light-accessible" || ge === "dark-accessible") && C === "compact" ? "default" : C, rt = E(() => {
|
|
1246
1247
|
if (o)
|
|
1247
1248
|
return o === "single" ? { mode: "singleRow" } : {
|
|
@@ -1251,16 +1252,16 @@ function sa(t, e) {
|
|
|
1251
1252
|
};
|
|
1252
1253
|
}, [o]), nt = M(() => {
|
|
1253
1254
|
var x;
|
|
1254
|
-
if (!
|
|
1255
|
-
const v =
|
|
1255
|
+
if (!l || !((x = D.current) != null && x.api)) return;
|
|
1256
|
+
const v = oa(l);
|
|
1256
1257
|
v && D.current.api.applyColumnState({
|
|
1257
1258
|
state: v,
|
|
1258
1259
|
applyOrder: !0
|
|
1259
1260
|
});
|
|
1260
|
-
}, [
|
|
1261
|
+
}, [l]), ie = M(() => {
|
|
1261
1262
|
var v;
|
|
1262
|
-
|
|
1263
|
-
}, [
|
|
1263
|
+
l && ((v = D.current) != null && v.api) && sa(l, D.current.api);
|
|
1264
|
+
}, [l]), ot = E(() => {
|
|
1264
1265
|
if (!T) return;
|
|
1265
1266
|
const v = { ...T };
|
|
1266
1267
|
return delete v.defaultColDef, v;
|
|
@@ -1270,17 +1271,17 @@ function sa(t, e) {
|
|
|
1270
1271
|
if (!v) return;
|
|
1271
1272
|
const x = v.getSelectedRows();
|
|
1272
1273
|
Xe(x.length), d == null || d(x);
|
|
1273
|
-
}, [d]),
|
|
1274
|
+
}, [d]), it = M(
|
|
1274
1275
|
(v) => {
|
|
1275
1276
|
var N;
|
|
1276
1277
|
const x = (N = D.current) == null ? void 0 : N.api;
|
|
1277
1278
|
if (x) {
|
|
1278
1279
|
const O = x.getColumnState().find((q) => q.sort);
|
|
1279
1280
|
if (O) {
|
|
1280
|
-
const q = O.colId, K = x.getColumnDef(q),
|
|
1281
|
+
const q = O.colId, K = x.getColumnDef(q), le = (K == null ? void 0 : K.headerName) ?? q, ce = O.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
|
|
1281
1282
|
oe(
|
|
1282
1283
|
k("dataTable.sortAnnounce", {
|
|
1283
|
-
column:
|
|
1284
|
+
column: le,
|
|
1284
1285
|
direction: k(ce)
|
|
1285
1286
|
})
|
|
1286
1287
|
);
|
|
@@ -1290,7 +1291,7 @@ function sa(t, e) {
|
|
|
1290
1291
|
c == null || c(v);
|
|
1291
1292
|
},
|
|
1292
1293
|
[c, k]
|
|
1293
|
-
),
|
|
1294
|
+
), lt = M(
|
|
1294
1295
|
(v) => {
|
|
1295
1296
|
u == null || u(v);
|
|
1296
1297
|
},
|
|
@@ -1301,7 +1302,7 @@ function sa(t, e) {
|
|
|
1301
1302
|
const v = setTimeout(() => oe(""), 3e3);
|
|
1302
1303
|
return () => clearTimeout(v);
|
|
1303
1304
|
}, [ne]);
|
|
1304
|
-
const ct = y ??
|
|
1305
|
+
const ct = y ?? na, dt = g ?? ra, ut = M(
|
|
1305
1306
|
() => {
|
|
1306
1307
|
var v;
|
|
1307
1308
|
return (v = D.current) == null ? void 0 : v.api;
|
|
@@ -1309,7 +1310,7 @@ function sa(t, e) {
|
|
|
1309
1310
|
[]
|
|
1310
1311
|
), pt = M(() => {
|
|
1311
1312
|
typeof window < "u" && window.print();
|
|
1312
|
-
}, []), ft =
|
|
1313
|
+
}, []), ft = ta({
|
|
1313
1314
|
density: at,
|
|
1314
1315
|
bordered: S,
|
|
1315
1316
|
className: m
|
|
@@ -1320,11 +1321,11 @@ function sa(t, e) {
|
|
|
1320
1321
|
className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1321
1322
|
"aria-busy": et ? "true" : void 0,
|
|
1322
1323
|
"data-component": "data-table",
|
|
1323
|
-
"data-component-id":
|
|
1324
|
+
"data-component-id": l,
|
|
1324
1325
|
"data-print-mode": w ? "true" : void 0,
|
|
1325
1326
|
children: [
|
|
1326
1327
|
!w && /* @__PURE__ */ n(
|
|
1327
|
-
|
|
1328
|
+
jt,
|
|
1328
1329
|
{
|
|
1329
1330
|
getApi: ut,
|
|
1330
1331
|
selectionCount: W,
|
|
@@ -1350,8 +1351,8 @@ function sa(t, e) {
|
|
|
1350
1351
|
// language instead of AG Grid's stock browser-skinned input.
|
|
1351
1352
|
// Number / date / select columns opt into their dedicated
|
|
1352
1353
|
// wrapper per-column.
|
|
1353
|
-
filter:
|
|
1354
|
-
floatingFilterComponent:
|
|
1354
|
+
filter: Zt,
|
|
1355
|
+
floatingFilterComponent: Yt,
|
|
1355
1356
|
resizable: !0,
|
|
1356
1357
|
floatingFilter: !0,
|
|
1357
1358
|
// §13d — faint sort icon advertises which columns are
|
|
@@ -1361,7 +1362,7 @@ function sa(t, e) {
|
|
|
1361
1362
|
},
|
|
1362
1363
|
rowSelection: rt,
|
|
1363
1364
|
pagination: gt,
|
|
1364
|
-
paginationPageSize:
|
|
1365
|
+
paginationPageSize: i,
|
|
1365
1366
|
paginationPageSizeSelector: p,
|
|
1366
1367
|
paginationNumberFormatter: (v) => new Intl.NumberFormat($.language).format(v.value),
|
|
1367
1368
|
animateRows: !tt,
|
|
@@ -1390,11 +1391,11 @@ function sa(t, e) {
|
|
|
1390
1391
|
pinnedBottomRowData: h,
|
|
1391
1392
|
domLayout: w ? "autoHeight" : void 0,
|
|
1392
1393
|
onGridReady: nt,
|
|
1393
|
-
onColumnMoved:
|
|
1394
|
-
onColumnResized:
|
|
1395
|
-
onColumnPinned:
|
|
1396
|
-
onSortChanged:
|
|
1397
|
-
onFilterChanged:
|
|
1394
|
+
onColumnMoved: ie,
|
|
1395
|
+
onColumnResized: ie,
|
|
1396
|
+
onColumnPinned: ie,
|
|
1397
|
+
onSortChanged: it,
|
|
1398
|
+
onFilterChanged: lt,
|
|
1398
1399
|
onSelectionChanged: st,
|
|
1399
1400
|
...ot
|
|
1400
1401
|
}
|
|
@@ -1407,9 +1408,9 @@ function sa(t, e) {
|
|
|
1407
1408
|
}
|
|
1408
1409
|
);
|
|
1409
1410
|
}
|
|
1410
|
-
const Je = G(
|
|
1411
|
+
const Je = G(ia);
|
|
1411
1412
|
Je.displayName = "DataTable";
|
|
1412
|
-
const
|
|
1413
|
+
const sr = Object.assign(Je, {
|
|
1413
1414
|
Toolbar: ee
|
|
1414
1415
|
});
|
|
1415
1416
|
function re(t) {
|
|
@@ -1420,53 +1421,53 @@ function L(t) {
|
|
|
1420
1421
|
const e = new Date(t);
|
|
1421
1422
|
return Number.isNaN(e.getTime()) ? void 0 : e;
|
|
1422
1423
|
}
|
|
1423
|
-
function
|
|
1424
|
-
const { model: e, onModelChange: a, getValue: r, doesRowPassOtherFilter: o } = t, [s,
|
|
1424
|
+
function ir(t) {
|
|
1425
|
+
const { model: e, onModelChange: a, getValue: r, doesRowPassOtherFilter: o } = t, [s, i] = R(() => ({
|
|
1425
1426
|
from: L(e == null ? void 0 : e.dateFrom),
|
|
1426
1427
|
to: L(e == null ? void 0 : e.dateTo)
|
|
1427
1428
|
}));
|
|
1428
1429
|
z(() => {
|
|
1429
|
-
|
|
1430
|
+
i({
|
|
1430
1431
|
from: L(e == null ? void 0 : e.dateFrom),
|
|
1431
1432
|
to: L(e == null ? void 0 : e.dateTo)
|
|
1432
1433
|
});
|
|
1433
1434
|
}, [e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo]), X({
|
|
1434
|
-
doesFilterPass: (
|
|
1435
|
+
doesFilterPass: (l) => {
|
|
1435
1436
|
const d = L(e == null ? void 0 : e.dateFrom), c = L(e == null ? void 0 : e.dateTo);
|
|
1436
1437
|
if (!d && !c) return !0;
|
|
1437
|
-
const u = r(
|
|
1438
|
+
const u = r(l.node);
|
|
1438
1439
|
if (!u) return !1;
|
|
1439
1440
|
const y = u instanceof Date ? u : L(String(u));
|
|
1440
1441
|
return !(!y || d && y < d || c && y > c);
|
|
1441
1442
|
}
|
|
1442
1443
|
});
|
|
1443
|
-
function p(
|
|
1444
|
-
if (l
|
|
1444
|
+
function p(l) {
|
|
1445
|
+
if (i(l), !l.from && !l.to) {
|
|
1445
1446
|
a(null);
|
|
1446
1447
|
return;
|
|
1447
1448
|
}
|
|
1448
1449
|
a({
|
|
1449
1450
|
type: "inRange",
|
|
1450
|
-
dateFrom: re(
|
|
1451
|
-
dateTo: re(
|
|
1451
|
+
dateFrom: re(l.from),
|
|
1452
|
+
dateTo: re(l.to)
|
|
1452
1453
|
});
|
|
1453
1454
|
}
|
|
1454
1455
|
return /* @__PURE__ */ n("div", { className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]", children: /* @__PURE__ */ n(Ee, { value: s, onChange: p, size: "sm" }) });
|
|
1455
1456
|
}
|
|
1456
|
-
function
|
|
1457
|
-
var
|
|
1458
|
-
const { model: e, onModelChange: a, column: r } = t, o = ((d = (
|
|
1457
|
+
function lr(t) {
|
|
1458
|
+
var l, d;
|
|
1459
|
+
const { model: e, onModelChange: a, column: r } = t, o = ((d = (l = r == null ? void 0 : r.getColDef) == null ? void 0 : l.call(r)) == null ? void 0 : d.filterParams) ?? {}, [s, i] = R(() => ({
|
|
1459
1460
|
from: L(e == null ? void 0 : e.dateFrom),
|
|
1460
1461
|
to: L(e == null ? void 0 : e.dateTo)
|
|
1461
1462
|
}));
|
|
1462
1463
|
z(() => {
|
|
1463
|
-
|
|
1464
|
+
i({
|
|
1464
1465
|
from: L(e == null ? void 0 : e.dateFrom),
|
|
1465
1466
|
to: L(e == null ? void 0 : e.dateTo)
|
|
1466
1467
|
});
|
|
1467
1468
|
}, [e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo]);
|
|
1468
1469
|
function p(c) {
|
|
1469
|
-
if (
|
|
1470
|
+
if (i(c), !c.from && !c.to) {
|
|
1470
1471
|
a(null);
|
|
1471
1472
|
return;
|
|
1472
1473
|
}
|
|
@@ -1489,9 +1490,9 @@ function sr(t) {
|
|
|
1489
1490
|
function H(t) {
|
|
1490
1491
|
return typeof t == "number" ? `n:${t}` : `s:${t}`;
|
|
1491
1492
|
}
|
|
1492
|
-
function
|
|
1493
|
-
const { model: e, onModelChange: a, getValue: r, api: o, column: s, options:
|
|
1494
|
-
if (
|
|
1493
|
+
function cr(t) {
|
|
1494
|
+
const { model: e, onModelChange: a, getValue: r, api: o, column: s, options: i, placeholder: p } = t, { t: l } = F("ui"), d = E(() => {
|
|
1495
|
+
if (i && i.length > 0) return i;
|
|
1495
1496
|
if (!o || !s) return [];
|
|
1496
1497
|
const f = /* @__PURE__ */ new Map();
|
|
1497
1498
|
return o.forEachNode((m) => {
|
|
@@ -1502,7 +1503,7 @@ function lr(t) {
|
|
|
1502
1503
|
}), Array.from(f.values()).sort(
|
|
1503
1504
|
(m, b) => String(m.label).localeCompare(String(b.label))
|
|
1504
1505
|
);
|
|
1505
|
-
}, [
|
|
1506
|
+
}, [i, o, s, r]), c = E(() => {
|
|
1506
1507
|
const f = /* @__PURE__ */ new Set(), m = (e == null ? void 0 : e.values) ?? [];
|
|
1507
1508
|
for (const b of m) f.add(H(b));
|
|
1508
1509
|
return f;
|
|
@@ -1538,20 +1539,20 @@ function lr(t) {
|
|
|
1538
1539
|
function C() {
|
|
1539
1540
|
y(/* @__PURE__ */ new Set()), a(null);
|
|
1540
1541
|
}
|
|
1541
|
-
const S = p ??
|
|
1542
|
+
const S = p ?? l("dataTable.selectFilter.all");
|
|
1542
1543
|
return /* @__PURE__ */ I(
|
|
1543
1544
|
"div",
|
|
1544
1545
|
{
|
|
1545
1546
|
"data-component": "select-filter",
|
|
1546
1547
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[200px] ds:max-w-[260px]",
|
|
1547
1548
|
children: [
|
|
1548
|
-
/* @__PURE__ */ n(
|
|
1549
|
+
/* @__PURE__ */ n(Ot, { orientation: "vertical", className: "ds:max-h-[240px]", children: /* @__PURE__ */ n(
|
|
1549
1550
|
"div",
|
|
1550
1551
|
{
|
|
1551
1552
|
role: "group",
|
|
1552
1553
|
"aria-label": S,
|
|
1553
|
-
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]
|
|
1554
|
-
children: d.length === 0 ? /* @__PURE__ */ n("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children:
|
|
1554
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
1555
|
+
children: d.length === 0 ? /* @__PURE__ */ n("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children: l("dataTable.agGrid.noRowsToShow") }) : d.map((f) => {
|
|
1555
1556
|
const m = H(f.value);
|
|
1556
1557
|
return /* @__PURE__ */ n(
|
|
1557
1558
|
Re,
|
|
@@ -1565,27 +1566,27 @@ function lr(t) {
|
|
|
1565
1566
|
);
|
|
1566
1567
|
})
|
|
1567
1568
|
}
|
|
1568
|
-
),
|
|
1569
|
+
) }),
|
|
1569
1570
|
/* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
|
|
1570
|
-
/* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: C, type: "button", children:
|
|
1571
|
-
/* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: T, type: "button", children:
|
|
1571
|
+
/* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: C, type: "button", children: l("dataTable.selectFilter.clear") }),
|
|
1572
|
+
/* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: T, type: "button", children: l("dataTable.selectFilter.apply") })
|
|
1572
1573
|
] })
|
|
1573
1574
|
]
|
|
1574
1575
|
}
|
|
1575
1576
|
);
|
|
1576
1577
|
}
|
|
1577
|
-
function
|
|
1578
|
+
function dr(t) {
|
|
1578
1579
|
var y;
|
|
1579
|
-
const { model: e, onModelChange: a, column: r } = t, o = (y = r == null ? void 0 : r.getColDef) == null ? void 0 : y.call(r), s = (o == null ? void 0 : o.filterParams) ?? {},
|
|
1580
|
+
const { model: e, onModelChange: a, column: r } = t, o = (y = r == null ? void 0 : r.getColDef) == null ? void 0 : y.call(r), s = (o == null ? void 0 : o.filterParams) ?? {}, i = s.options ?? [], p = s.placeholder ?? (typeof (o == null ? void 0 : o.headerName) == "string" ? o.headerName : void 0), l = E(() => {
|
|
1580
1581
|
const g = /* @__PURE__ */ new Map();
|
|
1581
|
-
for (const T of
|
|
1582
|
+
for (const T of i) g.set(String(T.value), T.value);
|
|
1582
1583
|
return g;
|
|
1583
|
-
}, [
|
|
1584
|
-
() =>
|
|
1584
|
+
}, [i]), d = E(
|
|
1585
|
+
() => i.map((g) => ({
|
|
1585
1586
|
value: String(g.value),
|
|
1586
1587
|
label: g.label
|
|
1587
1588
|
})),
|
|
1588
|
-
[
|
|
1589
|
+
[i]
|
|
1589
1590
|
), c = E(
|
|
1590
1591
|
() => ((e == null ? void 0 : e.values) ?? []).map((g) => String(g)),
|
|
1591
1592
|
[e]
|
|
@@ -1597,7 +1598,7 @@ function ir(t) {
|
|
|
1597
1598
|
}
|
|
1598
1599
|
const T = [];
|
|
1599
1600
|
for (const C of g) {
|
|
1600
|
-
const S =
|
|
1601
|
+
const S = l.get(C);
|
|
1601
1602
|
S !== void 0 && T.push(S);
|
|
1602
1603
|
}
|
|
1603
1604
|
a({ type: "set", values: T });
|
|
@@ -1618,18 +1619,18 @@ function ir(t) {
|
|
|
1618
1619
|
function J(t) {
|
|
1619
1620
|
return t.trim().toLocaleLowerCase();
|
|
1620
1621
|
}
|
|
1621
|
-
function
|
|
1622
|
+
function ur(t) {
|
|
1622
1623
|
const {
|
|
1623
1624
|
model: e,
|
|
1624
1625
|
onModelChange: a,
|
|
1625
1626
|
getValue: r,
|
|
1626
1627
|
api: o,
|
|
1627
1628
|
column: s,
|
|
1628
|
-
options:
|
|
1629
|
+
options: i,
|
|
1629
1630
|
loadOptions: p,
|
|
1630
|
-
placeholder:
|
|
1631
|
+
placeholder: l
|
|
1631
1632
|
} = t, { t: d } = F("ui"), c = E(() => {
|
|
1632
|
-
if (
|
|
1633
|
+
if (i && i.length > 0) return i;
|
|
1633
1634
|
if (!o || !s) return [];
|
|
1634
1635
|
const m = /* @__PURE__ */ new Map();
|
|
1635
1636
|
return o.forEachNode((b) => {
|
|
@@ -1640,7 +1641,7 @@ function cr(t) {
|
|
|
1640
1641
|
}), Array.from(m.values()).sort(
|
|
1641
1642
|
(b, h) => b.label.localeCompare(h.label)
|
|
1642
1643
|
);
|
|
1643
|
-
}, [
|
|
1644
|
+
}, [i, o, s, r]), u = E(() => async (m, b) => {
|
|
1644
1645
|
if (p)
|
|
1645
1646
|
return (await p(m, b)).map((k) => ({ value: k.value, label: k.label }));
|
|
1646
1647
|
const h = J(m);
|
|
@@ -1667,7 +1668,7 @@ function cr(t) {
|
|
|
1667
1668
|
function S() {
|
|
1668
1669
|
g(""), a(null);
|
|
1669
1670
|
}
|
|
1670
|
-
const f =
|
|
1671
|
+
const f = l ?? d("dataTable.typeaheadFilter.placeholder");
|
|
1671
1672
|
return /* @__PURE__ */ I(
|
|
1672
1673
|
"div",
|
|
1673
1674
|
{
|
|
@@ -1691,14 +1692,14 @@ function cr(t) {
|
|
|
1691
1692
|
}
|
|
1692
1693
|
);
|
|
1693
1694
|
}
|
|
1694
|
-
function
|
|
1695
|
+
function pr(t) {
|
|
1695
1696
|
var T, C;
|
|
1696
|
-
const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((C = (T = r == null ? void 0 : r.getColDef) == null ? void 0 : T.call(r)) == null ? void 0 : C.filterParams) ?? {},
|
|
1697
|
+
const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((C = (T = r == null ? void 0 : r.getColDef) == null ? void 0 : T.call(r)) == null ? void 0 : C.filterParams) ?? {}, i = s.options ?? [], p = s.loadOptions, l = s.placeholder ?? o("dataTable.typeaheadFilter.placeholder"), d = E(() => async (S, f) => {
|
|
1697
1698
|
if (p)
|
|
1698
1699
|
return (await p(S, f)).map((w) => ({ value: w.value, label: w.label }));
|
|
1699
1700
|
const m = J(S);
|
|
1700
|
-
return (m ?
|
|
1701
|
-
}, [p,
|
|
1701
|
+
return (m ? i.filter((h) => J(h.label).includes(m)) : i).slice(0, 50).map((h) => ({ value: h.value, label: h.label }));
|
|
1702
|
+
}, [p, i]), [c, u] = R((e == null ? void 0 : e.value) ?? "");
|
|
1702
1703
|
z(() => {
|
|
1703
1704
|
u((e == null ? void 0 : e.value) ?? "");
|
|
1704
1705
|
}, [e == null ? void 0 : e.value]);
|
|
@@ -1716,8 +1717,8 @@ function dr(t) {
|
|
|
1716
1717
|
onChange: g,
|
|
1717
1718
|
onSelect: y,
|
|
1718
1719
|
loadOptions: d,
|
|
1719
|
-
placeholder:
|
|
1720
|
-
"aria-label":
|
|
1720
|
+
placeholder: l,
|
|
1721
|
+
"aria-label": l
|
|
1721
1722
|
}
|
|
1722
1723
|
) });
|
|
1723
1724
|
}
|
|
@@ -1738,7 +1739,7 @@ function ve(t) {
|
|
|
1738
1739
|
function Te(t) {
|
|
1739
1740
|
return t === "inRange";
|
|
1740
1741
|
}
|
|
1741
|
-
function
|
|
1742
|
+
function ca(t, e, a, r) {
|
|
1742
1743
|
if (t === "blank") return e === null;
|
|
1743
1744
|
if (t === "notBlank") return e !== null;
|
|
1744
1745
|
if (e === null) return !1;
|
|
@@ -1765,21 +1766,21 @@ function ia(t, e, a, r) {
|
|
|
1765
1766
|
return !0;
|
|
1766
1767
|
}
|
|
1767
1768
|
}
|
|
1768
|
-
function
|
|
1769
|
+
function da(t) {
|
|
1769
1770
|
if (t == null || t === "") return null;
|
|
1770
1771
|
const e = typeof t == "number" ? t : Number(t);
|
|
1771
1772
|
return Number.isNaN(e) ? null : e;
|
|
1772
1773
|
}
|
|
1773
|
-
function
|
|
1774
|
+
function fr(t) {
|
|
1774
1775
|
const {
|
|
1775
1776
|
model: e,
|
|
1776
1777
|
onModelChange: a,
|
|
1777
1778
|
getValue: r,
|
|
1778
1779
|
defaultOperator: o,
|
|
1779
1780
|
min: s,
|
|
1780
|
-
max:
|
|
1781
|
+
max: i,
|
|
1781
1782
|
step: p,
|
|
1782
|
-
placeholder:
|
|
1783
|
+
placeholder: l
|
|
1783
1784
|
} = t, { t: d } = F("ui"), c = (e == null ? void 0 : e.type) ?? o ?? "equals", [u, y] = R(c), [g, T] = R((e == null ? void 0 : e.filter) ?? null), [C, S] = R(
|
|
1784
1785
|
(e == null ? void 0 : e.filterTo) ?? null
|
|
1785
1786
|
);
|
|
@@ -1792,8 +1793,8 @@ function ur(t) {
|
|
|
1792
1793
|
}, [e, o]), X({
|
|
1793
1794
|
doesFilterPass: (k) => {
|
|
1794
1795
|
if (!e) return !0;
|
|
1795
|
-
const $ =
|
|
1796
|
-
return
|
|
1796
|
+
const $ = da(r(k.node));
|
|
1797
|
+
return ca(
|
|
1797
1798
|
e.type,
|
|
1798
1799
|
$,
|
|
1799
1800
|
e.filter ?? null,
|
|
@@ -1807,7 +1808,7 @@ function ur(t) {
|
|
|
1807
1808
|
label: d(`dataTable.numberFilter.operators.${k}`)
|
|
1808
1809
|
})),
|
|
1809
1810
|
[d]
|
|
1810
|
-
), m =
|
|
1811
|
+
), m = l ?? d("dataTable.numberFilter.placeholder");
|
|
1811
1812
|
function b() {
|
|
1812
1813
|
if (!ve(u)) {
|
|
1813
1814
|
a({ type: u, filter: 0 });
|
|
@@ -1856,7 +1857,7 @@ function ur(t) {
|
|
|
1856
1857
|
value: g,
|
|
1857
1858
|
onChange: T,
|
|
1858
1859
|
min: s,
|
|
1859
|
-
max:
|
|
1860
|
+
max: i,
|
|
1860
1861
|
step: p,
|
|
1861
1862
|
placeholder: m,
|
|
1862
1863
|
"aria-label": m
|
|
@@ -1870,7 +1871,7 @@ function ur(t) {
|
|
|
1870
1871
|
value: g,
|
|
1871
1872
|
onChange: T,
|
|
1872
1873
|
min: s,
|
|
1873
|
-
max:
|
|
1874
|
+
max: i,
|
|
1874
1875
|
step: p,
|
|
1875
1876
|
placeholder: d("dataTable.numberFilter.from"),
|
|
1876
1877
|
"aria-label": d("dataTable.numberFilter.from")
|
|
@@ -1883,7 +1884,7 @@ function ur(t) {
|
|
|
1883
1884
|
value: C,
|
|
1884
1885
|
onChange: S,
|
|
1885
1886
|
min: s,
|
|
1886
|
-
max:
|
|
1887
|
+
max: i,
|
|
1887
1888
|
step: p,
|
|
1888
1889
|
placeholder: d("dataTable.numberFilter.to"),
|
|
1889
1890
|
"aria-label": d("dataTable.numberFilter.to")
|
|
@@ -1898,26 +1899,26 @@ function ur(t) {
|
|
|
1898
1899
|
}
|
|
1899
1900
|
);
|
|
1900
1901
|
}
|
|
1901
|
-
function
|
|
1902
|
+
function mr(t) {
|
|
1902
1903
|
var c, u;
|
|
1903
|
-
const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((u = (c = r == null ? void 0 : r.getColDef) == null ? void 0 : c.call(r)) == null ? void 0 : u.filterParams) ?? {},
|
|
1904
|
+
const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((u = (c = r == null ? void 0 : r.getColDef) == null ? void 0 : c.call(r)) == null ? void 0 : u.filterParams) ?? {}, i = s.defaultOperator ?? "equals", p = s.placeholder ?? o("dataTable.numberFilter.placeholder"), [l, d] = R((e == null ? void 0 : e.filter) ?? null);
|
|
1904
1905
|
return z(() => {
|
|
1905
1906
|
d((e == null ? void 0 : e.filter) ?? null);
|
|
1906
1907
|
}, [e == null ? void 0 : e.filter]), z(() => {
|
|
1907
|
-
if (
|
|
1908
|
+
if (l === ((e == null ? void 0 : e.filter) ?? null)) return;
|
|
1908
1909
|
const y = setTimeout(() => {
|
|
1909
|
-
if (
|
|
1910
|
+
if (l === null || Number.isNaN(l)) {
|
|
1910
1911
|
a(null);
|
|
1911
1912
|
return;
|
|
1912
1913
|
}
|
|
1913
|
-
a({ type:
|
|
1914
|
+
a({ type: i, filter: l });
|
|
1914
1915
|
}, 200);
|
|
1915
1916
|
return () => clearTimeout(y);
|
|
1916
|
-
}, [
|
|
1917
|
+
}, [l, i]), /* @__PURE__ */ n("div", { "data-component": "number-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
|
|
1917
1918
|
Y,
|
|
1918
1919
|
{
|
|
1919
1920
|
size: "sm",
|
|
1920
|
-
value:
|
|
1921
|
+
value: l,
|
|
1921
1922
|
onChange: d,
|
|
1922
1923
|
min: s.min,
|
|
1923
1924
|
max: s.max,
|
|
@@ -1927,22 +1928,22 @@ function pr(t) {
|
|
|
1927
1928
|
}
|
|
1928
1929
|
) });
|
|
1929
1930
|
}
|
|
1930
|
-
function
|
|
1931
|
+
function gr(t) {
|
|
1931
1932
|
const { value: e, variantMap: a } = t, r = (a == null ? void 0 : a[e]) ?? "neutral";
|
|
1932
|
-
return /* @__PURE__ */ n(
|
|
1933
|
+
return /* @__PURE__ */ n(zt, { variant: r, withDot: !0, size: "sm", children: String(e ?? "") });
|
|
1933
1934
|
}
|
|
1934
|
-
function
|
|
1935
|
+
function br(t) {
|
|
1935
1936
|
const { value: e } = t;
|
|
1936
1937
|
return e ? /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
1937
1938
|
/* @__PURE__ */ n(Oe, { name: e.name, src: e.src, size: "sm" }),
|
|
1938
1939
|
/* @__PURE__ */ n("span", { children: e.name })
|
|
1939
1940
|
] }) : null;
|
|
1940
1941
|
}
|
|
1941
|
-
const
|
|
1942
|
+
const ua = {
|
|
1942
1943
|
sm: "ds:size-8",
|
|
1943
1944
|
md: "ds:size-10",
|
|
1944
1945
|
lg: "ds:size-12"
|
|
1945
|
-
},
|
|
1946
|
+
}, pa = {
|
|
1946
1947
|
square: "ds:rounded-none",
|
|
1947
1948
|
rounded: "ds:rounded-[var(--radius-md)]",
|
|
1948
1949
|
circle: "ds:rounded-[var(--radius-full)]"
|
|
@@ -1952,44 +1953,44 @@ function de(t, e) {
|
|
|
1952
1953
|
const a = t[e];
|
|
1953
1954
|
return typeof a == "string" ? a : void 0;
|
|
1954
1955
|
}
|
|
1955
|
-
const
|
|
1956
|
-
function
|
|
1956
|
+
const fa = /^(?:https?:|data:image\/)/i;
|
|
1957
|
+
function ma(t) {
|
|
1957
1958
|
if (!t) return;
|
|
1958
1959
|
const e = t.trim();
|
|
1959
1960
|
if (e.length !== 0)
|
|
1960
|
-
return
|
|
1961
|
+
return fa.test(e) ? e : void 0;
|
|
1961
1962
|
}
|
|
1962
|
-
function
|
|
1963
|
+
function hr(t) {
|
|
1963
1964
|
const {
|
|
1964
1965
|
data: e,
|
|
1965
1966
|
srcField: a,
|
|
1966
1967
|
altField: r,
|
|
1967
1968
|
fallbackField: o,
|
|
1968
1969
|
size: s = "md",
|
|
1969
|
-
shape:
|
|
1970
|
+
shape: i = "rounded"
|
|
1970
1971
|
} = t;
|
|
1971
1972
|
if (!e) return null;
|
|
1972
|
-
const p = de(e, a),
|
|
1973
|
-
return
|
|
1973
|
+
const p = de(e, a), l = ma(p), d = r ? de(e, r) ?? "" : "", c = o ? de(e, o) : void 0;
|
|
1974
|
+
return l ? /* @__PURE__ */ n(
|
|
1974
1975
|
"img",
|
|
1975
1976
|
{
|
|
1976
|
-
src:
|
|
1977
|
+
src: l,
|
|
1977
1978
|
alt: d,
|
|
1978
1979
|
loading: "lazy",
|
|
1979
1980
|
decoding: "async",
|
|
1980
|
-
className: ["ds:object-cover",
|
|
1981
|
+
className: ["ds:object-cover", ua[s], pa[i]].join(
|
|
1981
1982
|
" "
|
|
1982
1983
|
)
|
|
1983
1984
|
}
|
|
1984
1985
|
) : c ? /* @__PURE__ */ n(Oe, { name: c, size: s }) : null;
|
|
1985
1986
|
}
|
|
1986
|
-
function
|
|
1987
|
+
function vr(t) {
|
|
1987
1988
|
const { value: e, maxVisible: a = 3 } = t, { t: r } = F();
|
|
1988
1989
|
if (!Array.isArray(e) || e.length === 0) return null;
|
|
1989
1990
|
const o = e.slice(0, a), s = e.length - a;
|
|
1990
1991
|
return /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1991
|
-
o.map((
|
|
1992
|
-
s > 0 && /* @__PURE__ */ n(
|
|
1992
|
+
o.map((i) => /* @__PURE__ */ n(te, { label: i, size: "sm" }, i)),
|
|
1993
|
+
s > 0 && /* @__PURE__ */ n(Pt, { label: e.slice(a).join(", "), children: /* @__PURE__ */ n(
|
|
1993
1994
|
te,
|
|
1994
1995
|
{
|
|
1995
1996
|
label: r("inputs.multiSelect.overflow", { count: s }),
|
|
@@ -2000,7 +2001,7 @@ function br(t) {
|
|
|
2000
2001
|
) })
|
|
2001
2002
|
] });
|
|
2002
2003
|
}
|
|
2003
|
-
const
|
|
2004
|
+
const ga = {
|
|
2004
2005
|
date: { year: "numeric", month: "short", day: "numeric" },
|
|
2005
2006
|
time: { hour: "2-digit", minute: "2-digit" },
|
|
2006
2007
|
datetime: {
|
|
@@ -2011,7 +2012,7 @@ const ma = {
|
|
|
2011
2012
|
minute: "2-digit"
|
|
2012
2013
|
}
|
|
2013
2014
|
};
|
|
2014
|
-
function
|
|
2015
|
+
function Tr(t) {
|
|
2015
2016
|
const { value: e, format: a = "date", options: r } = t;
|
|
2016
2017
|
return e == null || e === "" ? null : a === "relative" && !r ? /* @__PURE__ */ n(he, { value: e, shape: "bare" }) : /* @__PURE__ */ n(
|
|
2017
2018
|
he,
|
|
@@ -2019,25 +2020,25 @@ function hr(t) {
|
|
|
2019
2020
|
value: e,
|
|
2020
2021
|
format: "absolute",
|
|
2021
2022
|
shape: "bare",
|
|
2022
|
-
absoluteFormat: r ??
|
|
2023
|
+
absoluteFormat: r ?? ga[a === "relative" ? "date" : a]
|
|
2023
2024
|
}
|
|
2024
2025
|
);
|
|
2025
2026
|
}
|
|
2026
|
-
function
|
|
2027
|
+
function ba(t) {
|
|
2027
2028
|
if (t == null || t === "") return null;
|
|
2028
2029
|
const e = typeof t == "number" ? t : Number(t);
|
|
2029
2030
|
return Number.isFinite(e) ? e : null;
|
|
2030
2031
|
}
|
|
2031
|
-
function
|
|
2032
|
+
function yr(t) {
|
|
2032
2033
|
const {
|
|
2033
2034
|
value: e,
|
|
2034
2035
|
currency: a = "EUR",
|
|
2035
2036
|
colorNegative: r,
|
|
2036
2037
|
strikethrough: o,
|
|
2037
2038
|
options: s
|
|
2038
|
-
} = t, { i18n:
|
|
2039
|
+
} = t, { i18n: i } = F(), p = ba(e);
|
|
2039
2040
|
if (p === null) return null;
|
|
2040
|
-
const
|
|
2041
|
+
const l = i.language || "en", d = new Intl.NumberFormat(l, {
|
|
2041
2042
|
style: "currency",
|
|
2042
2043
|
currency: a,
|
|
2043
2044
|
...s
|
|
@@ -2049,29 +2050,29 @@ function ye(t) {
|
|
|
2049
2050
|
const e = t, a = e.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} size-4`.trim();
|
|
2050
2051
|
return Fe(e, { className: r, size: e.props.size ?? 16 });
|
|
2051
2052
|
}
|
|
2052
|
-
function
|
|
2053
|
+
function Cr(t) {
|
|
2053
2054
|
return Math.max(1, t) * 32 + 26;
|
|
2054
2055
|
}
|
|
2055
2056
|
function ue(t, e) {
|
|
2056
2057
|
return typeof t == "function" ? t(e) : !!t;
|
|
2057
2058
|
}
|
|
2058
|
-
const
|
|
2059
|
-
function
|
|
2060
|
-
const { data: e, actions: a, intent: r = "ghost", group: o, label: s, collapsed:
|
|
2059
|
+
const ha = "ds:text-[color:var(--destructive)] ds:hover:text-[color:var(--destructive-hover)]";
|
|
2060
|
+
function xr(t) {
|
|
2061
|
+
const { data: e, actions: a, intent: r = "ghost", group: o, label: s, collapsed: i } = t, { t: p } = F();
|
|
2061
2062
|
if (!e) return null;
|
|
2062
|
-
const
|
|
2063
|
-
if (typeof
|
|
2063
|
+
const l = a.filter((u) => !ue(u.hidden, e));
|
|
2064
|
+
if (typeof i == "function" ? i() : !!i)
|
|
2064
2065
|
return /* @__PURE__ */ I(_.Root, { children: [
|
|
2065
2066
|
/* @__PURE__ */ n(_.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
|
|
2066
2067
|
V,
|
|
2067
2068
|
{
|
|
2068
2069
|
size: "sm",
|
|
2069
2070
|
intent: r,
|
|
2070
|
-
icon: /* @__PURE__ */ n(
|
|
2071
|
+
icon: /* @__PURE__ */ n(qt, { "aria-hidden": !0 }),
|
|
2071
2072
|
"aria-label": s ?? p("dataTable.actions", "Actions")
|
|
2072
2073
|
}
|
|
2073
2074
|
) }),
|
|
2074
|
-
/* @__PURE__ */ n(_.Content, { align: "end", children:
|
|
2075
|
+
/* @__PURE__ */ n(_.Content, { align: "end", children: l.map((u, y) => /* @__PURE__ */ n(
|
|
2075
2076
|
_.Item,
|
|
2076
2077
|
{
|
|
2077
2078
|
startIcon: ye(u.icon),
|
|
@@ -2083,7 +2084,7 @@ function yr(t) {
|
|
|
2083
2084
|
y
|
|
2084
2085
|
)) })
|
|
2085
2086
|
] });
|
|
2086
|
-
const c =
|
|
2087
|
+
const c = l.map((u, y) => {
|
|
2087
2088
|
const g = ue(u.disabled, e), T = g && u.disabledReason ? u.disabledReason : u.label;
|
|
2088
2089
|
return /* @__PURE__ */ n(
|
|
2089
2090
|
V,
|
|
@@ -2097,13 +2098,13 @@ function yr(t) {
|
|
|
2097
2098
|
onClick: (C) => {
|
|
2098
2099
|
C.stopPropagation(), u.onClick(e);
|
|
2099
2100
|
},
|
|
2100
|
-
className: u.variant === "destructive" ?
|
|
2101
|
+
className: u.variant === "destructive" ? ha : void 0
|
|
2101
2102
|
},
|
|
2102
2103
|
y
|
|
2103
2104
|
);
|
|
2104
2105
|
});
|
|
2105
2106
|
return o ? /* @__PURE__ */ n(
|
|
2106
|
-
|
|
2107
|
+
Mt,
|
|
2107
2108
|
{
|
|
2108
2109
|
"aria-label": s ?? p("dataTable.actions", "Actions"),
|
|
2109
2110
|
size: "sm",
|
|
@@ -2114,13 +2115,13 @@ function yr(t) {
|
|
|
2114
2115
|
function Ce(t, e) {
|
|
2115
2116
|
return typeof t == "function" ? t(e) : t;
|
|
2116
2117
|
}
|
|
2117
|
-
function
|
|
2118
|
+
function va(t) {
|
|
2118
2119
|
return /^(https?:\/\/|\/|#|mailto:|tel:)/i.test(t) ? t : "#";
|
|
2119
2120
|
}
|
|
2120
|
-
function
|
|
2121
|
+
function Sr(t) {
|
|
2121
2122
|
const { value: e, data: a, href: r, onClick: o, secondary: s } = t;
|
|
2122
2123
|
if (!a) return null;
|
|
2123
|
-
const
|
|
2124
|
+
const i = Ce(r, a), p = Ce(s, a), l = e == null || e === "" ? "" : String(e), d = [
|
|
2124
2125
|
"ds:text-[color:var(--primary)]",
|
|
2125
2126
|
"ds:hover:underline",
|
|
2126
2127
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
@@ -2129,16 +2130,16 @@ function Cr(t) {
|
|
|
2129
2130
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
2130
2131
|
"ds:rounded-[var(--radius-sm)]"
|
|
2131
2132
|
].join(" "), c = (u) => {
|
|
2132
|
-
o && (
|
|
2133
|
+
o && (i || u.preventDefault(), u.stopPropagation(), o(a));
|
|
2133
2134
|
};
|
|
2134
2135
|
return /* @__PURE__ */ I("span", { className: "ds:flex ds:flex-col ds:leading-tight", children: [
|
|
2135
|
-
|
|
2136
|
+
i ? /* @__PURE__ */ n(
|
|
2136
2137
|
"a",
|
|
2137
2138
|
{
|
|
2138
|
-
href:
|
|
2139
|
+
href: va(i),
|
|
2139
2140
|
onClick: c,
|
|
2140
2141
|
className: d,
|
|
2141
|
-
children:
|
|
2142
|
+
children: l
|
|
2142
2143
|
}
|
|
2143
2144
|
) : /* @__PURE__ */ n(
|
|
2144
2145
|
"button",
|
|
@@ -2149,36 +2150,36 @@ function Cr(t) {
|
|
|
2149
2150
|
"ds:appearance-none ds:bg-transparent ds:p-0 ds:text-start",
|
|
2150
2151
|
d
|
|
2151
2152
|
].join(" "),
|
|
2152
|
-
children:
|
|
2153
|
+
children: l
|
|
2153
2154
|
}
|
|
2154
2155
|
),
|
|
2155
2156
|
p ? /* @__PURE__ */ n("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: p }) : null
|
|
2156
2157
|
] });
|
|
2157
2158
|
}
|
|
2158
2159
|
export {
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2160
|
+
xr as A,
|
|
2161
|
+
yr as C,
|
|
2162
|
+
sr as D,
|
|
2163
|
+
hr as I,
|
|
2164
|
+
Sr as L,
|
|
2165
|
+
fr as N,
|
|
2166
|
+
cr as S,
|
|
2167
|
+
vr as T,
|
|
2168
|
+
br as U,
|
|
2169
|
+
Tr as a,
|
|
2170
|
+
ir as b,
|
|
2171
|
+
lr as c,
|
|
2172
|
+
mr as d,
|
|
2173
|
+
dr as e,
|
|
2174
|
+
gr as f,
|
|
2175
|
+
Zt as g,
|
|
2176
|
+
Yt as h,
|
|
2176
2177
|
ee as i,
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2178
|
+
jt as j,
|
|
2179
|
+
ur as k,
|
|
2180
|
+
pr as l,
|
|
2181
|
+
Cr as m,
|
|
2182
|
+
ea as n,
|
|
2182
2183
|
je as o
|
|
2183
2184
|
};
|
|
2184
|
-
//# sourceMappingURL=link-cell-renderer-
|
|
2185
|
+
//# sourceMappingURL=link-cell-renderer-De_SLjSq.js.map
|