@alfadocs/ui-kit 1.115.0 → 1.116.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/accessible-target-Bs9ELM3l.js +6 -0
- package/dist/_chunks/{actions-cell-renderer-bI27uXXC.js → actions-cell-renderer-DzHxDyI7.js} +3 -3
- package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-BFVCtfP2.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-BZ36ULQk.js → anamnesis-summary-rows-gEXqU5i5.js} +6 -6
- package/dist/_chunks/{appointment-card-D_-aBrx5.js → appointment-card-BMZoXaGx.js} +3 -3
- package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-B1CCv-7J.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DxLu3afn.js → appointment-timeline-0k4LxODn.js} +3 -3
- package/dist/_chunks/{appointment-tray-BhXOJpIJ.js → appointment-tray-DIxpgIXM.js} +2 -2
- package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
- package/dist/_chunks/{balance-badge-cell-CXHihM22.js → balance-badge-cell-L7bD0Nsh.js} +6 -6
- package/dist/_chunks/bill-line-table-WEIRDcv6.js +1563 -0
- package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-BjUfXqcY.js} +2 -2
- package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-BvU9vRnX.js} +2 -2
- package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BVzFi4hH.js → calendar-appointment-editor-dialog-DqZMb4yd.js} +16 -16
- package/dist/_chunks/{care-plan-card-BA3MfdfZ.js → care-plan-card-CfV8jiF0.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CUtFZ813.js → care-plan-entry-card-Bt01kyTl.js} +3 -3
- package/dist/_chunks/{chart-DebrFZ6L.js → chart-BSx8cfMm.js} +2 -2
- package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
- package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
- package/dist/_chunks/{compact-editor-fields-cP6yh7xv.js → compact-editor-fields-6sTWRLtf.js} +3 -3
- package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BRCHbQ3-.js} +2 -2
- package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C68V9rdH.js → cycle-calculator-Brd0PP4U.js} +2 -2
- package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-3aidD-IQ.js} +2 -2
- package/dist/_chunks/{toolbar-Bc3pjfG5.js → data-grid-ByhrYGVw.js} +3013 -3106
- package/dist/_chunks/{data-grid-tabs-CsLbIv0h.js → data-grid-tabs-D9Y4DeeH.js} +2 -2
- package/dist/_chunks/{data-table-DXaE2Ret.js → data-table-B47iw2CO.js} +101 -100
- package/dist/_chunks/{date-range-panel-CBFfkgmz.js → date-range-panel-B-DUtfw3.js} +7 -7
- package/dist/_chunks/default-tabs-BQcSqcNG.js +2250 -0
- package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
- package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-B_JGHsEW.js} +2 -2
- package/dist/_chunks/{dropdown-menu-CqxBthww.js → dropdown-menu-Dmbak7q6.js} +320 -248
- package/dist/_chunks/{due-date-calculator-C1UA5jpS.js → due-date-calculator-DzIQXEX5.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-CtlMhLai.js → editable-currency-cell-renderer-p-Q1UkZS.js} +2 -2
- package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
- package/dist/_chunks/{face-scheme-DkoxiDCh.js → face-scheme-CEjJUnNe.js} +19 -18
- package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-CJTlfh_k.js} +2 -2
- package/dist/_chunks/{file-manager-DFFExyym.js → file-manager-DEe51ZDe.js} +5 -5
- package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
- package/dist/_chunks/{grid-context-AwsLJRhH.js → grid-context-jn9y8tNE.js} +4 -4
- package/dist/_chunks/{hcg-doubling-CC-dbKE8.js → hcg-doubling-BUZQkSYC.js} +2 -2
- package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DNgvO8fS.js} +2 -2
- package/dist/_chunks/{heatmap-eXdtmEoU.js → heatmap-tn1WxoMT.js} +3 -3
- package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/{icon-button-group-C9mPK-bX.js → icon-button-group-Ca2VkXy5.js} +2 -2
- package/dist/_chunks/{kit-extensions-CzG0RmhQ.js → kit-extensions-BFfLg7c-.js} +6 -6
- package/dist/_chunks/{link-cell-renderer-Ditt5mvT.js → link-cell-renderer-D-Io828l.js} +4 -4
- package/dist/_chunks/{marketplace-app-shell-CcEHJgDd.js → marketplace-app-shell-CBHNg8x-.js} +4 -4
- package/dist/_chunks/money-OE6_oDPH.js +138 -0
- package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-7UsRsCHP.js} +2 -2
- package/dist/_chunks/{notes-panel-BVYG_MJE.js → notes-panel-DexbfrFo.js} +3 -3
- package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
- package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
- package/dist/_chunks/parts-CtcTW1PN.js +869 -0
- package/dist/_chunks/{patient-details-DlT-vpSe.js → patient-details-PJ0Y__7t.js} +2 -2
- package/dist/_chunks/{patient-field-row-B54uzvu-.js → patient-field-row-0QP8KCVp.js} +5 -5
- package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-Bdx_Ob3y.js} +2 -2
- package/dist/_chunks/{patient-summary-card-Dy9-CzON.js → patient-summary-card-BOfXDP8a.js} +3 -3
- package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-_04afZEx.js} +14 -13
- package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CrBjScXX.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-qZpw3zj8.js → pregnancy-dating-Bg_VUPwl.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-B-eXFdmq.js} +2 -2
- package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-C1LGeX-G.js → radiograph-panel.agent-9jwXlOXB.js} +2 -2
- package/dist/_chunks/{reserved.agent-6p3Hm4oH.js → reserved.agent-C1zRHaya.js} +4 -4
- package/dist/_chunks/{rich-text-editor-efaMWbYz.js → rich-text-editor-r80Zw8ll.js} +12 -11
- package/dist/_chunks/row-actions-Df7TJbNR.js +213 -0
- package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-CgvjLic3.js} +3 -3
- package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-DTn8pHqH.js} +2 -2
- package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-CsmgkiG6.js} +2 -2
- package/dist/_chunks/{task-editor-CSa6vQ9r.js → task-editor-DgUjtqpX.js} +168 -178
- package/dist/_chunks/{tasks-panel-CVjY1d7Q.js → tasks-panel-B5Nsf10r.js} +2 -2
- package/dist/_chunks/{theme-toggle-CObX2Ffa.js → theme-toggle-DfvdEg_V.js} +3 -3
- package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BdcmK5Um.js} +2 -2
- package/dist/_chunks/toolbar-DbUQBrq4.js +159 -0
- package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-LTkT4EXd.js} +2 -2
- package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
- package/dist/_chunks/{treatment-receipt-BydbojdD.js → treatment-receipt-1VnuinhY.js} +2 -2
- package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
- package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BMAiQYo6.js → use-appointment-details-read-_r7cjTtm.js} +7 -7
- package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
- package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
- package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-D-u8_YSr.js} +2 -2
- package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-fykpTxfb.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DNSe65yd.js → workflow-webhook-action-DM3W8XZE.js} +2 -2
- package/dist/agent-catalog.json +1080 -1
- package/dist/agent-i18n/en.json +50 -0
- package/dist/components/_shared/accessible-target.d.ts +12 -0
- package/dist/components/_shared/decimal.d.ts +171 -0
- package/dist/components/_shared/format-price.d.ts +54 -2
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.columns.d.ts +47 -0
- package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
- package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
- package/dist/components/bill-line-table/bill-line-table.variants.d.ts +34 -0
- package/dist/components/bill-line-table/index.d.ts +6 -0
- package/dist/components/bill-line-table/index.js +23 -0
- package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
- package/dist/components/bill-table/bill-table.d.ts +13 -0
- package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
- package/dist/components/bill-table/cells.d.ts +89 -0
- package/dist/components/bill-table/columns.d.ts +21 -0
- package/dist/components/bill-table/default-tabs.d.ts +21 -0
- package/dist/components/bill-table/handle.d.ts +19 -0
- package/dist/components/bill-table/index.d.ts +7 -0
- package/dist/components/bill-table/index.js +19 -0
- package/dist/components/bill-table/model.d.ts +103 -0
- package/dist/components/bill-table/row-actions.d.ts +27 -0
- package/dist/components/bill-table/status-maps.d.ts +225 -0
- package/dist/components/bill-table/types.d.ts +542 -0
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/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/chart/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +59 -1
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-grid/body.d.ts +6 -0
- package/dist/components/data-grid/data-grid.variants.d.ts +1 -9
- package/dist/components/data-grid/editors.d.ts +7 -1
- package/dist/components/data-grid/index.js +9 -8
- package/dist/components/data-grid/selection.d.ts +10 -0
- package/dist/components/data-grid/types.d.ts +61 -11
- package/dist/components/data-grid-tabs/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/dialog/focus-return.d.ts +12 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/money/index.js +1 -1
- package/dist/components/money/money.d.ts +39 -6
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +43 -2
- package/dist/components/number-input/use-locale-number.d.ts +67 -3
- package/dist/components/optical-prescription/index.js +1 -1
- 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/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/row-actions/index.d.ts +3 -0
- package/dist/components/row-actions/index.js +5 -0
- package/dist/components/row-actions/row-actions.d.ts +63 -0
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/smart-date/smart-date.d.ts +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/decimal/index.js +149 -0
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +248 -0
- package/dist/i18n/locales/ar.js +249 -1
- package/dist/i18n/locales/de.d.ts +248 -0
- package/dist/i18n/locales/de.js +249 -1
- package/dist/i18n/locales/el.d.ts +248 -0
- package/dist/i18n/locales/el.js +249 -1
- package/dist/i18n/locales/en.d.ts +248 -0
- package/dist/i18n/locales/en.js +249 -1
- package/dist/i18n/locales/es.d.ts +248 -0
- package/dist/i18n/locales/es.js +249 -1
- package/dist/i18n/locales/fr.d.ts +248 -0
- package/dist/i18n/locales/fr.js +249 -1
- package/dist/i18n/locales/hi.d.ts +248 -0
- package/dist/i18n/locales/hi.js +249 -1
- package/dist/i18n/locales/it.d.ts +248 -0
- package/dist/i18n/locales/it.js +249 -1
- package/dist/i18n/locales/ja.d.ts +248 -0
- package/dist/i18n/locales/ja.js +249 -1
- package/dist/i18n/locales/nl.d.ts +248 -0
- package/dist/i18n/locales/nl.js +249 -1
- package/dist/i18n/locales/pl.d.ts +248 -0
- package/dist/i18n/locales/pl.js +249 -1
- package/dist/i18n/locales/pt.d.ts +248 -0
- package/dist/i18n/locales/pt.js +249 -1
- package/dist/i18n/locales/ro.d.ts +248 -0
- package/dist/i18n/locales/ro.js +249 -1
- package/dist/i18n/locales/ru.d.ts +248 -0
- package/dist/i18n/locales/ru.js +249 -1
- package/dist/i18n/locales/sq.d.ts +248 -0
- package/dist/i18n/locales/sq.js +249 -1
- package/dist/i18n/locales/sv.d.ts +248 -0
- package/dist/i18n/locales/sv.js +249 -1
- package/dist/i18n/locales/tr.d.ts +248 -0
- package/dist/i18n/locales/tr.js +249 -1
- package/dist/i18n/locales/zh.d.ts +248 -0
- package/dist/i18n/locales/zh.js +249 -1
- package/dist/index.js +1298 -1246
- package/dist/locales/ar.json +249 -1
- package/dist/locales/de.json +249 -1
- package/dist/locales/el.json +249 -1
- package/dist/locales/en.json +249 -1
- package/dist/locales/es.json +249 -1
- package/dist/locales/fr.json +249 -1
- package/dist/locales/hi.json +249 -1
- package/dist/locales/it.json +249 -1
- package/dist/locales/ja.json +249 -1
- package/dist/locales/nl.json +249 -1
- package/dist/locales/pl.json +249 -1
- package/dist/locales/pt.json +249 -1
- package/dist/locales/ro.json +249 -1
- package/dist/locales/ru.json +249 -1
- package/dist/locales/sq.json +249 -1
- package/dist/locales/sv.json +249 -1
- package/dist/locales/tr.json +249 -1
- package/dist/locales/zh.json +249 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +17 -1
- package/dist/_chunks/combobox-duuDRI1t.js +0 -688
- package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
- package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
- package/dist/_chunks/money-Tsczpjfz.js +0 -102
- package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
- package/dist/_chunks/parts-Wz2LeGnH.js +0 -1113
- package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as A } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as L, useRef as m, useCallback as U, useMemo as G } from "react";
|
|
3
3
|
import { S as B } from "./saved-view-tabs-DLWm88Eq.js";
|
|
4
|
-
import { D as O, d as Q } from "./grid-context-
|
|
4
|
+
import { D as O, d as Q } from "./grid-context-jn9y8tNE.js";
|
|
5
5
|
const H = { masked: !0 }, W = {
|
|
6
6
|
oneOf: [
|
|
7
7
|
{ type: "string" },
|
|
@@ -362,4 +362,4 @@ export {
|
|
|
362
362
|
C as b,
|
|
363
363
|
X as d
|
|
364
364
|
};
|
|
365
|
-
//# sourceMappingURL=data-grid-tabs-
|
|
365
|
+
//# sourceMappingURL=data-grid-tabs-D9Y4DeeH.js.map
|
|
@@ -6,10 +6,11 @@ import { c as Ot } from "./index-D2ZczOXr.js";
|
|
|
6
6
|
import { useTranslation as H } from "react-i18next";
|
|
7
7
|
import { useGridFilter as Vt, AgGridReact as _t } from "ag-grid-react";
|
|
8
8
|
import { ModuleRegistry as Wt, AllCommunityModule as qt } from "ag-grid-community";
|
|
9
|
-
import { I as Bt } from "./icon-button-group-
|
|
9
|
+
import { I as Bt } from "./icon-button-group-Ca2VkXy5.js";
|
|
10
10
|
import { u as Ut } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
11
11
|
import { I as We } from "./icon-button-S8_weU3g.js";
|
|
12
|
-
import {
|
|
12
|
+
import { T as jt, c as Kt } from "./parts-CtcTW1PN.js";
|
|
13
|
+
import { m as zt, h as Ht, a as Qt, w as Xt } from "./export-files-BByoK9Cg.js";
|
|
13
14
|
import $t from "i18next";
|
|
14
15
|
import { S as qe } from "./state-backed-text-input-DVETOhSS.js";
|
|
15
16
|
import { S as Yt } from "./select-uESzXTX6.js";
|
|
@@ -61,7 +62,7 @@ function P(e) {
|
|
|
61
62
|
function ua(e) {
|
|
62
63
|
return `${e}${je}`;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function pr(e) {
|
|
65
66
|
return e.endsWith(je);
|
|
66
67
|
}
|
|
67
68
|
function pa(e, t) {
|
|
@@ -70,23 +71,23 @@ function pa(e, t) {
|
|
|
70
71
|
const Ke = At(
|
|
71
72
|
null
|
|
72
73
|
);
|
|
73
|
-
function
|
|
74
|
+
function fa(e) {
|
|
74
75
|
var i;
|
|
75
76
|
const t = kt(
|
|
76
77
|
Ke
|
|
77
|
-
), { t: n } = H("ui"), l = k(null), { data: d, node: p, api:
|
|
78
|
+
), { t: n } = H("ui"), l = k(null), { data: d, node: p, api: g } = e, u = P(d), m = t == null ? void 0 : t.heights, x = p.id, E = k(t);
|
|
78
79
|
if (E.current = t, V(() => {
|
|
79
80
|
const h = l.current;
|
|
80
81
|
if (!h || !u || !m || x == null) return;
|
|
81
82
|
let T = m.get(x) ?? 0;
|
|
82
83
|
const S = () => {
|
|
83
84
|
const C = Math.ceil(h.getBoundingClientRect().height);
|
|
84
|
-
C <= 0 || C === T || (T = C, m.set(x, C), p.setRowHeight(C),
|
|
85
|
+
C <= 0 || C === T || (T = C, m.set(x, C), p.setRowHeight(C), g.onRowHeightChanged());
|
|
85
86
|
};
|
|
86
87
|
S();
|
|
87
88
|
const v = new ResizeObserver(S);
|
|
88
89
|
return v.observe(h), () => v.disconnect();
|
|
89
|
-
}, [
|
|
90
|
+
}, [g, x, m, u, p]), V(() => {
|
|
90
91
|
const h = l.current, T = h == null ? void 0 : h.parentElement;
|
|
91
92
|
if (!h || !T || !u) return;
|
|
92
93
|
const S = (v) => {
|
|
@@ -127,13 +128,13 @@ function ga(e) {
|
|
|
127
128
|
);
|
|
128
129
|
}
|
|
129
130
|
const ze = /* @__PURE__ */ new WeakMap();
|
|
130
|
-
function
|
|
131
|
+
function fr(e, t) {
|
|
131
132
|
ze.set(e, t);
|
|
132
133
|
}
|
|
133
134
|
function He(e) {
|
|
134
135
|
return typeof e != "function" && (typeof e != "object" || !e) ? null : ze.get(e) ?? null;
|
|
135
136
|
}
|
|
136
|
-
const
|
|
137
|
+
const ga = [
|
|
137
138
|
"contains",
|
|
138
139
|
"equals",
|
|
139
140
|
"startsWith",
|
|
@@ -141,16 +142,16 @@ const fa = [
|
|
|
141
142
|
"notContains"
|
|
142
143
|
];
|
|
143
144
|
function Qe(e) {
|
|
144
|
-
const { model: t, onModelChange: n, getValue: l, placeholder: d, defaultOperator: p } = e, { t:
|
|
145
|
+
const { model: t, onModelChange: n, getValue: l, placeholder: d, defaultOperator: p } = e, { t: g } = H("ui"), u = (t == null ? void 0 : t.type) ?? p ?? "contains", [m, x] = q(u), [E, o] = q((t == null ? void 0 : t.filter) ?? "");
|
|
145
146
|
V(() => {
|
|
146
147
|
x((t == null ? void 0 : t.type) ?? p ?? "contains"), o((t == null ? void 0 : t.filter) ?? "");
|
|
147
148
|
}, [t, p]);
|
|
148
|
-
const c = N(() =>
|
|
149
|
+
const c = N(() => zt($t.language), []);
|
|
149
150
|
Vt({
|
|
150
151
|
doesFilterPass: (S) => {
|
|
151
152
|
const v = t;
|
|
152
153
|
if (!v || v.filter === "") return !0;
|
|
153
|
-
const C =
|
|
154
|
+
const C = Ht(l(S.node));
|
|
154
155
|
if (C === null) return !1;
|
|
155
156
|
switch (v.type) {
|
|
156
157
|
case "equals":
|
|
@@ -168,7 +169,7 @@ function Qe(e) {
|
|
|
168
169
|
}
|
|
169
170
|
}
|
|
170
171
|
});
|
|
171
|
-
function
|
|
172
|
+
function f() {
|
|
172
173
|
if (E.trim() === "") {
|
|
173
174
|
n(null);
|
|
174
175
|
return;
|
|
@@ -178,12 +179,12 @@ function Qe(e) {
|
|
|
178
179
|
function i() {
|
|
179
180
|
o(""), x(p ?? "contains"), n(null);
|
|
180
181
|
}
|
|
181
|
-
const h =
|
|
182
|
+
const h = ga.map(
|
|
182
183
|
(S) => ({
|
|
183
184
|
value: S,
|
|
184
|
-
label:
|
|
185
|
+
label: g(`dataTable.textFilter.operators.${S}`)
|
|
185
186
|
})
|
|
186
|
-
), T = d ??
|
|
187
|
+
), T = d ?? g("dataTable.textFilter.placeholder");
|
|
187
188
|
return /* @__PURE__ */ ee(
|
|
188
189
|
"div",
|
|
189
190
|
{
|
|
@@ -199,7 +200,7 @@ function Qe(e) {
|
|
|
199
200
|
onValueChange: (S) => {
|
|
200
201
|
S !== "" && x(S);
|
|
201
202
|
},
|
|
202
|
-
"aria-label":
|
|
203
|
+
"aria-label": g("dataTable.textFilter.operators.contains")
|
|
203
204
|
}
|
|
204
205
|
),
|
|
205
206
|
/* @__PURE__ */ y(
|
|
@@ -209,7 +210,7 @@ function Qe(e) {
|
|
|
209
210
|
value: E,
|
|
210
211
|
onChange: (S) => o(S.target.value),
|
|
211
212
|
onKeyDown: (S) => {
|
|
212
|
-
S.key === "Enter" && (S.preventDefault(),
|
|
213
|
+
S.key === "Enter" && (S.preventDefault(), f());
|
|
213
214
|
},
|
|
214
215
|
placeholder: T,
|
|
215
216
|
"aria-label": T,
|
|
@@ -217,8 +218,8 @@ function Qe(e) {
|
|
|
217
218
|
}
|
|
218
219
|
),
|
|
219
220
|
/* @__PURE__ */ ee("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
|
|
220
|
-
/* @__PURE__ */ y(Ne, { intent: "ghost", size: "sm", onClick: i, type: "button", children:
|
|
221
|
-
/* @__PURE__ */ y(Ne, { intent: "primary", size: "sm", onClick:
|
|
221
|
+
/* @__PURE__ */ y(Ne, { intent: "ghost", size: "sm", onClick: i, type: "button", children: g("dataTable.textFilter.clear") }),
|
|
222
|
+
/* @__PURE__ */ y(Ne, { intent: "primary", size: "sm", onClick: f, type: "button", children: g("dataTable.textFilter.apply") })
|
|
222
223
|
] })
|
|
223
224
|
]
|
|
224
225
|
}
|
|
@@ -226,20 +227,20 @@ function Qe(e) {
|
|
|
226
227
|
}
|
|
227
228
|
function ma(e) {
|
|
228
229
|
var o, c;
|
|
229
|
-
const { model: t, onModelChange: n, column: l } = e, { t: d } = H("ui"), p = ((c = (o = l == null ? void 0 : l.getColDef) == null ? void 0 : o.call(l)) == null ? void 0 : c.filterParams) ?? {},
|
|
230
|
+
const { model: t, onModelChange: n, column: l } = e, { t: d } = H("ui"), p = ((c = (o = l == null ? void 0 : l.getColDef) == null ? void 0 : o.call(l)) == null ? void 0 : c.filterParams) ?? {}, g = p.defaultOperator ?? "contains", u = p.placeholder ?? d("dataTable.textFilter.placeholder"), [m, x] = q((t == null ? void 0 : t.filter) ?? "");
|
|
230
231
|
V(() => {
|
|
231
232
|
x((t == null ? void 0 : t.filter) ?? "");
|
|
232
233
|
}, [t == null ? void 0 : t.filter]), V(() => {
|
|
233
234
|
if (m === ((t == null ? void 0 : t.filter) ?? "")) return;
|
|
234
|
-
const
|
|
235
|
+
const f = setTimeout(() => {
|
|
235
236
|
if (m === "") {
|
|
236
237
|
t && n(null);
|
|
237
238
|
return;
|
|
238
239
|
}
|
|
239
|
-
n({ type:
|
|
240
|
+
n({ type: g, filter: m });
|
|
240
241
|
}, 200);
|
|
241
|
-
return () => clearTimeout(
|
|
242
|
-
}, [m,
|
|
242
|
+
return () => clearTimeout(f);
|
|
243
|
+
}, [m, g, t, n]);
|
|
243
244
|
function E() {
|
|
244
245
|
x(""), t && n(null);
|
|
245
246
|
}
|
|
@@ -248,7 +249,7 @@ function ma(e) {
|
|
|
248
249
|
{
|
|
249
250
|
size: "sm",
|
|
250
251
|
value: m,
|
|
251
|
-
onChange: (
|
|
252
|
+
onChange: (f) => x(f.target.value),
|
|
252
253
|
placeholder: u,
|
|
253
254
|
"aria-label": u,
|
|
254
255
|
startAdornment: /* @__PURE__ */ y(Be, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
@@ -311,19 +312,19 @@ function Ca(e) {
|
|
|
311
312
|
return o && !o.isDestroyed() ? o : void 0;
|
|
312
313
|
}, l = /* @__PURE__ */ new Set();
|
|
313
314
|
let d = null, p;
|
|
314
|
-
const
|
|
315
|
+
const g = (o) => {
|
|
315
316
|
for (const c of [...l]) c(o);
|
|
316
317
|
}, u = (o) => {
|
|
317
318
|
const c = () => {
|
|
318
|
-
|
|
319
|
-
},
|
|
320
|
-
o.addEventListener("filterChanged", c), o.addEventListener("columnVisible",
|
|
319
|
+
g("filter"), g("quickFilter");
|
|
320
|
+
}, f = () => g("columns"), i = () => g("rows");
|
|
321
|
+
o.addEventListener("filterChanged", c), o.addEventListener("columnVisible", f), o.addEventListener("columnMoved", f), o.addEventListener("columnPinned", f), o.addEventListener("modelUpdated", i), d = {
|
|
321
322
|
api: o,
|
|
322
323
|
detach: () => {
|
|
323
|
-
o.isDestroyed() || (o.removeEventListener("filterChanged", c), o.removeEventListener("columnVisible",
|
|
324
|
+
o.isDestroyed() || (o.removeEventListener("filterChanged", c), o.removeEventListener("columnVisible", f), o.removeEventListener("columnMoved", f), o.removeEventListener("columnPinned", f), o.removeEventListener("modelUpdated", i));
|
|
324
325
|
}
|
|
325
326
|
};
|
|
326
|
-
for (const h of ha)
|
|
327
|
+
for (const h of ha) g(h);
|
|
327
328
|
}, m = () => {
|
|
328
329
|
const o = n();
|
|
329
330
|
if (!(d && d.api === o)) {
|
|
@@ -348,38 +349,38 @@ function Ca(e) {
|
|
|
348
349
|
getColumns() {
|
|
349
350
|
const o = n();
|
|
350
351
|
return o ? we(o).map((c) => {
|
|
351
|
-
const
|
|
352
|
+
const f = c.getColDef();
|
|
352
353
|
return {
|
|
353
354
|
id: c.getColId(),
|
|
354
355
|
label: o.getDisplayNameForColumn(c, null) || c.getColId(),
|
|
355
356
|
visible: c.isVisible(),
|
|
356
357
|
canHide: !0,
|
|
357
|
-
canMove: Le(
|
|
358
|
-
canPin: Oe(
|
|
358
|
+
canMove: Le(f),
|
|
359
|
+
canPin: Oe(f),
|
|
359
360
|
pinned: ya(c),
|
|
360
|
-
filterKind: Ta(
|
|
361
|
+
filterKind: Ta(f)
|
|
361
362
|
};
|
|
362
363
|
}) : [];
|
|
363
364
|
},
|
|
364
365
|
setColumnVisible(o, c) {
|
|
365
366
|
var i;
|
|
366
|
-
const
|
|
367
|
-
|
|
367
|
+
const f = n();
|
|
368
|
+
f && (f.setColumnsVisible([o], c), (i = t.markColumnsUserTouched) == null || i.call(t, [o]));
|
|
368
369
|
},
|
|
369
370
|
moveColumn(o, c) {
|
|
370
|
-
const
|
|
371
|
-
if (!
|
|
372
|
-
const i = we(
|
|
371
|
+
const f = n();
|
|
372
|
+
if (!f) return;
|
|
373
|
+
const i = we(f)[c];
|
|
373
374
|
if (!i || i.getColId() === o) return;
|
|
374
|
-
const h = i.getColId(), S =
|
|
375
|
+
const h = i.getColId(), S = f.getAllGridColumns().find((Q) => Q.getColId() === o);
|
|
375
376
|
if (!S) return;
|
|
376
377
|
const v = S.getColDef();
|
|
377
378
|
if (!Le(v)) return;
|
|
378
379
|
const C = (S.getPinned() ?? null) !== (i.getPinned() ?? null);
|
|
379
380
|
if (C && !Oe(v)) return;
|
|
380
|
-
C &&
|
|
381
|
-
const B =
|
|
382
|
-
B >= 0 &&
|
|
381
|
+
C && f.setColumnsPinned([o], i.getPinned() ?? null);
|
|
382
|
+
const B = f.getAllGridColumns().findIndex((Q) => Q.getColId() === h);
|
|
383
|
+
B >= 0 && f.moveColumns([o], B);
|
|
383
384
|
},
|
|
384
385
|
getQuickFilter() {
|
|
385
386
|
var c;
|
|
@@ -395,8 +396,8 @@ function Ca(e) {
|
|
|
395
396
|
return ((o = n()) == null ? void 0 : o.getFilterModel()) ?? {};
|
|
396
397
|
},
|
|
397
398
|
setColumnFilter(o, c) {
|
|
398
|
-
const
|
|
399
|
-
|
|
399
|
+
const f = n();
|
|
400
|
+
f && (f.setColumnFilterModel(o, c), f.onFilterChanged());
|
|
400
401
|
},
|
|
401
402
|
clearAllFilters() {
|
|
402
403
|
const o = n();
|
|
@@ -404,18 +405,18 @@ function Ca(e) {
|
|
|
404
405
|
},
|
|
405
406
|
setFacet(o, c) {
|
|
406
407
|
var T;
|
|
407
|
-
const
|
|
408
|
-
if (!
|
|
408
|
+
const f = n();
|
|
409
|
+
if (!f) return;
|
|
409
410
|
if (c === null) {
|
|
410
|
-
|
|
411
|
+
f.setColumnFilterModel(o, null), f.onFilterChanged();
|
|
411
412
|
return;
|
|
412
413
|
}
|
|
413
|
-
const i = (T =
|
|
414
|
-
|
|
414
|
+
const i = (T = f.getColumn(o)) == null ? void 0 : T.getColDef(), h = He(i == null ? void 0 : i.filter) === "select" && (typeof c == "string" || typeof c == "number") ? { type: "set", values: [c] } : { type: "equals", filter: c };
|
|
415
|
+
f.setColumnFilterModel(o, h), f.onFilterChanged();
|
|
415
416
|
},
|
|
416
417
|
getFacet(o) {
|
|
417
|
-
var
|
|
418
|
-
const c = (
|
|
418
|
+
var f;
|
|
419
|
+
const c = (f = n()) == null ? void 0 : f.getColumnFilterModel(o);
|
|
419
420
|
if (!c || typeof c != "object") return null;
|
|
420
421
|
if (c.type === "set") {
|
|
421
422
|
const i = c.values;
|
|
@@ -439,7 +440,7 @@ function Ca(e) {
|
|
|
439
440
|
getExportSnapshot() {
|
|
440
441
|
const o = n();
|
|
441
442
|
if (!o) return;
|
|
442
|
-
const c = we(o).filter((T) => T.isVisible()),
|
|
443
|
+
const c = we(o).filter((T) => T.isVisible()), f = (T) => c.map((S) => {
|
|
443
444
|
const v = o.getCellValue({ rowNode: T, colKey: S }), C = o.getCellValue({
|
|
444
445
|
rowNode: T,
|
|
445
446
|
colKey: S,
|
|
@@ -448,7 +449,7 @@ function Ca(e) {
|
|
|
448
449
|
return typeof v == "number" && String(v) === String(C) ? Ve(v) : Ve(C);
|
|
449
450
|
}), i = [];
|
|
450
451
|
o.forEachNodeAfterFilterAndSort((T) => {
|
|
451
|
-
!T.data || P(T.data) || i.push({ id: T.id ?? "", cells:
|
|
452
|
+
!T.data || P(T.data) || i.push({ id: T.id ?? "", cells: f(T) });
|
|
452
453
|
});
|
|
453
454
|
const h = o.getPinnedBottomRowCount() > 0 ? o.getPinnedBottomRow(0) : void 0;
|
|
454
455
|
return {
|
|
@@ -459,7 +460,7 @@ function Ca(e) {
|
|
|
459
460
|
align: wa(T.getColDef())
|
|
460
461
|
})),
|
|
461
462
|
rows: i,
|
|
462
|
-
totals: h ?
|
|
463
|
+
totals: h ? f(h) : null
|
|
463
464
|
};
|
|
464
465
|
},
|
|
465
466
|
exportCsv(o) {
|
|
@@ -473,10 +474,10 @@ function Ca(e) {
|
|
|
473
474
|
update(o) {
|
|
474
475
|
t = o;
|
|
475
476
|
},
|
|
476
|
-
notify:
|
|
477
|
+
notify: g
|
|
477
478
|
};
|
|
478
479
|
}
|
|
479
|
-
const I =
|
|
480
|
+
const I = Kt({
|
|
480
481
|
prefix: "DataTable.Toolbar",
|
|
481
482
|
missingProvider: (e) => `${e} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
|
|
482
483
|
});
|
|
@@ -487,16 +488,16 @@ function Sa({
|
|
|
487
488
|
markColumnsUserTouched: l,
|
|
488
489
|
children: d
|
|
489
490
|
}) {
|
|
490
|
-
const p = { getApi: e, selectionCount: t, onPrint: n, markColumnsUserTouched: l }, [
|
|
491
|
-
|
|
491
|
+
const p = { getApi: e, selectionCount: t, onPrint: n, markColumnsUserTouched: l }, [g] = q(() => Ca(p));
|
|
492
|
+
g.update(p);
|
|
492
493
|
const u = k(!1);
|
|
493
494
|
return V(() => {
|
|
494
495
|
if (!u.current) {
|
|
495
496
|
u.current = !0;
|
|
496
497
|
return;
|
|
497
498
|
}
|
|
498
|
-
|
|
499
|
-
}, [
|
|
499
|
+
g.notify("selection");
|
|
500
|
+
}, [g, t]), /* @__PURE__ */ y(jt, { seam: g.seam, children: d });
|
|
500
501
|
}
|
|
501
502
|
function $e(e, t) {
|
|
502
503
|
const n = (e.getColumns() ?? []).filter(
|
|
@@ -507,26 +508,26 @@ function $e(e, t) {
|
|
|
507
508
|
return e.forEachNodeAfterFilterAndSort((p) => {
|
|
508
509
|
p.data && d.push(
|
|
509
510
|
n.map(
|
|
510
|
-
(
|
|
511
|
+
(g) => e.getCellValue({ rowNode: p, colKey: g, useFormatter: !0 })
|
|
511
512
|
)
|
|
512
513
|
);
|
|
513
514
|
}), { headers: l, rows: d };
|
|
514
515
|
}
|
|
515
516
|
async function Ye(e, t) {
|
|
516
|
-
e && await
|
|
517
|
+
e && await Qt($e(e, "empty"), t);
|
|
517
518
|
}
|
|
518
519
|
async function xa(e, t) {
|
|
519
520
|
e && await Xt($e(e, "colId"), t);
|
|
520
521
|
}
|
|
521
522
|
const Ce = te(
|
|
522
523
|
({ label: e, onExport: t, intent: n = "outline", ...l }, d) => {
|
|
523
|
-
const { t: p } = H("ui"),
|
|
524
|
+
const { t: p } = H("ui"), g = I.useSeam("ExportCsv"), { onClick: u, ...m } = l, x = D(
|
|
524
525
|
(E) => {
|
|
525
526
|
if (u == null || u(E), E.defaultPrevented) return;
|
|
526
|
-
const o = pe(
|
|
527
|
-
o && (t ? t(o) :
|
|
527
|
+
const o = pe(g);
|
|
528
|
+
o && (t ? t(o) : g.exportCsv());
|
|
528
529
|
},
|
|
529
|
-
[
|
|
530
|
+
[g, t, u]
|
|
530
531
|
);
|
|
531
532
|
return /* @__PURE__ */ y(
|
|
532
533
|
We,
|
|
@@ -545,7 +546,7 @@ const Ce = te(
|
|
|
545
546
|
Ce.displayName = "DataTable.Toolbar.ExportCsv";
|
|
546
547
|
const Se = te(
|
|
547
548
|
({ label: e, onClick: t, fileName: n, intent: l = "outline", ...d }, p) => {
|
|
548
|
-
const { t:
|
|
549
|
+
const { t: g } = H("ui"), u = I.useSeam("ExportPdf"), m = D(() => {
|
|
549
550
|
const x = pe(u);
|
|
550
551
|
if (t) {
|
|
551
552
|
t(x);
|
|
@@ -562,7 +563,7 @@ const Se = te(
|
|
|
562
563
|
type: "button",
|
|
563
564
|
intent: l,
|
|
564
565
|
icon: /* @__PURE__ */ y(Jt, { "aria-hidden": !0 }),
|
|
565
|
-
tooltip: e ??
|
|
566
|
+
tooltip: e ?? g("dataTable.exportPdf"),
|
|
566
567
|
onClick: m,
|
|
567
568
|
...d
|
|
568
569
|
}
|
|
@@ -583,24 +584,24 @@ const va = ["csv", "xlsx", "pdf"], xe = ({
|
|
|
583
584
|
fileName: l
|
|
584
585
|
}) => {
|
|
585
586
|
const d = I.useSeam("ExportMenu.Item"), p = D(() => {
|
|
586
|
-
const
|
|
587
|
+
const g = pe(d);
|
|
587
588
|
if (e === "csv") {
|
|
588
589
|
d.exportCsv(l);
|
|
589
590
|
return;
|
|
590
591
|
}
|
|
591
592
|
if (e === "pdf") {
|
|
592
|
-
Ye(
|
|
593
|
+
Ye(g, {
|
|
593
594
|
fileName: l ?? "data-table-export.pdf"
|
|
594
595
|
});
|
|
595
596
|
return;
|
|
596
597
|
}
|
|
597
598
|
if (e === "xlsx") {
|
|
598
|
-
xa(
|
|
599
|
+
xa(g, {
|
|
599
600
|
fileName: l ?? "data-table-export.xlsx"
|
|
600
601
|
});
|
|
601
602
|
return;
|
|
602
603
|
}
|
|
603
|
-
n == null || n(
|
|
604
|
+
n == null || n(g);
|
|
604
605
|
}, [d, e, l, n]);
|
|
605
606
|
return /* @__PURE__ */ y(
|
|
606
607
|
I.ExportMenuItemBase,
|
|
@@ -662,11 +663,11 @@ function Ea(e, t = !0) {
|
|
|
662
663
|
for (const p of n.querySelectorAll(_e)) ce(p);
|
|
663
664
|
})();
|
|
664
665
|
const d = new MutationObserver((p) => {
|
|
665
|
-
for (const
|
|
666
|
-
if (
|
|
667
|
-
ce(
|
|
666
|
+
for (const g of p)
|
|
667
|
+
if (g.type === "attributes")
|
|
668
|
+
ce(g.target);
|
|
668
669
|
else
|
|
669
|
-
for (const u of
|
|
670
|
+
for (const u of g.addedNodes)
|
|
670
671
|
if (u instanceof Element) {
|
|
671
672
|
ce(u);
|
|
672
673
|
for (const m of u.querySelectorAll(_e))
|
|
@@ -884,7 +885,7 @@ function Fa(e, t, n) {
|
|
|
884
885
|
calendar: "gregory",
|
|
885
886
|
month: "long",
|
|
886
887
|
timeZone: "UTC"
|
|
887
|
-
}), p = new Intl.NumberFormat(l).formatToParts(1000.1),
|
|
888
|
+
}), p = new Intl.NumberFormat(l).formatToParts(1000.1), g = {
|
|
888
889
|
ariaIndeterminate: () => e("dataTable.agGrid.ariaIndeterminate"),
|
|
889
890
|
ariaChecked: () => e("dataTable.agGrid.ariaChecked"),
|
|
890
891
|
ariaUnchecked: () => e("dataTable.agGrid.ariaUnchecked"),
|
|
@@ -1048,7 +1049,7 @@ function Fa(e, t, n) {
|
|
|
1048
1049
|
(o) => x[E++] ?? o
|
|
1049
1050
|
);
|
|
1050
1051
|
}
|
|
1051
|
-
return Object.hasOwn(
|
|
1052
|
+
return Object.hasOwn(g, u) ? g[u](x) : m;
|
|
1052
1053
|
};
|
|
1053
1054
|
}
|
|
1054
1055
|
Wt.registerModules([qt]);
|
|
@@ -1154,14 +1155,14 @@ function Va(e, t) {
|
|
|
1154
1155
|
rowData: l,
|
|
1155
1156
|
rowSelection: d,
|
|
1156
1157
|
pagination: p = !1,
|
|
1157
|
-
paginationPageSize:
|
|
1158
|
+
paginationPageSize: g = 25,
|
|
1158
1159
|
paginationPageSizeSelector: u = [10, 25, 50, 100],
|
|
1159
1160
|
gridId: m,
|
|
1160
1161
|
onSelectionChanged: x,
|
|
1161
1162
|
onSortChanged: E,
|
|
1162
1163
|
onFilterChanged: o,
|
|
1163
1164
|
noRowsOverlay: c,
|
|
1164
|
-
loadingOverlay:
|
|
1165
|
+
loadingOverlay: f,
|
|
1165
1166
|
gridOptions: i,
|
|
1166
1167
|
density: h,
|
|
1167
1168
|
bordered: T,
|
|
@@ -1172,17 +1173,17 @@ function Va(e, t) {
|
|
|
1172
1173
|
hidePinnedWhenEmpty: Q = !1,
|
|
1173
1174
|
printMode: X = !1,
|
|
1174
1175
|
expandedRowId: U,
|
|
1175
|
-
renderExpandedRow:
|
|
1176
|
+
renderExpandedRow: fe,
|
|
1176
1177
|
onExpandedRowChange: Re,
|
|
1177
1178
|
children: tt
|
|
1178
|
-
} = e, M = U !== void 0 ||
|
|
1179
|
+
} = e, M = U !== void 0 || fe !== void 0, j = i == null ? void 0 : i.getRowId;
|
|
1179
1180
|
if (M && !j)
|
|
1180
1181
|
throw new Error(
|
|
1181
1182
|
"DataTable: `expandedRowId` / `renderExpandedRow` require `gridOptions.getRowId` — the expanded row is addressed by row id, not by index."
|
|
1182
1183
|
);
|
|
1183
1184
|
const { t: _, i18n: A } = H("ui"), R = k(null), ae = k(null);
|
|
1184
1185
|
Ea(ae);
|
|
1185
|
-
const [
|
|
1186
|
+
const [ge, at] = q(0), [me, be] = q(""), re = k(void 0), rt = N(
|
|
1186
1187
|
() => Fa(_, A.language, i == null ? void 0 : i.localeText),
|
|
1187
1188
|
[_, A.language, i == null ? void 0 : i.localeText]
|
|
1188
1189
|
), [ne, nt] = q(A.language);
|
|
@@ -1409,13 +1410,13 @@ function Va(e, t) {
|
|
|
1409
1410
|
}, [K, l]), pt = D(
|
|
1410
1411
|
(a) => P(a.data) ? ua(a.data[Y]) : j(a),
|
|
1411
1412
|
[j]
|
|
1412
|
-
),
|
|
1413
|
+
), ft = D(
|
|
1413
1414
|
(a) => {
|
|
1414
1415
|
var r, s;
|
|
1415
1416
|
return P(a.rowNode.data) || (((s = (r = J.current) == null ? void 0 : r.isFullWidthRow) == null ? void 0 : s.call(r, a)) ?? !1);
|
|
1416
1417
|
},
|
|
1417
1418
|
[]
|
|
1418
|
-
),
|
|
1419
|
+
), gt = D(
|
|
1419
1420
|
(a) => {
|
|
1420
1421
|
var r, s;
|
|
1421
1422
|
return P(a.data) ? Pe.current.get(a.node.id ?? "") : (s = (r = J.current) == null ? void 0 : r.getRowHeight) == null ? void 0 : s.call(r, a);
|
|
@@ -1462,7 +1463,7 @@ function Va(e, t) {
|
|
|
1462
1463
|
};
|
|
1463
1464
|
}, [M, i == null ? void 0 : i.defaultExcelExportParams, se]), ye = i == null ? void 0 : i.fullWidthCellRenderer, yt = N(
|
|
1464
1465
|
() => ({
|
|
1465
|
-
renderExpandedRow:
|
|
1466
|
+
renderExpandedRow: fe,
|
|
1466
1467
|
onExpandedRowChange: Re,
|
|
1467
1468
|
expanded: K,
|
|
1468
1469
|
heights: Pe.current,
|
|
@@ -1472,7 +1473,7 @@ function Va(e, t) {
|
|
|
1472
1473
|
ye,
|
|
1473
1474
|
K,
|
|
1474
1475
|
Re,
|
|
1475
|
-
|
|
1476
|
+
fe
|
|
1476
1477
|
]
|
|
1477
1478
|
), wt = D(() => {
|
|
1478
1479
|
var s;
|
|
@@ -1511,7 +1512,7 @@ function Va(e, t) {
|
|
|
1511
1512
|
const a = setTimeout(() => be(""), 3e3);
|
|
1512
1513
|
return () => clearTimeout(a);
|
|
1513
1514
|
}, [me]);
|
|
1514
|
-
const xt = c ?? Aa, vt =
|
|
1515
|
+
const xt = c ?? Aa, vt = f ?? Pa, Rt = D(
|
|
1515
1516
|
() => {
|
|
1516
1517
|
var a;
|
|
1517
1518
|
return (a = R.current) == null ? void 0 : a.api;
|
|
@@ -1565,7 +1566,7 @@ function Va(e, t) {
|
|
|
1565
1566
|
Sa,
|
|
1566
1567
|
{
|
|
1567
1568
|
getApi: Rt,
|
|
1568
|
-
selectionCount:
|
|
1569
|
+
selectionCount: ge,
|
|
1569
1570
|
onPrint: Gt,
|
|
1570
1571
|
markColumnsUserTouched: Ie,
|
|
1571
1572
|
children: Dt
|
|
@@ -1607,7 +1608,7 @@ function Va(e, t) {
|
|
|
1607
1608
|
},
|
|
1608
1609
|
rowSelection: st,
|
|
1609
1610
|
pagination: Ft,
|
|
1610
|
-
paginationPageSize:
|
|
1611
|
+
paginationPageSize: g,
|
|
1611
1612
|
paginationPageSizeSelector: u,
|
|
1612
1613
|
paginationNumberFormatter: (a) => new Intl.NumberFormat(A.language).format(a.value),
|
|
1613
1614
|
animateRows: !it,
|
|
@@ -1647,9 +1648,9 @@ function Va(e, t) {
|
|
|
1647
1648
|
...ut,
|
|
1648
1649
|
...M ? {
|
|
1649
1650
|
getRowId: pt,
|
|
1650
|
-
isFullWidthRow:
|
|
1651
|
-
fullWidthCellRenderer:
|
|
1652
|
-
getRowHeight:
|
|
1651
|
+
isFullWidthRow: ft,
|
|
1652
|
+
fullWidthCellRenderer: fa,
|
|
1653
|
+
getRowHeight: gt,
|
|
1653
1654
|
postSortRows: mt,
|
|
1654
1655
|
defaultCsvExportParams: ht,
|
|
1655
1656
|
defaultExcelExportParams: Tt
|
|
@@ -1661,7 +1662,7 @@ function Va(e, t) {
|
|
|
1661
1662
|
)
|
|
1662
1663
|
}
|
|
1663
1664
|
),
|
|
1664
|
-
!X &&
|
|
1665
|
+
!X && ge > 0 && /* @__PURE__ */ y("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ y("span", { children: _("dataTable.selected", { count: ge }) }) }),
|
|
1665
1666
|
/* @__PURE__ */ y("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: me })
|
|
1666
1667
|
]
|
|
1667
1668
|
}
|
|
@@ -1685,9 +1686,9 @@ export {
|
|
|
1685
1686
|
Da as d,
|
|
1686
1687
|
Ye as e,
|
|
1687
1688
|
ua as f,
|
|
1688
|
-
|
|
1689
|
+
pr as g,
|
|
1689
1690
|
gr as h,
|
|
1690
1691
|
P as i,
|
|
1691
|
-
|
|
1692
|
+
fr as r
|
|
1692
1693
|
};
|
|
1693
|
-
//# sourceMappingURL=data-table-
|
|
1694
|
+
//# sourceMappingURL=data-table-B47iw2CO.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as b, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as v } from "react";
|
|
3
3
|
import { useTranslation as h } from "react-i18next";
|
|
4
4
|
import { c as m } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { B as x } from "./button-DohK_Ak_.js";
|
|
6
6
|
import { D } from "./date-range-picker-PTRpDkXT.js";
|
|
7
|
-
import { f as r, t as i } from "./
|
|
8
|
-
import {
|
|
7
|
+
import { f as r, t as i } from "./export-files-BByoK9Cg.js";
|
|
8
|
+
import { b as R } from "./accessible-target-Bs9ELM3l.js";
|
|
9
9
|
const T = m("ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"), k = m(
|
|
10
10
|
"ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-xs)]"
|
|
11
11
|
);
|
|
@@ -16,7 +16,7 @@ function M({
|
|
|
16
16
|
onApply: o,
|
|
17
17
|
config: d
|
|
18
18
|
}) {
|
|
19
|
-
const { t: e } = h("ui"), a = c, [f, p] =
|
|
19
|
+
const { t: e } = h("ui"), a = c, [f, p] = v(() => ({
|
|
20
20
|
from: r(a == null ? void 0 : a.dateFrom),
|
|
21
21
|
to: r(a == null ? void 0 : a.dateTo)
|
|
22
22
|
})), g = d.commitMode ?? (l === "server" ? "apply" : "auto");
|
|
@@ -31,7 +31,7 @@ function M({
|
|
|
31
31
|
dateTo: i(t.to)
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ b("div", { "data-filter-kind": "dateRange", className: T(), children: [
|
|
35
35
|
/* @__PURE__ */ s(
|
|
36
36
|
D,
|
|
37
37
|
{
|
|
@@ -59,4 +59,4 @@ function M({
|
|
|
59
59
|
export {
|
|
60
60
|
M as DateRangeFilterPanel
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=date-range-panel-
|
|
62
|
+
//# sourceMappingURL=date-range-panel-B-DUtfw3.js.map
|