@alfadocs/ui-kit 1.130.2 → 1.131.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/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/{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 +10 -10
- package/dist/agent-i18n/en.json +3 -3
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/decimal.d.ts +2 -0
- 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/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/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 +4 -1
- package/dist/index.js +1060 -1058
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/bill-line-table-CzYzg-Qh.js +0 -1757
package/dist/decimal/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const g = {
|
|
2
2
|
quantity: {
|
|
3
3
|
allowNegative: !1,
|
|
4
4
|
maxIntegerDigits: 12,
|
|
@@ -24,11 +24,11 @@ const l = {
|
|
|
24
24
|
maxFractionDigits: 2
|
|
25
25
|
}
|
|
26
26
|
}, M = {
|
|
27
|
-
quantity: { ...
|
|
28
|
-
unitPrice: { ...
|
|
29
|
-
lineTotal: { ...
|
|
30
|
-
rate: { ...
|
|
31
|
-
}, p = /^(-)?([0-9]+)(?:\.([0-9]+))?$/, x = BigInt(Number.MAX_SAFE_INTEGER), F = BigInt(10), f = BigInt(0), N = BigInt(1), T = BigInt(2), $ = 15,
|
|
27
|
+
quantity: { ...g.quantity, minFractionDigits: 0 },
|
|
28
|
+
unitPrice: { ...g.unitPrice, minFractionDigits: 0 },
|
|
29
|
+
lineTotal: { ...g.lineTotal, minFractionDigits: 0 },
|
|
30
|
+
rate: { ...g.rate, minFractionDigits: 0 }
|
|
31
|
+
}, p = /^(-)?([0-9]+)(?:\.([0-9]+))?$/, x = BigInt(Number.MAX_SAFE_INTEGER), F = BigInt(10), f = BigInt(0), N = BigInt(1), T = BigInt(2), $ = 15, l = (t) => F ** BigInt(t), D = (t) => t < f ? -t : t;
|
|
32
32
|
function a(t, n) {
|
|
33
33
|
return D(t) > x ? null : { units: Number(t) || 0, scale: n };
|
|
34
34
|
}
|
|
@@ -37,23 +37,23 @@ function I(t, n) {
|
|
|
37
37
|
if (i === "") return { ok: !1, error: "empty" };
|
|
38
38
|
const e = p.exec(i);
|
|
39
39
|
if (!e) return { ok: !1, error: "syntax" };
|
|
40
|
-
const [, r, s = "",
|
|
41
|
-
if (
|
|
40
|
+
const [, r, s = "", c = ""] = e, o = r === "-";
|
|
41
|
+
if (o && n.allowNegative === !1)
|
|
42
42
|
return { ok: !1, error: "negative" };
|
|
43
43
|
const h = s.replace(/^0+(?=\d)/, "");
|
|
44
44
|
if (n.maxIntegerDigits !== void 0 && h.length > n.maxIntegerDigits)
|
|
45
45
|
return { ok: !1, error: "integer-digits" };
|
|
46
46
|
const d = n.minFractionDigits ?? 0, B = n.maxFractionDigits ?? Number.POSITIVE_INFINITY;
|
|
47
|
-
if (
|
|
47
|
+
if (c.length < d || c.length > B)
|
|
48
48
|
return { ok: !1, error: "fraction-digits" };
|
|
49
|
-
const m = BigInt(s +
|
|
49
|
+
const m = BigInt(s + c);
|
|
50
50
|
return {
|
|
51
51
|
ok: !0,
|
|
52
|
-
units:
|
|
53
|
-
scale:
|
|
52
|
+
units: o ? -m : m,
|
|
53
|
+
scale: c.length,
|
|
54
54
|
whole: s,
|
|
55
|
-
fraction:
|
|
56
|
-
negative:
|
|
55
|
+
fraction: c,
|
|
56
|
+
negative: o
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
function A(t, n = {}) {
|
|
@@ -80,8 +80,8 @@ function _(t, n = 0) {
|
|
|
80
80
|
return r ? `${s}${e}.${r}` : `${s}${e}`;
|
|
81
81
|
}
|
|
82
82
|
function u(t, n, i) {
|
|
83
|
-
if (i >= n) return t *
|
|
84
|
-
const e =
|
|
83
|
+
if (i >= n) return t * l(i - n);
|
|
84
|
+
const e = l(n - i), r = D(t);
|
|
85
85
|
let s = r / e;
|
|
86
86
|
return r % e * T >= e && (s += N), t < f ? -s : s;
|
|
87
87
|
}
|
|
@@ -94,7 +94,7 @@ function S(t, n, i) {
|
|
|
94
94
|
}
|
|
95
95
|
function b(t, n, i) {
|
|
96
96
|
if (n.units === 0) return null;
|
|
97
|
-
const e = i + 1 + n.scale - t.scale, r = e >= 0 ? BigInt(t.units) *
|
|
97
|
+
const e = i + 1 + n.scale - t.scale, r = e >= 0 ? BigInt(t.units) * l(e) / BigInt(n.units) : BigInt(t.units) / (BigInt(n.units) * l(-e));
|
|
98
98
|
return a(u(r, i + 1, i), i);
|
|
99
99
|
}
|
|
100
100
|
function y(t) {
|
|
@@ -103,27 +103,30 @@ function y(t) {
|
|
|
103
103
|
for (const e of t) i += u(BigInt(e.units), e.scale, n);
|
|
104
104
|
return a(i, n);
|
|
105
105
|
}
|
|
106
|
-
function O(t
|
|
106
|
+
function O(t) {
|
|
107
|
+
return t.units === 0 ? t : { units: -t.units, scale: t.scale };
|
|
108
|
+
}
|
|
109
|
+
function q(t, n) {
|
|
107
110
|
const i = Math.max(t.scale, n.scale), e = u(BigInt(t.units), t.scale, i), r = u(BigInt(n.units), n.scale, i);
|
|
108
111
|
return e < r ? -1 : e > r ? 1 : 0;
|
|
109
112
|
}
|
|
110
113
|
function E(t) {
|
|
111
114
|
return String(Math.abs(t)).replace(/0+$/, "").length || 1;
|
|
112
115
|
}
|
|
113
|
-
function
|
|
116
|
+
function R(t) {
|
|
114
117
|
return E(t.units) > $ ? null : +`${t.units}e-${t.scale}`;
|
|
115
118
|
}
|
|
116
119
|
function k(t) {
|
|
117
120
|
const n = String(t), i = n.indexOf("e");
|
|
118
121
|
if (i === -1) return n;
|
|
119
|
-
const e = n.startsWith("-") ? "-" : "", [r = "", s = ""] = n.slice(e.length, i).split("."),
|
|
120
|
-
return
|
|
122
|
+
const e = n.startsWith("-") ? "-" : "", [r = "", s = ""] = n.slice(e.length, i).split("."), c = r + s, o = r.length + Number(n.slice(i + 1));
|
|
123
|
+
return o <= 0 ? `${e}0.${"0".repeat(-o)}${c}` : o >= c.length ? e + c + "0".repeat(o - c.length) : `${e}${c.slice(0, o)}.${c.slice(o)}`;
|
|
121
124
|
}
|
|
122
|
-
function
|
|
125
|
+
function L(t, n) {
|
|
123
126
|
const [i, e = "0"] = String(t).split("e");
|
|
124
127
|
return +`${i}e${Number(e) + n}`;
|
|
125
128
|
}
|
|
126
|
-
function
|
|
129
|
+
function U(t, n) {
|
|
127
130
|
if (!Number.isFinite(t)) return null;
|
|
128
131
|
const i = I(k(t), {});
|
|
129
132
|
if (!i.ok) return null;
|
|
@@ -131,18 +134,19 @@ function L(t, n) {
|
|
|
131
134
|
return a(u(i.units, i.scale, r), r);
|
|
132
135
|
}
|
|
133
136
|
export {
|
|
134
|
-
|
|
137
|
+
g as FATTURAPA_DECIMAL,
|
|
135
138
|
M as FATTURAPA_VALUE,
|
|
136
|
-
|
|
137
|
-
|
|
139
|
+
q as compareDecimal,
|
|
140
|
+
R as decimalToNumber,
|
|
138
141
|
b as divideDecimal,
|
|
139
142
|
_ as formatDecimal,
|
|
140
143
|
w as isDecimalString,
|
|
141
144
|
S as multiplyDecimal,
|
|
142
|
-
|
|
145
|
+
O as negateDecimal,
|
|
146
|
+
U as numberToDecimal,
|
|
143
147
|
A as parseDecimal,
|
|
144
148
|
P as rescaleDecimal,
|
|
145
|
-
|
|
149
|
+
L as shiftDecimal,
|
|
146
150
|
y as sumDecimals,
|
|
147
151
|
k as toPlainString
|
|
148
152
|
};
|
package/dist/host-compat.css
CHANGED
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
|
|
215
215
|
/* ───────────────────────────────────────────────────────────────────────
|
|
216
216
|
SECTION B — non-token declarations. ORIGINAL LAYER PRESERVED.
|
|
217
|
-
|
|
217
|
+
175 declarations across 171 rules.
|
|
218
218
|
|
|
219
219
|
Kit-authored arbitrary-value utilities (`ds:w-[20rem]`) and the
|
|
220
220
|
vendored AG Grid rules. These set real properties on real elements,
|
|
@@ -601,6 +601,9 @@
|
|
|
601
601
|
.ds\:\[inline-size\:26rem\] {
|
|
602
602
|
inline-size:416px;
|
|
603
603
|
}
|
|
604
|
+
.ds\:\[inline-size\:30rem\] {
|
|
605
|
+
inline-size:480px;
|
|
606
|
+
}
|
|
604
607
|
.ds\:\[inline-size\:32rem\] {
|
|
605
608
|
inline-size:512px;
|
|
606
609
|
}
|