@sia.soul/sia-react-ui 0.1.95 → 0.1.97
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/chart.cjs +4 -2
- package/dist/chart.js +1 -1
- package/dist/{chunk-ZHQ7PCCF.js → chunk-T3EGAN7O.js} +4 -2
- package/dist/core.css +1 -1
- package/dist/index.cjs +8 -3
- package/dist/index.css +1 -1
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/chart.cjs
CHANGED
|
@@ -2554,7 +2554,8 @@ function transferPieValue(series, source, target, connector = " & ") {
|
|
|
2554
2554
|
return { integer: BigInt(m.replace(".", "")), scale: (m.split(".")[1]?.length ?? 0) - Number(e) };
|
|
2555
2555
|
};
|
|
2556
2556
|
const a = parts(value), b = parts(origin.value), scale = Math.max(a.scale, b.scale);
|
|
2557
|
-
const
|
|
2557
|
+
const factor = (digits) => BigInt(`1${"0".repeat(digits)}`);
|
|
2558
|
+
const merged = Number(`${a.integer * factor(scale - a.scale) + b.integer * factor(scale - b.scale)}e${-scale}`);
|
|
2558
2559
|
if (!Number.isFinite(merged)) throw new RangeError("\u5408\u5E76\u503C\u8D85\u51FA\u6709\u9650\u6570\u503C\u8303\u56F4");
|
|
2559
2560
|
next[target.series].data[target.index] = { ...destination, value: merged, name: destination.name + connector + origin.name };
|
|
2560
2561
|
} else if (target) {
|
|
@@ -2577,7 +2578,8 @@ function addValues(a, b) {
|
|
|
2577
2578
|
return { integer: BigInt(mantissa.replace(".", "")), scale: fraction - Number(exponent) };
|
|
2578
2579
|
};
|
|
2579
2580
|
const left = parts(a), right = parts(b), scale = Math.max(left.scale, right.scale);
|
|
2580
|
-
const
|
|
2581
|
+
const factor = (digits) => BigInt(`1${"0".repeat(digits)}`);
|
|
2582
|
+
const integer = left.integer * factor(scale - left.scale) + right.integer * factor(scale - right.scale);
|
|
2581
2583
|
const value = Number(`${integer}e${-scale}`);
|
|
2582
2584
|
if (!Number.isFinite(value)) throw new RangeError("\u5408\u5E76\u503C\u8D85\u51FA\u6709\u9650\u6570\u503C\u8303\u56F4");
|
|
2583
2585
|
return value;
|
package/dist/chart.js
CHANGED
|
@@ -2230,7 +2230,8 @@ function transferPieValue(series, source, target, connector = " & ") {
|
|
|
2230
2230
|
return { integer: BigInt(m.replace(".", "")), scale: (m.split(".")[1]?.length ?? 0) - Number(e) };
|
|
2231
2231
|
};
|
|
2232
2232
|
const a = parts(value), b = parts(origin.value), scale = Math.max(a.scale, b.scale);
|
|
2233
|
-
const
|
|
2233
|
+
const factor = (digits) => BigInt(`1${"0".repeat(digits)}`);
|
|
2234
|
+
const merged = Number(`${a.integer * factor(scale - a.scale) + b.integer * factor(scale - b.scale)}e${-scale}`);
|
|
2234
2235
|
if (!Number.isFinite(merged)) throw new RangeError("\u5408\u5E76\u503C\u8D85\u51FA\u6709\u9650\u6570\u503C\u8303\u56F4");
|
|
2235
2236
|
next[target.series].data[target.index] = { ...destination, value: merged, name: destination.name + connector + origin.name };
|
|
2236
2237
|
} else if (target) {
|
|
@@ -2253,7 +2254,8 @@ function addValues(a, b) {
|
|
|
2253
2254
|
return { integer: BigInt(mantissa.replace(".", "")), scale: fraction - Number(exponent) };
|
|
2254
2255
|
};
|
|
2255
2256
|
const left = parts(a), right = parts(b), scale = Math.max(left.scale, right.scale);
|
|
2256
|
-
const
|
|
2257
|
+
const factor = (digits) => BigInt(`1${"0".repeat(digits)}`);
|
|
2258
|
+
const integer = left.integer * factor(scale - left.scale) + right.integer * factor(scale - right.scale);
|
|
2257
2259
|
const value = Number(`${integer}e${-scale}`);
|
|
2258
2260
|
if (!Number.isFinite(value)) throw new RangeError("\u5408\u5E76\u503C\u8D85\u51FA\u6709\u9650\u6570\u503C\u8303\u56F4");
|
|
2259
2261
|
return value;
|
package/dist/core.css
CHANGED
|
@@ -3987,7 +3987,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3987
3987
|
.sia-table__empty {
|
|
3988
3988
|
position: absolute;
|
|
3989
3989
|
z-index: 7;
|
|
3990
|
-
inset: var(--sia-table-header-height, 36px) 0
|
|
3990
|
+
inset: var(--sia-table-header-height, 36px) 0 var(--sia-table-summary-height, 0px);
|
|
3991
3991
|
display: grid;
|
|
3992
3992
|
place-items: center;
|
|
3993
3993
|
min-width: 0;
|
package/dist/index.cjs
CHANGED
|
@@ -16167,7 +16167,9 @@ function TableInner(props, ref) {
|
|
|
16167
16167
|
const rootStyle = {
|
|
16168
16168
|
...style,
|
|
16169
16169
|
height: effectiveHeight,
|
|
16170
|
-
"--sia-table-header-height": `${headerRows.length * rowHeight}px
|
|
16170
|
+
"--sia-table-header-height": `${headerRows.length * rowHeight}px`,
|
|
16171
|
+
// 空态占位只覆盖内容区,必须给仍有业务意义的合计行留出空间。
|
|
16172
|
+
"--sia-table-summary-height": `${summaries.length * rowHeight}px`
|
|
16171
16173
|
};
|
|
16172
16174
|
const handleScroll = (0, import_react54.useCallback)((event) => {
|
|
16173
16175
|
const element = event.currentTarget;
|
|
@@ -16394,6 +16396,7 @@ function TableInner(props, ref) {
|
|
|
16394
16396
|
);
|
|
16395
16397
|
}) }, depth)) }),
|
|
16396
16398
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("tbody", { children: [
|
|
16399
|
+
pipeline.rows.length === 0 && summaries.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("tr", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("td", { colSpan: leafColumns.length, style: { height: Math.max(0, viewportHeight - (headerRows.length + summaries.length) * rowHeight), padding: 0, border: 0 } }) }) : null,
|
|
16397
16400
|
topSpacer > 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("tr", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("td", { colSpan: leafColumns.length, style: { height: topSpacer, padding: 0, border: 0 } }) }) : null,
|
|
16398
16401
|
renderedRows.map((row, offset) => {
|
|
16399
16402
|
const cached = rowElements.get(row.key);
|
|
@@ -19101,7 +19104,8 @@ function transferPieValue(series, source, target, connector = " & ") {
|
|
|
19101
19104
|
return { integer: BigInt(m.replace(".", "")), scale: (m.split(".")[1]?.length ?? 0) - Number(e) };
|
|
19102
19105
|
};
|
|
19103
19106
|
const a = parts(value), b = parts(origin.value), scale = Math.max(a.scale, b.scale);
|
|
19104
|
-
const
|
|
19107
|
+
const factor = (digits) => BigInt(`1${"0".repeat(digits)}`);
|
|
19108
|
+
const merged = Number(`${a.integer * factor(scale - a.scale) + b.integer * factor(scale - b.scale)}e${-scale}`);
|
|
19105
19109
|
if (!Number.isFinite(merged)) throw new RangeError("\u5408\u5E76\u503C\u8D85\u51FA\u6709\u9650\u6570\u503C\u8303\u56F4");
|
|
19106
19110
|
next[target.series].data[target.index] = { ...destination, value: merged, name: destination.name + connector + origin.name };
|
|
19107
19111
|
} else if (target) {
|
|
@@ -19124,7 +19128,8 @@ function addValues(a, b) {
|
|
|
19124
19128
|
return { integer: BigInt(mantissa.replace(".", "")), scale: fraction - Number(exponent) };
|
|
19125
19129
|
};
|
|
19126
19130
|
const left = parts(a), right = parts(b), scale = Math.max(left.scale, right.scale);
|
|
19127
|
-
const
|
|
19131
|
+
const factor = (digits) => BigInt(`1${"0".repeat(digits)}`);
|
|
19132
|
+
const integer = left.integer * factor(scale - left.scale) + right.integer * factor(scale - right.scale);
|
|
19128
19133
|
const value = Number(`${integer}e${-scale}`);
|
|
19129
19134
|
if (!Number.isFinite(value)) throw new RangeError("\u5408\u5E76\u503C\u8D85\u51FA\u6709\u9650\u6570\u503C\u8303\u56F4");
|
|
19130
19135
|
return value;
|
package/dist/index.css
CHANGED
|
@@ -3987,7 +3987,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3987
3987
|
.sia-table__empty {
|
|
3988
3988
|
position: absolute;
|
|
3989
3989
|
z-index: 7;
|
|
3990
|
-
inset: var(--sia-table-header-height, 36px) 0
|
|
3990
|
+
inset: var(--sia-table-header-height, 36px) 0 var(--sia-table-summary-height, 0px);
|
|
3991
3991
|
display: grid;
|
|
3992
3992
|
place-items: center;
|
|
3993
3993
|
min-width: 0;
|
package/dist/index.js
CHANGED
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
smoothSvgPath,
|
|
57
57
|
svgArcPath,
|
|
58
58
|
transferCompositeValue
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-T3EGAN7O.js";
|
|
60
60
|
import {
|
|
61
61
|
Badge,
|
|
62
62
|
Breadcrumb,
|
|
@@ -8356,7 +8356,9 @@ function TableInner(props, ref) {
|
|
|
8356
8356
|
const rootStyle = {
|
|
8357
8357
|
...style,
|
|
8358
8358
|
height: effectiveHeight,
|
|
8359
|
-
"--sia-table-header-height": `${headerRows.length * rowHeight}px
|
|
8359
|
+
"--sia-table-header-height": `${headerRows.length * rowHeight}px`,
|
|
8360
|
+
// 空态占位只覆盖内容区,必须给仍有业务意义的合计行留出空间。
|
|
8361
|
+
"--sia-table-summary-height": `${summaries.length * rowHeight}px`
|
|
8360
8362
|
};
|
|
8361
8363
|
const handleScroll = useCallback2((event) => {
|
|
8362
8364
|
const element = event.currentTarget;
|
|
@@ -8583,6 +8585,7 @@ function TableInner(props, ref) {
|
|
|
8583
8585
|
);
|
|
8584
8586
|
}) }, depth)) }),
|
|
8585
8587
|
/* @__PURE__ */ jsxs21("tbody", { children: [
|
|
8588
|
+
pipeline.rows.length === 0 && summaries.length > 0 ? /* @__PURE__ */ jsx23("tr", { "aria-hidden": "true", children: /* @__PURE__ */ jsx23("td", { colSpan: leafColumns.length, style: { height: Math.max(0, viewportHeight - (headerRows.length + summaries.length) * rowHeight), padding: 0, border: 0 } }) }) : null,
|
|
8586
8589
|
topSpacer > 0 ? /* @__PURE__ */ jsx23("tr", { "aria-hidden": "true", children: /* @__PURE__ */ jsx23("td", { colSpan: leafColumns.length, style: { height: topSpacer, padding: 0, border: 0 } }) }) : null,
|
|
8587
8590
|
renderedRows.map((row, offset) => {
|
|
8588
8591
|
const cached = rowElements.get(row.key);
|