@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
|
@@ -0,0 +1,869 @@
|
|
|
1
|
+
import { jsx as r, jsxs as G, Fragment as De } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as Pe, createContext as $e, useState as A, useEffect as X, useContext as Se, forwardRef as V, useRef as _, useCallback as se, useLayoutEffect as ze, useId as Ge, useReducer as Ae, isValidElement as Oe, cloneElement as Be } from "react";
|
|
3
|
+
import { useTranslation as q } from "react-i18next";
|
|
4
|
+
import { c as Z } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { B as ie } from "./button-DohK_Ak_.js";
|
|
6
|
+
import { I as H } from "./icon-button-S8_weU3g.js";
|
|
7
|
+
import { P as oe } from "./popover-CN5IsOeS.js";
|
|
8
|
+
import { C as Ve } from "./checkbox-DV4sNDeB.js";
|
|
9
|
+
import { T as Qe } from "./text-input-B6iAgCr3.js";
|
|
10
|
+
import { T as xe } from "./tag-BNlcEJfE.js";
|
|
11
|
+
import { D as U } from "./dropdown-menu-Dmbak7q6.js";
|
|
12
|
+
import { a as me } from "./format-number-DdzqwMs1.js";
|
|
13
|
+
import { g as Le } from "./date-locale-OG-MupVD.js";
|
|
14
|
+
import { f as We } from "./export-files-BByoK9Cg.js";
|
|
15
|
+
import { P as ye } from "./printer-rkK0T1gi.js";
|
|
16
|
+
import { R as ke } from "./refresh-cw-DnI0cLFC.js";
|
|
17
|
+
import { D as Ce } from "./download-CfYKJO_j.js";
|
|
18
|
+
import { c as je } from "./createLucideIcon-DhHxpK9K.js";
|
|
19
|
+
import { G as He } from "./grip-vertical-onSb1JXO.js";
|
|
20
|
+
import { A as _e, a as Ue } from "./arrow-up-BYvcvTkB.js";
|
|
21
|
+
import { R as Xe } from "./rotate-ccw-BBQnIVTr.js";
|
|
22
|
+
import { S as Ye } from "./search-QbWPlY5f.js";
|
|
23
|
+
import { X as Fe } from "./x-B5YnXwCz.js";
|
|
24
|
+
import { F as Je } from "./file-spreadsheet-DmwyfV4O.js";
|
|
25
|
+
import { F as Ke } from "./file-text-5yv6r2ls.js";
|
|
26
|
+
/**
|
|
27
|
+
* @license lucide-react v1.22.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/
|
|
32
|
+
const Ze = [
|
|
33
|
+
["path", { d: "M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5", key: "1g2yzs" }],
|
|
34
|
+
["path", { d: "m14.3 19.6 1-.4", key: "11sv9r" }],
|
|
35
|
+
["path", { d: "M15 3v7.5", key: "7lm50a" }],
|
|
36
|
+
["path", { d: "m15.2 16.9-.9-.3", key: "1t7mvx" }],
|
|
37
|
+
["path", { d: "m16.6 21.7.3-.9", key: "1j67ps" }],
|
|
38
|
+
["path", { d: "m16.8 15.3-.4-1", key: "1ei7r6" }],
|
|
39
|
+
["path", { d: "m19.1 15.2.3-.9", key: "18r7jp" }],
|
|
40
|
+
["path", { d: "m19.6 21.7-.4-1", key: "z2vh2" }],
|
|
41
|
+
["path", { d: "m20.7 16.8 1-.4", key: "19m87a" }],
|
|
42
|
+
["path", { d: "m21.7 19.4-.9-.3", key: "1qgwi9" }],
|
|
43
|
+
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
44
|
+
["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
|
|
45
|
+
], et = je("columns-3-cog", Ze), Ee = $e(
|
|
46
|
+
null
|
|
47
|
+
);
|
|
48
|
+
function Bt({
|
|
49
|
+
seam: a,
|
|
50
|
+
children: e
|
|
51
|
+
}) {
|
|
52
|
+
const d = Pe(() => ({ seam: a }), [a]);
|
|
53
|
+
return /* @__PURE__ */ r(Ee.Provider, { value: d, children: e });
|
|
54
|
+
}
|
|
55
|
+
function tt(a, e) {
|
|
56
|
+
const d = Se(Ee), t = (d == null ? void 0 : d.seam) ?? e;
|
|
57
|
+
if (!t) throw new Error(a);
|
|
58
|
+
return t;
|
|
59
|
+
}
|
|
60
|
+
function K(a, e) {
|
|
61
|
+
const [d, t] = A(0), u = e.join(" ");
|
|
62
|
+
return X(() => {
|
|
63
|
+
const F = new Set(u.split(" "));
|
|
64
|
+
return a.subscribe((E) => {
|
|
65
|
+
F.has(E) && t((I) => I + 1);
|
|
66
|
+
});
|
|
67
|
+
}, [a, u]), d;
|
|
68
|
+
}
|
|
69
|
+
function rt(a, e) {
|
|
70
|
+
const d = (t, u) => String(t).padStart(u, "0");
|
|
71
|
+
return e.replace(/yyyy|MM|dd/g, (t) => {
|
|
72
|
+
if (t === "dd") return d(a.getDate(), 2);
|
|
73
|
+
if (t === "MM") return d(a.getMonth() + 1, 2);
|
|
74
|
+
const u = a.getFullYear();
|
|
75
|
+
return d(u > 0 ? u : 1 - u, 4);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function nt(a, e, d) {
|
|
79
|
+
const t = a.filterOptions;
|
|
80
|
+
return e ? {
|
|
81
|
+
kitWording: !0,
|
|
82
|
+
optionLabel: t ? (u) => {
|
|
83
|
+
var F;
|
|
84
|
+
return (F = t.find((E) => E.value === u)) == null ? void 0 : F.label;
|
|
85
|
+
} : void 0,
|
|
86
|
+
number: (u) => me(u, d),
|
|
87
|
+
day: (u) => {
|
|
88
|
+
const F = We(u);
|
|
89
|
+
return F ? rt(F, Le(d ?? "en")) : u;
|
|
90
|
+
}
|
|
91
|
+
} : {};
|
|
92
|
+
}
|
|
93
|
+
function at(a) {
|
|
94
|
+
return a === "contains" || a === "notContains" || a === "equals" || a === "startsWith" || a === "endsWith";
|
|
95
|
+
}
|
|
96
|
+
function st(a, e) {
|
|
97
|
+
switch (a) {
|
|
98
|
+
case "contains":
|
|
99
|
+
return e("dataTable.textFilter.operators.contains", "Contains");
|
|
100
|
+
case "notContains":
|
|
101
|
+
return e(
|
|
102
|
+
"dataTable.textFilter.operators.notContains",
|
|
103
|
+
"Does not contain"
|
|
104
|
+
);
|
|
105
|
+
case "equals":
|
|
106
|
+
return e("dataTable.textFilter.operators.equals", "Equals");
|
|
107
|
+
case "startsWith":
|
|
108
|
+
return e("dataTable.textFilter.operators.startsWith", "Starts with");
|
|
109
|
+
case "endsWith":
|
|
110
|
+
return e("dataTable.textFilter.operators.endsWith", "Ends with");
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
function it(a, e) {
|
|
114
|
+
switch (a) {
|
|
115
|
+
case "contains":
|
|
116
|
+
return e("dataTable.agGrid.contains", "Contains");
|
|
117
|
+
case "notContains":
|
|
118
|
+
return e("dataTable.agGrid.notContains", "Does not contain");
|
|
119
|
+
case "startsWith":
|
|
120
|
+
return e("dataTable.agGrid.startsWith", "Starts with");
|
|
121
|
+
case "endsWith":
|
|
122
|
+
return e("dataTable.agGrid.endsWith", "Ends with");
|
|
123
|
+
case "equals":
|
|
124
|
+
return e("dataTable.agGrid.equals", "Equals");
|
|
125
|
+
case "notEqual":
|
|
126
|
+
return e("dataTable.agGrid.notEqual", "Not equal");
|
|
127
|
+
case "greaterThan":
|
|
128
|
+
return e("dataTable.agGrid.greaterThan", "Greater than");
|
|
129
|
+
case "greaterThanOrEqual":
|
|
130
|
+
return e(
|
|
131
|
+
"dataTable.agGrid.greaterThanOrEqual",
|
|
132
|
+
"Greater than or equal to"
|
|
133
|
+
);
|
|
134
|
+
case "lessThan":
|
|
135
|
+
return e("dataTable.agGrid.lessThan", "Less than");
|
|
136
|
+
case "lessThanOrEqual":
|
|
137
|
+
return e("dataTable.agGrid.lessThanOrEqual", "Less than or equal to");
|
|
138
|
+
case "inRange":
|
|
139
|
+
return e("dataTable.agGrid.inRange", "In range");
|
|
140
|
+
case "blank":
|
|
141
|
+
return e("dataTable.agGrid.blank", "Blank");
|
|
142
|
+
case "notBlank":
|
|
143
|
+
return e("dataTable.agGrid.notBlank", "Not blank");
|
|
144
|
+
default:
|
|
145
|
+
return a;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
function ot(a, e, d = {}) {
|
|
149
|
+
if (!a || typeof a != "object") return "";
|
|
150
|
+
const t = a, u = typeof t.type == "string" ? t.type : "", F = d.kitWording === !0, E = (x) => F && typeof t.filter == "string" && at(x) ? st(x, e) : it(x, e), I = (x) => typeof x == "number" && d.number ? d.number(x) : String(x), M = (x) => d.day ? d.day(x) : x, N = e("dataTable.numberFilter.from", "From"), Y = e("dataTable.numberFilter.to", "To");
|
|
151
|
+
if (u === "blank" || u === "notBlank") return E(u);
|
|
152
|
+
const Q = typeof t.filter == "string" || typeof t.filter == "number", ee = typeof t.filterTo == "string" || typeof t.filterTo == "number";
|
|
153
|
+
if (u === "inRange" && (Q || ee))
|
|
154
|
+
return Q && ee ? `${I(t.filter)} – ${I(t.filterTo)}` : Q ? `${N} ${I(t.filter)}` : `${Y} ${I(t.filterTo)}`;
|
|
155
|
+
if (Q)
|
|
156
|
+
return u ? `${E(u)} ${I(t.filter)}` : I(t.filter);
|
|
157
|
+
if (F) {
|
|
158
|
+
const x = typeof t.dateFrom == "string" && t.dateFrom ? t.dateFrom : "", D = typeof t.dateTo == "string" && t.dateTo ? t.dateTo : "", L = u === "inRange" || u === "";
|
|
159
|
+
if (x && D) return `${M(x)} – ${M(D)}`;
|
|
160
|
+
if (x)
|
|
161
|
+
return L ? `${N} ${M(x)}` : `${E(u)} ${M(x)}`;
|
|
162
|
+
if (D) return `${Y} ${M(D)}`;
|
|
163
|
+
} else if (typeof t.dateFrom == "string")
|
|
164
|
+
return typeof t.dateTo == "string" && t.dateTo ? `${t.dateFrom} – ${t.dateTo}` : String(t.dateFrom);
|
|
165
|
+
return Array.isArray(t.values) ? t.values.map((D) => {
|
|
166
|
+
var L;
|
|
167
|
+
return ((L = d.optionLabel) == null ? void 0 : L.call(d, D)) ?? I(D);
|
|
168
|
+
}).join(", ") : "";
|
|
169
|
+
}
|
|
170
|
+
function lt(a) {
|
|
171
|
+
if (!Oe(a)) return a;
|
|
172
|
+
const e = a, d = e.props.className ?? "", t = /\bsize-|\bw-|\bh-/.test(d) ? d : `${d} ds:size-4`.trim();
|
|
173
|
+
return Be(e, { className: t, size: e.props.size ?? 16 });
|
|
174
|
+
}
|
|
175
|
+
function we(a) {
|
|
176
|
+
return a.getColumns().some((e) => e.masked === !0);
|
|
177
|
+
}
|
|
178
|
+
function Ne(a, e, d) {
|
|
179
|
+
const t = a[e], u = a[d];
|
|
180
|
+
if (!t || !u || !t.canMove || t.canPin === !1 && u.pinned !== t.pinned) return !1;
|
|
181
|
+
const F = a.filter((M, N) => N !== e);
|
|
182
|
+
F.splice(d, 0, t);
|
|
183
|
+
const E = /* @__PURE__ */ new Set();
|
|
184
|
+
let I = null;
|
|
185
|
+
for (const M of F) {
|
|
186
|
+
const N = M.groupId ?? null;
|
|
187
|
+
if (N !== I) {
|
|
188
|
+
if (N !== null && E.has(N)) return !1;
|
|
189
|
+
N !== null && E.add(N), I = N;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return !0;
|
|
193
|
+
}
|
|
194
|
+
function dt(a) {
|
|
195
|
+
return {
|
|
196
|
+
selectedRowIds: a.getSelectedRowIds(),
|
|
197
|
+
getExportSnapshot: () => a.getExportSnapshot()
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
const ct = Z([
|
|
201
|
+
"data-table-toolbar",
|
|
202
|
+
// Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
|
|
203
|
+
// Actions cluster on narrow screens. From `sm` (≥640px) we switch to
|
|
204
|
+
// `flex-nowrap` + `min-w-0` so the row stays single-line at every common
|
|
205
|
+
// desktop width (1024 / 1280 / 1440): the QuickSearch slot shrinks via
|
|
206
|
+
// its own `min-w-0` instead of pushing the trailing Actions to a new row.
|
|
207
|
+
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
208
|
+
"ds:sm:flex-nowrap ds:min-w-0"
|
|
209
|
+
// No card surface: the toolbar sits directly on the page background,
|
|
210
|
+
// matching the header-tools layout the Patients / Care Plan List
|
|
211
|
+
// patterns established.
|
|
212
|
+
]), ut = Z([
|
|
213
|
+
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
214
|
+
// `grow` lets FilterBar absorb the free space; `min-w-0` lets the
|
|
215
|
+
// QuickSearch slot inside shrink below its intrinsic width when the
|
|
216
|
+
// toolbar runs `flex-nowrap` at `sm` and above, so the trailing
|
|
217
|
+
// Actions cluster stays pinned on a single row.
|
|
218
|
+
"ds:grow ds:min-w-0"
|
|
219
|
+
]), pt = Z("ds:w-full ds:max-w-[24rem] ds:min-w-0", {
|
|
220
|
+
variants: {
|
|
221
|
+
// The masked "Search applied" state adds a Clear button beside the box.
|
|
222
|
+
hiddenQuery: {
|
|
223
|
+
true: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:[&>[data-component=text-input]]:min-w-0 ds:[&>[data-component=text-input]]:grow",
|
|
224
|
+
false: ""
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
defaultVariants: { hiddenQuery: !1 }
|
|
228
|
+
}), mt = Z([
|
|
229
|
+
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
230
|
+
"ds:ms-auto"
|
|
231
|
+
]), ft = Z(
|
|
232
|
+
"ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-xs)] ds:py-[var(--spacing-2xs,var(--spacing-xs))] ds:transition-colors",
|
|
233
|
+
{
|
|
234
|
+
variants: {
|
|
235
|
+
dragging: { true: "ds:opacity-50", false: "" },
|
|
236
|
+
dragOver: {
|
|
237
|
+
true: "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]",
|
|
238
|
+
false: ""
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
defaultVariants: { dragging: !1, dragOver: !1 }
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
function Vt(a) {
|
|
245
|
+
const { prefix: e } = a, d = a.useEngineSeam ?? (() => null), t = (n) => tt(
|
|
246
|
+
a.missingProvider(`${e}.${n}`),
|
|
247
|
+
d()
|
|
248
|
+
), u = V(
|
|
249
|
+
({ className: n, children: c, ...i }, o) => /* @__PURE__ */ r(
|
|
250
|
+
"div",
|
|
251
|
+
{
|
|
252
|
+
ref: o,
|
|
253
|
+
role: "toolbar",
|
|
254
|
+
className: ct({ className: n }),
|
|
255
|
+
...i,
|
|
256
|
+
children: c
|
|
257
|
+
}
|
|
258
|
+
)
|
|
259
|
+
);
|
|
260
|
+
u.displayName = e;
|
|
261
|
+
const F = V(
|
|
262
|
+
({ className: n, children: c, ...i }, o) => /* @__PURE__ */ r(
|
|
263
|
+
"div",
|
|
264
|
+
{
|
|
265
|
+
ref: o,
|
|
266
|
+
className: ut({ className: n }),
|
|
267
|
+
...i,
|
|
268
|
+
children: c
|
|
269
|
+
}
|
|
270
|
+
)
|
|
271
|
+
);
|
|
272
|
+
F.displayName = `${e}.FilterBar`;
|
|
273
|
+
const E = V(
|
|
274
|
+
({ className: n, children: c, ...i }, o) => /* @__PURE__ */ r(
|
|
275
|
+
"div",
|
|
276
|
+
{
|
|
277
|
+
ref: o,
|
|
278
|
+
className: mt({ className: n }),
|
|
279
|
+
...i,
|
|
280
|
+
children: c
|
|
281
|
+
}
|
|
282
|
+
)
|
|
283
|
+
);
|
|
284
|
+
E.displayName = `${e}.Actions`;
|
|
285
|
+
function I(n) {
|
|
286
|
+
return n;
|
|
287
|
+
}
|
|
288
|
+
const M = V(
|
|
289
|
+
({ label: n, intent: c = "outline", ...i }, o) => {
|
|
290
|
+
const { t: l } = q("ui"), v = t("Print"), { onClick: b, ...k } = i;
|
|
291
|
+
return /* @__PURE__ */ r(
|
|
292
|
+
H,
|
|
293
|
+
{
|
|
294
|
+
ref: o,
|
|
295
|
+
type: "button",
|
|
296
|
+
intent: c,
|
|
297
|
+
icon: /* @__PURE__ */ r(ye, { "aria-hidden": !0 }),
|
|
298
|
+
tooltip: n ?? l("dataTable.print"),
|
|
299
|
+
...k,
|
|
300
|
+
onClick: (m) => {
|
|
301
|
+
b == null || b(m), m.defaultPrevented || v.print();
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
);
|
|
307
|
+
M.displayName = `${e}.Print`;
|
|
308
|
+
const N = V(
|
|
309
|
+
({ onRefresh: n, label: c, intent: i = "outline", ...o }, l) => {
|
|
310
|
+
const { t: v } = q("ui"), { onClick: b, ...k } = o;
|
|
311
|
+
return /* @__PURE__ */ r(
|
|
312
|
+
H,
|
|
313
|
+
{
|
|
314
|
+
ref: l,
|
|
315
|
+
type: "button",
|
|
316
|
+
intent: i,
|
|
317
|
+
icon: /* @__PURE__ */ r(ke, { "aria-hidden": !0 }),
|
|
318
|
+
tooltip: c ?? v("dataTable.refresh", "Refresh"),
|
|
319
|
+
...k,
|
|
320
|
+
onClick: (m) => {
|
|
321
|
+
b == null || b(m), m.defaultPrevented || n();
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
);
|
|
327
|
+
N.displayName = `${e}.Refresh`;
|
|
328
|
+
const Y = ({
|
|
329
|
+
childProps: n,
|
|
330
|
+
disabled: c
|
|
331
|
+
}) => {
|
|
332
|
+
const { t: i } = q("ui"), o = t("Print"), l = n.label;
|
|
333
|
+
return /* @__PURE__ */ r(
|
|
334
|
+
U.Item,
|
|
335
|
+
{
|
|
336
|
+
startIcon: /* @__PURE__ */ r(ye, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
337
|
+
disabled: c,
|
|
338
|
+
onSelect: () => void o.print(),
|
|
339
|
+
children: typeof l == "string" ? l : i("dataTable.print")
|
|
340
|
+
}
|
|
341
|
+
);
|
|
342
|
+
};
|
|
343
|
+
Y.displayName = `${e}.Print.MenuItem`;
|
|
344
|
+
const Q = ({
|
|
345
|
+
childProps: n,
|
|
346
|
+
disabled: c
|
|
347
|
+
}) => {
|
|
348
|
+
const { t: i } = q("ui"), { label: o, onRefresh: l } = n;
|
|
349
|
+
return /* @__PURE__ */ r(
|
|
350
|
+
U.Item,
|
|
351
|
+
{
|
|
352
|
+
startIcon: /* @__PURE__ */ r(ke, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
353
|
+
disabled: c,
|
|
354
|
+
onSelect: () => l == null ? void 0 : l(),
|
|
355
|
+
children: o ?? i("dataTable.refresh", "Refresh")
|
|
356
|
+
}
|
|
357
|
+
);
|
|
358
|
+
};
|
|
359
|
+
Q.displayName = `${e}.Refresh.MenuItem`;
|
|
360
|
+
const ee = Object.assign(M, {
|
|
361
|
+
overflowMenuItem: Y
|
|
362
|
+
}), x = Object.assign(N, {
|
|
363
|
+
overflowMenuItem: Q
|
|
364
|
+
}), D = ({
|
|
365
|
+
placeholder: n,
|
|
366
|
+
debounceMs: c = 150
|
|
367
|
+
}) => {
|
|
368
|
+
const { t: i } = q("ui"), o = t("QuickSearch"), l = o.features.syncsFilterInputs, v = K(
|
|
369
|
+
o,
|
|
370
|
+
l ? ["quickFilter", "filter", "columns"] : []
|
|
371
|
+
), b = l && we(o), [k, m] = A(
|
|
372
|
+
() => l && !we(o) ? o.getQuickFilter() : ""
|
|
373
|
+
), T = _(l ? o.getQuickFilter() : ""), f = _(b), y = _(void 0), [$, S] = A(!1), W = Ge(), g = _(null);
|
|
374
|
+
X(() => {
|
|
375
|
+
if (!l) return;
|
|
376
|
+
const h = o.getQuickFilter();
|
|
377
|
+
if (f.current !== b) {
|
|
378
|
+
f.current = b, T.current = h, m(b ? "" : h);
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
h !== T.current && (y.current && (window.clearTimeout(y.current), y.current = void 0, S(!1)), T.current = h, m(b && h !== "" ? "" : h));
|
|
382
|
+
}, [l, o, v, b]), X(
|
|
383
|
+
() => () => {
|
|
384
|
+
y.current && window.clearTimeout(y.current);
|
|
385
|
+
},
|
|
386
|
+
[]
|
|
387
|
+
);
|
|
388
|
+
const R = (h) => {
|
|
389
|
+
y.current && window.clearTimeout(y.current), S(!0), y.current = window.setTimeout(() => {
|
|
390
|
+
if (y.current = void 0, S(!1), l) {
|
|
391
|
+
if (o.getQuickFilter() !== T.current || h === T.current) return;
|
|
392
|
+
T.current = h;
|
|
393
|
+
}
|
|
394
|
+
o.setQuickFilter(h);
|
|
395
|
+
}, c);
|
|
396
|
+
}, O = (h) => {
|
|
397
|
+
m(h), R(h);
|
|
398
|
+
}, w = b && !$ && k === "" && o.getQuickFilter() !== "";
|
|
399
|
+
return (
|
|
400
|
+
// Slot wrapper caps the search at a legible width on desktop: without
|
|
401
|
+
// it, TextInput's `w-full` lets the QuickSearch absorb the entire
|
|
402
|
+
// FilterBar row and push trailing Actions onto a second line at
|
|
403
|
+
// 1024 / 1280 / 1440. `min-w-0` lets the slot shrink below `24rem`
|
|
404
|
+
// when the toolbar is squeezed on narrow viewports.
|
|
405
|
+
/* @__PURE__ */ G("div", { className: pt({ hiddenQuery: w }), children: [
|
|
406
|
+
/* @__PURE__ */ r(
|
|
407
|
+
Qe,
|
|
408
|
+
{
|
|
409
|
+
ref: g,
|
|
410
|
+
type: "search",
|
|
411
|
+
size: "sm",
|
|
412
|
+
...l ? { value: k } : {},
|
|
413
|
+
onChange: (h) => O(h.target.value),
|
|
414
|
+
placeholder: w ? i("dataTable.quickSearch.appliedHidden", "Search applied") : n ?? i("dataTable.quickSearch.placeholder", "Search…"),
|
|
415
|
+
startAdornment: /* @__PURE__ */ r(Ye, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
416
|
+
clearable: !0,
|
|
417
|
+
onClear: () => O(""),
|
|
418
|
+
"aria-label": i("dataTable.quickSearch.label", "Quick search"),
|
|
419
|
+
"aria-describedby": w ? W : void 0
|
|
420
|
+
}
|
|
421
|
+
),
|
|
422
|
+
w ? /* @__PURE__ */ G(De, { children: [
|
|
423
|
+
/* @__PURE__ */ r("span", { id: W, className: "ds:sr-only", children: i(
|
|
424
|
+
"dataTable.quickSearch.appliedHiddenDescription",
|
|
425
|
+
"A search is applied. Its text is hidden in privacy mode."
|
|
426
|
+
) }),
|
|
427
|
+
/* @__PURE__ */ r(
|
|
428
|
+
H,
|
|
429
|
+
{
|
|
430
|
+
type: "button",
|
|
431
|
+
size: "sm",
|
|
432
|
+
intent: "ghost",
|
|
433
|
+
icon: /* @__PURE__ */ r(Fe, { "aria-hidden": !0 }),
|
|
434
|
+
tooltip: i("dataTable.quickSearch.clearApplied", "Clear search"),
|
|
435
|
+
onClick: () => {
|
|
436
|
+
var h;
|
|
437
|
+
O(""), (h = g.current) == null || h.focus();
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
)
|
|
441
|
+
] }) : null
|
|
442
|
+
] })
|
|
443
|
+
);
|
|
444
|
+
};
|
|
445
|
+
D.displayName = `${e}.QuickSearch`;
|
|
446
|
+
const L = () => {
|
|
447
|
+
var W;
|
|
448
|
+
const { t: n, i18n: c } = q("ui"), i = t("FilterChips");
|
|
449
|
+
K(i, ["filter", "quickFilter", "columns"]);
|
|
450
|
+
const [, o] = Ae((g) => g + 1, 0), l = i.getFilterModel() ?? {}, v = i.getColumns(), b = new Map(
|
|
451
|
+
v.map((g) => [g.id, g])
|
|
452
|
+
), k = i.features.formatsFilterValues === !0, m = (g, R) => k ? n("dataTable.filterChips.chip", { column: g, value: R }) : `${g}: ${R}`, T = [];
|
|
453
|
+
for (const g of Object.keys(l)) {
|
|
454
|
+
const R = b.get(g);
|
|
455
|
+
if (!R) {
|
|
456
|
+
const h = (W = i.getFilterLabel) == null ? void 0 : W.call(i, g);
|
|
457
|
+
T.push({ key: g, label: h ?? g });
|
|
458
|
+
continue;
|
|
459
|
+
}
|
|
460
|
+
const O = R.masked ? "" : ot(
|
|
461
|
+
l[g],
|
|
462
|
+
n,
|
|
463
|
+
nt(R, k, c.language)
|
|
464
|
+
), w = R.label || g;
|
|
465
|
+
T.push({ key: g, label: O ? m(w, O) : w });
|
|
466
|
+
}
|
|
467
|
+
const f = i.getQuickFilter(), y = n("dataTable.quickSearch.label", "Quick search"), $ = v.some((g) => g.masked === !0) ? y : m(y, f);
|
|
468
|
+
return T.length + (f ? 1 : 0) === 0 ? null : /* @__PURE__ */ G(
|
|
469
|
+
"div",
|
|
470
|
+
{
|
|
471
|
+
role: "group",
|
|
472
|
+
"aria-label": n("dataTable.filterChips.label", "Active filters"),
|
|
473
|
+
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
474
|
+
children: [
|
|
475
|
+
f && /* @__PURE__ */ r(
|
|
476
|
+
xe,
|
|
477
|
+
{
|
|
478
|
+
label: $,
|
|
479
|
+
size: "sm",
|
|
480
|
+
variant: "brand",
|
|
481
|
+
fill: "solid",
|
|
482
|
+
onRemove: () => {
|
|
483
|
+
i.setQuickFilter(""), o();
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
),
|
|
487
|
+
T.map((g) => /* @__PURE__ */ r(
|
|
488
|
+
xe,
|
|
489
|
+
{
|
|
490
|
+
label: g.label,
|
|
491
|
+
size: "sm",
|
|
492
|
+
variant: "brand",
|
|
493
|
+
fill: "solid",
|
|
494
|
+
onRemove: () => {
|
|
495
|
+
i.setColumnFilter(g.key, null), o();
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
g.key
|
|
499
|
+
)),
|
|
500
|
+
/* @__PURE__ */ r(
|
|
501
|
+
ie,
|
|
502
|
+
{
|
|
503
|
+
type: "button",
|
|
504
|
+
intent: "ghost",
|
|
505
|
+
size: "sm",
|
|
506
|
+
onClick: () => {
|
|
507
|
+
i.clearAllFilters(), o();
|
|
508
|
+
},
|
|
509
|
+
startIcon: /* @__PURE__ */ r(Fe, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
510
|
+
children: n("dataTable.filterChips.clearAll", "Clear all")
|
|
511
|
+
}
|
|
512
|
+
)
|
|
513
|
+
]
|
|
514
|
+
}
|
|
515
|
+
);
|
|
516
|
+
};
|
|
517
|
+
L.displayName = `${e}.FilterChips`;
|
|
518
|
+
const fe = ({ field: n, options: c, label: i }) => {
|
|
519
|
+
var y;
|
|
520
|
+
const { t: o } = q("ui"), l = t("FacetFilter"), v = l.features.syncsFilterInputs && !!l.getFacet, b = K(l, v ? ["filter"] : []), [k, m] = A(null);
|
|
521
|
+
X(() => {
|
|
522
|
+
v && m(null);
|
|
523
|
+
}, [v, b]);
|
|
524
|
+
const T = k ? k.value : v ? ((y = l.getFacet) == null ? void 0 : y.call(l, n)) ?? null : null;
|
|
525
|
+
function f($) {
|
|
526
|
+
m({ value: $ }), l.setFacet(n, $);
|
|
527
|
+
}
|
|
528
|
+
return /* @__PURE__ */ r(
|
|
529
|
+
"div",
|
|
530
|
+
{
|
|
531
|
+
role: "group",
|
|
532
|
+
"aria-label": i ?? o("dataTable.facetFilter.label", "Filter"),
|
|
533
|
+
className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
534
|
+
children: c.map(($) => {
|
|
535
|
+
const S = T === $.value;
|
|
536
|
+
return /* @__PURE__ */ r(
|
|
537
|
+
ie,
|
|
538
|
+
{
|
|
539
|
+
type: "button",
|
|
540
|
+
size: "sm",
|
|
541
|
+
intent: S ? "primary" : "secondary",
|
|
542
|
+
"aria-pressed": S,
|
|
543
|
+
onClick: () => f($.value),
|
|
544
|
+
children: $.label
|
|
545
|
+
},
|
|
546
|
+
String($.value)
|
|
547
|
+
);
|
|
548
|
+
})
|
|
549
|
+
}
|
|
550
|
+
);
|
|
551
|
+
};
|
|
552
|
+
fe.displayName = `${e}.FacetFilter`;
|
|
553
|
+
const ge = $e(!1), le = V(
|
|
554
|
+
({ children: n, label: c, intent: i = "outline", ...o }, l) => {
|
|
555
|
+
const { t: v } = q("ui");
|
|
556
|
+
return t("ExportMenu"), /* @__PURE__ */ r(ge.Provider, { value: !0, children: /* @__PURE__ */ G(U.Root, { children: [
|
|
557
|
+
/* @__PURE__ */ r(U.Trigger, { asChild: !0, children: /* @__PURE__ */ r(
|
|
558
|
+
H,
|
|
559
|
+
{
|
|
560
|
+
ref: l,
|
|
561
|
+
type: "button",
|
|
562
|
+
intent: i,
|
|
563
|
+
icon: /* @__PURE__ */ r(Ce, { "aria-hidden": !0 }),
|
|
564
|
+
tooltip: c ?? v("dataTable.export.menu", "Export"),
|
|
565
|
+
"aria-label": c ?? v("dataTable.export.menu", "Export"),
|
|
566
|
+
"aria-haspopup": "menu",
|
|
567
|
+
...o
|
|
568
|
+
}
|
|
569
|
+
) }),
|
|
570
|
+
/* @__PURE__ */ r(U.Content, { align: "end", sideOffset: 4, children: n })
|
|
571
|
+
] }) });
|
|
572
|
+
}
|
|
573
|
+
);
|
|
574
|
+
le.displayName = `${e}.ExportMenu`;
|
|
575
|
+
function Ie(n, c) {
|
|
576
|
+
return c === "csv" ? n("dataTable.export.csv", "Export CSV") : c === "xlsx" ? n("dataTable.export.xlsx", "Export Excel") : c === "pdf" ? n("dataTable.export.pdf", "Export PDF") : n("dataTable.export.custom", "Export");
|
|
577
|
+
}
|
|
578
|
+
function Re(n) {
|
|
579
|
+
return n === "xlsx" ? /* @__PURE__ */ r(Je, { "aria-hidden": !0, className: "ds:size-4" }) : n === "pdf" ? /* @__PURE__ */ r(Ke, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ r(Ce, { "aria-hidden": !0, className: "ds:size-4" });
|
|
580
|
+
}
|
|
581
|
+
const he = ({
|
|
582
|
+
format: n,
|
|
583
|
+
label: c,
|
|
584
|
+
onSelect: i,
|
|
585
|
+
disabled: o,
|
|
586
|
+
description: l
|
|
587
|
+
}) => {
|
|
588
|
+
const { t: v } = q("ui");
|
|
589
|
+
if (!Se(ge))
|
|
590
|
+
throw new Error(
|
|
591
|
+
`${e}.ExportMenu.Item must be rendered inside ${e}.ExportMenu.`
|
|
592
|
+
);
|
|
593
|
+
return /* @__PURE__ */ r(
|
|
594
|
+
U.Item,
|
|
595
|
+
{
|
|
596
|
+
onSelect: i,
|
|
597
|
+
disabled: o,
|
|
598
|
+
description: l,
|
|
599
|
+
children: /* @__PURE__ */ G("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
600
|
+
Re(n),
|
|
601
|
+
/* @__PURE__ */ r("span", { children: c ?? Ie(v, n) })
|
|
602
|
+
] })
|
|
603
|
+
}
|
|
604
|
+
);
|
|
605
|
+
};
|
|
606
|
+
he.displayName = `${e}.ExportMenu.Item`;
|
|
607
|
+
const de = V(
|
|
608
|
+
function({ label: c, icon: i, footer: o, header: l, intent: v = "outline", ...b }, k) {
|
|
609
|
+
const { t: m, i18n: T } = q("ui"), f = t("ColumnToggle"), y = f.features.keyboardReorder, $ = f.features.toolbarAnnouncesColumnMoves === !0, [S, W] = A(!1), [g, R] = A(""), O = K(f, S ? ["columns"] : []), [w, h] = A([]), [ve, ce] = A(null), [Me, te] = A(null), J = _(/* @__PURE__ */ new Map()), re = _(
|
|
610
|
+
null
|
|
611
|
+
), j = se(
|
|
612
|
+
() => f.getColumns().filter((s) => s.hiddenByPrivacy !== !0),
|
|
613
|
+
[f]
|
|
614
|
+
);
|
|
615
|
+
X(() => {
|
|
616
|
+
S && h(j());
|
|
617
|
+
}, [S, j, O]), X(() => {
|
|
618
|
+
S && R("");
|
|
619
|
+
}, [S]), ze(() => {
|
|
620
|
+
var p;
|
|
621
|
+
const s = re.current;
|
|
622
|
+
if (!s) return;
|
|
623
|
+
re.current = null;
|
|
624
|
+
const C = w.findIndex((z) => z.id === s.id);
|
|
625
|
+
if (C < 0) return;
|
|
626
|
+
const P = (s.dir === "up" ? C === 0 : C === w.length - 1) ? s.dir === "up" ? "down" : "up" : s.dir;
|
|
627
|
+
(p = J.current.get(`${s.id}:${P}`)) == null || p.focus();
|
|
628
|
+
}, [w]);
|
|
629
|
+
const qe = se(
|
|
630
|
+
(s, C) => {
|
|
631
|
+
f.isReady() && (f.setColumnVisible(s, C), h(j()));
|
|
632
|
+
},
|
|
633
|
+
[f, j]
|
|
634
|
+
), Te = se(
|
|
635
|
+
(s, C) => {
|
|
636
|
+
if (!f.isReady()) return;
|
|
637
|
+
const B = f.getColumns().find((pe) => pe.id === s);
|
|
638
|
+
f.moveColumn(s, C);
|
|
639
|
+
const P = j();
|
|
640
|
+
if (h(P), !$ || !B) return;
|
|
641
|
+
const p = P.findIndex((pe) => pe.id === s), z = P[p];
|
|
642
|
+
if (!z) return;
|
|
643
|
+
const ae = z.label || s;
|
|
644
|
+
if (z.pinned !== B.pinned) {
|
|
645
|
+
R(
|
|
646
|
+
z.pinned === "start" ? m("dataGrid.announce.columnPinnedStart", { column: ae }) : z.pinned === "end" ? m("dataGrid.announce.columnPinnedEnd", { column: ae }) : m("dataGrid.announce.columnUnpinned", { column: ae })
|
|
647
|
+
);
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
650
|
+
R(
|
|
651
|
+
m("dataGrid.announce.columnMoved", {
|
|
652
|
+
column: ae,
|
|
653
|
+
position: me(p + 1, T.language),
|
|
654
|
+
total: me(P.length, T.language)
|
|
655
|
+
})
|
|
656
|
+
);
|
|
657
|
+
},
|
|
658
|
+
[f, j, $, m, T.language]
|
|
659
|
+
), ue = se(
|
|
660
|
+
(s, C) => {
|
|
661
|
+
if (s === C) return;
|
|
662
|
+
const B = f.getColumns().findIndex((P) => P.id === C);
|
|
663
|
+
B < 0 || Te(s, B);
|
|
664
|
+
},
|
|
665
|
+
[f, Te]
|
|
666
|
+
), ne = c ?? m("dataTable.columnToggle");
|
|
667
|
+
return /* @__PURE__ */ G(oe.Root, { open: S, onOpenChange: W, children: [
|
|
668
|
+
/* @__PURE__ */ r(oe.Trigger, { asChild: !0, children: /* @__PURE__ */ r(
|
|
669
|
+
H,
|
|
670
|
+
{
|
|
671
|
+
ref: k,
|
|
672
|
+
type: "button",
|
|
673
|
+
intent: v,
|
|
674
|
+
icon: i ?? /* @__PURE__ */ r(et, { "aria-hidden": !0 }),
|
|
675
|
+
tooltip: ne,
|
|
676
|
+
"aria-label": ne,
|
|
677
|
+
"aria-haspopup": "dialog",
|
|
678
|
+
...b
|
|
679
|
+
}
|
|
680
|
+
) }),
|
|
681
|
+
/* @__PURE__ */ G(
|
|
682
|
+
oe.Content,
|
|
683
|
+
{
|
|
684
|
+
size: "sm",
|
|
685
|
+
align: "end",
|
|
686
|
+
className: "ds:flex ds:max-h-[var(--radix-popover-content-available-height)] ds:flex-col",
|
|
687
|
+
children: [
|
|
688
|
+
/* @__PURE__ */ r(oe.Heading, { children: ne }),
|
|
689
|
+
l ? /* @__PURE__ */ r("div", { className: "ds:mb-[var(--spacing-xs)] ds:border-b ds:border-[color:var(--border)] ds:pb-[var(--spacing-sm)]", children: l }) : null,
|
|
690
|
+
/* @__PURE__ */ r(
|
|
691
|
+
"ul",
|
|
692
|
+
{
|
|
693
|
+
className: "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto",
|
|
694
|
+
"aria-label": ne,
|
|
695
|
+
children: w.map((s, C) => {
|
|
696
|
+
const B = ve === s.id, P = Me === s.id && ve !== s.id;
|
|
697
|
+
return /* @__PURE__ */ G(
|
|
698
|
+
"li",
|
|
699
|
+
{
|
|
700
|
+
draggable: !0,
|
|
701
|
+
onDragStart: (p) => {
|
|
702
|
+
ce(s.id), p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", s.id);
|
|
703
|
+
},
|
|
704
|
+
onDragOver: (p) => {
|
|
705
|
+
p.preventDefault(), p.dataTransfer.dropEffect = "move", te(s.id);
|
|
706
|
+
},
|
|
707
|
+
onDragLeave: () => {
|
|
708
|
+
te((p) => p === s.id ? null : p);
|
|
709
|
+
},
|
|
710
|
+
onDrop: (p) => {
|
|
711
|
+
p.preventDefault();
|
|
712
|
+
const z = p.dataTransfer.getData("text/plain");
|
|
713
|
+
z && ue(z, s.id), ce(null), te(null);
|
|
714
|
+
},
|
|
715
|
+
onDragEnd: () => {
|
|
716
|
+
ce(null), te(null);
|
|
717
|
+
},
|
|
718
|
+
className: ft({
|
|
719
|
+
dragging: B,
|
|
720
|
+
dragOver: P
|
|
721
|
+
}),
|
|
722
|
+
children: [
|
|
723
|
+
/* @__PURE__ */ r(
|
|
724
|
+
"span",
|
|
725
|
+
{
|
|
726
|
+
"aria-hidden": "true",
|
|
727
|
+
className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
|
|
728
|
+
children: /* @__PURE__ */ r(He, { className: "ds:size-4" })
|
|
729
|
+
}
|
|
730
|
+
),
|
|
731
|
+
/* @__PURE__ */ r(
|
|
732
|
+
Ve,
|
|
733
|
+
{
|
|
734
|
+
label: s.label,
|
|
735
|
+
checked: s.visible,
|
|
736
|
+
disabled: s.canHide === !1,
|
|
737
|
+
onCheckedChange: (p) => qe(s.id, p === !0)
|
|
738
|
+
}
|
|
739
|
+
),
|
|
740
|
+
y ? /* @__PURE__ */ G("span", { className: "ds:ms-auto ds:flex ds:items-center", children: [
|
|
741
|
+
/* @__PURE__ */ r(
|
|
742
|
+
H,
|
|
743
|
+
{
|
|
744
|
+
ref: (p) => {
|
|
745
|
+
p ? J.current.set(`${s.id}:up`, p) : J.current.delete(`${s.id}:up`);
|
|
746
|
+
},
|
|
747
|
+
type: "button",
|
|
748
|
+
size: "sm",
|
|
749
|
+
intent: "ghost",
|
|
750
|
+
icon: /* @__PURE__ */ r(_e, { "aria-hidden": !0 }),
|
|
751
|
+
"aria-label": m("dataGrid.toolbar.moveColumnUp", {
|
|
752
|
+
column: s.label
|
|
753
|
+
}),
|
|
754
|
+
disabled: !Ne(w, C, C - 1),
|
|
755
|
+
onClick: () => {
|
|
756
|
+
re.current = { id: s.id, dir: "up" };
|
|
757
|
+
const p = w[C - 1];
|
|
758
|
+
p && ue(s.id, p.id);
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
),
|
|
762
|
+
/* @__PURE__ */ r(
|
|
763
|
+
H,
|
|
764
|
+
{
|
|
765
|
+
ref: (p) => {
|
|
766
|
+
p ? J.current.set(`${s.id}:down`, p) : J.current.delete(`${s.id}:down`);
|
|
767
|
+
},
|
|
768
|
+
type: "button",
|
|
769
|
+
size: "sm",
|
|
770
|
+
intent: "ghost",
|
|
771
|
+
icon: /* @__PURE__ */ r(Ue, { "aria-hidden": !0 }),
|
|
772
|
+
"aria-label": m("dataGrid.toolbar.moveColumnDown", {
|
|
773
|
+
column: s.label
|
|
774
|
+
}),
|
|
775
|
+
disabled: !Ne(w, C, C + 1),
|
|
776
|
+
onClick: () => {
|
|
777
|
+
re.current = { id: s.id, dir: "down" };
|
|
778
|
+
const p = w[C + 1];
|
|
779
|
+
p && ue(s.id, p.id);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
)
|
|
783
|
+
] }) : null
|
|
784
|
+
]
|
|
785
|
+
},
|
|
786
|
+
s.id
|
|
787
|
+
);
|
|
788
|
+
})
|
|
789
|
+
}
|
|
790
|
+
),
|
|
791
|
+
$ ? /* @__PURE__ */ r("span", { role: "status", className: "ds:sr-only", children: g }) : null,
|
|
792
|
+
y && f.resetColumns ? /* @__PURE__ */ r("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: /* @__PURE__ */ r(
|
|
793
|
+
ie,
|
|
794
|
+
{
|
|
795
|
+
type: "button",
|
|
796
|
+
intent: "ghost",
|
|
797
|
+
size: "sm",
|
|
798
|
+
startIcon: /* @__PURE__ */ r(Xe, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
799
|
+
onClick: () => {
|
|
800
|
+
var s;
|
|
801
|
+
(s = f.resetColumns) == null || s.call(f), h(j());
|
|
802
|
+
},
|
|
803
|
+
children: m("dataGrid.toolbar.resetColumns")
|
|
804
|
+
}
|
|
805
|
+
) }) : null,
|
|
806
|
+
o ? /* @__PURE__ */ r("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: o }) : null
|
|
807
|
+
]
|
|
808
|
+
}
|
|
809
|
+
)
|
|
810
|
+
] });
|
|
811
|
+
}
|
|
812
|
+
);
|
|
813
|
+
de.displayName = `${e}.ColumnToggle`;
|
|
814
|
+
const be = V(
|
|
815
|
+
({ label: n, icon: c, onAction: i, variant: o = "default", size: l = "sm", ...v }, b) => {
|
|
816
|
+
const { t: k } = q("ui"), m = t("BulkAction");
|
|
817
|
+
K(m, ["selection"]);
|
|
818
|
+
const T = m.getSelectionCount();
|
|
819
|
+
return T === 0 ? null : /* @__PURE__ */ G(
|
|
820
|
+
ie,
|
|
821
|
+
{
|
|
822
|
+
ref: b,
|
|
823
|
+
type: "button",
|
|
824
|
+
intent: o === "destructive" ? "destructive" : "secondary",
|
|
825
|
+
size: l,
|
|
826
|
+
startIcon: lt(c),
|
|
827
|
+
onClick: () => i(dt(m)),
|
|
828
|
+
"aria-label": `${n} (${k("dataTable.bulkAction", { count: T })})`,
|
|
829
|
+
...v,
|
|
830
|
+
children: [
|
|
831
|
+
/* @__PURE__ */ r("span", { children: n }),
|
|
832
|
+
/* @__PURE__ */ r(
|
|
833
|
+
"span",
|
|
834
|
+
{
|
|
835
|
+
"aria-hidden": "true",
|
|
836
|
+
className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
|
|
837
|
+
children: k("dataTable.bulkAction", { count: T })
|
|
838
|
+
}
|
|
839
|
+
)
|
|
840
|
+
]
|
|
841
|
+
}
|
|
842
|
+
);
|
|
843
|
+
}
|
|
844
|
+
);
|
|
845
|
+
be.displayName = `${e}.BulkAction`;
|
|
846
|
+
for (const n of [M, N, le, de])
|
|
847
|
+
n.rendersIconButton = !0;
|
|
848
|
+
return {
|
|
849
|
+
Root: u,
|
|
850
|
+
FilterBar: F,
|
|
851
|
+
Actions: E,
|
|
852
|
+
Print: ee,
|
|
853
|
+
Refresh: x,
|
|
854
|
+
QuickSearch: D,
|
|
855
|
+
FilterChips: L,
|
|
856
|
+
FacetFilter: fe,
|
|
857
|
+
ExportMenu: le,
|
|
858
|
+
ExportMenuItemBase: he,
|
|
859
|
+
ColumnToggle: de,
|
|
860
|
+
BulkAction: be,
|
|
861
|
+
useSeam: t
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
export {
|
|
865
|
+
Bt as T,
|
|
866
|
+
dt as a,
|
|
867
|
+
Vt as c
|
|
868
|
+
};
|
|
869
|
+
//# sourceMappingURL=parts-CtcTW1PN.js.map
|