@alfadocs/ui-kit 1.150.0 → 1.151.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{address-autocomplete-_LeOFdM7.js → address-autocomplete-Bt1nwxyn.js} +2 -2
- package/dist/_chunks/{address-fields-C4khof4C.js → address-fields-COumFRSX.js} +2 -2
- package/dist/_chunks/{agenda-tray-NgxPuAAz.js → agenda-tray-CmfcYQhc.js} +2 -2
- package/dist/_chunks/{ai-summary-panel-D-RNe-_n.js → ai-summary-panel-DyAHCqaj.js} +2 -2
- package/dist/_chunks/{alia-sidebar-Bjuxk8mU.js → alia-sidebar-BqZjnVoF.js} +2 -2
- package/dist/_chunks/{anamnesis-card-G0qzw0Oi.js → anamnesis-card-CoiG7vDj.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-CE-i9j-s.js → anamnesis-summary-rows-CFpaA1GP.js} +3 -3
- package/dist/_chunks/{app-frame-DUPEwu4E.js → app-frame-XEjLsLGY.js} +2 -2
- package/dist/_chunks/{appointment-card-BPZggqck.js → appointment-card-CCKjbU5y.js} +105 -104
- package/dist/_chunks/{appointment-details-panel.history-BO31ZFQp.js → appointment-details-panel.history-FSsTXj1t.js} +84 -71
- package/dist/_chunks/{appointment-details-panel.identity-C9kWtC6m.js → appointment-details-panel.identity-9hRo85Lx.js} +4 -4
- package/dist/_chunks/appointment-peek-CmQM4wvx.js +223 -0
- package/dist/_chunks/{appointment-timeline-ynFqcw0S.js → appointment-timeline-B9KRurfc.js} +3 -3
- package/dist/_chunks/{appointment-tray-Dx5VDREk.js → appointment-tray-Be3HuEyO.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DiyJQcmA.js → balance-badge-cell-OghXENKK.js} +3 -3
- package/dist/_chunks/{bill-line-table-B8Cc2pTH.js → bill-line-table-DxV5_Dmq.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BfoEpFVx.js → calendar-appointment-editor-dialog-B9MtcBvx.js} +337 -334
- package/dist/_chunks/{calendar-editor-discard-host-DO506cJu.js → calendar-editor-discard-host-BudLsUZO.js} +3 -3
- package/dist/_chunks/{calendar-waiting-list-panel-CyMTv2y3.js → calendar-waiting-list-panel-DukgSOPH.js} +7 -7
- package/dist/_chunks/{calendar-workspace.model-X3aXbDTo.js → calendar-workspace.model-BulUpy0I.js} +2 -2
- package/dist/_chunks/{calendar.sheets-C8x8kPb4.js → calendar.sheets-OmTiQdCg.js} +8 -8
- package/dist/_chunks/{calls-panel-Bpemmnpd.js → calls-panel-eohONLia.js} +3 -3
- package/dist/_chunks/code-BfU9G1ZM.js +15 -0
- package/dist/_chunks/{communications-panel-Cd0TBEhL.js → communications-panel-CqiFs8BH.js} +3 -3
- package/dist/_chunks/{connection-status-Bi6KPTlh.js → connection-status-C13KmOPL.js} +2 -2
- package/dist/_chunks/control-room-rail-C-3o1e0e.js +456 -0
- package/dist/_chunks/{data-grid-CkzbCZSo.js → data-grid-DTAwrOiq.js} +3 -3
- package/dist/_chunks/{data-table-DFAYYsSc.js → data-table-CgpHO6EZ.js} +2 -2
- package/dist/_chunks/{default-tabs-C45FVzsG.js → default-tabs-CZaDDf1G.js} +4 -4
- package/dist/_chunks/{description-list-DA4TgL_I.js → description-list-DaldSpGy.js} +29 -26
- package/dist/_chunks/dev-bypass-button-DFcNpCQj.js +24 -0
- package/dist/_chunks/{document-preview-Zws6CHhK.js → document-preview-TbwhY_eK.js} +3 -3
- package/dist/_chunks/{editable-currency-cell-renderer-DXJI0fnU.js → editable-currency-cell-renderer-a3CrwNKm.js} +143 -168
- package/dist/_chunks/{empty-state-5REM7oDM.js → empty-state-qHtpcasr.js} +65 -77
- package/dist/_chunks/{error-boundary-BQ5mRqEd.js → error-boundary-BDS1XStO.js} +2 -2
- package/dist/_chunks/{error-page-CdNGIezW.js → error-page-3gWV-Vmj.js} +2 -2
- package/dist/_chunks/{error-page-illustration-BdJLuMdV.js → error-page-illustration-CJCjLk_-.js} +125 -149
- package/dist/_chunks/{face-scheme-BC2whb1S.js → face-scheme-DRYGaszs.js} +255 -264
- package/dist/_chunks/{feature-preview-switch-PKeLaFry.js → feature-preview-switch-B_8JTya_.js} +2 -2
- package/dist/_chunks/{file-manager-DzOCQBAO.js → file-manager-DMvYx-Gq.js} +4 -4
- package/dist/_chunks/{folder-CH9PJHou.js → folder-DvNxod7_.js} +3 -3
- package/dist/_chunks/{heatmap-DvsZ-mcL.js → heatmap-BZNkPkDD.js} +4 -4
- package/dist/_chunks/{help-me-write-templates-B_wMJ82X.js → help-me-write-templates-VnvlK87x.js} +2 -2
- package/dist/_chunks/{info-tip-cCppV1fD.js → info-tip-DkVISvo-.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-BReimsvV.js → invoice-upload-list-DutydbjC.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-CWLArl5e.js → link-cell-renderer-DTunki79.js} +3 -3
- package/dist/_chunks/{login-dev-card-DqUNJcd7.js → login-dev-card-CQz9yhrU.js} +2 -2
- package/dist/_chunks/{map-view-n6GiDRWM.js → map-view-B67HXWPR.js} +2 -2
- package/dist/_chunks/mark-adrift-LBqHvZwv.js +42 -0
- package/dist/_chunks/{marketplace-app-shell-CGA-R-zt.js → marketplace-app-shell-CclaaAvb.js} +3 -3
- package/dist/_chunks/{message-tray-Dx2HPcKB.js → message-tray-DysT-DPS.js} +2 -2
- package/dist/_chunks/{note-timeline-BbjHMhkL.js → note-timeline-CS5j2OKD.js} +86 -77
- package/dist/_chunks/notebook-text-spVSekMN.js +21 -0
- package/dist/_chunks/{notes-panel-BguRX8VC.js → notes-panel-d0I3hOEY.js} +162 -173
- package/dist/_chunks/{notification-tray-BnC5OItw.js → notification-tray-CjGDlwLg.js} +2 -2
- package/dist/_chunks/{optical-prescription-BzGnlIjq.js → optical-prescription-CAnXavjq.js} +2 -2
- package/dist/_chunks/panel-right-CnMHSvLU.js +15 -0
- package/dist/_chunks/{panel-subview-Om_yZvFG.js → panel-subview-B5hnQwfQ.js} +2 -2
- package/dist/_chunks/{patient-account-settings-YKnBzmwE.js → patient-account-settings-DmB_h5fq.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-DERfQbp5.js → patient-check-in-resume-CI54cY8Z.js} +6 -6
- package/dist/_chunks/{patient-details-BUD0UbmT.js → patient-details-wFIzTz7N.js} +3 -3
- package/dist/_chunks/{patient-field-row-DytaHdGw.js → patient-field-row-BDgfYLgz.js} +2 -2
- package/dist/_chunks/{patient-summary-card-7Werxl48.js → patient-summary-card-ZunOre3Q.js} +162 -155
- package/dist/_chunks/{payment-request-card-BF3rakTQ.js → payment-request-card-BSSfKrcc.js} +2 -2
- package/dist/_chunks/{portal-details-C1QQGPQf.js → portal-details-BZm8UNMx.js} +4 -4
- package/dist/_chunks/{portal-documents-CzEuCaqv.js → portal-documents-CBVSCKAB.js} +3 -3
- package/dist/_chunks/{portal-parts-BMW4t57s.js → portal-parts-DRfyhL5P.js} +3 -3
- package/dist/_chunks/{practice-results-D0TAgL8v.js → practice-results-CqoB5YAv.js} +5 -5
- package/dist/_chunks/{prescription-history-CQuJmd4H.js → prescription-history-CxBM3gnm.js} +4 -4
- package/dist/_chunks/{privacy-mask-CrjD5PYW.js → privacy-mask-CaLBAxzj.js} +2 -2
- package/dist/_chunks/{product-hub-panel-NVpRuJeW.js → product-hub-panel-RJzrDcGp.js} +3 -3
- package/dist/_chunks/{public-header.agent-Dzo6ujrE.js → public-header.agent-B2CqVq4s.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-Kl1M0dtT.js → radiograph-panel.agent-kgCmmgZk.js} +2 -2
- package/dist/_chunks/{registration-form-AtRCt8n5.js → registration-form-Dbe1sFZb.js} +2 -2
- package/dist/_chunks/{registry-connection-panel-kdKbGQE6.js → registry-connection-panel-BkPPA3Fj.js} +3 -3
- package/dist/_chunks/{reserved.agent-CW0frsMv.js → reserved.agent-C-sMq0pb.js} +4 -4
- package/dist/_chunks/{reviews-panel-54AFY6uy.js → reviews-panel-jIz5aP2X.js} +3 -3
- package/dist/_chunks/rich-text-editor-DTadvKa7.js +4716 -0
- package/dist/_chunks/{scroll-area-CY5SLYNw.js → scroll-area-RQtcKkHf.js} +84 -79
- package/dist/_chunks/{sheet-CZDjW9Q-.js → sheet-1LXzej6Q.js} +2 -2
- package/dist/_chunks/{sidebar-D5DFYN5K.js → sidebar-BV9JCgS4.js} +2 -2
- package/dist/_chunks/{signed-out-frame-CC25CgKo.js → signed-out-frame-CKA8SSbU.js} +2 -2
- package/dist/_chunks/{signing-end-screen-Bq6tkFE6.js → signing-end-screen-HXkalppf.js} +2 -2
- package/dist/_chunks/{slot-grid-khIpy8Gx.js → slot-grid-DdqeF6PW.js} +2 -2
- package/dist/_chunks/{sync-tray-BQD-HuA4.js → sync-tray-CSVGzuur.js} +2 -2
- package/dist/_chunks/{task-editor-CIHQQRtP.js → task-editor-aXjGMwYA.js} +4 -4
- package/dist/_chunks/{task-tray-CxxcGGgx.js → task-tray-C48Vq8nt.js} +2 -2
- package/dist/_chunks/{tasks-panel-Bc_odkQN.js → tasks-panel-BdxHb-fX.js} +2 -2
- package/dist/_chunks/{tool-rail-CJBtqzMs.js → tool-rail-C_Ay0Gxi.js} +260 -256
- package/dist/_chunks/{toolbar-B9oh9XY9.js → toolbar-B2JJ_XDT.js} +2 -2
- package/dist/_chunks/tooth-chip-DOv925IH.js +41 -0
- package/dist/_chunks/{treatment-receipt-B6m47Jie.js → treatment-receipt-CZQV1NkJ.js} +45 -46
- package/dist/_chunks/{use-appointment-details-read-HVHbR0Zl.js → use-appointment-details-read-BR3TQOHx.js} +878 -809
- package/dist/_chunks/user-round-DZxRG9zq.js +15 -0
- package/dist/_chunks/{week-availability-D0tTll4q.js → week-availability-D00rMjsX.js} +2 -2
- package/dist/_chunks/{workflow-map-F7OThorL.js → workflow-map-DLUTUZ27.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- package/dist/appointment-editor-panel/index.js +3 -3
- package/dist/booking-tools-data/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +1 -1
- package/dist/components/_shared/mark-adrift.d.ts +12 -0
- package/dist/components/_shared/safe-html.d.ts +6 -0
- package/dist/components/_shared/tooth-chip.d.ts +21 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-summary-panel/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +5 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +9 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +9 -2
- package/dist/components/appointment-details-panel/description-length.d.ts +18 -0
- package/dist/components/appointment-details-panel/index.d.ts +1 -0
- package/dist/components/appointment-details-panel/index.js +7 -6
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calls-panel/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/control-room-rail/control-room-rail.d.ts +24 -0
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +3 -3
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dev-bypass-button/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/error-boundary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/feature-preview-switch/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/note-timeline/note-timeline.d.ts +8 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +18 -7
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/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/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/registry-connection-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +16 -6
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/link-bar.d.ts +8 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +25 -3
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +6 -0
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sync-tray/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts +14 -0
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/treatment-receipt/treatment-receipt.d.ts +6 -1
- package/dist/components/week-availability/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +4 -1
- package/dist/host-legacy.css +13 -1
- package/dist/i18n/locales/ar.d.ts +9 -0
- package/dist/i18n/locales/ar.js +11 -2
- package/dist/i18n/locales/de.d.ts +9 -0
- package/dist/i18n/locales/de.js +11 -2
- package/dist/i18n/locales/el.d.ts +9 -0
- package/dist/i18n/locales/el.js +11 -2
- package/dist/i18n/locales/en.d.ts +9 -0
- package/dist/i18n/locales/en.js +10 -1
- package/dist/i18n/locales/es.d.ts +9 -0
- package/dist/i18n/locales/es.js +11 -2
- package/dist/i18n/locales/fr.d.ts +9 -0
- package/dist/i18n/locales/fr.js +11 -2
- package/dist/i18n/locales/hi.d.ts +9 -0
- package/dist/i18n/locales/hi.js +11 -2
- package/dist/i18n/locales/it.d.ts +9 -0
- package/dist/i18n/locales/it.js +11 -2
- package/dist/i18n/locales/ja.d.ts +9 -0
- package/dist/i18n/locales/ja.js +11 -2
- package/dist/i18n/locales/nl.d.ts +9 -0
- package/dist/i18n/locales/nl.js +11 -2
- package/dist/i18n/locales/pl.d.ts +9 -0
- package/dist/i18n/locales/pl.js +11 -2
- package/dist/i18n/locales/pt.d.ts +9 -0
- package/dist/i18n/locales/pt.js +11 -2
- package/dist/i18n/locales/ro.d.ts +9 -0
- package/dist/i18n/locales/ro.js +11 -2
- package/dist/i18n/locales/ru.d.ts +9 -0
- package/dist/i18n/locales/ru.js +11 -2
- package/dist/i18n/locales/sq.d.ts +9 -0
- package/dist/i18n/locales/sq.js +11 -2
- package/dist/i18n/locales/sv.d.ts +9 -0
- package/dist/i18n/locales/sv.js +11 -2
- package/dist/i18n/locales/tr.d.ts +9 -0
- package/dist/i18n/locales/tr.js +11 -2
- package/dist/i18n/locales/zh.d.ts +9 -0
- package/dist/i18n/locales/zh.js +11 -2
- package/dist/index.js +818 -817
- package/dist/locales/ar.json +11 -2
- package/dist/locales/de.json +11 -2
- package/dist/locales/el.json +11 -2
- package/dist/locales/en.json +10 -1
- package/dist/locales/es.json +11 -2
- package/dist/locales/fr.json +11 -2
- package/dist/locales/hi.json +11 -2
- package/dist/locales/it.json +11 -2
- package/dist/locales/ja.json +11 -2
- package/dist/locales/nl.json +11 -2
- package/dist/locales/pl.json +11 -2
- package/dist/locales/pt.json +11 -2
- package/dist/locales/ro.json +11 -2
- package/dist/locales/ru.json +11 -2
- package/dist/locales/sq.json +11 -2
- package/dist/locales/sv.json +11 -2
- package/dist/locales/tr.json +11 -2
- package/dist/locales/zh.json +11 -2
- package/dist/online-bookings-panel/index.js +2 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +4 -4
- package/dist/patterns/error-page/index.js +2 -2
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/patterns/signing/index.js +1 -1
- package/dist/redactor.css +9 -0
- package/dist/safe-html/index.js +33 -19
- package/dist/tokens.css +61 -52
- package/dist/waiting-list-panel/index.js +3 -3
- package/package.json +1 -1
- package/dist/_chunks/appointment-peek-CGJ6kUvM.js +0 -213
- package/dist/_chunks/control-room-rail-4W1MFY-g.js +0 -416
- package/dist/_chunks/dev-bypass-button-BzfYGPuf.js +0 -33
- package/dist/_chunks/rich-text-editor-DCQEpaIv.js +0 -4523
- /package/dist/{patterns → components}/_shared/mark-pieces.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as I, jsx as
|
|
2
|
-
import { useLayoutEffect as O, useMemo as V, useState as F, useRef as S, useEffect as
|
|
3
|
-
import { T as K } from "./
|
|
1
|
+
import { jsxs as I, jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useLayoutEffect as O, useMemo as V, useState as F, useRef as S, useEffect as L } from "react";
|
|
3
|
+
import { T as K } from "./tooth-chip-DOv925IH.js";
|
|
4
4
|
import { useTranslation as w } from "react-i18next";
|
|
5
5
|
import { I as z } from "./icon-button-u9VMQn3x.js";
|
|
6
6
|
import { I as q } from "./icon-button-group-DEAx9M5v.js";
|
|
@@ -9,7 +9,7 @@ import { S as W } from "./square-check-big-dj0o8yA3.js";
|
|
|
9
9
|
import { S as Z } from "./square-DASBRZ0U.js";
|
|
10
10
|
import { u as J } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
11
11
|
import { c as P, a as U, b as j, d as M } from "./input-surface-BMffm2Vd.js";
|
|
12
|
-
const
|
|
12
|
+
const H = "data-slot", $ = "header-info", T = `[${H}="${$}"]`;
|
|
13
13
|
function N(n) {
|
|
14
14
|
n.stopPropagation();
|
|
15
15
|
}
|
|
@@ -17,7 +17,7 @@ function Q({
|
|
|
17
17
|
displayName: n,
|
|
18
18
|
renderInfo: e,
|
|
19
19
|
api: t,
|
|
20
|
-
column:
|
|
20
|
+
column: a,
|
|
21
21
|
eGridHeader: r
|
|
22
22
|
}) {
|
|
23
23
|
O(() => {
|
|
@@ -25,25 +25,25 @@ function Q({
|
|
|
25
25
|
if (!(!o || !e))
|
|
26
26
|
return o.setAttribute("aria-label", n), () => o.removeAttribute("aria-label");
|
|
27
27
|
}, [n, e, r]);
|
|
28
|
-
const
|
|
28
|
+
const c = (o) => {
|
|
29
29
|
if (o.key !== "Tab" || o.shiftKey) return;
|
|
30
30
|
const l = o.target;
|
|
31
31
|
if (o.currentTarget.contains(l)) return;
|
|
32
|
-
const
|
|
33
|
-
if (
|
|
34
|
-
o.preventDefault(), t.setFocusedHeader(
|
|
32
|
+
const d = t.getDisplayedColAfter(a);
|
|
33
|
+
if (d) {
|
|
34
|
+
o.preventDefault(), t.setFocusedHeader(d);
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
|
-
const
|
|
38
|
-
t.getDisplayedRowCount() > 0 &&
|
|
37
|
+
const s = t.getAllDisplayedColumns()[0];
|
|
38
|
+
t.getDisplayedRowCount() > 0 && s && (o.preventDefault(), t.setFocusedCell(0, s));
|
|
39
39
|
};
|
|
40
40
|
return /* @__PURE__ */ I("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
e && /* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ f("span", { className: "ds:min-w-0 ds:truncate", children: n }),
|
|
42
|
+
e && /* @__PURE__ */ f(
|
|
43
43
|
"span",
|
|
44
44
|
{
|
|
45
45
|
role: "presentation",
|
|
46
|
-
[
|
|
46
|
+
[H]: $,
|
|
47
47
|
className: "ds:inline-flex ds:shrink-0 ds:items-center",
|
|
48
48
|
onClick: N,
|
|
49
49
|
onDoubleClick: N,
|
|
@@ -51,7 +51,7 @@ function Q({
|
|
|
51
51
|
onPointerDown: N,
|
|
52
52
|
onTouchStart: N,
|
|
53
53
|
onContextMenu: N,
|
|
54
|
-
onKeyDownCapture:
|
|
54
|
+
onKeyDownCapture: c,
|
|
55
55
|
children: e()
|
|
56
56
|
}
|
|
57
57
|
)
|
|
@@ -60,12 +60,12 @@ function Q({
|
|
|
60
60
|
function Y(n) {
|
|
61
61
|
const { event: e } = n, t = e.target;
|
|
62
62
|
if (!t || typeof t.closest != "function") return !1;
|
|
63
|
-
const
|
|
64
|
-
if (!
|
|
63
|
+
const a = t.closest(".ag-header-cell");
|
|
64
|
+
if (!a) return !1;
|
|
65
65
|
if (t.closest(T))
|
|
66
|
-
return e.key === "Tab" ? e.shiftKey ? (e.preventDefault(),
|
|
67
|
-
if (t ===
|
|
68
|
-
const r =
|
|
66
|
+
return e.key === "Tab" ? e.shiftKey ? (e.preventDefault(), a.focus(), !0) : !1 : !0;
|
|
67
|
+
if (t === a && e.key === "Tab" && !e.shiftKey) {
|
|
68
|
+
const r = a.querySelector(
|
|
69
69
|
`${T} button, ${T} a, ${T} [tabindex]`
|
|
70
70
|
);
|
|
71
71
|
if (r)
|
|
@@ -73,9 +73,9 @@ function Y(n) {
|
|
|
73
73
|
}
|
|
74
74
|
return !1;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function ye(n, e) {
|
|
77
77
|
var r;
|
|
78
|
-
const t = typeof e == "function" ? e : () => e,
|
|
78
|
+
const t = typeof e == "function" ? e : () => e, a = n.suppressHeaderKeyboardEvent;
|
|
79
79
|
return {
|
|
80
80
|
...n,
|
|
81
81
|
headerComponentParams: {
|
|
@@ -86,96 +86,71 @@ function Ce(n, e) {
|
|
|
86
86
|
renderInfo: t
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
|
-
suppressHeaderKeyboardEvent: (
|
|
89
|
+
suppressHeaderKeyboardEvent: (c) => Y(c) || (typeof a == "function" ? a(c) : !1)
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Ce(n, e, t) {
|
|
93
93
|
return V(() => {
|
|
94
|
-
const
|
|
94
|
+
const a = {};
|
|
95
95
|
for (const r of e) {
|
|
96
|
-
let
|
|
96
|
+
let c = 0;
|
|
97
97
|
for (const o of n ?? []) {
|
|
98
|
-
const l = o[r],
|
|
99
|
-
Number.isFinite(
|
|
98
|
+
const l = o[r], d = typeof l == "number" ? l : Number(l);
|
|
99
|
+
Number.isFinite(d) && (c += d);
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
a[r] = c;
|
|
102
102
|
}
|
|
103
|
-
return t != null && t.labelField && t.labelValue !== void 0 && (
|
|
103
|
+
return t != null && t.labelField && t.labelValue !== void 0 && (a[t.labelField] = t.labelValue), a;
|
|
104
104
|
}, [n, e, t == null ? void 0 : t.labelField, t == null ? void 0 : t.labelValue]);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return /* @__PURE__ */ c(
|
|
108
|
-
"svg",
|
|
109
|
-
{
|
|
110
|
-
viewBox: "0 0 24 24",
|
|
111
|
-
fill: "none",
|
|
112
|
-
stroke: "currentColor",
|
|
113
|
-
strokeWidth: 1.75,
|
|
114
|
-
strokeLinecap: "round",
|
|
115
|
-
strokeLinejoin: "round",
|
|
116
|
-
"aria-hidden": "true",
|
|
117
|
-
className: "ds:size-3.5",
|
|
118
|
-
children: /* @__PURE__ */ c("path", { d: "M12 5.5c-1.074 -1.426 -2.45 -2.2 -4 -2c-2.5 .323 -3.7 2.5 -3.5 5c.1 1.5 .5 3 .5 4.5c0 1.5 .5 3.5 1 5c.3 .9 .5 2 1.5 2s1.3 -1.5 1.5 -2.5c.2 -1 .5 -2 1.5 -2s1.3 1 1.5 2c.2 1 .5 2.5 1.5 2.5s1.2 -1.1 1.5 -2c.5 -1.5 1 -3.5 1 -5c0 -1.5 .4 -3 .5 -4.5c.2 -2.5 -1 -4.677 -3.5 -5c-1.55 -.2 -2.926 .574 -4 2z" })
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
function xe(n) {
|
|
106
|
+
function Ne(n) {
|
|
123
107
|
const { value: e, maxInlineSize: t = "8rem" } = n;
|
|
124
|
-
return !Array.isArray(e) || e.length === 0 ? null : /* @__PURE__ */
|
|
125
|
-
K,
|
|
126
|
-
{
|
|
127
|
-
label: e.join(", "),
|
|
128
|
-
size: "sm",
|
|
129
|
-
fill: "outline",
|
|
130
|
-
leading: /* @__PURE__ */ c(ee, {}),
|
|
131
|
-
maxInlineSize: t
|
|
132
|
-
}
|
|
133
|
-
);
|
|
108
|
+
return !Array.isArray(e) || e.length === 0 ? null : /* @__PURE__ */ f(K, { label: e.join(", "), maxInlineSize: t });
|
|
134
109
|
}
|
|
135
|
-
function
|
|
110
|
+
function ee(n) {
|
|
136
111
|
if (n == null || n === "") return null;
|
|
137
112
|
const e = typeof n == "number" ? n : Number(n);
|
|
138
113
|
return Number.isFinite(e) ? e : null;
|
|
139
114
|
}
|
|
140
|
-
function
|
|
115
|
+
function xe(n) {
|
|
141
116
|
const {
|
|
142
117
|
value: e,
|
|
143
118
|
currency: t = "EUR",
|
|
144
|
-
colorNegative:
|
|
119
|
+
colorNegative: a,
|
|
145
120
|
strikethrough: r,
|
|
146
|
-
options:
|
|
147
|
-
} = n, { i18n: o } = w("ui"), l =
|
|
121
|
+
options: c
|
|
122
|
+
} = n, { i18n: o } = w("ui"), l = ee(e);
|
|
148
123
|
if (l === null) return null;
|
|
149
|
-
const
|
|
124
|
+
const d = o.language || "en", s = new Intl.NumberFormat(d, {
|
|
150
125
|
style: "currency",
|
|
151
126
|
currency: t,
|
|
152
|
-
...
|
|
127
|
+
...c
|
|
153
128
|
}).format(l), i = ["ds:tabular-nums"];
|
|
154
|
-
return
|
|
129
|
+
return a && l < 0 && i.push("ds:text-[color:var(--destructive)]"), r && i.push("line-through"), /* @__PURE__ */ f("span", { className: i.join(" "), children: s });
|
|
155
130
|
}
|
|
156
|
-
function
|
|
131
|
+
function we() {
|
|
157
132
|
return 90;
|
|
158
133
|
}
|
|
159
|
-
function
|
|
134
|
+
function Te(n) {
|
|
160
135
|
const {
|
|
161
136
|
data: e,
|
|
162
137
|
node: t,
|
|
163
|
-
api:
|
|
138
|
+
api: a,
|
|
164
139
|
onMove: r,
|
|
165
|
-
moveUpLabel:
|
|
140
|
+
moveUpLabel: c,
|
|
166
141
|
moveDownLabel: o,
|
|
167
142
|
intent: l = "ghost",
|
|
168
|
-
group:
|
|
169
|
-
disableAtEnds:
|
|
143
|
+
group: d = !0,
|
|
144
|
+
disableAtEnds: s = !0
|
|
170
145
|
} = n, { t: i } = w("ui");
|
|
171
146
|
if (!e) return null;
|
|
172
|
-
const
|
|
173
|
-
/* @__PURE__ */
|
|
147
|
+
const u = t.rowIndex ?? -1, b = a.getDisplayedRowCount() - 1, g = s && u <= 0, x = s && u >= b, y = c ?? i("dataTable.moveUp", "Move up"), C = o ?? i("dataTable.moveDown", "Move down"), m = [
|
|
148
|
+
/* @__PURE__ */ f(
|
|
174
149
|
z,
|
|
175
150
|
{
|
|
176
151
|
size: "sm",
|
|
177
152
|
intent: l,
|
|
178
|
-
icon: /* @__PURE__ */
|
|
153
|
+
icon: /* @__PURE__ */ f(G, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
179
154
|
tooltip: y,
|
|
180
155
|
"aria-label": y,
|
|
181
156
|
disabled: g,
|
|
@@ -185,12 +160,12 @@ function Ee(n) {
|
|
|
185
160
|
},
|
|
186
161
|
"up"
|
|
187
162
|
),
|
|
188
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ f(
|
|
189
164
|
z,
|
|
190
165
|
{
|
|
191
166
|
size: "sm",
|
|
192
167
|
intent: l,
|
|
193
|
-
icon: /* @__PURE__ */
|
|
168
|
+
icon: /* @__PURE__ */ f(X, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
194
169
|
tooltip: C,
|
|
195
170
|
"aria-label": C,
|
|
196
171
|
disabled: x,
|
|
@@ -201,32 +176,32 @@ function Ee(n) {
|
|
|
201
176
|
"down"
|
|
202
177
|
)
|
|
203
178
|
];
|
|
204
|
-
return
|
|
179
|
+
return d ? /* @__PURE__ */ f(
|
|
205
180
|
q,
|
|
206
181
|
{
|
|
207
182
|
"aria-label": i("dataTable.reorder", "Reorder row"),
|
|
208
183
|
size: "sm",
|
|
209
184
|
children: m
|
|
210
185
|
}
|
|
211
|
-
) : /* @__PURE__ */
|
|
186
|
+
) : /* @__PURE__ */ f("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: m });
|
|
212
187
|
}
|
|
213
|
-
function
|
|
188
|
+
function Ee(n) {
|
|
214
189
|
const {
|
|
215
190
|
value: e,
|
|
216
191
|
data: t,
|
|
217
|
-
onToggle:
|
|
192
|
+
onToggle: a,
|
|
218
193
|
onError: r,
|
|
219
|
-
trueIcon:
|
|
194
|
+
trueIcon: c,
|
|
220
195
|
falseIcon: o,
|
|
221
196
|
trueClass: l = "ds:text-[color:var(--success)]",
|
|
222
|
-
falseClass:
|
|
223
|
-
label:
|
|
224
|
-
} = n, { t: i } = w("ui"), [
|
|
197
|
+
falseClass: d = "ds:text-[color:var(--muted-foreground)]",
|
|
198
|
+
label: s
|
|
199
|
+
} = n, { t: i } = w("ui"), [u, b] = F(!1);
|
|
225
200
|
if (!t) return null;
|
|
226
|
-
const g = !!e, x = g ?
|
|
201
|
+
const g = !!e, x = g ? c ?? /* @__PURE__ */ f(W, { "aria-hidden": !0, className: "ds:size-4" }) : o ?? /* @__PURE__ */ f(Z, { "aria-hidden": !0, className: "ds:size-4" }), y = g ? l : d, C = s ?? i(g ? "inputs.switch.on" : "inputs.switch.off");
|
|
227
202
|
async function m(p) {
|
|
228
|
-
if (p.stopPropagation(),
|
|
229
|
-
const v =
|
|
203
|
+
if (p.stopPropagation(), u || !t) return;
|
|
204
|
+
const v = a(t, !g);
|
|
230
205
|
if (v && typeof v.then == "function") {
|
|
231
206
|
b(!0);
|
|
232
207
|
try {
|
|
@@ -238,15 +213,15 @@ function Re(n) {
|
|
|
238
213
|
}
|
|
239
214
|
}
|
|
240
215
|
}
|
|
241
|
-
return /* @__PURE__ */
|
|
216
|
+
return /* @__PURE__ */ f(
|
|
242
217
|
"button",
|
|
243
218
|
{
|
|
244
219
|
type: "button",
|
|
245
220
|
role: "switch",
|
|
246
221
|
"aria-checked": g,
|
|
247
|
-
"aria-busy":
|
|
222
|
+
"aria-busy": u,
|
|
248
223
|
"aria-label": C,
|
|
249
|
-
disabled:
|
|
224
|
+
disabled: u,
|
|
250
225
|
onClick: m,
|
|
251
226
|
className: [
|
|
252
227
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
@@ -264,82 +239,82 @@ function Re(n) {
|
|
|
264
239
|
}
|
|
265
240
|
);
|
|
266
241
|
}
|
|
267
|
-
const
|
|
242
|
+
const te = {
|
|
268
243
|
sm: "ds:size-[var(--icon-size-sm)]",
|
|
269
244
|
md: "ds:size-[var(--icon-size-md)]",
|
|
270
245
|
lg: "ds:size-[var(--icon-size-lg)]"
|
|
271
246
|
};
|
|
272
|
-
function
|
|
247
|
+
function A(n, e) {
|
|
273
248
|
if (!n || typeof n != "object") return;
|
|
274
249
|
const t = n[e];
|
|
275
250
|
return typeof t == "string" ? t : void 0;
|
|
276
251
|
}
|
|
277
|
-
const
|
|
278
|
-
function
|
|
252
|
+
const ne = /^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i, re = /^rgba?\(\s*[\d.\s,%/]+\)$/i, ae = /^hsla?\(\s*[\d.\s,%/]+\)$/i, se = /^var\(--[a-z0-9-]+(?:,\s*[^)]+)?\)$/i;
|
|
253
|
+
function oe(n) {
|
|
279
254
|
if (!n) return;
|
|
280
255
|
const e = n.trim();
|
|
281
|
-
if (
|
|
256
|
+
if (ne.test(e) || re.test(e) || ae.test(e) || se.test(e))
|
|
282
257
|
return e;
|
|
283
258
|
}
|
|
284
|
-
function
|
|
285
|
-
const { data: e, colorField: t, size:
|
|
259
|
+
function Re(n) {
|
|
260
|
+
const { data: e, colorField: t, size: a = "md", labelField: r } = n, c = S(null), o = e ? A(e, t) : void 0, l = oe(o), d = e && r ? A(e, r) : void 0;
|
|
286
261
|
return J(() => {
|
|
287
|
-
const
|
|
288
|
-
|
|
262
|
+
const s = c.current;
|
|
263
|
+
s && (l ? s.style.setProperty("--data-table-dot-color", l) : s.style.removeProperty("--data-table-dot-color"));
|
|
289
264
|
}, [l]), l ? /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
290
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ f(
|
|
291
266
|
"span",
|
|
292
267
|
{
|
|
293
|
-
ref:
|
|
268
|
+
ref: c,
|
|
294
269
|
"aria-hidden": "true",
|
|
295
270
|
className: [
|
|
296
271
|
"ds:inline-block ds:shrink-0 ds:rounded-[var(--radius-full)]",
|
|
297
272
|
"ds:bg-[var(--data-table-dot-color)]",
|
|
298
273
|
"ds:border ds:border-[color:var(--border)]",
|
|
299
|
-
|
|
274
|
+
te[a]
|
|
300
275
|
].join(" ")
|
|
301
276
|
}
|
|
302
277
|
),
|
|
303
|
-
|
|
278
|
+
d ? /* @__PURE__ */ f("span", { children: d }) : null
|
|
304
279
|
] }) : null;
|
|
305
280
|
}
|
|
306
|
-
function
|
|
281
|
+
function le(n, e) {
|
|
307
282
|
if (!n || typeof n != "object") return null;
|
|
308
|
-
const t = n[e],
|
|
309
|
-
return Number.isFinite(
|
|
283
|
+
const t = n[e], a = typeof t == "number" ? t : Number(t);
|
|
284
|
+
return Number.isFinite(a) ? a : null;
|
|
310
285
|
}
|
|
311
|
-
function
|
|
312
|
-
const { data: e, lines: t, currency:
|
|
286
|
+
function Ie(n) {
|
|
287
|
+
const { data: e, lines: t, currency: a = "EUR", highlightNegative: r } = n, { i18n: c } = w("ui");
|
|
313
288
|
if (!e) return null;
|
|
314
|
-
const o =
|
|
315
|
-
const i =
|
|
289
|
+
const o = c.language || "en", l = (s) => {
|
|
290
|
+
const i = le(e, s.valueField);
|
|
316
291
|
if (i === null) return null;
|
|
317
|
-
let
|
|
318
|
-
switch (
|
|
292
|
+
let u;
|
|
293
|
+
switch (s.format ?? "number") {
|
|
319
294
|
case "currency":
|
|
320
|
-
|
|
295
|
+
u = new Intl.NumberFormat(o, {
|
|
321
296
|
style: "currency",
|
|
322
|
-
currency:
|
|
297
|
+
currency: a
|
|
323
298
|
}).format(i);
|
|
324
299
|
break;
|
|
325
300
|
case "percent":
|
|
326
|
-
|
|
301
|
+
u = new Intl.NumberFormat(o, {
|
|
327
302
|
style: "percent",
|
|
328
303
|
maximumFractionDigits: 1
|
|
329
304
|
}).format(i / 100);
|
|
330
305
|
break;
|
|
331
306
|
default:
|
|
332
|
-
|
|
307
|
+
u = new Intl.NumberFormat(o).format(i);
|
|
333
308
|
}
|
|
334
309
|
return {
|
|
335
|
-
label:
|
|
336
|
-
formatted:
|
|
310
|
+
label: s.label,
|
|
311
|
+
formatted: u,
|
|
337
312
|
negative: !!r && i < 0
|
|
338
313
|
};
|
|
339
|
-
},
|
|
340
|
-
(
|
|
314
|
+
}, d = t.map(l).filter(
|
|
315
|
+
(s) => s !== null
|
|
341
316
|
);
|
|
342
|
-
return
|
|
317
|
+
return d.length === 0 ? null : /* @__PURE__ */ f(
|
|
343
318
|
"div",
|
|
344
319
|
{
|
|
345
320
|
className: [
|
|
@@ -351,12 +326,12 @@ function Fe(n) {
|
|
|
351
326
|
"type-meta",
|
|
352
327
|
"ds:leading-tight"
|
|
353
328
|
].join(" "),
|
|
354
|
-
children:
|
|
329
|
+
children: d.map((s, i) => /* @__PURE__ */ I(
|
|
355
330
|
"span",
|
|
356
331
|
{
|
|
357
332
|
className: "ds:inline-flex ds:items-baseline ds:gap-x-[var(--spacing-xs)]",
|
|
358
333
|
children: [
|
|
359
|
-
i > 0 ? /* @__PURE__ */
|
|
334
|
+
i > 0 ? /* @__PURE__ */ f(
|
|
360
335
|
"span",
|
|
361
336
|
{
|
|
362
337
|
"aria-hidden": "true",
|
|
@@ -364,46 +339,46 @@ function Fe(n) {
|
|
|
364
339
|
children: "·"
|
|
365
340
|
}
|
|
366
341
|
) : null,
|
|
367
|
-
/* @__PURE__ */
|
|
368
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ f("span", { className: "ds:text-[color:var(--muted-foreground)]", children: s.label }),
|
|
343
|
+
/* @__PURE__ */ f(
|
|
369
344
|
"span",
|
|
370
345
|
{
|
|
371
346
|
className: [
|
|
372
347
|
"ds:tabular-nums",
|
|
373
348
|
"ds:font-medium",
|
|
374
|
-
|
|
349
|
+
s.negative ? "ds:text-[color:var(--destructive)]" : ""
|
|
375
350
|
].filter(Boolean).join(" "),
|
|
376
|
-
children:
|
|
351
|
+
children: s.formatted
|
|
377
352
|
}
|
|
378
353
|
)
|
|
379
354
|
]
|
|
380
355
|
},
|
|
381
|
-
`${
|
|
356
|
+
`${s.label}-${i}`
|
|
382
357
|
))
|
|
383
358
|
}
|
|
384
359
|
);
|
|
385
360
|
}
|
|
386
|
-
function
|
|
387
|
-
var
|
|
388
|
-
const { initialValue: e, onValueChange: t, stopEditing:
|
|
389
|
-
|
|
390
|
-
const
|
|
391
|
-
|
|
361
|
+
function Fe(n) {
|
|
362
|
+
var s, i;
|
|
363
|
+
const { initialValue: e, onValueChange: t, stopEditing: a, column: r } = n, [c, o] = F(e ?? ""), l = S(null);
|
|
364
|
+
L(() => {
|
|
365
|
+
const u = l.current;
|
|
366
|
+
u && (u.focus(), u.select());
|
|
392
367
|
}, []);
|
|
393
|
-
const
|
|
394
|
-
return /* @__PURE__ */
|
|
368
|
+
const d = ((i = (s = r == null ? void 0 : r.getColDef) == null ? void 0 : s.call(r)) == null ? void 0 : i.headerName) ?? void 0;
|
|
369
|
+
return /* @__PURE__ */ f(
|
|
395
370
|
"input",
|
|
396
371
|
{
|
|
397
372
|
ref: l,
|
|
398
373
|
type: "text",
|
|
399
|
-
value:
|
|
400
|
-
"aria-label":
|
|
401
|
-
onChange: (
|
|
402
|
-
const b =
|
|
374
|
+
value: c,
|
|
375
|
+
"aria-label": d,
|
|
376
|
+
onChange: (u) => {
|
|
377
|
+
const b = u.target.value;
|
|
403
378
|
o(b), t(b);
|
|
404
379
|
},
|
|
405
|
-
onKeyDown: (
|
|
406
|
-
|
|
380
|
+
onKeyDown: (u) => {
|
|
381
|
+
u.key === "Enter" && (u.preventDefault(), a());
|
|
407
382
|
},
|
|
408
383
|
className: [
|
|
409
384
|
"ds:block ds:w-full ds:appearance-none",
|
|
@@ -419,26 +394,26 @@ function Se(n) {
|
|
|
419
394
|
}
|
|
420
395
|
);
|
|
421
396
|
}
|
|
422
|
-
function
|
|
397
|
+
function Se(n) {
|
|
423
398
|
var y, C;
|
|
424
399
|
const {
|
|
425
400
|
initialValue: e,
|
|
426
401
|
onValueChange: t,
|
|
427
|
-
stopEditing:
|
|
402
|
+
stopEditing: a,
|
|
428
403
|
column: r,
|
|
429
|
-
decimals:
|
|
404
|
+
decimals: c = 2,
|
|
430
405
|
min: o,
|
|
431
406
|
max: l
|
|
432
|
-
} = n, { i18n:
|
|
433
|
-
|
|
434
|
-
const m =
|
|
407
|
+
} = n, { i18n: d } = w("ui"), s = S(null), i = ((C = (y = r == null ? void 0 : r.getColDef) == null ? void 0 : y.call(r)) == null ? void 0 : C.headerName) ?? void 0, [u, b] = F(() => e == null || Number.isNaN(e) ? "" : String(e));
|
|
408
|
+
L(() => {
|
|
409
|
+
const m = s.current;
|
|
435
410
|
m && (m.focus(), m.select());
|
|
436
411
|
}, []);
|
|
437
412
|
function g(m) {
|
|
438
|
-
var
|
|
413
|
+
var D, k;
|
|
439
414
|
if (m.trim().length === 0) return null;
|
|
440
|
-
const p =
|
|
441
|
-
return Number.isFinite(
|
|
415
|
+
const p = d.language || "en", h = new Intl.NumberFormat(p).formatToParts(12345.6), v = ((D = h.find((R) => R.type === "group")) == null ? void 0 : D.value) ?? "", E = ((k = h.find((R) => R.type === "decimal")) == null ? void 0 : k.value) ?? ".", B = m.replace(new RegExp(`\\${v}`, "g"), "").replace(E, ".").replace(/[^\d.-]/g, ""), _ = Number(B);
|
|
416
|
+
return Number.isFinite(_) ? _ : null;
|
|
442
417
|
}
|
|
443
418
|
function x(m) {
|
|
444
419
|
const p = g(m);
|
|
@@ -448,23 +423,23 @@ function ke(n) {
|
|
|
448
423
|
}
|
|
449
424
|
let h = p;
|
|
450
425
|
typeof o == "number" && (h = Math.max(o, h)), typeof l == "number" && (h = Math.min(l, h));
|
|
451
|
-
const v = 10 **
|
|
426
|
+
const v = 10 ** c;
|
|
452
427
|
t(Math.round(h * v) / v);
|
|
453
428
|
}
|
|
454
|
-
return /* @__PURE__ */
|
|
429
|
+
return /* @__PURE__ */ f(
|
|
455
430
|
"input",
|
|
456
431
|
{
|
|
457
|
-
ref:
|
|
432
|
+
ref: s,
|
|
458
433
|
type: "text",
|
|
459
434
|
inputMode: "decimal",
|
|
460
|
-
value:
|
|
435
|
+
value: u,
|
|
461
436
|
"aria-label": i,
|
|
462
437
|
onChange: (m) => {
|
|
463
438
|
const p = m.target.value;
|
|
464
439
|
b(p), x(p);
|
|
465
440
|
},
|
|
466
441
|
onKeyDown: (m) => {
|
|
467
|
-
m.key === "Enter" && (m.preventDefault(),
|
|
442
|
+
m.key === "Enter" && (m.preventDefault(), a());
|
|
468
443
|
},
|
|
469
444
|
className: [
|
|
470
445
|
"ds:block ds:w-full ds:appearance-none ds:text-end ds:tabular-nums",
|
|
@@ -478,16 +453,16 @@ function ke(n) {
|
|
|
478
453
|
);
|
|
479
454
|
}
|
|
480
455
|
export {
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
456
|
+
Ie as B,
|
|
457
|
+
Re as C,
|
|
458
|
+
Se as E,
|
|
459
|
+
Te as R,
|
|
460
|
+
Ee as T,
|
|
461
|
+
xe as a,
|
|
462
|
+
Fe as b,
|
|
463
|
+
Ne as c,
|
|
464
|
+
we as r,
|
|
465
|
+
Ce as u,
|
|
466
|
+
ye as w
|
|
492
467
|
};
|
|
493
|
-
//# sourceMappingURL=editable-currency-cell-renderer-
|
|
468
|
+
//# sourceMappingURL=editable-currency-cell-renderer-a3CrwNKm.js.map
|