@alfadocs/ui-kit 1.130.2 → 1.132.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{address-autocomplete-D2uNpxcE.js → address-autocomplete-yDLqg43e.js} +2 -2
- package/dist/_chunks/{address-fields-BU65pA-V.js → address-fields-DvSWdeR0.js} +2 -2
- package/dist/_chunks/bill-line-table-DHKb_O7c.js +2000 -0
- package/dist/_chunks/{data-grid-C9xlUMLt.js → data-grid-B2oaI7Lt.js} +2345 -2328
- package/dist/_chunks/{default-tabs-BryvhiHv.js → default-tabs-DbebYO04.js} +3 -3
- package/dist/_chunks/{invoice-upload-list-868v1oDe.js → invoice-upload-list-B5aMffTy.js} +21 -21
- package/dist/_chunks/map-view-Cm69dCnY.js +1794 -0
- package/dist/_chunks/{maps-core-gate-DKx96CC_.js → maps-core-gate-CP8SEHH1.js} +97 -93
- package/dist/_chunks/{practice-results-M5A9-X9y.js → practice-results-DaxGw9_f.js} +762 -748
- package/dist/_chunks/{reserved.agent-BBuWWtYb.js → reserved.agent-W8mR179D.js} +2 -2
- package/dist/_chunks/{toolbar-BK6S9PhI.js → toolbar-CfdoJzMV.js} +2 -2
- package/dist/_chunks/{warehouse-load-summary-DkAKXcw0.js → warehouse-load-summary-CMMYzTDv.js} +75 -66
- package/dist/agent-catalog.json +34 -11
- package/dist/agent-i18n/en.json +6 -4
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/decimal.d.ts +2 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/bill-line-table/bill-line-table.columns.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.header.d.ts +6 -0
- package/dist/components/bill-line-table/bill-line-table.invoice-cell.d.ts +6 -0
- package/dist/components/bill-line-table/bill-line-table.model.d.ts +23 -10
- package/dist/components/bill-line-table/bill-line-table.scope.d.ts +56 -0
- package/dist/components/bill-line-table/bill-line-table.types.d.ts +90 -10
- package/dist/components/bill-line-table/bill-line-table.variants.d.ts +2 -0
- package/dist/components/bill-line-table/index.d.ts +3 -2
- package/dist/components/bill-line-table/index.js +20 -18
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-grid/types.d.ts +6 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/map-view/index.d.ts +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +42 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +12 -1
- package/dist/components/warehouse-load-summary/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/decimal/index.js +32 -28
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +2 -0
- package/dist/i18n/locales/ar.js +3 -1
- package/dist/i18n/locales/de.d.ts +2 -0
- package/dist/i18n/locales/de.js +3 -1
- package/dist/i18n/locales/el.d.ts +2 -0
- package/dist/i18n/locales/el.js +3 -1
- package/dist/i18n/locales/en.d.ts +2 -0
- package/dist/i18n/locales/en.js +3 -1
- package/dist/i18n/locales/es.d.ts +2 -0
- package/dist/i18n/locales/es.js +3 -1
- package/dist/i18n/locales/fr.d.ts +2 -0
- package/dist/i18n/locales/fr.js +3 -1
- package/dist/i18n/locales/hi.d.ts +2 -0
- package/dist/i18n/locales/hi.js +3 -1
- package/dist/i18n/locales/it.d.ts +2 -0
- package/dist/i18n/locales/it.js +3 -1
- package/dist/i18n/locales/ja.d.ts +2 -0
- package/dist/i18n/locales/ja.js +3 -1
- package/dist/i18n/locales/nl.d.ts +2 -0
- package/dist/i18n/locales/nl.js +3 -1
- package/dist/i18n/locales/pl.d.ts +2 -0
- package/dist/i18n/locales/pl.js +3 -1
- package/dist/i18n/locales/pt.d.ts +2 -0
- package/dist/i18n/locales/pt.js +3 -1
- package/dist/i18n/locales/ro.d.ts +2 -0
- package/dist/i18n/locales/ro.js +3 -1
- package/dist/i18n/locales/ru.d.ts +2 -0
- package/dist/i18n/locales/ru.js +3 -1
- package/dist/i18n/locales/sq.d.ts +2 -0
- package/dist/i18n/locales/sq.js +3 -1
- package/dist/i18n/locales/sv.d.ts +2 -0
- package/dist/i18n/locales/sv.js +3 -1
- package/dist/i18n/locales/tr.d.ts +2 -0
- package/dist/i18n/locales/tr.js +3 -1
- package/dist/i18n/locales/zh.d.ts +2 -0
- package/dist/i18n/locales/zh.js +3 -1
- package/dist/index.js +1062 -1060
- package/dist/locales/ar.json +3 -1
- package/dist/locales/de.json +3 -1
- package/dist/locales/el.json +3 -1
- package/dist/locales/en.json +3 -1
- package/dist/locales/es.json +3 -1
- package/dist/locales/fr.json +3 -1
- package/dist/locales/hi.json +3 -1
- package/dist/locales/it.json +3 -1
- package/dist/locales/ja.json +3 -1
- package/dist/locales/nl.json +3 -1
- package/dist/locales/pl.json +3 -1
- package/dist/locales/pt.json +3 -1
- package/dist/locales/ro.json +3 -1
- package/dist/locales/ru.json +3 -1
- package/dist/locales/sq.json +3 -1
- package/dist/locales/sv.json +3 -1
- package/dist/locales/tr.json +3 -1
- package/dist/locales/zh.json +3 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/bill-line-table-CzYzg-Qh.js +0 -1757
- package/dist/_chunks/map-view-DkL58SRp.js +0 -1613
|
@@ -2,8 +2,8 @@ import { jsxs as T, jsx as l, Fragment as ne } from "react/jsx-runtime";
|
|
|
2
2
|
import { useId as Pe, useMemo as M, createElement as mt, forwardRef as ft, useRef as K, useState as yt, useImperativeHandle as ht, useCallback as gt } from "react";
|
|
3
3
|
import { useTranslation as v } from "react-i18next";
|
|
4
4
|
import { u as Tt } from "./registry-DvAUVLHh.js";
|
|
5
|
-
import { D as St, e as vt } from "./data-grid-
|
|
6
|
-
import { D as N } from "./toolbar-
|
|
5
|
+
import { D as St, e as vt } from "./data-grid-B2oaI7Lt.js";
|
|
6
|
+
import { D as N } from "./toolbar-CfdoJzMV.js";
|
|
7
7
|
import { I as wt } from "./icon-button-group-SmkdVCNx.js";
|
|
8
8
|
import { c as w } from "./index-D2ZczOXr.js";
|
|
9
9
|
import { b as It, a as kt } from "./accessible-target-D3j6F-AG.js";
|
|
@@ -2211,4 +2211,4 @@ export {
|
|
|
2211
2211
|
ii as m,
|
|
2212
2212
|
Ka as u
|
|
2213
2213
|
};
|
|
2214
|
-
//# sourceMappingURL=default-tabs-
|
|
2214
|
+
//# sourceMappingURL=default-tabs-DbebYO04.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as a, jsxs as h, Fragment as D } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as
|
|
2
|
+
import { useMemo as I, createElement as Oe, forwardRef as ke, useRef as R, useId as Ee, useState as X, useImperativeHandle as De, useEffect as xe } from "react";
|
|
3
3
|
import { useTranslation as L } from "react-i18next";
|
|
4
4
|
import { u as Ve } from "./registry-DvAUVLHh.js";
|
|
5
5
|
import { B as Be } from "./button-DohK_Ak_.js";
|
|
6
6
|
import { V as x } from "./visually-hidden-BHxEUGyT.js";
|
|
7
|
-
import { e as Me } from "./data-grid-
|
|
8
|
-
import { D as g } from "./toolbar-
|
|
7
|
+
import { e as Me } from "./data-grid-B2oaI7Lt.js";
|
|
8
|
+
import { D as g } from "./toolbar-CfdoJzMV.js";
|
|
9
9
|
import { a as se } from "./format-number-DdzqwMs1.js";
|
|
10
10
|
import { c as v } from "./index-D2ZczOXr.js";
|
|
11
11
|
import { R as Fe } from "./row-actions-BF2-uizV.js";
|
|
@@ -422,7 +422,7 @@ function It({ invoice: e, loading: i, privacyMode: n }) {
|
|
|
422
422
|
}
|
|
423
423
|
function wt(e, i) {
|
|
424
424
|
const { t: n } = L("ui");
|
|
425
|
-
return
|
|
425
|
+
return I(() => i ? [
|
|
426
426
|
{
|
|
427
427
|
// Developer constant: React key and `data-action-id`.
|
|
428
428
|
id: "review",
|
|
@@ -446,7 +446,7 @@ function Rt({
|
|
|
446
446
|
rowActions: n
|
|
447
447
|
}) {
|
|
448
448
|
const { t: s } = L("ui");
|
|
449
|
-
return
|
|
449
|
+
return I(() => {
|
|
450
450
|
const l = (t) => {
|
|
451
451
|
const r = B[t];
|
|
452
452
|
return s(r.key, r.en);
|
|
@@ -618,9 +618,9 @@ function Ut(e, i) {
|
|
|
618
618
|
return ((o = n()) == null ? void 0 : o.getRowIds()) ?? s().invoices.map((t) => t.id);
|
|
619
619
|
},
|
|
620
620
|
getRowSummaries() {
|
|
621
|
-
const { invoices: o, privacyMode: t, loadingIds: r, callbacks: d } = s(),
|
|
621
|
+
const { invoices: o, privacyMode: t, loadingIds: r, callbacks: d } = s(), w = !!d.onReview;
|
|
622
622
|
return o.map(
|
|
623
|
-
(N) => pt(N, t, r,
|
|
623
|
+
(N) => pt(N, t, r, w)
|
|
624
624
|
);
|
|
625
625
|
},
|
|
626
626
|
getCounts() {
|
|
@@ -712,7 +712,7 @@ const Ct = [], _t = (e) => e.id, Ot = (e) => ut(e), kt = ke(function(i, n) {
|
|
|
712
712
|
defaultSelection: t,
|
|
713
713
|
onSelectionChange: r,
|
|
714
714
|
onReview: d,
|
|
715
|
-
onLoadAllReady:
|
|
715
|
+
onLoadAllReady: w,
|
|
716
716
|
onLoadSelected: N,
|
|
717
717
|
loadingIds: F = Ct,
|
|
718
718
|
privacyMode: U = !1,
|
|
@@ -725,9 +725,9 @@ const Ct = [], _t = (e) => e.id, Ot = (e) => ut(e), kt = ke(function(i, n) {
|
|
|
725
725
|
"aria-labelledby": Le,
|
|
726
726
|
"aria-describedby": Ne,
|
|
727
727
|
...Se
|
|
728
|
-
} = i, { t: p, i18n: z } = L("ui"), C = R(null), y =
|
|
728
|
+
} = i, { t: p, i18n: z } = L("ui"), C = R(null), y = I(() => new Set(F), [F]), P = !!N || o !== void 0 || t !== void 0 || r !== void 0, W = Ee(), _ = {
|
|
729
729
|
onReview: d,
|
|
730
|
-
onLoadAllReady:
|
|
730
|
+
onLoadAllReady: w,
|
|
731
731
|
onLoadSelected: N
|
|
732
732
|
}, H = R(_);
|
|
733
733
|
H.current = _;
|
|
@@ -744,14 +744,14 @@ const Ct = [], _t = (e) => e.id, Ot = (e) => ut(e), kt = ke(function(i, n) {
|
|
|
744
744
|
() => Ut(C, q)
|
|
745
745
|
);
|
|
746
746
|
De(n, () => O, [O]), Ve(et, O, s);
|
|
747
|
-
const
|
|
747
|
+
const S = I(
|
|
748
748
|
() => pe(l, y),
|
|
749
749
|
[l, y]
|
|
750
|
-
), j =
|
|
750
|
+
), j = I(() => me(l), [l]), Ie = wt(H, !!d), we = Rt({
|
|
751
751
|
privacyMode: U,
|
|
752
752
|
loadingIds: y,
|
|
753
753
|
rowActions: Ie
|
|
754
|
-
}), Re =
|
|
754
|
+
}), Re = I(
|
|
755
755
|
() => (m) => {
|
|
756
756
|
if (M(m, y)) return "selectable";
|
|
757
757
|
if (y.has(m.id))
|
|
@@ -831,31 +831,31 @@ const Ct = [], _t = (e) => e.id, Ot = (e) => ut(e), kt = ke(function(i, n) {
|
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
) : null,
|
|
834
|
-
|
|
834
|
+
w ? /* @__PURE__ */ h(D, { children: [
|
|
835
835
|
/* @__PURE__ */ a(
|
|
836
836
|
Be,
|
|
837
837
|
{
|
|
838
838
|
intent: "primary",
|
|
839
839
|
size: "sm",
|
|
840
840
|
startIcon: /* @__PURE__ */ a(ee, { "aria-hidden": "true" }),
|
|
841
|
-
"aria-disabled":
|
|
842
|
-
"aria-describedby":
|
|
841
|
+
"aria-disabled": S.length === 0 ? !0 : void 0,
|
|
842
|
+
"aria-describedby": S.length === 0 ? W : void 0,
|
|
843
843
|
onClick: () => {
|
|
844
|
-
|
|
844
|
+
S.length !== 0 && w(S);
|
|
845
845
|
},
|
|
846
846
|
children: p(
|
|
847
847
|
"invoiceUploadList.loadAllReady",
|
|
848
848
|
"Load all ready ({{countText}})",
|
|
849
849
|
{
|
|
850
|
-
countText: se(
|
|
850
|
+
countText: se(S.length, z.language)
|
|
851
851
|
}
|
|
852
852
|
)
|
|
853
853
|
}
|
|
854
854
|
),
|
|
855
|
-
/* @__PURE__ */ a(x, { id: W, children: p(
|
|
855
|
+
S.length === 0 ? /* @__PURE__ */ a(x, { id: W, children: p(
|
|
856
856
|
"invoiceUploadList.loadAllReadyNone",
|
|
857
857
|
"No invoice is ready to load"
|
|
858
|
-
) })
|
|
858
|
+
) }) : null
|
|
859
859
|
] }) : null,
|
|
860
860
|
/* @__PURE__ */ a(g.ColumnToggle, {})
|
|
861
861
|
] })
|
|
@@ -951,4 +951,4 @@ export {
|
|
|
951
951
|
kt as d,
|
|
952
952
|
et as i
|
|
953
953
|
};
|
|
954
|
-
//# sourceMappingURL=invoice-upload-list-
|
|
954
|
+
//# sourceMappingURL=invoice-upload-list-B5aMffTy.js.map
|