@xcelsior/ui-spreadsheets 1.1.11 → 1.1.13
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/index.js +3 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Spreadsheet.stories.tsx +285 -25
- package/src/components/Spreadsheet.tsx +17 -15
package/dist/index.mjs
CHANGED
|
@@ -3867,9 +3867,7 @@ function Spreadsheet({
|
|
|
3867
3867
|
}
|
|
3868
3868
|
}
|
|
3869
3869
|
}
|
|
3870
|
-
const allGroupedIds = new Set(
|
|
3871
|
-
columnGroups.flatMap((g) => g.columns)
|
|
3872
|
-
);
|
|
3870
|
+
const allGroupedIds = new Set(columnGroups.flatMap((g) => g.columns));
|
|
3873
3871
|
for (const col of visibleColumns) {
|
|
3874
3872
|
if (!allGroupedIds.has(col.id)) {
|
|
3875
3873
|
const pinSide = pinnedColumns.get(col.id);
|
|
@@ -3981,7 +3979,7 @@ function Spreadsheet({
|
|
|
3981
3979
|
style: {
|
|
3982
3980
|
zoom: zoom / 100
|
|
3983
3981
|
},
|
|
3984
|
-
children: /* @__PURE__ */ jsxs12("table", { className: "
|
|
3982
|
+
children: /* @__PURE__ */ jsxs12("table", { className: "border-separate border-spacing-0 text-xs select-none", children: [
|
|
3985
3983
|
/* @__PURE__ */ jsxs12("thead", { children: [
|
|
3986
3984
|
columnGroups && groupHeaderItems && /* @__PURE__ */ jsxs12("tr", { children: [
|
|
3987
3985
|
/* @__PURE__ */ jsx12(
|
|
@@ -3998,9 +3996,7 @@ function Spreadsheet({
|
|
|
3998
3996
|
),
|
|
3999
3997
|
groupHeaderItems.map((item) => {
|
|
4000
3998
|
if (item.type === "pinned-column") {
|
|
4001
|
-
const col = columns.find(
|
|
4002
|
-
(c) => c.id === item.columnId
|
|
4003
|
-
);
|
|
3999
|
+
const col = columns.find((c) => c.id === item.columnId);
|
|
4004
4000
|
const isPinnedLeft = item.pinSide === "left";
|
|
4005
4001
|
return /* @__PURE__ */ jsx12(
|
|
4006
4002
|
"th",
|