@ishibashi0112/spreadsheet-grid-solid 1.13.0 → 1.15.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/API_REFERENCE.md +228 -16
- package/README.md +10 -8
- package/dist/{ColumnFilterPopover-t32VGfTq.js → ColumnFilterPopover-DYnfyUTm.js} +40 -41
- package/dist/ai.d.ts +2 -0
- package/dist/ai.js +48 -47
- package/dist/devWarnings.d.ts +1 -0
- package/dist/features/pagination.d.ts +2 -0
- package/dist/features/types.d.ts +7 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3611 -3312
- package/dist/inputValue-Dvxw-RUC.js +69 -0
- package/dist/primitives/rowDrag.d.ts +1 -0
- package/dist/primitives/serverSide.d.ts +2 -1
- package/dist/source/ai.jsx +3 -0
- package/dist/source/chunks/{ColumnFilterPopover-JL3HPGXY.jsx → ColumnFilterPopover-7COSTSPD.jsx} +2 -4
- package/dist/source/chunks/{chunk-AI3CSPI3.jsx → chunk-D4IAL3ZE.jsx} +43 -1
- package/dist/source/chunks/{toolPanelViews-N6TGBFFW.jsx → toolPanelViews-WBFE4QVY.jsx} +2 -4
- package/dist/source/index.jsx +926 -477
- package/dist/style.css +1 -1
- package/dist/style.layer.css +1 -1
- package/dist/{toolPanelViews-CPYtBTQP.js → toolPanelViews-BgEAIDpk.js} +35 -36
- package/dist/view/DefaultGridBottomBar.d.ts +3 -0
- package/dist/view/DefaultGridTopBar.d.ts +1 -0
- package/dist/view/GridBodyGroupRow.d.ts +1 -0
- package/dist/view/GridBodyLabelRow.d.ts +1 -0
- package/dist/view/GridBodyLayer.d.ts +1 -0
- package/dist/view/GridBodySkeletonRow.d.ts +2 -0
- package/dist/view/GridPager.d.ts +9 -0
- package/dist/view/GridScrollHint.d.ts +2 -0
- package/dist/view/GridStickyLabelLayer.d.ts +1 -0
- package/package.json +3 -3
- package/skills/spreadsheet-grid-solid/SKILL.md +5 -1
- package/dist/inputValue-C6BHBMBx.js +0 -24
- package/dist/portalTokens-LgUwLYnR.js +0 -47
- package/dist/source/chunks/chunk-WLXZT66B.jsx +0 -44
package/dist/source/index.jsx
CHANGED
|
@@ -14,13 +14,14 @@ import {
|
|
|
14
14
|
} from "./chunks/chunk-ZZTXTW4Z.jsx";
|
|
15
15
|
import {
|
|
16
16
|
GridPortalContext,
|
|
17
|
+
createInputValue,
|
|
17
18
|
createPortalTokens,
|
|
18
19
|
px,
|
|
19
20
|
readEventKey,
|
|
20
21
|
toEditorKeyEvent,
|
|
21
22
|
toSolidStyle,
|
|
22
23
|
useGridPortal
|
|
23
|
-
} from "./chunks/chunk-
|
|
24
|
+
} from "./chunks/chunk-D4IAL3ZE.jsx";
|
|
24
25
|
import {
|
|
25
26
|
GridLocaleTextContext,
|
|
26
27
|
mergeFeatureLocaleDefaults,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
import { merge } from "solid-js";
|
|
33
34
|
|
|
34
35
|
// src/SpreadsheetGrid.tsx
|
|
35
|
-
import { For as
|
|
36
|
+
import { For as For6, Match, NoHydration, Show as Show13, Switch, createEffect as createEffect4, createMemo as createMemo10, createSignal as createSignal9, createUniqueId as createUniqueId3, isHydrating, latest as latest2, onCleanup as onCleanup8, runWithOwner as runWithOwner3, untrack as untrack13 } from "solid-js";
|
|
36
37
|
import { isServer } from "@solidjs/web";
|
|
37
38
|
import { createGridEngine } from "@ishibashi0112/spreadsheet-grid-core/internal/engine/createGridEngine";
|
|
38
39
|
import { gridActions } from "@ishibashi0112/spreadsheet-grid-core/internal/model/gridActions";
|
|
@@ -140,8 +141,19 @@ import {
|
|
|
140
141
|
import { createPointerInteractionsController } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/pointerInteractionsController";
|
|
141
142
|
import {
|
|
142
143
|
createHistoryController,
|
|
143
|
-
createHistoryRowLocator
|
|
144
|
+
createHistoryRowLocator,
|
|
145
|
+
pageHistoryRowLocator
|
|
144
146
|
} from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/historyController";
|
|
147
|
+
import {
|
|
148
|
+
createLoadingPlaceholderRowModel,
|
|
149
|
+
resolveCarriedLabelIndex,
|
|
150
|
+
resolveLoadingPlaceholderRows,
|
|
151
|
+
resolvePagedStickyLabel,
|
|
152
|
+
resolveStatePage,
|
|
153
|
+
shiftRowRunsToPage,
|
|
154
|
+
shiftSelectionRows,
|
|
155
|
+
sliceLabelDisplayForPage
|
|
156
|
+
} from "@ishibashi0112/spreadsheet-grid-core/internal/logic/pagination";
|
|
145
157
|
import {
|
|
146
158
|
createScrollScaleAnchor,
|
|
147
159
|
createViewportSyncController
|
|
@@ -844,6 +856,8 @@ function GridBodyLayer(props) {
|
|
|
844
856
|
const trackingOn = createMemo5(() => props.unsavedTracking !== void 0);
|
|
845
857
|
const originalOn = createMemo5(() => props.unsavedTracking?.describeOriginal !== void 0);
|
|
846
858
|
const treeKey = createMemo5(() => props.treeColumnKey);
|
|
859
|
+
const rowOffset = createMemo5(() => props.rowModel.pageStart ?? 0);
|
|
860
|
+
const rowAriaOffset = createMemo5(() => props.ariaRowOffset + rowOffset());
|
|
847
861
|
return <For2 each={slotted().state.items} keyed={(item) => item.slot}>
|
|
848
862
|
{(item) => {
|
|
849
863
|
const rowIndex = createMemo5(() => item().index);
|
|
@@ -856,17 +870,19 @@ function GridBodyLayer(props) {
|
|
|
856
870
|
rowIndex={rowIndex()}
|
|
857
871
|
top={item().start}
|
|
858
872
|
rowHeight={item().size ?? props.rowHeight}
|
|
859
|
-
ariaRowOffset={
|
|
873
|
+
ariaRowOffset={rowAriaOffset()}
|
|
860
874
|
rowHeaderWidth={props.rowHeaderWidth}
|
|
861
875
|
entries={props.entries}
|
|
862
|
-
isRowHovered={props.hoveredRowIndex === rowIndex()}
|
|
876
|
+
isRowHovered={!props.placeholderRows && props.hoveredRowIndex === rowIndex()}
|
|
863
877
|
showRowCheckbox={props.enableRowSelection}
|
|
864
|
-
onRowHeaderPointerDown={props.onRowHeaderPointerDown}
|
|
865
|
-
onRowHeaderPointerEnter={props.onRowHeaderPointerEnter}
|
|
866
|
-
onRowHeaderPointerLeave={props.onRowHeaderPointerLeave}
|
|
867
|
-
onCellPointerDown={props.onCellPointerDown}
|
|
868
|
-
onCellPointerEnter={props.onCellPointerEnter}
|
|
878
|
+
onRowHeaderPointerDown={props.placeholderRows ? IGNORE_POINTER : props.onRowHeaderPointerDown}
|
|
879
|
+
onRowHeaderPointerEnter={props.placeholderRows ? IGNORE_POINTER : props.onRowHeaderPointerEnter}
|
|
880
|
+
onRowHeaderPointerLeave={props.placeholderRows ? IGNORE_POINTER : props.onRowHeaderPointerLeave}
|
|
881
|
+
onCellPointerDown={props.placeholderRows ? IGNORE_POINTER : props.onCellPointerDown}
|
|
882
|
+
onCellPointerEnter={props.placeholderRows ? IGNORE_POINTER : props.onCellPointerEnter}
|
|
869
883
|
slots={props.slots}
|
|
884
|
+
placeholder={props.placeholderRows === true}
|
|
885
|
+
rowNumberOffset={rowOffset()}
|
|
870
886
|
/>;
|
|
871
887
|
}
|
|
872
888
|
const isEntry = untrack3(() => item().newRow === true);
|
|
@@ -893,7 +909,8 @@ function GridBodyLayer(props) {
|
|
|
893
909
|
rowHeight={item().size ?? props.rowHeight}
|
|
894
910
|
rowHeaderWidth={props.rowHeaderWidth}
|
|
895
911
|
entries={props.entries}
|
|
896
|
-
ariaRowOffset={
|
|
912
|
+
ariaRowOffset={rowAriaOffset()}
|
|
913
|
+
rowNumberOffset={rowOffset()}
|
|
897
914
|
isRowHovered={props.hoveredRowIndex === rowIndex()}
|
|
898
915
|
showRowCheckbox={props.enableRowSelection}
|
|
899
916
|
groupRow={group()}
|
|
@@ -919,7 +936,8 @@ function GridBodyLayer(props) {
|
|
|
919
936
|
rowIndex={rowIndex()}
|
|
920
937
|
rowKey={labelRowKey()}
|
|
921
938
|
top={item().start}
|
|
922
|
-
ariaRowOffset={
|
|
939
|
+
ariaRowOffset={rowAriaOffset()}
|
|
940
|
+
rowIndexOffset={rowOffset()}
|
|
923
941
|
rowHeight={item().size ?? props.rowHeight}
|
|
924
942
|
rowHeaderWidth={props.rowHeaderWidth}
|
|
925
943
|
labelRow={label()}
|
|
@@ -978,7 +996,7 @@ function GridBodyLayer(props) {
|
|
|
978
996
|
const activeCol = createMemo5(
|
|
979
997
|
() => !isRemoved && props.activeCell?.row === rowIndex() ? props.activeCell.col : -1
|
|
980
998
|
);
|
|
981
|
-
const rowFindHits = createMemo5(() => props.findIndex.get(rowIndex()));
|
|
999
|
+
const rowFindHits = createMemo5(() => props.findIndex.get(rowIndex() + rowOffset()));
|
|
982
1000
|
const rowFindCurrent = createMemo5(() => {
|
|
983
1001
|
const hits = rowFindHits();
|
|
984
1002
|
const current = hits ? props.findCurrentIndex : null;
|
|
@@ -999,16 +1017,16 @@ function GridBodyLayer(props) {
|
|
|
999
1017
|
const isHovered = createMemo5(() => !isRemoved && props.hoveredRowIndex === rowIndex());
|
|
1000
1018
|
const rowSlot = createMemo5(
|
|
1001
1019
|
() => newRowBlank() || isRemoved ? EMPTY_SLOT : resolveSlotProps(
|
|
1002
|
-
props.getRowClassName?.(currentRow(), rowIndex(), {
|
|
1020
|
+
props.getRowClassName?.(currentRow(), rowIndex() + rowOffset(), {
|
|
1003
1021
|
row: currentRow(),
|
|
1004
|
-
rowIndex: rowIndex(),
|
|
1022
|
+
rowIndex: rowIndex() + rowOffset(),
|
|
1005
1023
|
sourceRowIndex: sourceRowIndex(),
|
|
1006
1024
|
rowKey: rowKey(),
|
|
1007
1025
|
isSelected: isRowChecked()
|
|
1008
1026
|
})
|
|
1009
1027
|
)
|
|
1010
1028
|
);
|
|
1011
|
-
const rowNumber = () => props.labelViewIndexes ? resolveDataRowNumber(props.labelViewIndexes, rowIndex()) : rowIndex() + 1;
|
|
1029
|
+
const rowNumber = () => props.labelViewIndexes ? resolveDataRowNumber(props.labelViewIndexes, rowIndex() + rowOffset()) : rowIndex() + rowOffset() + 1;
|
|
1012
1030
|
const rowTracking = isEntry || isRemoved ? NO_FALSE : trackingOn;
|
|
1013
1031
|
const rowUnsavedTexts = createMemoWhen(
|
|
1014
1032
|
rowTracking,
|
|
@@ -1104,7 +1122,7 @@ ${decoration}`;
|
|
|
1104
1122
|
const isSelected = () => isRowSelected() || selectedColStart() >= 0 && colIndex() >= selectedColStart() && colIndex() <= selectedColEnd();
|
|
1105
1123
|
const readOnlyCell = () => {
|
|
1106
1124
|
const env = editPermission();
|
|
1107
|
-
return !isColumnEditable(env.readOnly, unbound()) || env.canEditCell !== void 0 && !isCellEditable(env, rowIndex(), colIndex(), currentRow(), unbound(), {
|
|
1125
|
+
return !isColumnEditable(env.readOnly, unbound()) || env.canEditCell !== void 0 && !isCellEditable(env, rowIndex() + rowOffset(), colIndex(), currentRow(), unbound(), {
|
|
1108
1126
|
sourceRowIndex: sourceRowIndex(),
|
|
1109
1127
|
rowKey: rowKey()
|
|
1110
1128
|
});
|
|
@@ -1185,7 +1203,7 @@ ${decoration}`;
|
|
|
1185
1203
|
return true;
|
|
1186
1204
|
}
|
|
1187
1205
|
const env = editPermission();
|
|
1188
|
-
return !isColumnEditable(env.readOnly, unbound()) || env.canEditCell !== void 0 && !newRowBlank() && !isCellEditable(env, rowIndex(), colIndex(), currentRow(), unbound(), {
|
|
1206
|
+
return !isColumnEditable(env.readOnly, unbound()) || env.canEditCell !== void 0 && !newRowBlank() && !isCellEditable(env, rowIndex() + rowOffset(), colIndex(), currentRow(), unbound(), {
|
|
1189
1207
|
sourceRowIndex: sourceRowIndex(),
|
|
1190
1208
|
rowKey: rowKey()
|
|
1191
1209
|
});
|
|
@@ -1244,7 +1262,7 @@ ${decoration}`;
|
|
|
1244
1262
|
() => !decorOff() && needsStyleContext(),
|
|
1245
1263
|
() => ({
|
|
1246
1264
|
row: currentRow(),
|
|
1247
|
-
rowIndex: rowIndex(),
|
|
1265
|
+
rowIndex: rowIndex() + rowOffset(),
|
|
1248
1266
|
sourceRowIndex: sourceRowIndex(),
|
|
1249
1267
|
rowKey: rowKey(),
|
|
1250
1268
|
colIndex: colIndex(),
|
|
@@ -1445,7 +1463,7 @@ ${decoration}`;
|
|
|
1445
1463
|
data-pane={props.pane}
|
|
1446
1464
|
data-row-index={rowIndex()}
|
|
1447
1465
|
role="row"
|
|
1448
|
-
aria-rowindex={rowIndex() + 2 +
|
|
1466
|
+
aria-rowindex={rowIndex() + 2 + rowAriaOffset()}
|
|
1449
1467
|
aria-selected={props.enableRowSelection && !isEntry && !isRemoved ? isRowChecked() ? "true" : "false" : void 0}
|
|
1450
1468
|
data-row-key={String(rowKey())}
|
|
1451
1469
|
data-ssg-new-row={newRowState?.()}
|
|
@@ -1539,10 +1557,93 @@ ${decoration}`;
|
|
|
1539
1557
|
</For2>;
|
|
1540
1558
|
}
|
|
1541
1559
|
|
|
1560
|
+
// src/view/GridBodySkeletonRow.tsx
|
|
1561
|
+
import { For as For3, Show as Show3 } from "solid-js";
|
|
1562
|
+
var SKELETON_BAR_WIDTHS = ["62%", "46%", "78%", "54%"];
|
|
1563
|
+
function GridBodySkeletonRow(props) {
|
|
1564
|
+
return <div
|
|
1565
|
+
data-pane={props.pane}
|
|
1566
|
+
data-row-index={props.rowIndex}
|
|
1567
|
+
data-skeleton-row=""
|
|
1568
|
+
role={props.placeholder ? void 0 : "row"}
|
|
1569
|
+
aria-rowindex={props.placeholder ? void 0 : props.rowIndex + 2 + props.ariaRowOffset}
|
|
1570
|
+
aria-busy={props.placeholder ? void 0 : "true"}
|
|
1571
|
+
aria-hidden={props.placeholder ? "true" : void 0}
|
|
1572
|
+
class={["ssg-body-row", { "ssg-body-row--placeholder": props.placeholder === true }, props.slots.bodyRow?.className]}
|
|
1573
|
+
style={{
|
|
1574
|
+
...props.slots.bodyRow?.style,
|
|
1575
|
+
height: px(props.rowHeight),
|
|
1576
|
+
transform: `translateY(${props.top}px)`
|
|
1577
|
+
}}
|
|
1578
|
+
>
|
|
1579
|
+
<Show3 when={props.ownsRowHeader}>
|
|
1580
|
+
<div
|
|
1581
|
+
role={props.placeholder ? void 0 : "rowheader"}
|
|
1582
|
+
aria-colindex={props.placeholder ? void 0 : 1}
|
|
1583
|
+
onPointerDown={(event) => props.onRowHeaderPointerDown(props.rowIndex, event)}
|
|
1584
|
+
onPointerEnter={(event) => props.onRowHeaderPointerEnter(props.rowIndex, event)}
|
|
1585
|
+
onPointerLeave={() => props.onRowHeaderPointerLeave(props.rowIndex)}
|
|
1586
|
+
class={[
|
|
1587
|
+
"ssg-header-cell",
|
|
1588
|
+
"ssg-row-header-cell",
|
|
1589
|
+
"ssg-skeleton-rowheader",
|
|
1590
|
+
{
|
|
1591
|
+
"ssg-row-header-cell--checkbox": props.showRowCheckbox,
|
|
1592
|
+
"ssg-header-cell--hovered": props.isRowHovered
|
|
1593
|
+
},
|
|
1594
|
+
props.slots.rowHeaderCell?.className
|
|
1595
|
+
]}
|
|
1596
|
+
style={{
|
|
1597
|
+
...props.slots.rowHeaderCell?.style,
|
|
1598
|
+
width: px(props.rowHeaderWidth),
|
|
1599
|
+
"min-width": px(props.rowHeaderWidth),
|
|
1600
|
+
height: px(props.rowHeight)
|
|
1601
|
+
}}
|
|
1602
|
+
>
|
|
1603
|
+
<Show3 when={!props.placeholder}>
|
|
1604
|
+
<Show3 when={props.showRowCheckbox} fallback={props.rowIndex + (props.rowNumberOffset ?? 0) + 1}>
|
|
1605
|
+
<RowSelectionCheckbox slot={props.slots.checkbox} state="unchecked" disabled />
|
|
1606
|
+
</Show3>
|
|
1607
|
+
</Show3>
|
|
1608
|
+
</div>
|
|
1609
|
+
</Show3>
|
|
1610
|
+
<For3 each={props.entries} keyed={(entry) => entry.logicalIndex}>
|
|
1611
|
+
{(entry) => {
|
|
1612
|
+
const cell = () => ({ row: props.rowIndex, col: entry().logicalIndex });
|
|
1613
|
+
return <div
|
|
1614
|
+
role={props.placeholder ? void 0 : "gridcell"}
|
|
1615
|
+
aria-colindex={props.placeholder ? void 0 : entry().logicalIndex + 2}
|
|
1616
|
+
class={[
|
|
1617
|
+
"ssg-body-cell",
|
|
1618
|
+
{ "ssg-body-cell--row-hovered": props.isRowHovered },
|
|
1619
|
+
props.slots.bodyCell?.className
|
|
1620
|
+
]}
|
|
1621
|
+
onPointerDown={(event) => props.onCellPointerDown(cell(), event)}
|
|
1622
|
+
onPointerEnter={(event) => props.onCellPointerEnter(cell(), event)}
|
|
1623
|
+
style={{
|
|
1624
|
+
...props.slots.bodyCell?.style,
|
|
1625
|
+
left: px(props.leadingWidth + entry().paneLocalStart),
|
|
1626
|
+
width: px(entry().paneLocalSize),
|
|
1627
|
+
"min-width": px(entry().paneLocalSize),
|
|
1628
|
+
height: px(props.rowHeight),
|
|
1629
|
+
"z-index": 1
|
|
1630
|
+
}}
|
|
1631
|
+
>
|
|
1632
|
+
<div
|
|
1633
|
+
aria-hidden="true"
|
|
1634
|
+
class="ssg-skeleton-bar"
|
|
1635
|
+
style={{ width: SKELETON_BAR_WIDTHS[entry().logicalIndex % SKELETON_BAR_WIDTHS.length] }}
|
|
1636
|
+
/>
|
|
1637
|
+
</div>;
|
|
1638
|
+
}}
|
|
1639
|
+
</For3>
|
|
1640
|
+
</div>;
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1542
1643
|
// src/view/Overlay.tsx
|
|
1543
|
-
import { Show as
|
|
1644
|
+
import { Show as Show4 } from "solid-js";
|
|
1544
1645
|
function Overlay(props) {
|
|
1545
|
-
return <
|
|
1646
|
+
return <Show4 when={props.rect}>
|
|
1546
1647
|
{(rect) => <div
|
|
1547
1648
|
class={[props.class, props.slot?.className]}
|
|
1548
1649
|
style={{
|
|
@@ -1554,11 +1655,11 @@ function Overlay(props) {
|
|
|
1554
1655
|
height: px(rect().height)
|
|
1555
1656
|
}}
|
|
1556
1657
|
/>}
|
|
1557
|
-
</
|
|
1658
|
+
</Show4>;
|
|
1558
1659
|
}
|
|
1559
1660
|
|
|
1560
1661
|
// src/view/GridDetailLayer.tsx
|
|
1561
|
-
import { For as
|
|
1662
|
+
import { For as For4, Show as Show5, createMemo as createMemo6, onCleanup as onCleanup2, untrack as untrack4 } from "solid-js";
|
|
1562
1663
|
import { notifyDetailCardFocusLost } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/detailRowController";
|
|
1563
1664
|
var stopPropagation = (event) => {
|
|
1564
1665
|
event.stopPropagation();
|
|
@@ -1568,11 +1669,11 @@ var mergeSlotStyles = (...styles) => {
|
|
|
1568
1669
|
return present.length === 0 ? void 0 : Object.assign({}, ...present);
|
|
1569
1670
|
};
|
|
1570
1671
|
function GridDetailLayer(props) {
|
|
1571
|
-
return <
|
|
1672
|
+
return <For4 each={props.entries} keyed={(entry) => entry.rowKey}>
|
|
1572
1673
|
{(entry) => {
|
|
1573
1674
|
const index = createMemo6(() => entry().virtualRow.index);
|
|
1574
1675
|
const detailSize = () => entry().virtualRow.detailSize ?? 0;
|
|
1575
|
-
return <
|
|
1676
|
+
return <Show5 when={detailSize() > 0}>
|
|
1576
1677
|
<div
|
|
1577
1678
|
class={["ssg-detail-band", props.slots.detailBand?.className]}
|
|
1578
1679
|
role={props.mode === "center" ? "row" : void 0}
|
|
@@ -1587,13 +1688,13 @@ function GridDetailLayer(props) {
|
|
|
1587
1688
|
height: px(detailSize())
|
|
1588
1689
|
}}
|
|
1589
1690
|
>
|
|
1590
|
-
<
|
|
1691
|
+
<Show5 when={props.mode === "center"}>
|
|
1591
1692
|
<DetailCard entry={entry} index={index} layer={props} />
|
|
1592
|
-
</
|
|
1693
|
+
</Show5>
|
|
1593
1694
|
</div>
|
|
1594
|
-
</
|
|
1695
|
+
</Show5>;
|
|
1595
1696
|
}}
|
|
1596
|
-
</
|
|
1697
|
+
</For4>;
|
|
1597
1698
|
}
|
|
1598
1699
|
function DetailCard(props) {
|
|
1599
1700
|
const layer = props.layer;
|
|
@@ -1605,8 +1706,9 @@ function DetailCard(props) {
|
|
|
1605
1706
|
return row();
|
|
1606
1707
|
},
|
|
1607
1708
|
rowKey,
|
|
1709
|
+
// 変更(1.15.0 / ページ送り): 通し番号(props.index はページの中の番号)。
|
|
1608
1710
|
get rowIndex() {
|
|
1609
|
-
return props.index();
|
|
1711
|
+
return props.index() + (layer.rowModel.pageStart ?? 0);
|
|
1610
1712
|
},
|
|
1611
1713
|
get sourceRowIndex() {
|
|
1612
1714
|
return sourceRowIndex();
|
|
@@ -1639,7 +1741,7 @@ function DetailCard(props) {
|
|
|
1639
1741
|
onDragStart={stopPropagation}
|
|
1640
1742
|
onDblClick={stopPropagation}
|
|
1641
1743
|
>
|
|
1642
|
-
<
|
|
1744
|
+
<Show5 when={row() !== void 0}>{layer.renderCard?.(ctx)}</Show5>
|
|
1643
1745
|
</div>
|
|
1644
1746
|
</div>;
|
|
1645
1747
|
}
|
|
@@ -1691,7 +1793,7 @@ function CheckboxCell(props) {
|
|
|
1691
1793
|
}
|
|
1692
1794
|
|
|
1693
1795
|
// src/editors/CellEditorLayer.tsx
|
|
1694
|
-
import { Show as
|
|
1796
|
+
import { Show as Show9, createMemo as createMemo7, untrack as untrack11 } from "solid-js";
|
|
1695
1797
|
import { toDateInputValue } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/editorValues";
|
|
1696
1798
|
import { resolveTypedStartText } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/editorStart";
|
|
1697
1799
|
import { formatLocaleText as formatLocaleText4 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
|
|
@@ -1700,7 +1802,7 @@ import { isDateTimeEditor } from "@ishibashi0112/spreadsheet-grid-core/internal/
|
|
|
1700
1802
|
import { isMultiSelectEditor } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/multiSelect";
|
|
1701
1803
|
|
|
1702
1804
|
// src/editors/TextCellEditor.tsx
|
|
1703
|
-
import { Show as
|
|
1805
|
+
import { Show as Show7, createRenderEffect as createRenderEffect3, createSignal as createSignal4, onCleanup as onCleanup3, onSettled as onSettled3, untrack as untrack6 } from "solid-js";
|
|
1704
1806
|
import { handleEditorKeyDown } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/editorKeys";
|
|
1705
1807
|
import {
|
|
1706
1808
|
fitMultilineEditor,
|
|
@@ -1727,16 +1829,16 @@ function createTopAlignedInput(input, alignTop, cellHeight) {
|
|
|
1727
1829
|
}
|
|
1728
1830
|
|
|
1729
1831
|
// src/editors/CellEditorErrorBubble.tsx
|
|
1730
|
-
import { Show as
|
|
1832
|
+
import { Show as Show6, createSignal as createSignal3, onSettled as onSettled2 } from "solid-js";
|
|
1731
1833
|
import {
|
|
1732
1834
|
DEFAULT_ERROR_BUBBLE_PLACEMENT,
|
|
1733
1835
|
ERROR_BUBBLE_ABOVE_CLASS,
|
|
1734
1836
|
placeErrorBubble
|
|
1735
1837
|
} from "@ishibashi0112/spreadsheet-grid-core/internal/utils/errorBubblePlacement";
|
|
1736
1838
|
function CellEditorError(props) {
|
|
1737
|
-
return <
|
|
1839
|
+
return <Show6 when={props.message !== null ? { message: props.message } : null} keyed>
|
|
1738
1840
|
{(state) => <CellEditorErrorBubble message={state.message} />}
|
|
1739
|
-
</
|
|
1841
|
+
</Show6>;
|
|
1740
1842
|
}
|
|
1741
1843
|
function CellEditorErrorBubble(props) {
|
|
1742
1844
|
let element;
|
|
@@ -1892,9 +1994,9 @@ function TextCellEditor(props) {
|
|
|
1892
1994
|
<CellEditorError message={error()} />
|
|
1893
1995
|
</div>;
|
|
1894
1996
|
};
|
|
1895
|
-
return <
|
|
1997
|
+
return <Show7 when={props.multiline ?? false} fallback={renderInput()}>
|
|
1896
1998
|
{renderTextarea()}
|
|
1897
|
-
</
|
|
1999
|
+
</Show7>;
|
|
1898
2000
|
}
|
|
1899
2001
|
|
|
1900
2002
|
// src/editors/NumberCellEditor.tsx
|
|
@@ -1972,8 +2074,8 @@ function NumberCellEditor(props) {
|
|
|
1972
2074
|
|
|
1973
2075
|
// src/editors/SelectCellEditor.tsx
|
|
1974
2076
|
import {
|
|
1975
|
-
For as
|
|
1976
|
-
Show as
|
|
2077
|
+
For as For5,
|
|
2078
|
+
Show as Show8,
|
|
1977
2079
|
createEffect as createEffect2,
|
|
1978
2080
|
createRenderEffect as createRenderEffect4,
|
|
1979
2081
|
createSignal as createSignal6,
|
|
@@ -2187,7 +2289,7 @@ function SelectCellEditor(props) {
|
|
|
2187
2289
|
style={props.align ? { "text-align": props.align } : void 0}
|
|
2188
2290
|
/>
|
|
2189
2291
|
<CellEditorError message={error()} />
|
|
2190
|
-
<
|
|
2292
|
+
<Show8 when={mount()}>
|
|
2191
2293
|
{(container) => <Portal mount={container()}>
|
|
2192
2294
|
<div
|
|
2193
2295
|
ref={setList}
|
|
@@ -2205,7 +2307,7 @@ function SelectCellEditor(props) {
|
|
|
2205
2307
|
}}
|
|
2206
2308
|
onPointerDown={(event) => event.preventDefault()}
|
|
2207
2309
|
>
|
|
2208
|
-
<
|
|
2310
|
+
<Show8
|
|
2209
2311
|
when={props.options.length > 0}
|
|
2210
2312
|
fallback={<div class="ssg-select-editor-empty">{texts().noOptions}</div>}
|
|
2211
2313
|
>
|
|
@@ -2213,7 +2315,7 @@ function SelectCellEditor(props) {
|
|
|
2213
2315
|
/* 候補の要素は位置で使い回します(行で決まる候補の関数が新しい配列を返しても作り直さない。React 版の
|
|
2214
2316
|
key={`${value}-${index}`} に近い) */
|
|
2215
2317
|
}
|
|
2216
|
-
<
|
|
2318
|
+
<For5 each={props.options} keyed={false}>
|
|
2217
2319
|
{(option, index) => <div
|
|
2218
2320
|
id={`${listId}-${index}`}
|
|
2219
2321
|
role="option"
|
|
@@ -2232,11 +2334,11 @@ function SelectCellEditor(props) {
|
|
|
2232
2334
|
>
|
|
2233
2335
|
{option().label}
|
|
2234
2336
|
</div>}
|
|
2235
|
-
</
|
|
2236
|
-
</
|
|
2337
|
+
</For5>
|
|
2338
|
+
</Show8>
|
|
2237
2339
|
</div>
|
|
2238
2340
|
</Portal>}
|
|
2239
|
-
</
|
|
2341
|
+
</Show8>
|
|
2240
2342
|
</>;
|
|
2241
2343
|
createPortalTokens(list, () => props.themeClassName, placement2);
|
|
2242
2344
|
createRenderEffect4(
|
|
@@ -2448,13 +2550,13 @@ function CellEditorLayer(props) {
|
|
|
2448
2550
|
commit: (value, direction) => props.onCommit(value, direction) ?? { status: "noop" },
|
|
2449
2551
|
cancel: () => props.onCancel()
|
|
2450
2552
|
};
|
|
2451
|
-
return <
|
|
2553
|
+
return <Show9 when={session() !== null}>
|
|
2452
2554
|
<CustomCellEditor
|
|
2453
2555
|
render={render}
|
|
2454
2556
|
context={context}
|
|
2455
2557
|
onRegisterLateCommit={(receiver) => props.onRegisterLateCommit?.(receiver) ?? NOOP2}
|
|
2456
2558
|
/>
|
|
2457
|
-
</
|
|
2559
|
+
</Show9>;
|
|
2458
2560
|
};
|
|
2459
2561
|
const renderEditor = (type, sessionId) => {
|
|
2460
2562
|
const common = {
|
|
@@ -2601,7 +2703,7 @@ function CellEditorLayer(props) {
|
|
|
2601
2703
|
}
|
|
2602
2704
|
}
|
|
2603
2705
|
};
|
|
2604
|
-
return <
|
|
2706
|
+
return <Show9 when={props.rect !== null ? props.sessionId : null} keyed>
|
|
2605
2707
|
{(sessionId) => <div
|
|
2606
2708
|
class={["ssg-cell-editor", props.leadingInset && "ssg-cell-editor--tree-inset", props.slots.cellEditor?.className]}
|
|
2607
2709
|
role={props.session ? "group" : void 0}
|
|
@@ -2616,15 +2718,15 @@ function CellEditorLayer(props) {
|
|
|
2616
2718
|
height: px(props.rect?.height ?? 0)
|
|
2617
2719
|
}}
|
|
2618
2720
|
>
|
|
2619
|
-
<
|
|
2721
|
+
<Show9 when={kind()} keyed>
|
|
2620
2722
|
{(type) => renderEditor(type, sessionId)}
|
|
2621
|
-
</
|
|
2723
|
+
</Show9>
|
|
2622
2724
|
</div>}
|
|
2623
|
-
</
|
|
2725
|
+
</Show9>;
|
|
2624
2726
|
}
|
|
2625
2727
|
|
|
2626
2728
|
// src/view/DefaultGridTopBar.tsx
|
|
2627
|
-
import { Show as
|
|
2729
|
+
import { Show as Show10, createMemo as createMemo8, createRenderEffect as createRenderEffect5, createSignal as createSignal8, createUniqueId as createUniqueId2, untrack as untrack12 } from "solid-js";
|
|
2628
2730
|
var DefaultFilterIcon = () => <svg
|
|
2629
2731
|
width="14"
|
|
2630
2732
|
height="14"
|
|
@@ -2674,13 +2776,20 @@ function DefaultGridTopBar(props) {
|
|
|
2674
2776
|
});
|
|
2675
2777
|
return <div class={["ssg-bar--top", props.slot?.className]} style={props.slot?.style}>
|
|
2676
2778
|
<div class="ssg-bar-container">
|
|
2677
|
-
<
|
|
2779
|
+
<Show10 when={props.showSummary}>
|
|
2678
2780
|
<div class="ssg-bar-group ssg-bar-leading">
|
|
2679
|
-
<
|
|
2680
|
-
<span
|
|
2781
|
+
<Show10 when={props.showCounts}>
|
|
2782
|
+
<span
|
|
2783
|
+
class={[
|
|
2784
|
+
"ssg-bar-chip ssg-bar-chip--emphasis",
|
|
2785
|
+
{ "ssg-bar-chip--loading": props.loadingText != null }
|
|
2786
|
+
]}
|
|
2787
|
+
>
|
|
2788
|
+
{props.loadingText ?? props.derivedSummary.rowSummaryText}
|
|
2789
|
+
</span>
|
|
2681
2790
|
<span class="ssg-bar-chip ssg-bar-chip--emphasis">{props.derivedSummary.columnSummaryText}</span>
|
|
2682
|
-
</
|
|
2683
|
-
<
|
|
2791
|
+
</Show10>
|
|
2792
|
+
<Show10
|
|
2684
2793
|
when={props.onFilterSummaryClick}
|
|
2685
2794
|
fallback={<span class="ssg-bar-chip ssg-bar-chip--emphasis">{props.derivedSummary.filterSummaryText}</span>}
|
|
2686
2795
|
>
|
|
@@ -2700,22 +2809,22 @@ function DefaultGridTopBar(props) {
|
|
|
2700
2809
|
<span id={`${filterSummaryId}-text`}>{props.derivedSummary.filterSummaryText}</span>
|
|
2701
2810
|
</button>
|
|
2702
2811
|
)}
|
|
2703
|
-
</
|
|
2812
|
+
</Show10>
|
|
2704
2813
|
<span class="ssg-bar-chip ssg-bar-chip--emphasis">{props.derivedSummary.sortSummaryText}</span>
|
|
2705
|
-
<
|
|
2814
|
+
<Show10 when={props.onFilterSummaryClick}>
|
|
2706
2815
|
<span id={`${filterSummaryId}-action`} hidden>
|
|
2707
2816
|
{texts().toggleFilterPanel}
|
|
2708
2817
|
</span>
|
|
2709
|
-
</
|
|
2818
|
+
</Show10>
|
|
2710
2819
|
</div>
|
|
2711
|
-
</
|
|
2712
|
-
<
|
|
2820
|
+
</Show10>
|
|
2821
|
+
<Show10 when={props.showFilter}>
|
|
2713
2822
|
<div class="ssg-bar-input-group">
|
|
2714
|
-
<
|
|
2823
|
+
<Show10 when={filterIcon()}>
|
|
2715
2824
|
{(icon) => <span class="ssg-bar-input-icon" aria-hidden="true">
|
|
2716
2825
|
{icon()}
|
|
2717
2826
|
</span>}
|
|
2718
|
-
</
|
|
2827
|
+
</Show10>
|
|
2719
2828
|
<input
|
|
2720
2829
|
ref={setInput}
|
|
2721
2830
|
type="text"
|
|
@@ -2725,7 +2834,7 @@ function DefaultGridTopBar(props) {
|
|
|
2725
2834
|
aria-label={placeholder() || texts().globalFilterLabel}
|
|
2726
2835
|
class="ssg-bar-input"
|
|
2727
2836
|
/>
|
|
2728
|
-
<
|
|
2837
|
+
<Show10 when={hasFilterText()}>
|
|
2729
2838
|
<button
|
|
2730
2839
|
type="button"
|
|
2731
2840
|
onClick={() => props.setGlobalFilterText("")}
|
|
@@ -2735,15 +2844,15 @@ function DefaultGridTopBar(props) {
|
|
|
2735
2844
|
>
|
|
2736
2845
|
<ClearIcon />
|
|
2737
2846
|
</button>
|
|
2738
|
-
</
|
|
2847
|
+
</Show10>
|
|
2739
2848
|
</div>
|
|
2740
|
-
</
|
|
2849
|
+
</Show10>
|
|
2741
2850
|
</div>
|
|
2742
2851
|
</div>;
|
|
2743
2852
|
}
|
|
2744
2853
|
|
|
2745
2854
|
// src/view/DefaultGridBottomBar.tsx
|
|
2746
|
-
import { Show as
|
|
2855
|
+
import { Show as Show11 } from "solid-js";
|
|
2747
2856
|
import { formatLocaleText as formatLocaleText5 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
|
|
2748
2857
|
function DefaultGridBottomBar(props) {
|
|
2749
2858
|
const texts = useGridLocaleText();
|
|
@@ -2753,22 +2862,33 @@ function DefaultGridBottomBar(props) {
|
|
|
2753
2862
|
};
|
|
2754
2863
|
const unsavedChip = () => <>
|
|
2755
2864
|
{props.diffChip}
|
|
2756
|
-
<
|
|
2865
|
+
<Show11 when={props.unsavedText}>
|
|
2757
2866
|
{(text) => <span class="ssg-bar-chip ssg-bar-chip--unsaved">{text()}</span>}
|
|
2758
|
-
</
|
|
2867
|
+
</Show11>
|
|
2759
2868
|
</>;
|
|
2760
|
-
return <div
|
|
2869
|
+
return <div
|
|
2870
|
+
class={["ssg-bar--bottom", { "ssg-bar--paged": props.paged === true }, props.slot?.className]}
|
|
2871
|
+
style={props.slot?.style}
|
|
2872
|
+
>
|
|
2761
2873
|
<div class="ssg-bar-container">
|
|
2762
|
-
<
|
|
2874
|
+
<Show11 when={props.showCounts}>
|
|
2763
2875
|
<div class="ssg-bar-group">
|
|
2764
|
-
|
|
2876
|
+
{
|
|
2877
|
+
/* 変更(1.15.0): 読み込み中は件数の所に「読み込み中」(React 版と同じ)。 */
|
|
2878
|
+
}
|
|
2879
|
+
<span class={["ssg-bar-chip", { "ssg-bar-chip--loading": props.loadingText != null }]}>
|
|
2880
|
+
{props.loadingText ?? props.derivedSummary.rowSummaryText}
|
|
2881
|
+
</span>
|
|
2765
2882
|
<span class="ssg-bar-chip">{props.derivedSummary.columnSummaryText}</span>
|
|
2766
2883
|
{unsavedChip()}
|
|
2767
2884
|
</div>
|
|
2768
2885
|
{aggregates(false)}
|
|
2769
|
-
</
|
|
2886
|
+
</Show11>
|
|
2770
2887
|
<div class="ssg-bar-group">
|
|
2771
|
-
<
|
|
2888
|
+
<Show11 when={!props.showCounts && props.loadingText != null}>
|
|
2889
|
+
<span class="ssg-bar-chip ssg-bar-chip--loading">{props.loadingText}</span>
|
|
2890
|
+
</Show11>
|
|
2891
|
+
<Show11 when={!props.showCounts}>{unsavedChip()}</Show11>
|
|
2772
2892
|
<span class="ssg-bar-chip">
|
|
2773
2893
|
{formatLocaleText5(texts().activeCell, { cell: props.derivedSummary.activeCellLabel })}
|
|
2774
2894
|
</span>
|
|
@@ -2778,13 +2898,14 @@ function DefaultGridBottomBar(props) {
|
|
|
2778
2898
|
<span class="ssg-bar-chip">{props.derivedSummary.selectionStatsText}</span>
|
|
2779
2899
|
<span class="ssg-bar-chip">{props.derivedSummary.selectedColumnsText}</span>
|
|
2780
2900
|
</div>
|
|
2781
|
-
<
|
|
2901
|
+
<Show11 when={!props.showCounts}>{aggregates(true)}</Show11>
|
|
2902
|
+
{props.pager}
|
|
2782
2903
|
</div>
|
|
2783
2904
|
</div>;
|
|
2784
2905
|
}
|
|
2785
2906
|
|
|
2786
2907
|
// src/view/CopyRangeOverlay.tsx
|
|
2787
|
-
import { Show as
|
|
2908
|
+
import { Show as Show12 } from "solid-js";
|
|
2788
2909
|
var placement = (props, rect) => ({
|
|
2789
2910
|
position: "absolute",
|
|
2790
2911
|
left: px(props.leadingWidth + rect.left),
|
|
@@ -2793,18 +2914,18 @@ var placement = (props, rect) => ({
|
|
|
2793
2914
|
height: px(rect.height)
|
|
2794
2915
|
});
|
|
2795
2916
|
function CopyRangeOverlay(props) {
|
|
2796
|
-
return <
|
|
2917
|
+
return <Show12 when={props.rect}>
|
|
2797
2918
|
{(rect) => <div
|
|
2798
2919
|
class={["ssg-copy-range-overlay", props.slot?.className]}
|
|
2799
2920
|
style={{ ...props.slot?.style, ...placement(props, rect()) }}
|
|
2800
2921
|
data-ssg-copy-range=""
|
|
2801
2922
|
/>}
|
|
2802
|
-
</
|
|
2923
|
+
</Show12>;
|
|
2803
2924
|
}
|
|
2804
2925
|
function ColumnHoverOverlay(props) {
|
|
2805
|
-
return <
|
|
2926
|
+
return <Show12 when={props.rect}>
|
|
2806
2927
|
{(rect) => <div class="ssg-col-hover-overlay" style={placement(props, rect())} data-ssg-col-hover="" />}
|
|
2807
|
-
</
|
|
2928
|
+
</Show12>;
|
|
2808
2929
|
}
|
|
2809
2930
|
|
|
2810
2931
|
// src/devWarnings.ts
|
|
@@ -2886,6 +3007,8 @@ var FEATURE_PROPS = {
|
|
|
2886
3007
|
],
|
|
2887
3008
|
// 追加(1.13.0 / 範囲の飾り)
|
|
2888
3009
|
rangeDecorations: [{ prop: "rangeDecorations", isUsed: (props) => (props.rangeDecorations?.length ?? 0) > 0 }],
|
|
3010
|
+
// 追加(1.15.0 / ページ送り)
|
|
3011
|
+
pagination: [{ prop: "pagination", isUsed: (props) => props.pagination !== void 0 && props.pagination !== false }],
|
|
2889
3012
|
// 追加(1.10.0 / Excel のキー): 切り取り以外のキーを効かせたとき(切り取りは本体なので、既定の省略では警告しない)。
|
|
2890
3013
|
excelShortcuts: [
|
|
2891
3014
|
{
|
|
@@ -3075,6 +3198,15 @@ function createShellDevWarningsInDev(args) {
|
|
|
3075
3198
|
}
|
|
3076
3199
|
}
|
|
3077
3200
|
);
|
|
3201
|
+
createChangeEffect(args.autoPageSizeWithAutoHeight, (conflict) => {
|
|
3202
|
+
if (conflict) {
|
|
3203
|
+
warnOncePerGrid(
|
|
3204
|
+
warned,
|
|
3205
|
+
"autoPageSizeAutoHeight",
|
|
3206
|
+
"[SpreadsheetGrid] pagination \u306E autoPageSize \u306F autoHeight(\u884C\u306E\u9AD8\u3055\u304C\u5909\u308F\u308B\u8868)\u3067\u306F\u4F7F\u3048\u307E\u305B\u3093\u3002pageSize \u3067\u533A\u5207\u308A\u307E\u3059\u3002\n[SpreadsheetGrid] pagination.autoPageSize does not work with autoHeight (rows of varying height). The grid uses pageSize instead."
|
|
3207
|
+
);
|
|
3208
|
+
}
|
|
3209
|
+
});
|
|
3078
3210
|
createChangeEffect(
|
|
3079
3211
|
() => args.detailRowEnabled() && args.detailExtraCount() > 0 && !args.detailActive(),
|
|
3080
3212
|
(overflow) => {
|
|
@@ -3280,7 +3412,10 @@ var SLOT_CONTEXT_KEYS = Object.keys({
|
|
|
3280
3412
|
globalFilterStatus: true,
|
|
3281
3413
|
globalFilterProgress: true,
|
|
3282
3414
|
selectionAggregates: true,
|
|
3283
|
-
unsavedChanges: true
|
|
3415
|
+
unsavedChanges: true,
|
|
3416
|
+
// 追加(1.15.0): ページ送り(効いていなければ null)と読み込み中。
|
|
3417
|
+
pagination: true,
|
|
3418
|
+
loading: true
|
|
3284
3419
|
});
|
|
3285
3420
|
var DERIVED_SUMMARY_KEYS = Object.keys({
|
|
3286
3421
|
rowSummaryText: true,
|
|
@@ -3763,7 +3898,9 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
3763
3898
|
onWriteStateChange: engine.saveStatus.handle
|
|
3764
3899
|
}));
|
|
3765
3900
|
const refetchingRows = createMemo10(() => isServerSide() && serverSide !== void 0 && serverSide.refetching());
|
|
3766
|
-
const
|
|
3901
|
+
const loading = () => props.loading ?? false;
|
|
3902
|
+
const editLocked = () => readOnly() || refetchingRows() || loading();
|
|
3903
|
+
const editCommitLocked = () => readOnly() || refetchingRows();
|
|
3767
3904
|
const baseRowModel = createMemo10(() => {
|
|
3768
3905
|
if (!isServerSide() || !serverSide) {
|
|
3769
3906
|
return clientRowModel().rowModel;
|
|
@@ -3779,7 +3916,38 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
3779
3916
|
const newRowActive = createMemo10(
|
|
3780
3917
|
() => newRowGiven() && newRowParts !== void 0 && !isServerSide() && props.onRowsChange != null && props.createRow !== void 0 && props.rowKeyGetter !== void 0 && !readOnly() && !newRowHasRowGroup()
|
|
3781
3918
|
);
|
|
3782
|
-
const
|
|
3919
|
+
const paginationParts = features.pagination;
|
|
3920
|
+
const paginationOptions = createMemo10(
|
|
3921
|
+
() => paginationParts ? paginationParts.resolvePaginationOptions(props.pagination) : null
|
|
3922
|
+
);
|
|
3923
|
+
const autoPageSizeWanted = () => paginationOptions()?.autoPageSize === true;
|
|
3924
|
+
const autoPageSizeValue = createMemo10(
|
|
3925
|
+
() => autoPageSizeWanted() && !(props.autoHeight ?? false) && paginationParts ? paginationParts.resolveAutoPageSize(viewportHeight() - headerHeight(), rowHeight()) : null
|
|
3926
|
+
);
|
|
3927
|
+
const baseRowCount = createMemo10(() => baseRowModel().getRowCount());
|
|
3928
|
+
const uiPage = createMemo10(() => ui().page);
|
|
3929
|
+
const uiPageSize = createMemo10(() => ui().pageSize);
|
|
3930
|
+
const pageWindow = createMemo10(
|
|
3931
|
+
() => engine.pagination.resolveWindow({
|
|
3932
|
+
active: paginationOptions() !== null,
|
|
3933
|
+
options: paginationOptions(),
|
|
3934
|
+
rowCount: baseRowCount(),
|
|
3935
|
+
page: uiPage(),
|
|
3936
|
+
pageSize: uiPageSize(),
|
|
3937
|
+
autoPageSize: autoPageSizeValue()
|
|
3938
|
+
})
|
|
3939
|
+
);
|
|
3940
|
+
const pageRowModel = createMemo10(() => engine.pagination.wrapRowModel(baseRowModel(), pageWindow()));
|
|
3941
|
+
const copyPageStart = () => paginationOptions() === null ? 0 : pageWindow()?.firstRow ?? 0;
|
|
3942
|
+
const loadingEmpty = createMemo10(() => loading() && baseRowCount() === 0);
|
|
3943
|
+
const loadingWithRows = createMemo10(() => loading() && baseRowCount() > 0);
|
|
3944
|
+
const newRowShown = createMemo10(() => {
|
|
3945
|
+
const window2 = pageWindow();
|
|
3946
|
+
return newRowActive() && !loadingEmpty() && (window2 === null || window2.page === window2.pageCount - 1);
|
|
3947
|
+
});
|
|
3948
|
+
const rowModel = createMemo10(() => engine.newRow.wrapRowModel(pageRowModel(), newRowShown()));
|
|
3949
|
+
const fullRowModel = createMemo10(() => pageWindow() === null ? rowModel() : baseRowModel());
|
|
3950
|
+
const pageStart = createMemo10(() => rowModel().pageStart ?? 0);
|
|
3783
3951
|
const newRowLayer = createMemo10(() => {
|
|
3784
3952
|
if (!newRowActive() || newRowParts === void 0) {
|
|
3785
3953
|
return void 0;
|
|
@@ -3802,10 +3970,22 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
3802
3970
|
props.canEditCell
|
|
3803
3971
|
) : props.canEditCell;
|
|
3804
3972
|
});
|
|
3805
|
-
const
|
|
3973
|
+
const applyServerSideCellEditsAbsolute = createMemo10(
|
|
3806
3974
|
() => isServerSide() && serverSide?.canUpdateRows() ? serverSide.applyCellEdits : void 0
|
|
3807
3975
|
);
|
|
3976
|
+
const applyServerSideCellEdits = createMemo10(() => {
|
|
3977
|
+
const absolute = applyServerSideCellEditsAbsolute();
|
|
3978
|
+
const offset = pageStart();
|
|
3979
|
+
return absolute === void 0 || offset === 0 ? absolute : (edits, onSettled12) => absolute(
|
|
3980
|
+
edits.map((edit2) => ({ ...edit2, viewIndex: edit2.viewIndex + offset })),
|
|
3981
|
+
onSettled12
|
|
3982
|
+
);
|
|
3983
|
+
});
|
|
3808
3984
|
const viewRowCount = createMemo10(() => rowModel().getRowCount());
|
|
3985
|
+
const ariaBodyRowCount = createMemo10(() => {
|
|
3986
|
+
const window2 = pageWindow();
|
|
3987
|
+
return window2 === null ? viewRowCount() : window2.rowCount + (newRowActive() && !loadingEmpty() ? 1 : 0);
|
|
3988
|
+
});
|
|
3809
3989
|
const viewColCount = () => orderedColumns().length;
|
|
3810
3990
|
const order = () => orderResolution().order;
|
|
3811
3991
|
const groupTree = () => clientRowModel().groupTree;
|
|
@@ -3817,7 +3997,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
3817
3997
|
if (tree) {
|
|
3818
3998
|
return tree.visibility.matchedCount;
|
|
3819
3999
|
}
|
|
3820
|
-
return clientRowModel().groupedDisplay || clientRowModel().labelDisplay || removedViewIndexes() ? order().length :
|
|
4000
|
+
return clientRowModel().groupedDisplay || clientRowModel().labelDisplay || removedViewIndexes() ? order().length : baseRowCount();
|
|
3821
4001
|
});
|
|
3822
4002
|
const handleGroupToggle = (groupKey) => dispatch(gridActions.toggleGroupCollapsed(groupKey));
|
|
3823
4003
|
const groupingFeature2 = features.grouping;
|
|
@@ -3850,18 +4030,32 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
3850
4030
|
{ name: "moveActiveCellOffRemovedRow" }
|
|
3851
4031
|
);
|
|
3852
4032
|
const autoHeightSnapshot = createExternalStoreSignal(engine.autoHeightMeasurer, "autoHeightStore");
|
|
4033
|
+
const loadingPlaceholderCount = createMemo10(
|
|
4034
|
+
() => loadingEmpty() ? resolveLoadingPlaceholderRows(viewportHeight() - headerHeight(), rowHeight()) : 0
|
|
4035
|
+
);
|
|
4036
|
+
const loadingPlaceholderModel = createMemo10(() => {
|
|
4037
|
+
const count = loadingPlaceholderCount();
|
|
4038
|
+
return count > 0 ? createLoadingPlaceholderRowModel(count) : null;
|
|
4039
|
+
});
|
|
4040
|
+
const layoutRowModel = createMemo10(() => loadingPlaceholderModel() ?? rowModel());
|
|
4041
|
+
const layoutRowCount = createMemo10(() => loadingPlaceholderModel() ? loadingPlaceholderCount() : viewRowCount());
|
|
4042
|
+
const pageLabelDisplay = createMemo10(() => {
|
|
4043
|
+
const display = labelDisplay();
|
|
4044
|
+
const window2 = pageWindow();
|
|
4045
|
+
return display && window2 ? sliceLabelDisplayForPage(display, window2) : display;
|
|
4046
|
+
});
|
|
3853
4047
|
const vertical = createMemo10(
|
|
3854
4048
|
() => engine.resolveVerticalLayout({
|
|
3855
4049
|
isServerSide: isServerSide(),
|
|
3856
4050
|
autoHeight: props.autoHeight ?? false,
|
|
3857
4051
|
visibleColumns: visibleColumns(),
|
|
3858
|
-
viewRowCount:
|
|
4052
|
+
viewRowCount: layoutRowCount(),
|
|
3859
4053
|
estimateRowHeight: props.estimateRowHeight ?? rowHeight(),
|
|
3860
4054
|
rowHeight: rowHeight(),
|
|
3861
4055
|
headerHeight: headerHeight(),
|
|
3862
4056
|
viewportHeight: viewportHeight(),
|
|
3863
4057
|
scrollTop: viewScrollTop(),
|
|
3864
|
-
rowModel:
|
|
4058
|
+
rowModel: layoutRowModel(),
|
|
3865
4059
|
measuredHeights: engine.autoHeightMeasurer.measuredHeights,
|
|
3866
4060
|
autoHeightVersion: autoHeightSnapshot().version,
|
|
3867
4061
|
detailRowEnabled: detailRowEnabled(),
|
|
@@ -3869,7 +4063,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
3869
4063
|
detailHeight: props.detailRow?.height ?? DEFAULT_DETAIL_ROW_HEIGHT,
|
|
3870
4064
|
detailIsExpandable: props.detailRow?.isExpandable,
|
|
3871
4065
|
detailIndexCacheRef: engine.detailIndexCache,
|
|
3872
|
-
labelDisplay:
|
|
4066
|
+
labelDisplay: pageLabelDisplay(),
|
|
3873
4067
|
labelRowHeight: labelRowHeightOption(),
|
|
3874
4068
|
maxBodyPx: viewMaxBodyPx()
|
|
3875
4069
|
})
|
|
@@ -3886,6 +4080,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
3886
4080
|
detailRowEnabled,
|
|
3887
4081
|
detailExtraCount: () => vertical().detailExtras.length,
|
|
3888
4082
|
detailActive: () => vertical().detailActive,
|
|
4083
|
+
// 追加(1.15.0 / ページ送り): autoPageSize は行の高さが変わる表では使えない(pageSize で区切る)。
|
|
4084
|
+
autoPageSizeWithAutoHeight: () => autoPageSizeWanted() && (props.autoHeight ?? false),
|
|
3889
4085
|
maxBodyPx: () => viewMaxBodyPx() ?? MAX_BODY_PX,
|
|
3890
4086
|
globalFilterText,
|
|
3891
4087
|
columnFilterCount: () => Object.keys(columnFilters()).length,
|
|
@@ -3942,17 +4138,44 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
3942
4138
|
return structure ? [...warnings, ...parts.describeTreeStructureProblems(structure)] : warnings;
|
|
3943
4139
|
}
|
|
3944
4140
|
});
|
|
4141
|
+
const carriedStickyLabel = createMemo10(() => {
|
|
4142
|
+
const display = labelDisplay();
|
|
4143
|
+
const window2 = pageWindow();
|
|
4144
|
+
if (!labelSticky() || !display || !window2 || !labelRowFeature2) {
|
|
4145
|
+
return null;
|
|
4146
|
+
}
|
|
4147
|
+
const index = resolveCarriedLabelIndex(display.labelViewIndexes, window2);
|
|
4148
|
+
const base = baseRowModel();
|
|
4149
|
+
const descriptor = index >= 0 ? base.getLabelRow?.(index) : void 0;
|
|
4150
|
+
if (!descriptor) {
|
|
4151
|
+
return null;
|
|
4152
|
+
}
|
|
4153
|
+
const heightOption = labelRowHeightOption();
|
|
4154
|
+
const height = typeof heightOption === "function" ? heightOption(descriptor.row) : heightOption ?? rowHeight();
|
|
4155
|
+
return {
|
|
4156
|
+
viewIndex: index - window2.firstRow,
|
|
4157
|
+
height,
|
|
4158
|
+
descriptor,
|
|
4159
|
+
rowKey: base.getRowKey(index) ?? index
|
|
4160
|
+
};
|
|
4161
|
+
});
|
|
3945
4162
|
const stickyLabelIndexes = createMemo10(() => {
|
|
3946
|
-
const indexes =
|
|
3947
|
-
|
|
4163
|
+
const indexes = pageLabelDisplay()?.labelViewIndexes;
|
|
4164
|
+
if (!labelSticky() || !labelRowFeature2 || !indexes) {
|
|
4165
|
+
return null;
|
|
4166
|
+
}
|
|
4167
|
+
return indexes.length > 0 || carriedStickyLabel() !== null ? indexes : null;
|
|
3948
4168
|
});
|
|
3949
4169
|
const stickyLabelEntry = createMemo10(() => {
|
|
3950
4170
|
const indexes = stickyLabelIndexes();
|
|
3951
4171
|
if (!indexes || !labelRowFeature2) {
|
|
3952
4172
|
return null;
|
|
3953
4173
|
}
|
|
3954
|
-
const
|
|
4174
|
+
const carriedLabel = carriedStickyLabel();
|
|
4175
|
+
const resolution = resolvePagedStickyLabel(
|
|
4176
|
+
labelRowFeature2.resolveStickyLabel,
|
|
3955
4177
|
indexes,
|
|
4178
|
+
carriedLabel,
|
|
3956
4179
|
vertical().rowMetrics,
|
|
3957
4180
|
physicalToLogicalScrollTop(viewScrollTop(), vertical().verticalScaleFactor)
|
|
3958
4181
|
);
|
|
@@ -3960,14 +4183,15 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
3960
4183
|
return null;
|
|
3961
4184
|
}
|
|
3962
4185
|
const model = rowModel();
|
|
3963
|
-
const
|
|
4186
|
+
const carried = carriedLabel !== null && resolution.labelViewIndex === carriedLabel.viewIndex;
|
|
4187
|
+
const descriptor = carried ? carriedLabel.descriptor : model.getLabelRow?.(resolution.labelViewIndex);
|
|
3964
4188
|
if (!descriptor) {
|
|
3965
4189
|
return null;
|
|
3966
4190
|
}
|
|
3967
4191
|
return {
|
|
3968
4192
|
labelRow: descriptor,
|
|
3969
4193
|
rowIndex: resolution.labelViewIndex,
|
|
3970
|
-
rowKey: model.getRowKey(resolution.labelViewIndex) ?? resolution.labelViewIndex,
|
|
4194
|
+
rowKey: carried ? carriedLabel.rowKey : model.getRowKey(resolution.labelViewIndex) ?? resolution.labelViewIndex,
|
|
3971
4195
|
height: resolution.height,
|
|
3972
4196
|
pushOffset: resolution.pushOffset
|
|
3973
4197
|
};
|
|
@@ -3979,18 +4203,20 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
3979
4203
|
return void 0;
|
|
3980
4204
|
}
|
|
3981
4205
|
const rowMetrics = vertical().rowMetrics;
|
|
4206
|
+
const carriedLabel = carriedStickyLabel();
|
|
4207
|
+
const resolveAt = (top) => resolvePagedStickyLabel(feature.resolveStickyLabel, indexes, carriedLabel, rowMetrics, top);
|
|
3982
4208
|
return {
|
|
3983
4209
|
visibleAt: (logicalScrollTop) => {
|
|
3984
|
-
const resolution =
|
|
4210
|
+
const resolution = resolveAt(logicalScrollTop);
|
|
3985
4211
|
return resolution ? Math.max(resolution.height - resolution.pushOffset, 0) : 0;
|
|
3986
4212
|
},
|
|
3987
4213
|
// 上端が rowTop の行を可視域の先頭に置いたときの帯(その行が属するセクションのラベル。行がラベル行なら無し)。
|
|
3988
|
-
coveringRowAt: (rowTop) =>
|
|
4214
|
+
coveringRowAt: (rowTop) => resolveAt(rowTop)?.height ?? 0
|
|
3989
4215
|
};
|
|
3990
4216
|
});
|
|
3991
4217
|
const conditionalFormatFeature2 = features.conditionalFormat;
|
|
3992
4218
|
const multiSelectParts = features.multiSelect;
|
|
3993
|
-
const conditionalFormatStats = createMemo10(() => engine.resolveConditionalFormatStats(
|
|
4219
|
+
const conditionalFormatStats = createMemo10(() => engine.resolveConditionalFormatStats(fullRowModel(), orderedColumns()));
|
|
3994
4220
|
const totalRowCells = createMemo10(
|
|
3995
4221
|
() => totalRowEnabled() ? engine.resolveTotalRowCells({
|
|
3996
4222
|
rows: rows(),
|
|
@@ -4032,7 +4258,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4032
4258
|
if (!chipFeature) {
|
|
4033
4259
|
return void 0;
|
|
4034
4260
|
}
|
|
4035
|
-
const model =
|
|
4261
|
+
const model = fullRowModel();
|
|
4036
4262
|
const columnsNow = orderedColumns();
|
|
4037
4263
|
const keyGetter = resolvedRowKeyGetter();
|
|
4038
4264
|
const topCount = pinnedTopCount();
|
|
@@ -4080,7 +4306,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4080
4306
|
};
|
|
4081
4307
|
});
|
|
4082
4308
|
const columnAutosize = columnAutosizeFeature2?.createColumnAutosize(() => ({
|
|
4083
|
-
|
|
4309
|
+
// 変更(1.15.0 / ページ送り): 全ページの行で測ります(ページを替えても列の幅が変わらないように)。
|
|
4310
|
+
rowModel: fullRowModel(),
|
|
4084
4311
|
gridRootRef,
|
|
4085
4312
|
columnWidths: paneResolution().effectiveColumnWidths,
|
|
4086
4313
|
dispatch,
|
|
@@ -4128,8 +4355,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4128
4355
|
const autoHeightActive = createMemo10(() => vertical().autoHeightActive);
|
|
4129
4356
|
const bodyRows = createMemo10(() => {
|
|
4130
4357
|
const { virtualRows, virtualRowIndexes } = vertical();
|
|
4131
|
-
const model =
|
|
4132
|
-
const serverSideActive = isServerSide();
|
|
4358
|
+
const model = layoutRowModel();
|
|
4359
|
+
const serverSideActive = isServerSide() || loadingEmpty();
|
|
4133
4360
|
const items = [];
|
|
4134
4361
|
const entryIndex = model.newRow?.index ?? -1;
|
|
4135
4362
|
for (const virtualRow of virtualRows) {
|
|
@@ -4224,12 +4451,12 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4224
4451
|
const windowFirstRow = createMemo10(() => vertical().windowFirstRow);
|
|
4225
4452
|
const windowLastRow = createMemo10(() => vertical().windowLastRow);
|
|
4226
4453
|
createEffect4(
|
|
4227
|
-
() => [isServerSide(), windowFirstRow(), windowLastRow(), serverSideQueryKey()],
|
|
4228
|
-
([serverSideActive, firstRow, lastRow]) => {
|
|
4454
|
+
() => [isServerSide(), windowFirstRow(), windowLastRow(), pageStart(), serverSideQueryKey()],
|
|
4455
|
+
([serverSideActive, firstRow, lastRow, offset]) => {
|
|
4229
4456
|
if (!serverSideActive || !serverSide || lastRow < firstRow) {
|
|
4230
4457
|
return;
|
|
4231
4458
|
}
|
|
4232
|
-
serverSide.requestRange(firstRow, lastRow + 1);
|
|
4459
|
+
serverSide.requestRange(firstRow + offset, lastRow + 1 + offset);
|
|
4233
4460
|
},
|
|
4234
4461
|
{ name: "serverSideRequestRange" }
|
|
4235
4462
|
);
|
|
@@ -4346,7 +4573,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4346
4573
|
filters: state.filters,
|
|
4347
4574
|
collapsedGroupKeys: state.collapsedGroupKeys,
|
|
4348
4575
|
viewRowCount: viewRowCount(),
|
|
4349
|
-
columns: orderedColumnKeys()
|
|
4576
|
+
columns: orderedColumnKeys(),
|
|
4577
|
+
pageStart: copyPageStart()
|
|
4350
4578
|
}) ? copied.selection : null;
|
|
4351
4579
|
});
|
|
4352
4580
|
const copiedExtents = createMemo10(() => resolveSelectionExtents(copiedSelection(), paneLayout(), viewRowCount()));
|
|
@@ -4414,10 +4642,15 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4414
4642
|
enableRowHover: enableRowHover(),
|
|
4415
4643
|
isHoverControlled: props.hoveredRowIndex !== void 0,
|
|
4416
4644
|
onHoveredRowChange: inOwnTick(props.onHoveredRowChange),
|
|
4417
|
-
setHoveredRowIndex: viewSetters.setHoveredRowIndex
|
|
4645
|
+
setHoveredRowIndex: viewSetters.setHoveredRowIndex,
|
|
4646
|
+
// 追加(1.15.0 / ページ送り): 通知する行の番号は通し番号(ホバーの行はページの中の番号)。
|
|
4647
|
+
rowOffset: pageStart()
|
|
4418
4648
|
}), "render", "hoverRowNotifier");
|
|
4419
4649
|
const applyHoveredRowChange = engine.hoverRowNotifier.applyHoveredRowChange;
|
|
4420
|
-
const resolvedHoveredRowIndex = () => !enableRowHover() ? null : props.hoveredRowIndex !== void 0 ?
|
|
4650
|
+
const resolvedHoveredRowIndex = () => !enableRowHover() ? null : props.hoveredRowIndex !== void 0 ? (
|
|
4651
|
+
// 追加(1.15.0 / ページ送り): hoveredRowIndex prop は通し番号。行はページの中の番号で比べます。
|
|
4652
|
+
props.hoveredRowIndex === null ? null : props.hoveredRowIndex - pageStart()
|
|
4653
|
+
) : view().hoveredRowIndex;
|
|
4421
4654
|
const viewportSync = createViewportSyncController();
|
|
4422
4655
|
const scaleAnchor = createScrollScaleAnchor();
|
|
4423
4656
|
connectController(
|
|
@@ -4489,7 +4722,9 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4489
4722
|
});
|
|
4490
4723
|
const rowSelectionCommands = engine.rowSelectionCommands;
|
|
4491
4724
|
connectController(rowSelectionCommands, () => ({
|
|
4492
|
-
|
|
4725
|
+
// 変更(1.15.0 / ページ送り): 区切る前の行モデルと、ページの先頭の行の通し番号(Shift の範囲はページをまたげる)。
|
|
4726
|
+
rowModel: fullRowModel(),
|
|
4727
|
+
rowOffset: pageStart(),
|
|
4493
4728
|
rowSelectionState: ui().rowSelection,
|
|
4494
4729
|
rowSelectionMode: rowSelectionMode(),
|
|
4495
4730
|
onRowSelectionChange: inOwnTick(props.onRowSelectionChange),
|
|
@@ -4657,7 +4892,10 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4657
4892
|
onGutterRowSelectDrag: rowSelectionCommands.handleGutterRowSelectDrag
|
|
4658
4893
|
}), "render", "pointer");
|
|
4659
4894
|
const history = createHistoryController();
|
|
4660
|
-
const historyRowLocator = createMemo10(() =>
|
|
4895
|
+
const historyRowLocator = createMemo10(() => {
|
|
4896
|
+
const locator = createHistoryRowLocator(fullRowModel(), treeStage());
|
|
4897
|
+
return pageWindow() === null ? locator : pageHistoryRowLocator(locator, pageStart(), engine.pagination.reveal);
|
|
4898
|
+
});
|
|
4661
4899
|
connectController(history, () => ({
|
|
4662
4900
|
rows: rows(),
|
|
4663
4901
|
selection: ui().selection,
|
|
@@ -4665,7 +4903,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4665
4903
|
onRowsChange: inOwnTick(props.onRowsChange),
|
|
4666
4904
|
dispatch,
|
|
4667
4905
|
// サーバーサイドは rows を持たず戻す先が無いので無効(React 版と同じ)。
|
|
4668
|
-
|
|
4906
|
+
// 変更(1.15.0 のレビュー): 読み込み中(loading)も止めます(差し替わる行へ戻さない。積んだ履歴は消さない)。
|
|
4907
|
+
enabled: (props.enableUndoRedo ?? true) && !readOnly() && !loading() && !isServerSide(),
|
|
4669
4908
|
limit: props.undoHistoryLimit ?? 100,
|
|
4670
4909
|
onUndoRedoStateChange: inOwnTick(props.onUndoRedoStateChange),
|
|
4671
4910
|
onAfterRestore: (activeCell) => {
|
|
@@ -4815,6 +5054,34 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4815
5054
|
"effect",
|
|
4816
5055
|
"newRowDraftNotifier"
|
|
4817
5056
|
);
|
|
5057
|
+
const paginationActiveRow = createMemo10(() => ui().activeCell?.row);
|
|
5058
|
+
connectController(engine.pagination, () => {
|
|
5059
|
+
void uiPage();
|
|
5060
|
+
void uiPageSize();
|
|
5061
|
+
if (paginationOptions() !== null) {
|
|
5062
|
+
void paginationActiveRow();
|
|
5063
|
+
}
|
|
5064
|
+
return {
|
|
5065
|
+
window: pageWindow(),
|
|
5066
|
+
options: paginationOptions(),
|
|
5067
|
+
dispatch,
|
|
5068
|
+
getUiState: store.getState,
|
|
5069
|
+
scrollContainerRef,
|
|
5070
|
+
markApiScroll: engine.scrollSync.markApiScroll,
|
|
5071
|
+
onPageChange: inOwnTick(props.onPageChange),
|
|
5072
|
+
hasNewRow: newRowActive() && !loadingEmpty()
|
|
5073
|
+
};
|
|
5074
|
+
}, "render", "pagination");
|
|
5075
|
+
connectController(
|
|
5076
|
+
{ update: () => engine.pagination.notify() },
|
|
5077
|
+
() => {
|
|
5078
|
+
void pageWindow();
|
|
5079
|
+
void props.onPageChange;
|
|
5080
|
+
return null;
|
|
5081
|
+
},
|
|
5082
|
+
"effect",
|
|
5083
|
+
"paginationNotifier"
|
|
5084
|
+
);
|
|
4818
5085
|
const cells = createCellCommands();
|
|
4819
5086
|
const { selectEntireGrid, clearSelectedCells, tryStartEdit: tryStartEditCell } = cells;
|
|
4820
5087
|
const orderedColumnKeys = createMemo10(() => orderedColumns().map((column) => column.key).join("\0"));
|
|
@@ -4848,7 +5115,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4848
5115
|
filters: state.filters,
|
|
4849
5116
|
collapsedGroupKeys: state.collapsedGroupKeys,
|
|
4850
5117
|
viewRowCount: untrack13(viewRowCount),
|
|
4851
|
-
columns: untrack13(orderedColumnKeys)
|
|
5118
|
+
columns: untrack13(orderedColumnKeys),
|
|
5119
|
+
pageStart: untrack13(copyPageStart)
|
|
4852
5120
|
},
|
|
4853
5121
|
...cut === void 0 ? {} : { cut }
|
|
4854
5122
|
}
|
|
@@ -4863,7 +5131,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4863
5131
|
filters: state.filters,
|
|
4864
5132
|
collapsedGroupKeys: state.collapsedGroupKeys,
|
|
4865
5133
|
viewRowCount: untrack13(viewRowCount),
|
|
4866
|
-
columns: untrack13(orderedColumnKeys)
|
|
5134
|
+
columns: untrack13(orderedColumnKeys),
|
|
5135
|
+
pageStart: untrack13(copyPageStart)
|
|
4867
5136
|
}) ? copied : null;
|
|
4868
5137
|
},
|
|
4869
5138
|
onCutPasted: () => store.setViewState({ copiedRange: null }),
|
|
@@ -4944,7 +5213,9 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4944
5213
|
const treeRowModel = findTreeRowModel();
|
|
4945
5214
|
return {
|
|
4946
5215
|
enabled: findEnabled(),
|
|
4947
|
-
|
|
5216
|
+
// 変更(1.15.0 / ページ送り): 全ページを探します(当たりの行は通し番号。ほかのページの当たりへはハンドルの selectCell がページを
|
|
5217
|
+
// 替えて移る。React 版と同じ)。
|
|
5218
|
+
rowModel: treeRowModel ?? fullRowModel(),
|
|
4948
5219
|
columns: orderedColumns(),
|
|
4949
5220
|
caseSensitive: findOptions()?.caseSensitive ?? false,
|
|
4950
5221
|
// 条件付き書式の機能が無ければチップもデータバーも描かれないので、値の文字を探す(React 版 1.0.2 / QB-1)。
|
|
@@ -4979,7 +5250,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4979
5250
|
enabled: findReplaceEnabled(),
|
|
4980
5251
|
find: engine.find,
|
|
4981
5252
|
rows: rows(),
|
|
4982
|
-
rowModel: treeRowModel ??
|
|
5253
|
+
rowModel: treeRowModel ?? fullRowModel(),
|
|
4983
5254
|
columns: orderedColumns(),
|
|
4984
5255
|
caseSensitive: findOptions()?.caseSensitive ?? false,
|
|
4985
5256
|
conditionalFormat: conditionalFormatFeature2 !== void 0,
|
|
@@ -4990,8 +5261,13 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
4990
5261
|
canEditCell: canEditCell(),
|
|
4991
5262
|
// 履歴付きの onRowsChange(元に戻すが 1 回・変更の追跡の印も付く)。
|
|
4992
5263
|
commitRows: (nextRows) => handleRowsChange()?.(nextRows),
|
|
4993
|
-
|
|
4994
|
-
|
|
5264
|
+
// 変更(1.15.0 / ページ送り): 選んだ範囲は通し番号で(探す行モデルが全ページのため。React 版と同じ)。
|
|
5265
|
+
getSelection: () => {
|
|
5266
|
+
const offset = untrack13(pageStart);
|
|
5267
|
+
const selection = store.getState().selection;
|
|
5268
|
+
return offset === 0 ? selection : shiftSelectionRows({ activeCell: null, selection }, offset).selection;
|
|
5269
|
+
},
|
|
5270
|
+
viewRowCount: fullRowModel().getRowCount(),
|
|
4995
5271
|
viewSignature: [state.sort, state.filters, state.collapsedGroupKeys, orderedColumnKeys()]
|
|
4996
5272
|
};
|
|
4997
5273
|
}, "render", "findReplace");
|
|
@@ -5013,7 +5289,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5013
5289
|
return null;
|
|
5014
5290
|
}
|
|
5015
5291
|
const v = vertical();
|
|
5016
|
-
return resolveRowRunsPaneRects(findScopeRowRuns(scope), scope.startCol, scope.endCol, {
|
|
5292
|
+
return resolveRowRunsPaneRects(shiftRowRunsToPage(findScopeRowRuns(scope), pageStart(), viewRowCount()), scope.startCol, scope.endCol, {
|
|
5017
5293
|
paneLayout: paneLayout(),
|
|
5018
5294
|
viewRowCount: viewRowCount(),
|
|
5019
5295
|
windowFirstRow: v.windowFirstRow,
|
|
@@ -5322,7 +5598,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5322
5598
|
dispatch,
|
|
5323
5599
|
gridRootRef,
|
|
5324
5600
|
editorActionGuardRef,
|
|
5325
|
-
readOnly:
|
|
5601
|
+
readOnly: editCommitLocked(),
|
|
5602
|
+
startLocked: loading(),
|
|
5326
5603
|
canEditCell: canEditCell(),
|
|
5327
5604
|
localeTexts: localeTexts(),
|
|
5328
5605
|
followsRow: activeRowFollowEnabled(),
|
|
@@ -5595,7 +5872,10 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5595
5872
|
}
|
|
5596
5873
|
commitRowMove(fromIndex, toIndex);
|
|
5597
5874
|
};
|
|
5598
|
-
const commitRowMoveFromDrag = (
|
|
5875
|
+
const commitRowMoveFromDrag = (pageFromIndex, pageToIndex) => {
|
|
5876
|
+
const offset = untrack13(pageStart);
|
|
5877
|
+
const fromIndex = pageFromIndex + offset;
|
|
5878
|
+
const toIndex = pageToIndex + offset;
|
|
5599
5879
|
const moved = commitRowMove(fromIndex, toIndex);
|
|
5600
5880
|
applyHoveredRowChange(null);
|
|
5601
5881
|
const columnsNow = orderedColumns();
|
|
@@ -5671,14 +5951,15 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5671
5951
|
rows,
|
|
5672
5952
|
resolveRowKey: resolvedRowKeyGetter,
|
|
5673
5953
|
hasRowKeys: () => props.rowKeyGetter !== void 0,
|
|
5674
|
-
dragRowLabel: () => localeTexts().dragRowLabel
|
|
5954
|
+
dragRowLabel: () => localeTexts().dragRowLabel,
|
|
5955
|
+
rowOffset: pageStart
|
|
5675
5956
|
});
|
|
5676
|
-
const renderRowDropIndicator = (pane, cap) => rowDrag ? <
|
|
5957
|
+
const renderRowDropIndicator = (pane, cap) => rowDrag ? <Show13 when={rowDragAvailable()}>
|
|
5677
5958
|
<div
|
|
5678
5959
|
ref={(element) => rowDrag.setIndicator(pane, element)}
|
|
5679
5960
|
class={["ssg-row-drop-indicator", { "ssg-row-drop-indicator--cap": cap() }]}
|
|
5680
5961
|
/>
|
|
5681
|
-
</
|
|
5962
|
+
</Show13> : null;
|
|
5682
5963
|
const handleCornerHeaderPointerDown = (event) => {
|
|
5683
5964
|
event.preventDefault();
|
|
5684
5965
|
if (event.button !== 0) {
|
|
@@ -5739,6 +6020,14 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5739
6020
|
focusGrid: () => gridRootRef.current?.focus({ preventScroll: true }),
|
|
5740
6021
|
beforeDetailRowsCollapse: detailRows.returnFocusFromCards,
|
|
5741
6022
|
startEditCell: tryStartEditCell,
|
|
6023
|
+
// 追加(1.15.0 / ページ送り): ほかのページのセルの編集を始められるか(ページを替える前に確かめる)と、ページ送りの接続(React 版と同じ)。
|
|
6024
|
+
canStartEditCell: cells.canStartEdit,
|
|
6025
|
+
pagination: pageWindow() === null ? null : {
|
|
6026
|
+
controller: engine.pagination,
|
|
6027
|
+
fullRowModel: baseRowModel(),
|
|
6028
|
+
hasNewRow: newRowActive() && !loadingEmpty(),
|
|
6029
|
+
applyServerSideCellEdits: applyServerSideCellEditsAbsolute()
|
|
6030
|
+
},
|
|
5742
6031
|
// 列のグループ(1.6.0): setColumnGroupOpen / getState の closedColumnGroups / エクスポートの段。
|
|
5743
6032
|
columnGroupTree: columnGroupTree(),
|
|
5744
6033
|
headerHeight: headerHeight(),
|
|
@@ -5755,6 +6044,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5755
6044
|
isServerSide: isServerSide(),
|
|
5756
6045
|
serverSideRefresh: serverSide?.refresh ?? noop3,
|
|
5757
6046
|
serverSideRetryFailed: serverSide?.retryFailedBlocks ?? noop3,
|
|
6047
|
+
serverSideLoading: serverSide?.isLoading,
|
|
5758
6048
|
resolvedRowKeyGetter: resolvedRowKeyGetter(),
|
|
5759
6049
|
isRowExportable: props.isRowExportable,
|
|
5760
6050
|
labelRowExport: labelRowExport(),
|
|
@@ -5785,6 +6075,9 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5785
6075
|
canRedoRows: history.canRedo,
|
|
5786
6076
|
clearUndoHistory: history.clearHistory,
|
|
5787
6077
|
applyRowsChange: props.onRowsChange ? history.applyRows : void 0,
|
|
6078
|
+
// 追加(1.14.0): setCellValues の書いてよいセルの判定と、serverSide の書き込み口(React 版と同じ)。
|
|
6079
|
+
canEditCell: canEditCell(),
|
|
6080
|
+
applyServerSideCellEdits: applyServerSideCellEdits(),
|
|
5788
6081
|
// 追加(1.8.0): 変更の追跡(getChanges / markChangesSaved / revertChanges の委譲先)。
|
|
5789
6082
|
changeTracker,
|
|
5790
6083
|
changeTrackingActive: changeTrackingActive(),
|
|
@@ -5850,6 +6143,14 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5850
6143
|
// 段の memo を読みません(読むとこの effect がほかの通知の effect の後ろに回り、onColumnGroupOpenChange との順番が
|
|
5851
6144
|
// React 版と変わっていた)。
|
|
5852
6145
|
closedTreeRows: treeDataActive() ? treeClosedRowKeys() : null,
|
|
6146
|
+
// 追加(1.15.0 のレビュー): ページと 1 ページの行の数(ページ送りのときだけ状態に入る。getState と同じ今のページ)。ページ送りの
|
|
6147
|
+
// 無い表ではページの memo を読みません(木の段と同じく、読むとこの effect の順番が React 版と変わる)。
|
|
6148
|
+
...paginationOptions() === null ? null : {
|
|
6149
|
+
// 変更(1.15.0 の実アプリの点検): 行が 0 の間(読み込み前)は store に残しているページ(initialState のページ)。
|
|
6150
|
+
page: resolveStatePage(pageWindow()),
|
|
6151
|
+
pageSize: pageWindow()?.pageSize,
|
|
6152
|
+
pageProvisional: pageWindow()?.provisional === true
|
|
6153
|
+
},
|
|
5853
6154
|
onStateChange: inOwnTick(props.onStateChange),
|
|
5854
6155
|
onFiltersChange: inOwnTick(props.onFiltersChange),
|
|
5855
6156
|
onSortChange: inOwnTick(props.onSortChange)
|
|
@@ -5903,6 +6204,12 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5903
6204
|
})
|
|
5904
6205
|
);
|
|
5905
6206
|
const rowNumberer = createMemo10(() => createDataRowNumberer(labelViewIndexes()));
|
|
6207
|
+
const barSelection = createMemo10(() => {
|
|
6208
|
+
const offset = pageStart();
|
|
6209
|
+
const activeCell = ui().activeCell;
|
|
6210
|
+
const selection = ui().selection;
|
|
6211
|
+
return offset === 0 ? { activeCell, selection } : shiftSelectionRows({ activeCell, selection }, offset);
|
|
6212
|
+
});
|
|
5906
6213
|
const slotContextBase = createMemo10(() => ({
|
|
5907
6214
|
rows: rows(),
|
|
5908
6215
|
columns: props.columns,
|
|
@@ -5910,8 +6217,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5910
6217
|
globalFilterText: globalFilterText(),
|
|
5911
6218
|
columnFilterValues: columnFilters(),
|
|
5912
6219
|
sortState: ui().sort,
|
|
5913
|
-
activeCell:
|
|
5914
|
-
selection:
|
|
6220
|
+
activeCell: barSelection().activeCell,
|
|
6221
|
+
selection: barSelection().selection
|
|
5915
6222
|
}));
|
|
5916
6223
|
const derivedSummary = createMemo10(() => {
|
|
5917
6224
|
const titles = columnTitles();
|
|
@@ -5927,7 +6234,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5927
6234
|
// 件数はグループ行 / ラベル行を除くデータ行の数(slotContext.filteredRows と同じ)。分母(総データ行数)はラベル行を除く
|
|
5928
6235
|
// (ラベル行が無ければ rows の数)。サーバーサイドは rows が空なので、サーバーが返した今の条件での件数(React 版と同じ)。
|
|
5929
6236
|
leafRowCount(),
|
|
5930
|
-
|
|
6237
|
+
// 変更(1.15.0 / ページ送り): サーバーサイドの分母は区切る前の行の数(React 版と同じ)。
|
|
6238
|
+
isServerSide() ? baseRowCount() : labelLayout()?.dataRowCount,
|
|
5931
6239
|
columnNamer(),
|
|
5932
6240
|
rowNumberer(),
|
|
5933
6241
|
localeTexts()
|
|
@@ -5944,6 +6252,21 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5944
6252
|
rowModel: rowModel()
|
|
5945
6253
|
})) : () => null;
|
|
5946
6254
|
const liveDerivedSummary = createLiveObject(DERIVED_SUMMARY_KEYS, derivedSummary);
|
|
6255
|
+
const paginationContext = createMemo10(() => {
|
|
6256
|
+
const window2 = pageWindow();
|
|
6257
|
+
const options = paginationOptions();
|
|
6258
|
+
return window2 === null || options === null ? null : {
|
|
6259
|
+
page: window2.page,
|
|
6260
|
+
pageCount: window2.pageCount,
|
|
6261
|
+
pageSize: window2.pageSize,
|
|
6262
|
+
rowCount: window2.rowCount,
|
|
6263
|
+
firstRow: window2.firstRow,
|
|
6264
|
+
pageSizeOptions: options.pageSizeOptions,
|
|
6265
|
+
// ハンドルと同じ(編集中ならエディタを確定してから替える)。
|
|
6266
|
+
setPage: engine.gridApi.handle.setPage,
|
|
6267
|
+
setPageSize: engine.gridApi.handle.setPageSize
|
|
6268
|
+
};
|
|
6269
|
+
});
|
|
5947
6270
|
const slotContext = createMemo10(() => {
|
|
5948
6271
|
const filteredRows = getFilteredRows();
|
|
5949
6272
|
return {
|
|
@@ -5957,7 +6280,10 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5957
6280
|
globalFilterProgress: globalFilterProgress(),
|
|
5958
6281
|
selectionAggregates: selectionAggregates(),
|
|
5959
6282
|
// 追加(1.8.0): 変更の追跡の件数(効いていなければ null)。
|
|
5960
|
-
unsavedChanges: unsavedChanges()
|
|
6283
|
+
unsavedChanges: unsavedChanges(),
|
|
6284
|
+
// 追加(1.15.0): ページ送り(効いていなければ null)と読み込み中。
|
|
6285
|
+
pagination: paginationContext(),
|
|
6286
|
+
loading: loading()
|
|
5961
6287
|
};
|
|
5962
6288
|
});
|
|
5963
6289
|
const liveSlotContext = createLiveObject(SLOT_CONTEXT_KEYS, slotContext);
|
|
@@ -5973,10 +6299,10 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5973
6299
|
});
|
|
5974
6300
|
const showTopBarSummary = () => props.showTopBarSummary ?? true;
|
|
5975
6301
|
const showTopBarFilter = () => (props.showTopBarFilter ?? true) && globalFilterEnabled();
|
|
5976
|
-
const topBar = () => <
|
|
5977
|
-
<
|
|
6302
|
+
const topBar = () => <Show13 when={props.showTopBar ?? true}>
|
|
6303
|
+
<Show13
|
|
5978
6304
|
when={renderTopBarFn() !== void 0}
|
|
5979
|
-
fallback={<
|
|
6305
|
+
fallback={<Show13 when={showTopBarSummary() || showTopBarFilter()}>
|
|
5980
6306
|
<DefaultGridTopBar
|
|
5981
6307
|
slot={slots().toolbar}
|
|
5982
6308
|
derivedSummary={derivedSummary()}
|
|
@@ -5989,12 +6315,13 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
5989
6315
|
globalFilterIcon={props.globalFilterIcon}
|
|
5990
6316
|
onFilterSummaryClick={columnFilterEnabled() && toolPanel ? toggleFilterManager : void 0}
|
|
5991
6317
|
filterPanelOpen={toolPanel?.activeTab() === "filter"}
|
|
6318
|
+
loadingText={loading() ? localeTexts().loadingRows : null}
|
|
5992
6319
|
/>
|
|
5993
|
-
</
|
|
6320
|
+
</Show13>}
|
|
5994
6321
|
>
|
|
5995
6322
|
{customTopBar()}
|
|
5996
|
-
</
|
|
5997
|
-
</
|
|
6323
|
+
</Show13>
|
|
6324
|
+
</Show13>;
|
|
5998
6325
|
const removedRowLayer = createMemo10(
|
|
5999
6326
|
() => diffShowRemoved() && removedViewIndexes() ? { description: localeTexts().diffRemovedRow } : void 0
|
|
6000
6327
|
);
|
|
@@ -6013,7 +6340,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6013
6340
|
return null;
|
|
6014
6341
|
}
|
|
6015
6342
|
const DiffBarChip = parts.DiffBarChip;
|
|
6016
|
-
return <
|
|
6343
|
+
return <Show13 when={diffActive()}>
|
|
6017
6344
|
<DiffBarChip
|
|
6018
6345
|
parts={parts.formatDiffSummaryParts(changeSnapshot(), !diffComparing(), diffTexts())}
|
|
6019
6346
|
comparingText={diffTexts().diffComparing}
|
|
@@ -6024,10 +6351,19 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6024
6351
|
onPrev={engine.gridApi.handle.goToPrevChange}
|
|
6025
6352
|
onNext={engine.gridApi.handle.goToNextChange}
|
|
6026
6353
|
/>
|
|
6027
|
-
</
|
|
6354
|
+
</Show13>;
|
|
6028
6355
|
};
|
|
6029
|
-
const
|
|
6030
|
-
|
|
6356
|
+
const Pager = paginationParts?.Pager;
|
|
6357
|
+
const barPager = () => Pager ? <Show13 when={paginationContext()}>
|
|
6358
|
+
{(info) => <Pager info={info()} variant="bar" withCounts={props.showBottomBarCounts ?? true} loading={loading()} />}
|
|
6359
|
+
</Show13> : null;
|
|
6360
|
+
const pagerBand = () => Pager ? <Show13 when={paginationContext()}>
|
|
6361
|
+
{(info) => <div class="ssg-pager-band">
|
|
6362
|
+
<Pager info={info()} variant="band" loading={loading()} />
|
|
6363
|
+
</div>}
|
|
6364
|
+
</Show13> : null;
|
|
6365
|
+
const bottomBar = () => <Show13 when={props.showBottomBar ?? true} fallback={pagerBand()}>
|
|
6366
|
+
<Show13
|
|
6031
6367
|
when={renderBottomBarFn() !== void 0}
|
|
6032
6368
|
fallback={<DefaultGridBottomBar
|
|
6033
6369
|
slot={slots().statusBar}
|
|
@@ -6037,11 +6373,14 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6037
6373
|
SelectionAggregates={selectionAggregatesFeature2?.SelectionAggregates}
|
|
6038
6374
|
unsavedText={changeTrackingParts && !diffActive() ? changeTrackingParts.formatUnsavedSummary(unsavedChanges(), localeTexts()) : null}
|
|
6039
6375
|
diffChip={diffBarChip()}
|
|
6376
|
+
loadingText={loading() ? localeTexts().loadingRows : null}
|
|
6377
|
+
pager={barPager()}
|
|
6378
|
+
paged={paginationContext() !== null}
|
|
6040
6379
|
/>}
|
|
6041
6380
|
>
|
|
6042
6381
|
{customBottomBar()}
|
|
6043
|
-
</
|
|
6044
|
-
</
|
|
6382
|
+
</Show13>
|
|
6383
|
+
</Show13>;
|
|
6045
6384
|
const editorSession = createMemo10((previous) => {
|
|
6046
6385
|
const cell = ui().editingCell;
|
|
6047
6386
|
if (cell === null) {
|
|
@@ -6091,7 +6430,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6091
6430
|
const { sourceRowIndex, rowKey } = resolveCanEditCellContext(model, cell.row);
|
|
6092
6431
|
return {
|
|
6093
6432
|
row,
|
|
6094
|
-
|
|
6433
|
+
// 変更(1.15.0 / ページ送り): custom エディタの ctx.rowIndex は通し番号。
|
|
6434
|
+
rowIndex: cell.row + (model.pageStart ?? 0),
|
|
6095
6435
|
sourceRowIndex,
|
|
6096
6436
|
rowKey,
|
|
6097
6437
|
colIndex: cell.col,
|
|
@@ -6139,13 +6479,13 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6139
6479
|
const isRowDraggable = props.isRowDraggable;
|
|
6140
6480
|
return !isRowDraggable || isRowDraggable(row, { rowKey: cell.rowKey, sourceRowIndex: cell.sourceRowIndex });
|
|
6141
6481
|
});
|
|
6142
|
-
return <
|
|
6482
|
+
return <Show13 when={draggable()}>
|
|
6143
6483
|
<RowDragHandle2
|
|
6144
6484
|
operable={rowDragOperable()}
|
|
6145
6485
|
tooltip={rowDragOperable() ? rowDragTexts().dragRow : orderResolution().rowDragBlockedByRemovedRows ? rowDragTexts().dragRowDisabledRemoved : rowDragTexts().dragRowDisabled}
|
|
6146
6486
|
onPointerDown={(event) => rowDrag.onRowDragHandlePointerDown(untrack13(() => cell.rowIndex), event)}
|
|
6147
6487
|
/>
|
|
6148
|
-
</
|
|
6488
|
+
</Show13>;
|
|
6149
6489
|
};
|
|
6150
6490
|
const cellTextOf = (row, column) => {
|
|
6151
6491
|
return formatCellText(
|
|
@@ -6188,9 +6528,9 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6188
6528
|
return editor?.type === "checkbox" ? editor : void 0;
|
|
6189
6529
|
});
|
|
6190
6530
|
const otherwise = renderDefaultCellContent(currentRow, column, cell, treeAggregate, true);
|
|
6191
|
-
return <
|
|
6531
|
+
return <Show13 when={checkboxEditor() !== void 0} fallback={otherwise}>
|
|
6192
6532
|
{renderCheckbox(() => checkboxEditor() ?? {})}
|
|
6193
|
-
</
|
|
6533
|
+
</Show13>;
|
|
6194
6534
|
}
|
|
6195
6535
|
const staticEditor = resolveStaticColumnEditor2(column);
|
|
6196
6536
|
if (!column.renderCell && staticEditor?.type === "checkbox") {
|
|
@@ -6215,18 +6555,20 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6215
6555
|
if (column.key === DETAIL_TOGGLE_COLUMN_KEY2) {
|
|
6216
6556
|
const rowNumber = () => {
|
|
6217
6557
|
const indexes = labelViewIndexes();
|
|
6218
|
-
|
|
6558
|
+
const publicRowIndex = cell.rowIndex + pageStart();
|
|
6559
|
+
return indexes ? resolveDataRowNumber2(indexes, publicRowIndex) : publicRowIndex + 1;
|
|
6219
6560
|
};
|
|
6220
|
-
return <
|
|
6561
|
+
return <Show13 when={expandable()}>
|
|
6221
6562
|
<DetailToggleButton detail={detail} rowNumber={rowNumber()} onPress={edit.endEditLeftOpen} />
|
|
6222
|
-
</
|
|
6563
|
+
</Show13>;
|
|
6223
6564
|
}
|
|
6224
6565
|
const context = {
|
|
6225
6566
|
get row() {
|
|
6226
6567
|
return currentRow();
|
|
6227
6568
|
},
|
|
6569
|
+
// 変更(1.15.0 / ページ送り): 利用側へ渡す行の番号は通し番号(cell.rowIndex はページの中の番号)。
|
|
6228
6570
|
get rowIndex() {
|
|
6229
|
-
return cell.rowIndex;
|
|
6571
|
+
return cell.rowIndex + pageStart();
|
|
6230
6572
|
},
|
|
6231
6573
|
get sourceRowIndex() {
|
|
6232
6574
|
return cell.sourceRowIndex;
|
|
@@ -6293,13 +6635,13 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6293
6635
|
const ranges = cell.findRanges;
|
|
6294
6636
|
return list && ranges && ranges.length > 0 ? splitRangesByChips2(list, separator().length, ranges) : void 0;
|
|
6295
6637
|
});
|
|
6296
|
-
return <
|
|
6638
|
+
return <Show13 when={labels()} fallback={<span class="ssg-cell-value">{highlightCellFind(textOf(currentRow()))}</span>}>
|
|
6297
6639
|
{(list) => <MultiSelectChips
|
|
6298
6640
|
labels={list()}
|
|
6299
6641
|
separator={separator()}
|
|
6300
6642
|
renderLabel={(label, index) => highlightFind(label, chipRanges()?.[index], findCurrentIndex2)}
|
|
6301
6643
|
/>}
|
|
6302
|
-
</
|
|
6644
|
+
</Show13>;
|
|
6303
6645
|
}
|
|
6304
6646
|
const chips = formatRules?.chips;
|
|
6305
6647
|
if (conditionalFormatFeature2 && chips) {
|
|
@@ -6310,8 +6652,9 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6310
6652
|
const chip = createMemo10(
|
|
6311
6653
|
() => resolveChipSpec2(chips, {
|
|
6312
6654
|
row,
|
|
6655
|
+
// 変更(1.15.0 / ページ送り): 通し番号。
|
|
6313
6656
|
get rowIndex() {
|
|
6314
|
-
return cell.rowIndex;
|
|
6657
|
+
return cell.rowIndex + pageStart();
|
|
6315
6658
|
},
|
|
6316
6659
|
get sourceRowIndex() {
|
|
6317
6660
|
return cell.sourceRowIndex;
|
|
@@ -6336,9 +6679,9 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6336
6679
|
}
|
|
6337
6680
|
})
|
|
6338
6681
|
);
|
|
6339
|
-
return <
|
|
6682
|
+
return <Show13 when={chip()} fallback={<span class="ssg-cell-value">{highlightCellFind(text)}</span>}>
|
|
6340
6683
|
{(spec) => <GridChip2 spec={spec()}>{highlightCellFind(spec().label ?? text)}</GridChip2>}
|
|
6341
|
-
</
|
|
6684
|
+
</Show13>;
|
|
6342
6685
|
}
|
|
6343
6686
|
return <span class="ssg-cell-value">{highlightCellFind(textOf(currentRow()))}</span>;
|
|
6344
6687
|
};
|
|
@@ -6357,9 +6700,9 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6357
6700
|
const value = createMemo10(() => cell.treeRow?.aggregates?.[column.key]);
|
|
6358
6701
|
const aggregate = { has, value };
|
|
6359
6702
|
const TreeAggregateValue = parts.TreeAggregateValue;
|
|
6360
|
-
content = column.renderCell ? renderDefaultCellContent(currentRow, column, cell, aggregate) : <
|
|
6703
|
+
content = column.renderCell ? renderDefaultCellContent(currentRow, column, cell, aggregate) : <Show13 when={has()} fallback={renderDefaultCellContent(currentRow, column, cell)}>
|
|
6361
6704
|
<TreeAggregateValue column={column} value={value()} />
|
|
6362
|
-
</
|
|
6705
|
+
</Show13>;
|
|
6363
6706
|
} else {
|
|
6364
6707
|
content = renderDefaultCellContent(currentRow, column, cell);
|
|
6365
6708
|
}
|
|
@@ -6369,17 +6712,17 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6369
6712
|
const TreeCellPrefix = parts.TreeCellPrefix;
|
|
6370
6713
|
const rowLabel = () => cellTextOf(currentRow(), column);
|
|
6371
6714
|
return <>
|
|
6372
|
-
<
|
|
6715
|
+
<Show13 when={cell.treeRow}>
|
|
6373
6716
|
{(tree) => <TreeCellPrefix
|
|
6374
6717
|
level={tree().level}
|
|
6375
6718
|
hasChildren={tree().hasChildren}
|
|
6376
6719
|
open={tree().open}
|
|
6377
6720
|
rowLabel={rowLabel()}
|
|
6378
|
-
rowNumber={cell.rowIndex + 1}
|
|
6721
|
+
rowNumber={cell.rowIndex + pageStart() + 1}
|
|
6379
6722
|
onToggle={(open) => engine.gridApi.handle.setTreeRowOpen(cell.rowKey, open)}
|
|
6380
6723
|
onPress={edit.endEditLeftOpen}
|
|
6381
6724
|
/>}
|
|
6382
|
-
</
|
|
6725
|
+
</Show13>
|
|
6383
6726
|
{content}
|
|
6384
6727
|
</>;
|
|
6385
6728
|
};
|
|
@@ -6407,7 +6750,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6407
6750
|
const activeRect = () => placementRectInPane(activeCellPlacement(), pane);
|
|
6408
6751
|
const editorRect = () => placementRectInPane(editingCellPlacement(), pane);
|
|
6409
6752
|
const clearHoveredRow = () => applyHoveredRowChange(null);
|
|
6410
|
-
const renderPinnedRows = (position) => PinnedRows ? <
|
|
6753
|
+
const renderPinnedRows = (position) => PinnedRows ? <Show13 when={position === "top" ? pinnedTop() : pinnedBottom()}>
|
|
6411
6754
|
{(pinnedRows) => <PinnedRows
|
|
6412
6755
|
pane={pane}
|
|
6413
6756
|
position={position}
|
|
@@ -6420,7 +6763,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6420
6763
|
bodyHeight={position === "top" || pinnedBelowTotal() ? 0 : vertical().physicalBodyHeight}
|
|
6421
6764
|
entries={entries()}
|
|
6422
6765
|
rowKeyGetter={resolvedRowKeyGetter()}
|
|
6423
|
-
ariaRowIndexStart={(position === "top" ? 2 :
|
|
6766
|
+
ariaRowIndexStart={(position === "top" ? 2 : ariaBodyRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 1 : 0)) + columnGroupDepth()}
|
|
6424
6767
|
getRowClassName={props.getRowClassName}
|
|
6425
6768
|
showCellOverflowTooltip={props.showCellOverflowTooltip ?? false}
|
|
6426
6769
|
conditionalFormat={conditionalFormatFeature2}
|
|
@@ -6429,8 +6772,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6429
6772
|
slots={slots()}
|
|
6430
6773
|
onPointerEnter={clearHoveredRow}
|
|
6431
6774
|
/>}
|
|
6432
|
-
</
|
|
6433
|
-
const renderTotalRow = () => TotalRow ? <
|
|
6775
|
+
</Show13> : null;
|
|
6776
|
+
const renderTotalRow = () => TotalRow ? <Show13 when={totalRowEnabled()}>
|
|
6434
6777
|
<TotalRow
|
|
6435
6778
|
pane={pane}
|
|
6436
6779
|
ownsRowHeader={ownsRowHeader()}
|
|
@@ -6443,14 +6786,14 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6443
6786
|
cells={totalRowCells()}
|
|
6444
6787
|
label={totalRowLabel()}
|
|
6445
6788
|
labelColumnKey={totalRowLabelColumnKey()}
|
|
6446
|
-
ariaRowIndex={
|
|
6789
|
+
ariaRowIndex={ariaBodyRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 0 : pinnedBottomCount()) + columnGroupDepth()}
|
|
6447
6790
|
renderCell={totalRowOptions()?.renderCell}
|
|
6448
6791
|
rowClassName={totalRowSlot().className}
|
|
6449
6792
|
rowStyle={totalRowSlot().style}
|
|
6450
6793
|
slots={slots()}
|
|
6451
6794
|
onPointerEnter={clearHoveredRow}
|
|
6452
6795
|
/>
|
|
6453
|
-
</
|
|
6796
|
+
</Show13> : null;
|
|
6454
6797
|
return <div
|
|
6455
6798
|
style={{
|
|
6456
6799
|
position: "relative",
|
|
@@ -6464,7 +6807,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6464
6807
|
{
|
|
6465
6808
|
/* 列のグループの段(1.6.0。列見出しの行の前の sticky の器)。 */
|
|
6466
6809
|
}
|
|
6467
|
-
{ColumnGroupHeader ? <
|
|
6810
|
+
{ColumnGroupHeader ? <Show13 when={columnGroupTree()}>
|
|
6468
6811
|
{(tree) => <ColumnGroupHeader
|
|
6469
6812
|
pane={pane}
|
|
6470
6813
|
tree={tree()}
|
|
@@ -6483,7 +6826,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6483
6826
|
onResizePointerDown={columnCommands.handleColumnGroupResizePointerDown}
|
|
6484
6827
|
onGripPointerDown={columnGroupDragHandler()}
|
|
6485
6828
|
/>}
|
|
6486
|
-
</
|
|
6829
|
+
</Show13> : null}
|
|
6487
6830
|
<GridHeaderRow
|
|
6488
6831
|
pane={pane}
|
|
6489
6832
|
ownsRowHeader={ownsRowHeader()}
|
|
@@ -6540,6 +6883,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6540
6883
|
rowClassName={stickyLabelSlot().className}
|
|
6541
6884
|
rowStyle={stickyLabelSlot().style}
|
|
6542
6885
|
slots={slots()}
|
|
6886
|
+
rowIndexOffset={pageStart()}
|
|
6543
6887
|
/> : null}
|
|
6544
6888
|
<div
|
|
6545
6889
|
style={{
|
|
@@ -6565,16 +6909,16 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6565
6909
|
}
|
|
6566
6910
|
{findReplaceFeature2 ? (() => {
|
|
6567
6911
|
const { FindScopeOverlay } = findReplaceFeature2;
|
|
6568
|
-
return <
|
|
6912
|
+
return <For6 each={findScopeRectsForPane(pane)} keyed={false}>
|
|
6569
6913
|
{(rect) => <FindScopeOverlay
|
|
6570
6914
|
rect={rect()}
|
|
6571
6915
|
headerHeight={headerHeight()}
|
|
6572
6916
|
leadingWidth={leadingWidth()}
|
|
6573
6917
|
baseOffset={vertical().overlayBaseOffset}
|
|
6574
6918
|
/>}
|
|
6575
|
-
</
|
|
6919
|
+
</For6>;
|
|
6576
6920
|
})() : null}
|
|
6577
|
-
<
|
|
6921
|
+
<For6 each={selectionRectsForPane(pane)} keyed={false}>
|
|
6578
6922
|
{(rect) => <Overlay
|
|
6579
6923
|
class="ssg-selection-overlay"
|
|
6580
6924
|
slot={slots().selectionOverlay}
|
|
@@ -6583,8 +6927,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6583
6927
|
leadingWidth={leadingWidth()}
|
|
6584
6928
|
baseOffset={vertical().overlayBaseOffset}
|
|
6585
6929
|
/>}
|
|
6586
|
-
</
|
|
6587
|
-
<
|
|
6930
|
+
</For6>
|
|
6931
|
+
<For6 each={copyRectsForPane(pane)} keyed={false}>
|
|
6588
6932
|
{(rect) => <CopyRangeOverlay
|
|
6589
6933
|
slot={slots().copyRangeOverlay}
|
|
6590
6934
|
rect={rect()}
|
|
@@ -6592,7 +6936,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6592
6936
|
leadingWidth={leadingWidth()}
|
|
6593
6937
|
baseOffset={vertical().overlayBaseOffset}
|
|
6594
6938
|
/>}
|
|
6595
|
-
</
|
|
6939
|
+
</For6>
|
|
6596
6940
|
{motionExtrasFeature2 ? (() => {
|
|
6597
6941
|
const { ColumnHoverOverlay: ColumnHoverOverlay2 } = motionExtrasFeature2;
|
|
6598
6942
|
return <>
|
|
@@ -6664,7 +7008,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6664
7008
|
collapsedGroupKeys={ui().collapsedGroupKeys}
|
|
6665
7009
|
onGroupToggle={handleGroupToggle}
|
|
6666
7010
|
labelRowLayer={pane === "center" ? labelRowLayerCenter() : labelRowLayerBand()}
|
|
6667
|
-
skeletonRow={isServerSide() ? serverSideFeature2?.BodySkeletonRow : void 0}
|
|
7011
|
+
skeletonRow={isServerSide() ? serverSideFeature2?.BodySkeletonRow : loadingEmpty() ? GridBodySkeletonRow : void 0}
|
|
7012
|
+
placeholderRows={loadingEmpty()}
|
|
6668
7013
|
labelViewIndexes={labelViewIndexes()}
|
|
6669
7014
|
newRowLayer={newRowLayer()}
|
|
6670
7015
|
newRowDraft={newRowDraft()}
|
|
@@ -6674,7 +7019,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6674
7019
|
rowHeaderWidth={rowHeaderWidth()}
|
|
6675
7020
|
rows={bodyRows()}
|
|
6676
7021
|
entries={entries()}
|
|
6677
|
-
rowModel={
|
|
7022
|
+
rowModel={layoutRowModel()}
|
|
6678
7023
|
ariaRowOffset={pinnedTopCount() + columnGroupDepth()}
|
|
6679
7024
|
activeCell={ui().activeCell}
|
|
6680
7025
|
editingCell={ui().editingCell}
|
|
@@ -6725,10 +7070,10 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6725
7070
|
{
|
|
6726
7071
|
/* 下端の行(本体ぶんの空きの直後 = 箱の下端の sticky の行)。既定は下の固定行 → 合計行、'belowTotal' は合計行 → 固定行。 */
|
|
6727
7072
|
}
|
|
6728
|
-
<
|
|
7073
|
+
<Show13 when={pinnedBelowTotal()} fallback={[renderPinnedRows("bottom"), renderTotalRow()]}>
|
|
6729
7074
|
{renderTotalRow()}
|
|
6730
7075
|
{renderPinnedRows("bottom")}
|
|
6731
|
-
</
|
|
7076
|
+
</Show13>
|
|
6732
7077
|
{
|
|
6733
7078
|
/* 中央ペインのドロップの縦線(左右のペインは、固定列が 0 本でも線を出せるよう外側の器に置く。React 版と同じ)。 */
|
|
6734
7079
|
}
|
|
@@ -6771,6 +7116,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6771
7116
|
"ssg-root--dim-readonly": props.dimReadOnlyCells ?? false,
|
|
6772
7117
|
// 追加(1.5.0 / serverSideRefetch="keep"): 取り直しの間に前の行を見せている(行を薄くする)。
|
|
6773
7118
|
"ssg-root--refetching": refetchingRows(),
|
|
7119
|
+
// 追加(1.15.0): 読み込み中(行があるとき。薄くする面と動く線は取り直しと同じ)。
|
|
7120
|
+
"ssg-root--loading": loading(),
|
|
6774
7121
|
// 追加(1.13.0 / 差分の表示): baseline と比べている(変更のセル・追加の行・削除の行を色で塗る。ユーザー判断 C)。
|
|
6775
7122
|
"ssg-root--diff": diffActive(),
|
|
6776
7123
|
"ssg-root--fill-height": heightLayout().fillParent,
|
|
@@ -6790,7 +7137,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6790
7137
|
{
|
|
6791
7138
|
/* フィルターのチップのバー(showFilterChipBar)。適用中の列フィルターをチップで並べる(0 件なら出さない)。 */
|
|
6792
7139
|
}
|
|
6793
|
-
{filterManagement && filteringFeature2 ? <
|
|
7140
|
+
{filterManagement && filteringFeature2 ? <Show13 when={props.showFilterChipBar}>
|
|
6794
7141
|
<filteringFeature2.FilterChipBar
|
|
6795
7142
|
slot={slots().filterChipBar}
|
|
6796
7143
|
entries={filterManagement.entries()}
|
|
@@ -6799,7 +7146,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6799
7146
|
onClearFilter={columnCommands.handleFilterManagerClearFilter}
|
|
6800
7147
|
onClearAllFilters={columnCommands.handleFilterManagerClearAll}
|
|
6801
7148
|
/>
|
|
6802
|
-
</
|
|
7149
|
+
</Show13> : null}
|
|
6803
7150
|
<div
|
|
6804
7151
|
ref={(element) => {
|
|
6805
7152
|
gridRootRef.current = element;
|
|
@@ -6856,11 +7203,11 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6856
7203
|
}}
|
|
6857
7204
|
role={treeStage() ? "treegrid" : "grid"}
|
|
6858
7205
|
aria-label={props.ariaLabel}
|
|
6859
|
-
aria-rowcount={
|
|
7206
|
+
aria-rowcount={ariaBodyRowCount() + 1 + pinnedTopCount() + pinnedBottomCount() + (totalRowEnabled() ? 1 : 0) + columnGroupDepth()}
|
|
6860
7207
|
aria-colcount={orderedColumns().length + 1}
|
|
6861
7208
|
aria-multiselectable={enableRangeSelection() ? "true" : void 0}
|
|
6862
7209
|
aria-readonly={readOnly() ? "true" : void 0}
|
|
6863
|
-
aria-busy={refetchingRows() ? "true" : void 0}
|
|
7210
|
+
aria-busy={refetchingRows() || loading() ? "true" : void 0}
|
|
6864
7211
|
class={["ssg-scroll-container", { "ssg-scroll-container--custom-scrollbar": customScrollbar() }]}
|
|
6865
7212
|
style={toSolidStyle(heightLayout().scrollContainerStyle)}
|
|
6866
7213
|
>
|
|
@@ -6878,7 +7225,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6878
7225
|
}}
|
|
6879
7226
|
style={pinnedPaneStyle("left", paneResolution().leftPaneTotalWidth, paneLayout().left.entries.length > 0)}
|
|
6880
7227
|
>
|
|
6881
|
-
<
|
|
7228
|
+
<Show13 when={paneResolution().hasLeftPane}>
|
|
6882
7229
|
{renderPane(
|
|
6883
7230
|
"left",
|
|
6884
7231
|
() => paneResolution().leftPaneTotalWidth,
|
|
@@ -6886,7 +7233,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6886
7233
|
() => true,
|
|
6887
7234
|
() => paneLayout().left.entries
|
|
6888
7235
|
)}
|
|
6889
|
-
</
|
|
7236
|
+
</Show13>
|
|
6890
7237
|
{renderColumnDropIndicator("left")}
|
|
6891
7238
|
</div>
|
|
6892
7239
|
<div
|
|
@@ -6913,7 +7260,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6913
7260
|
}}
|
|
6914
7261
|
style={pinnedPaneStyle("right", paneResolution().rightPaneTotalWidth, paneLayout().right.entries.length > 0)}
|
|
6915
7262
|
>
|
|
6916
|
-
<
|
|
7263
|
+
<Show13 when={paneResolution().hasRightPane}>
|
|
6917
7264
|
{renderPane(
|
|
6918
7265
|
"right",
|
|
6919
7266
|
() => paneResolution().rightPaneTotalWidth,
|
|
@@ -6921,15 +7268,18 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6921
7268
|
() => false,
|
|
6922
7269
|
() => paneLayout().right.entries
|
|
6923
7270
|
)}
|
|
6924
|
-
</
|
|
7271
|
+
</Show13>
|
|
6925
7272
|
{renderColumnDropIndicator("right")}
|
|
6926
7273
|
</div>
|
|
6927
7274
|
</div>
|
|
6928
|
-
|
|
7275
|
+
{
|
|
7276
|
+
/* 変更(1.15.0): 読み込み中で行が無い間は骨組みの行を描くので、空の文言は出しません。 */
|
|
7277
|
+
}
|
|
7278
|
+
<Show13 when={viewRowCount() === 0 && hydrated() && !loadingEmpty()}>
|
|
6929
7279
|
<div class={["ssg-empty-state", slots().emptyState?.className]} style={slots().emptyState?.style}>
|
|
6930
7280
|
{emptyStateText()}
|
|
6931
7281
|
</div>
|
|
6932
|
-
</
|
|
7282
|
+
</Show13>
|
|
6933
7283
|
</div>
|
|
6934
7284
|
<span
|
|
6935
7285
|
ref={(element) => {
|
|
@@ -6940,7 +7290,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6940
7290
|
aria-hidden={hasDetailCards() ? void 0 : "true"}
|
|
6941
7291
|
onFocus={(event) => detailRows.handleTableExitFocus(event.relatedTarget)}
|
|
6942
7292
|
/>
|
|
6943
|
-
<
|
|
7293
|
+
<Show13 when={scrollHintFeature2 !== void 0 && activeScrollHint()}>
|
|
6944
7294
|
{(options) => {
|
|
6945
7295
|
const ScrollHint = scrollHintFeature2.ScrollHint;
|
|
6946
7296
|
return <ScrollHint
|
|
@@ -6955,29 +7305,31 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6955
7305
|
rowMetrics={vertical().rowMetrics}
|
|
6956
7306
|
rowModel={rowModel()}
|
|
6957
7307
|
labelViewIndexes={labelViewIndexes()}
|
|
7308
|
+
rowOffset={pageStart()}
|
|
7309
|
+
totalDataRowCount={pageWindow() === null ? void 0 : leafRowCount()}
|
|
6958
7310
|
/>;
|
|
6959
7311
|
}}
|
|
6960
|
-
</
|
|
7312
|
+
</Show13>
|
|
6961
7313
|
{
|
|
6962
7314
|
/* 列幅の自動調整の計測中の overlay(遅れて出す。pointer-events: none で操作は素通し)。 */
|
|
6963
7315
|
}
|
|
6964
|
-
<
|
|
7316
|
+
<Show13 when={isAutosizing()}>
|
|
6965
7317
|
<div class="ssg-autosize-overlay">
|
|
6966
7318
|
<span class="ssg-autosize-pill">{localeTexts().sizingColumns}</span>
|
|
6967
7319
|
</div>
|
|
6968
|
-
</
|
|
7320
|
+
</Show13>
|
|
6969
7321
|
{
|
|
6970
7322
|
/* 追加(1.13.0 の実アプリでの点検 RD4-02): ▲ ▼ で回った先の読み上げ(見た目には出さない。差分の表示の間だけ置く)。 */
|
|
6971
7323
|
}
|
|
6972
|
-
<
|
|
7324
|
+
<Show13 when={diffActive() && diffViewParts !== void 0}>
|
|
6973
7325
|
<span class="ssg-visually-hidden" aria-live="polite" aria-atomic="true">
|
|
6974
7326
|
{changeNavAnnouncement()}
|
|
6975
7327
|
</span>
|
|
6976
|
-
</
|
|
7328
|
+
</Show13>
|
|
6977
7329
|
{
|
|
6978
7330
|
/* グローバルフィルターの適用中の overlay(しきい値を超える表の時間分割の間だけ。pointer-events: none)。 */
|
|
6979
7331
|
}
|
|
6980
|
-
<
|
|
7332
|
+
<Show13 when={globalFilterStatus() === "filtering"}>
|
|
6981
7333
|
<div class="ssg-filter-overlay">
|
|
6982
7334
|
<span class="ssg-filter-overlay-chip" role="status" aria-live="polite">
|
|
6983
7335
|
<span class="ssg-filter-spinner" aria-hidden="true" />
|
|
@@ -6986,11 +7338,11 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
6986
7338
|
</span>
|
|
6987
7339
|
</span>
|
|
6988
7340
|
</div>
|
|
6989
|
-
</
|
|
7341
|
+
</Show13>
|
|
6990
7342
|
{
|
|
6991
7343
|
/* セル内検索のバー(右上に浮く。見出しの直下)。開いているときだけ描きます。 */
|
|
6992
7344
|
}
|
|
6993
|
-
<
|
|
7345
|
+
<Show13 when={findSnapshot().open}>
|
|
6994
7346
|
{FindBar && <FindBar
|
|
6995
7347
|
snapshot={findSnapshot()}
|
|
6996
7348
|
headerHeight={headerHeight()}
|
|
@@ -7012,11 +7364,11 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
7012
7364
|
onScopeChange={engine.findReplace.setScopeEnabled}
|
|
7013
7365
|
onReplaceShortcut={() => engine.findReplace.setExpanded(true)}
|
|
7014
7366
|
/>}
|
|
7015
|
-
</
|
|
7367
|
+
</Show13>
|
|
7016
7368
|
{
|
|
7017
7369
|
/* サーバーサイドのエラーバー(取得の失敗の再試行 / 保存の失敗。機能 features/serverSide の部品)。 */
|
|
7018
7370
|
}
|
|
7019
|
-
{serverSide && serverSideFeature2 ? <
|
|
7371
|
+
{serverSide && serverSideFeature2 ? <Show13 when={isServerSide()}>
|
|
7020
7372
|
<serverSideFeature2.ErrorBars
|
|
7021
7373
|
loadError={serverSide.loadError()}
|
|
7022
7374
|
writeError={serverSide.writeError()}
|
|
@@ -7024,12 +7376,15 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
7024
7376
|
slot={slots().errorBar}
|
|
7025
7377
|
localeTexts={localeTexts()}
|
|
7026
7378
|
/>
|
|
7027
|
-
</
|
|
7379
|
+
</Show13> : null}
|
|
7028
7380
|
{
|
|
7029
7381
|
/* 追加(1.5.0 / serverSideRefetch="keep"): 前の行を見せたまま取り直している間、本体の見えている所を薄くする面と、
|
|
7030
7382
|
列見出しの下に流れる線(大きさはスクロールバーを除いた見える範囲。測る前は CSS の left / right / bottom。React 版と同じ)。 */
|
|
7031
7383
|
}
|
|
7032
|
-
|
|
7384
|
+
{
|
|
7385
|
+
/* 変更(1.15.0): 読み込み中(loading)で行があるときも同じ面と線。 */
|
|
7386
|
+
}
|
|
7387
|
+
<Show13 when={refetchingRows() || loadingWithRows()}>
|
|
7033
7388
|
<div
|
|
7034
7389
|
class="ssg-refetch-veil"
|
|
7035
7390
|
aria-hidden="true"
|
|
@@ -7044,12 +7399,12 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
7044
7399
|
aria-hidden="true"
|
|
7045
7400
|
style={{ top: `${headerHeight()}px`, width: viewportWidth() > 0 ? `${viewportWidth()}px` : void 0 }}
|
|
7046
7401
|
/>
|
|
7047
|
-
</
|
|
7402
|
+
</Show13>
|
|
7048
7403
|
{
|
|
7049
7404
|
/* IME オンのままの直接入力の入力受け(imeDirectInput が有効なときだけ)。値 / 位置 / 変換中の見た目はコントローラが
|
|
7050
7405
|
直接扱います。Tab の順番には入れません(タブストップはシェルのまま)。 */
|
|
7051
7406
|
}
|
|
7052
|
-
<
|
|
7407
|
+
<Show13 when={imeDirectInputEnabled()}>
|
|
7053
7408
|
<input
|
|
7054
7409
|
ref={(element) => engine.imeInput.attach(element)}
|
|
7055
7410
|
{...{ [IME_INPUT_ATTRIBUTE]: "" }}
|
|
@@ -7062,14 +7417,14 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
7062
7417
|
spellcheck="false"
|
|
7063
7418
|
aria-label={localeTexts().cellInput}
|
|
7064
7419
|
/>
|
|
7065
|
-
</
|
|
7420
|
+
</Show13>
|
|
7066
7421
|
</div>
|
|
7067
7422
|
{bottomBar()}
|
|
7068
7423
|
{
|
|
7069
7424
|
/* 列メニュー(グリッドの外のポップアップ)。 */
|
|
7070
7425
|
}
|
|
7071
|
-
{columnMenu && columnMenuFeature2 ? <
|
|
7072
|
-
{(column) => <
|
|
7426
|
+
{columnMenu && columnMenuFeature2 ? <Show13 when={columnMenu.openedColumn()}>
|
|
7427
|
+
{(column) => <Show13 when={columnMenu.layout()}>
|
|
7073
7428
|
{(layout) => <columnMenuFeature2.ColumnMenuPopover
|
|
7074
7429
|
slots={slots()}
|
|
7075
7430
|
themeClassName={portalClassName()}
|
|
@@ -7118,8 +7473,8 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
7118
7473
|
}}
|
|
7119
7474
|
onRequestClose={columnMenu.close}
|
|
7120
7475
|
/>}
|
|
7121
|
-
</
|
|
7122
|
-
</
|
|
7476
|
+
</Show13>}
|
|
7477
|
+
</Show13> : null}
|
|
7123
7478
|
{
|
|
7124
7479
|
/* 列フィルターのポップオーバー(グリッドの外のポップアップ。閉じている間は何も描かない)。 */
|
|
7125
7480
|
}
|
|
@@ -7142,9 +7497,9 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
7142
7497
|
/* ツールパネル(グリッドの外のポップアップ。開いている間だけ描く)。タブを切り替えると中身を作り直す(タブの中の検索の
|
|
7143
7498
|
文字などは戻る。React 版と同じ)。 */
|
|
7144
7499
|
}
|
|
7145
|
-
{toolPanel && toolPanelViews ? <
|
|
7146
|
-
{(tab) => <
|
|
7147
|
-
{(layout) => <
|
|
7500
|
+
{toolPanel && toolPanelViews ? <Show13 when={toolPanel.activeTab()}>
|
|
7501
|
+
{(tab) => <Show13 when={toolPanel.layout()}>
|
|
7502
|
+
{(layout) => <Show13 when={toolPanelViews()}>
|
|
7148
7503
|
{(views) => {
|
|
7149
7504
|
const { ToolPanel, FilterManagementPanel, ColumnChooserPanel, SortManagementPanel } = untrack13(views);
|
|
7150
7505
|
return <ToolPanel
|
|
@@ -7203,13 +7558,13 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
7203
7558
|
</Switch>
|
|
7204
7559
|
</ToolPanel>;
|
|
7205
7560
|
}}
|
|
7206
|
-
</
|
|
7207
|
-
</
|
|
7208
|
-
</
|
|
7561
|
+
</Show13>}
|
|
7562
|
+
</Show13>}
|
|
7563
|
+
</Show13> : null}
|
|
7209
7564
|
{
|
|
7210
7565
|
/* セル / 行番号の右クリックメニュー(グリッドの外のポップアップ)。 */
|
|
7211
7566
|
}
|
|
7212
|
-
{contextMenu && contextMenuFeature2 ? <
|
|
7567
|
+
{contextMenu && contextMenuFeature2 ? <Show13 when={contextMenuView()}>
|
|
7213
7568
|
{(open) => <contextMenuFeature2.CellContextMenuPopover
|
|
7214
7569
|
items={open().items}
|
|
7215
7570
|
layout={open().layout}
|
|
@@ -7219,7 +7574,7 @@ function GridShellBody(props, features, mountGate, mode) {
|
|
|
7219
7574
|
themeClassName={portalClassName()}
|
|
7220
7575
|
slots={slots()}
|
|
7221
7576
|
/>}
|
|
7222
|
-
</
|
|
7577
|
+
</Show13> : null}
|
|
7223
7578
|
{
|
|
7224
7579
|
/* フィルハンドルの埋めたあとのメニュー / ドラッグ中の値のツールチップ(グリッドの外のポップアップ)。 */
|
|
7225
7580
|
}
|
|
@@ -7312,7 +7667,7 @@ import {
|
|
|
7312
7667
|
import { DEFAULT_COLUMN_GROUPS_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
|
|
7313
7668
|
|
|
7314
7669
|
// src/view/GridColumnGroupHeader.tsx
|
|
7315
|
-
import { For as
|
|
7670
|
+
import { For as For7, Show as Show14, createMemo as createMemo11 } from "solid-js";
|
|
7316
7671
|
import {
|
|
7317
7672
|
createColumnGroupResize,
|
|
7318
7673
|
resolveColumnGroupCells
|
|
@@ -7358,7 +7713,7 @@ function GridColumnGroupHeader(props) {
|
|
|
7358
7713
|
return result.map((levelCells, level) => ({ level, cells: levelCells })).filter((entry) => entry.cells.length > 0);
|
|
7359
7714
|
});
|
|
7360
7715
|
return <div data-pane={props.pane} class="ssg-col-group-block" style={{ height: px(tree().depth * props.groupRowHeight) }}>
|
|
7361
|
-
<
|
|
7716
|
+
<For7 each={levels()} keyed={(entry) => entry.level}>
|
|
7362
7717
|
{(entry) => (
|
|
7363
7718
|
// 段ごとに 1 行(3 ペインの同じ段は同じ行番号)。
|
|
7364
7719
|
<div
|
|
@@ -7367,7 +7722,7 @@ function GridColumnGroupHeader(props) {
|
|
|
7367
7722
|
class="ssg-col-group-row"
|
|
7368
7723
|
style={{ top: px(entry().level * props.groupRowHeight), height: px(props.groupRowHeight) }}
|
|
7369
7724
|
>
|
|
7370
|
-
<
|
|
7725
|
+
<For7 each={entry().cells} keyed={(cell) => cell.id}>
|
|
7371
7726
|
{(cell) => {
|
|
7372
7727
|
const group = createMemo11(() => cell().group);
|
|
7373
7728
|
const definition = createMemo11(() => group().definition);
|
|
@@ -7434,7 +7789,7 @@ function GridColumnGroupHeader(props) {
|
|
|
7434
7789
|
>
|
|
7435
7790
|
{definition().renderHeader ? definition().renderHeader?.(context) : title()}
|
|
7436
7791
|
</span>
|
|
7437
|
-
<
|
|
7792
|
+
<Show14 when={group().collapsible}>
|
|
7438
7793
|
<button
|
|
7439
7794
|
type="button"
|
|
7440
7795
|
tabindex={-1}
|
|
@@ -7466,8 +7821,8 @@ function GridColumnGroupHeader(props) {
|
|
|
7466
7821
|
/>
|
|
7467
7822
|
</svg>
|
|
7468
7823
|
</button>
|
|
7469
|
-
</
|
|
7470
|
-
<
|
|
7824
|
+
</Show14>
|
|
7825
|
+
<Show14 when={props.onGripPointerDown}>
|
|
7471
7826
|
{(handler) => <span
|
|
7472
7827
|
aria-hidden="true"
|
|
7473
7828
|
class="ssg-header-grip ssg-col-group-grip"
|
|
@@ -7483,17 +7838,17 @@ function GridColumnGroupHeader(props) {
|
|
|
7483
7838
|
<circle cx="6" cy="11" r="1" />
|
|
7484
7839
|
</svg>
|
|
7485
7840
|
</span>}
|
|
7486
|
-
</
|
|
7841
|
+
</Show14>
|
|
7487
7842
|
</div>
|
|
7488
|
-
<
|
|
7843
|
+
<Show14 when={resize()}>
|
|
7489
7844
|
{(value) => <div class="ssg-header-resize" onPointerDown={(event) => props.onResizePointerDown(value(), event)} />}
|
|
7490
|
-
</
|
|
7845
|
+
</Show14>
|
|
7491
7846
|
</div>;
|
|
7492
7847
|
}}
|
|
7493
|
-
</
|
|
7848
|
+
</For7>
|
|
7494
7849
|
</div>
|
|
7495
7850
|
)}
|
|
7496
|
-
</
|
|
7851
|
+
</For7>
|
|
7497
7852
|
</div>;
|
|
7498
7853
|
}
|
|
7499
7854
|
|
|
@@ -7552,7 +7907,7 @@ function createColumnMenu(inputs) {
|
|
|
7552
7907
|
}
|
|
7553
7908
|
|
|
7554
7909
|
// src/view/ColumnMenuPopover.tsx
|
|
7555
|
-
import { For as
|
|
7910
|
+
import { For as For8, Show as Show15, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal10, createUniqueId as createUniqueId4, onCleanup as onCleanup9 } from "solid-js";
|
|
7556
7911
|
import { Portal as Portal2 } from "@solidjs/web";
|
|
7557
7912
|
var PINNED_ITEMS = [
|
|
7558
7913
|
{ value: void 0, label: "menuPinNone" },
|
|
@@ -7655,7 +8010,7 @@ function ColumnMenuPopover(props) {
|
|
|
7655
8010
|
props.slots?.menuItem?.className
|
|
7656
8011
|
];
|
|
7657
8012
|
const itemStyle = () => props.slots?.menuItem?.style;
|
|
7658
|
-
return <
|
|
8013
|
+
return <Show15 when={container}>
|
|
7659
8014
|
{(mount) => <Portal2 mount={mount()}>
|
|
7660
8015
|
<div
|
|
7661
8016
|
ref={(node) => {
|
|
@@ -7688,8 +8043,8 @@ function ColumnMenuPopover(props) {
|
|
|
7688
8043
|
{
|
|
7689
8044
|
/* 列のグループの開閉(1.6.0 の実アプリの点検 G5-02)。 */
|
|
7690
8045
|
}
|
|
7691
|
-
<
|
|
7692
|
-
<
|
|
8046
|
+
<Show15 when={props.onToggleColumnGroup !== void 0 && (props.columnGroupToggles?.length ?? 0) > 0}>
|
|
8047
|
+
<For8 each={props.columnGroupToggles ?? []} keyed={(toggle) => toggle.key}>
|
|
7693
8048
|
{(toggle) => <button
|
|
7694
8049
|
type="button"
|
|
7695
8050
|
role="menuitem"
|
|
@@ -7701,11 +8056,11 @@ function ColumnMenuPopover(props) {
|
|
|
7701
8056
|
<span class="ssg-menu-icon" />
|
|
7702
8057
|
<span class="ssg-menu-label">{toggle().label}</span>
|
|
7703
8058
|
</button>}
|
|
7704
|
-
</
|
|
8059
|
+
</For8>
|
|
7705
8060
|
<div role="separator" class="ssg-menu-separator" />
|
|
7706
|
-
</
|
|
8061
|
+
</Show15>
|
|
7707
8062
|
|
|
7708
|
-
<
|
|
8063
|
+
<Show15 when={props.canFilter}>
|
|
7709
8064
|
<button
|
|
7710
8065
|
type="button"
|
|
7711
8066
|
role="menuitem"
|
|
@@ -7718,9 +8073,9 @@ function ColumnMenuPopover(props) {
|
|
|
7718
8073
|
<span class="ssg-menu-label">{texts().menuFilter}</span>
|
|
7719
8074
|
</button>
|
|
7720
8075
|
<div role="separator" class="ssg-menu-separator" />
|
|
7721
|
-
</
|
|
8076
|
+
</Show15>
|
|
7722
8077
|
|
|
7723
|
-
<
|
|
8078
|
+
<Show15 when={props.canSort}>
|
|
7724
8079
|
<SortItem
|
|
7725
8080
|
direction="asc"
|
|
7726
8081
|
sortDirection={props.sortDirection}
|
|
@@ -7739,7 +8094,7 @@ function ColumnMenuPopover(props) {
|
|
|
7739
8094
|
class={itemClass()}
|
|
7740
8095
|
style={itemStyle()}
|
|
7741
8096
|
/>
|
|
7742
|
-
<
|
|
8097
|
+
<Show15 when={props.onOpenSortManager}>
|
|
7743
8098
|
{(open) => <button
|
|
7744
8099
|
type="button"
|
|
7745
8100
|
role="menuitem"
|
|
@@ -7751,10 +8106,10 @@ function ColumnMenuPopover(props) {
|
|
|
7751
8106
|
<span class="ssg-menu-icon" />
|
|
7752
8107
|
<span class="ssg-menu-label">{texts().menuManageSort}</span>
|
|
7753
8108
|
</button>}
|
|
7754
|
-
</
|
|
7755
|
-
</
|
|
8109
|
+
</Show15>
|
|
8110
|
+
</Show15>
|
|
7756
8111
|
|
|
7757
|
-
<
|
|
8112
|
+
<Show15 when={props.canManageFilters ? props.onOpenFilterManager : void 0}>
|
|
7758
8113
|
{(open) => <button
|
|
7759
8114
|
type="button"
|
|
7760
8115
|
role="menuitem"
|
|
@@ -7766,16 +8121,16 @@ function ColumnMenuPopover(props) {
|
|
|
7766
8121
|
<span class="ssg-menu-icon" />
|
|
7767
8122
|
<span class="ssg-menu-label">{texts().menuManageFilters}</span>
|
|
7768
8123
|
</button>}
|
|
7769
|
-
</
|
|
8124
|
+
</Show15>
|
|
7770
8125
|
|
|
7771
8126
|
{
|
|
7772
8127
|
/* 区切りは、並び替えの項目かフィルターを管理…のどちらかが出ているとき。 */
|
|
7773
8128
|
}
|
|
7774
|
-
<
|
|
8129
|
+
<Show15 when={props.canSort || props.canManageFilters && props.onOpenFilterManager !== void 0}>
|
|
7775
8130
|
<div role="separator" class="ssg-menu-separator" />
|
|
7776
|
-
</
|
|
8131
|
+
</Show15>
|
|
7777
8132
|
|
|
7778
|
-
<
|
|
8133
|
+
<Show15 when={props.onGroupByColumn}>
|
|
7779
8134
|
{(groupBy) => <button
|
|
7780
8135
|
type="button"
|
|
7781
8136
|
role="menuitem"
|
|
@@ -7787,8 +8142,8 @@ function ColumnMenuPopover(props) {
|
|
|
7787
8142
|
<span class="ssg-menu-icon" />
|
|
7788
8143
|
<span class="ssg-menu-label">{texts().menuGroupBy}</span>
|
|
7789
8144
|
</button>}
|
|
7790
|
-
</
|
|
7791
|
-
<
|
|
8145
|
+
</Show15>
|
|
8146
|
+
<Show15 when={props.onUngroup}>
|
|
7792
8147
|
{(ungroup) => <button
|
|
7793
8148
|
type="button"
|
|
7794
8149
|
role="menuitem"
|
|
@@ -7800,10 +8155,10 @@ function ColumnMenuPopover(props) {
|
|
|
7800
8155
|
<span class="ssg-menu-icon" />
|
|
7801
8156
|
<span class="ssg-menu-label">{texts().menuUngroup}</span>
|
|
7802
8157
|
</button>}
|
|
7803
|
-
</
|
|
7804
|
-
<
|
|
8158
|
+
</Show15>
|
|
8159
|
+
<Show15 when={props.onGroupByColumn !== void 0 || props.onUngroup !== void 0}>
|
|
7805
8160
|
<div role="separator" class="ssg-menu-separator" />
|
|
7806
|
-
</
|
|
8161
|
+
</Show15>
|
|
7807
8162
|
|
|
7808
8163
|
{
|
|
7809
8164
|
/* 列の固定 ›(小メニューはこの行 = position: relative を基準に置く。パネルの子孫なので外側の押下の判定にも入る)。 */
|
|
@@ -7864,7 +8219,7 @@ function ColumnMenuPopover(props) {
|
|
|
7864
8219
|
›
|
|
7865
8220
|
</span>
|
|
7866
8221
|
</button>
|
|
7867
|
-
<
|
|
8222
|
+
<Show15 when={isPinSubmenuOpen()}>
|
|
7868
8223
|
<div
|
|
7869
8224
|
ref={(node) => {
|
|
7870
8225
|
pinSubmenuElement = node;
|
|
@@ -7883,7 +8238,7 @@ function ColumnMenuPopover(props) {
|
|
|
7883
8238
|
pinButton?.focus();
|
|
7884
8239
|
}}
|
|
7885
8240
|
>
|
|
7886
|
-
<
|
|
8241
|
+
<For8 each={PINNED_ITEMS}>
|
|
7887
8242
|
{(item) => {
|
|
7888
8243
|
const isSelected = () => props.pinned === item.value;
|
|
7889
8244
|
return <button
|
|
@@ -7907,17 +8262,17 @@ function ColumnMenuPopover(props) {
|
|
|
7907
8262
|
<span class="ssg-menu-label">{texts()[item.label]}</span>
|
|
7908
8263
|
</button>;
|
|
7909
8264
|
}}
|
|
7910
|
-
</
|
|
7911
|
-
<
|
|
8265
|
+
</For8>
|
|
8266
|
+
<Show15 when={!props.canChangePinned}>
|
|
7912
8267
|
<div id={pinNoteId} role="none" class="ssg-menu-note">
|
|
7913
8268
|
{texts().menuPinUnavailable}
|
|
7914
8269
|
</div>
|
|
7915
|
-
</
|
|
8270
|
+
</Show15>
|
|
7916
8271
|
</div>
|
|
7917
|
-
</
|
|
8272
|
+
</Show15>
|
|
7918
8273
|
</div>
|
|
7919
8274
|
|
|
7920
|
-
<
|
|
8275
|
+
<Show15 when={props.onAutosizeColumn && props.onAutosizeAllColumns}>
|
|
7921
8276
|
<button
|
|
7922
8277
|
type="button"
|
|
7923
8278
|
role="menuitem"
|
|
@@ -7940,9 +8295,9 @@ function ColumnMenuPopover(props) {
|
|
|
7940
8295
|
<span class="ssg-menu-icon" />
|
|
7941
8296
|
<span class="ssg-menu-label">{texts().menuAutosizeAll}</span>
|
|
7942
8297
|
</button>
|
|
7943
|
-
</
|
|
8298
|
+
</Show15>
|
|
7944
8299
|
|
|
7945
|
-
<
|
|
8300
|
+
<Show15 when={props.onOpenColumnChooser}>
|
|
7946
8301
|
{(open) => <button
|
|
7947
8302
|
type="button"
|
|
7948
8303
|
role="menuitem"
|
|
@@ -7954,7 +8309,7 @@ function ColumnMenuPopover(props) {
|
|
|
7954
8309
|
<span class="ssg-menu-icon" />
|
|
7955
8310
|
<span class="ssg-menu-label">{texts().menuColumns}</span>
|
|
7956
8311
|
</button>}
|
|
7957
|
-
</
|
|
8312
|
+
</Show15>
|
|
7958
8313
|
|
|
7959
8314
|
<button
|
|
7960
8315
|
type="button"
|
|
@@ -7982,7 +8337,7 @@ function ColumnMenuPopover(props) {
|
|
|
7982
8337
|
</div>
|
|
7983
8338
|
</div>
|
|
7984
8339
|
</Portal2>}
|
|
7985
|
-
</
|
|
8340
|
+
</Show15>;
|
|
7986
8341
|
}
|
|
7987
8342
|
function SortItem(props) {
|
|
7988
8343
|
const active = () => props.sortDirection === props.direction;
|
|
@@ -8061,7 +8416,7 @@ import {
|
|
|
8061
8416
|
} from "@ishibashi0112/spreadsheet-grid-core/internal/logic/conditionalFormat";
|
|
8062
8417
|
|
|
8063
8418
|
// src/view/GridChip.tsx
|
|
8064
|
-
import { Show as
|
|
8419
|
+
import { Show as Show16 } from "solid-js";
|
|
8065
8420
|
import { resolveChipTone } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/conditionalFormat";
|
|
8066
8421
|
var SVG_NOT_FOCUSABLE3 = { focusable: "false" };
|
|
8067
8422
|
var ICON_PATHS = {
|
|
@@ -8087,7 +8442,7 @@ function GridChip(props) {
|
|
|
8087
8442
|
class={["ssg-chip", custom() ? "ssg-chip--custom" : `ssg-chip--${tone()}`]}
|
|
8088
8443
|
style={custom() ? { "--ssg-cf-chip-color": props.spec.color } : void 0}
|
|
8089
8444
|
>
|
|
8090
|
-
<
|
|
8445
|
+
<Show16 when={props.spec.icon !== false}>
|
|
8091
8446
|
<span class="ssg-chip-icon" aria-hidden="true">
|
|
8092
8447
|
<svg
|
|
8093
8448
|
viewBox="0 0 12 12"
|
|
@@ -8101,7 +8456,7 @@ function GridChip(props) {
|
|
|
8101
8456
|
{ICON_PATHS[tone()]()}
|
|
8102
8457
|
</svg>
|
|
8103
8458
|
</span>
|
|
8104
|
-
</
|
|
8459
|
+
</Show16>
|
|
8105
8460
|
<span class="ssg-chip-label">{props.children}</span>
|
|
8106
8461
|
</span>;
|
|
8107
8462
|
}
|
|
@@ -8141,7 +8496,7 @@ function createCellContextMenu(inputs) {
|
|
|
8141
8496
|
}
|
|
8142
8497
|
|
|
8143
8498
|
// src/view/CellContextMenuPopover.tsx
|
|
8144
|
-
import { For as
|
|
8499
|
+
import { For as For9, Match as Match2, Show as Show17, Switch as Switch2, createMemo as createMemo15, createSignal as createSignal11, onCleanup as onCleanup10 } from "solid-js";
|
|
8145
8500
|
import { Portal as Portal3 } from "@solidjs/web";
|
|
8146
8501
|
function CellContextMenuPopover(props) {
|
|
8147
8502
|
const portal = useGridPortal();
|
|
@@ -8154,7 +8509,7 @@ function CellContextMenuPopover(props) {
|
|
|
8154
8509
|
}
|
|
8155
8510
|
});
|
|
8156
8511
|
const layout = createMemo15(() => props.layout);
|
|
8157
|
-
const element = <
|
|
8512
|
+
const element = <Show17 when={container}>
|
|
8158
8513
|
{(mount) => <Portal3 mount={mount()}>
|
|
8159
8514
|
<div
|
|
8160
8515
|
ref={(node) => {
|
|
@@ -8180,7 +8535,7 @@ function CellContextMenuPopover(props) {
|
|
|
8180
8535
|
...layout().maxHeight !== void 0 ? { "max-height": px(layout().maxHeight ?? 0), "overflow-y": "auto" } : null
|
|
8181
8536
|
}}
|
|
8182
8537
|
>
|
|
8183
|
-
<
|
|
8538
|
+
<For9 each={props.items}>
|
|
8184
8539
|
{(item) => <Switch2
|
|
8185
8540
|
fallback={
|
|
8186
8541
|
// action(kind 省略 or 'action')。押すと onSelect の後に閉じる。disabled は button の disabled で押せない。
|
|
@@ -8212,10 +8567,10 @@ function CellContextMenuPopover(props) {
|
|
|
8212
8567
|
{(custom) => <div role="none">{custom().render({ close: props.onRequestClose })}</div>}
|
|
8213
8568
|
</Match2>
|
|
8214
8569
|
</Switch2>}
|
|
8215
|
-
</
|
|
8570
|
+
</For9>
|
|
8216
8571
|
</div>
|
|
8217
8572
|
</Portal3>}
|
|
8218
|
-
</
|
|
8573
|
+
</Show17>;
|
|
8219
8574
|
createPortalTokens(panel, () => props.themeClassName, layout);
|
|
8220
8575
|
return element;
|
|
8221
8576
|
}
|
|
@@ -8433,7 +8788,7 @@ function createFillHandle(inputs) {
|
|
|
8433
8788
|
}
|
|
8434
8789
|
|
|
8435
8790
|
// src/view/FillHandleLayer.tsx
|
|
8436
|
-
import { For as
|
|
8791
|
+
import { For as For10, Show as Show18, createEffect as createEffect7, createMemo as createMemo17, createSignal as createSignal12, onCleanup as onCleanup11 } from "solid-js";
|
|
8437
8792
|
import { Portal as Portal4 } from "@solidjs/web";
|
|
8438
8793
|
import { formatLocaleText as formatLocaleText8 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
|
|
8439
8794
|
import { getActiveElement } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/shadowDom";
|
|
@@ -8455,7 +8810,7 @@ function FillHandleLayer(props) {
|
|
|
8455
8810
|
{
|
|
8456
8811
|
/* ドラッグ中の埋める範囲の点線。 */
|
|
8457
8812
|
}
|
|
8458
|
-
<
|
|
8813
|
+
<For10 each={props.fill.previewRects(props.pane)} keyed={false}>
|
|
8459
8814
|
{(rect) => <div
|
|
8460
8815
|
class="ssg-fill-preview"
|
|
8461
8816
|
style={{
|
|
@@ -8467,11 +8822,11 @@ function FillHandleLayer(props) {
|
|
|
8467
8822
|
}}
|
|
8468
8823
|
data-ssg-fill-preview=""
|
|
8469
8824
|
/>}
|
|
8470
|
-
</
|
|
8825
|
+
</For10>
|
|
8471
8826
|
{
|
|
8472
8827
|
/* 選択範囲の右下の四角。 */
|
|
8473
8828
|
}
|
|
8474
|
-
<
|
|
8829
|
+
<Show18 when={corner()}>
|
|
8475
8830
|
{(current) => <div
|
|
8476
8831
|
class="ssg-fill-handle"
|
|
8477
8832
|
style={{
|
|
@@ -8483,12 +8838,12 @@ function FillHandleLayer(props) {
|
|
|
8483
8838
|
aria-hidden="true"
|
|
8484
8839
|
onPointerDown={(event) => props.fill.controller.handlePointerDown(event)}
|
|
8485
8840
|
/>}
|
|
8486
|
-
</
|
|
8841
|
+
</Show18>
|
|
8487
8842
|
{
|
|
8488
8843
|
/* 埋めたあとのボタン(左上の位置)。 */
|
|
8489
8844
|
}
|
|
8490
|
-
<
|
|
8491
|
-
{(snapshot2) => <
|
|
8845
|
+
<Show18 when={filled()}>
|
|
8846
|
+
{(snapshot2) => <Show18 when={chip()}>
|
|
8492
8847
|
{(position) => <FillOptionsChip
|
|
8493
8848
|
fill={props.fill}
|
|
8494
8849
|
x={props.leadingWidth + position().x}
|
|
@@ -8496,8 +8851,8 @@ function FillHandleLayer(props) {
|
|
|
8496
8851
|
kind={snapshot2().kind}
|
|
8497
8852
|
menuOpen={snapshot2().menu !== null}
|
|
8498
8853
|
/>}
|
|
8499
|
-
</
|
|
8500
|
-
</
|
|
8854
|
+
</Show18>}
|
|
8855
|
+
</Show18>
|
|
8501
8856
|
</>;
|
|
8502
8857
|
}
|
|
8503
8858
|
function FillOptionsChip(props) {
|
|
@@ -8584,7 +8939,7 @@ function FillOptionsMenu(props) {
|
|
|
8584
8939
|
}
|
|
8585
8940
|
event.stopPropagation();
|
|
8586
8941
|
};
|
|
8587
|
-
const element = <
|
|
8942
|
+
const element = <Show18 when={container}>
|
|
8588
8943
|
{(mount) => <Portal4 mount={mount()}>
|
|
8589
8944
|
<div
|
|
8590
8945
|
ref={(node) => {
|
|
@@ -8600,7 +8955,7 @@ function FillOptionsMenu(props) {
|
|
|
8600
8955
|
onKeyDown={handleKeyDown}
|
|
8601
8956
|
onContextMenu={(event) => event.preventDefault()}
|
|
8602
8957
|
>
|
|
8603
|
-
<
|
|
8958
|
+
<For10 each={MENU_ITEMS}>
|
|
8604
8959
|
{(item) => {
|
|
8605
8960
|
const disabled = () => item.kind === "series" && !props.seriesAvailable;
|
|
8606
8961
|
const checked = () => item.kind === props.kind;
|
|
@@ -8619,10 +8974,10 @@ function FillOptionsMenu(props) {
|
|
|
8619
8974
|
<span class="ssg-menu-label">{texts()[item.label]}</span>
|
|
8620
8975
|
</button>;
|
|
8621
8976
|
}}
|
|
8622
|
-
</
|
|
8977
|
+
</For10>
|
|
8623
8978
|
</div>
|
|
8624
8979
|
</Portal4>}
|
|
8625
|
-
</
|
|
8980
|
+
</Show18>;
|
|
8626
8981
|
createPortalTokens(panel, () => props.themeClassName, () => null);
|
|
8627
8982
|
return element;
|
|
8628
8983
|
}
|
|
@@ -8637,7 +8992,7 @@ function FillTooltip(props) {
|
|
|
8637
8992
|
const visible = createMemo17(() => pointer() !== null);
|
|
8638
8993
|
const container = createMemo17(() => visible() ? portal.container() : null);
|
|
8639
8994
|
const [tooltip, setTooltip] = createSignal12();
|
|
8640
|
-
const element = <
|
|
8995
|
+
const element = <Show18 when={container()}>
|
|
8641
8996
|
{(mount) => <Portal4 mount={mount()}>
|
|
8642
8997
|
<div
|
|
8643
8998
|
ref={setTooltip}
|
|
@@ -8652,7 +9007,7 @@ function FillTooltip(props) {
|
|
|
8652
9007
|
{props.text}
|
|
8653
9008
|
</div>
|
|
8654
9009
|
</Portal4>}
|
|
8655
|
-
</
|
|
9010
|
+
</Show18>;
|
|
8656
9011
|
createPortalTokens(tooltip, () => props.themeClassName, () => null);
|
|
8657
9012
|
return element;
|
|
8658
9013
|
}
|
|
@@ -8666,8 +9021,8 @@ function FillHandlePortals(props) {
|
|
|
8666
9021
|
return snapshot2.status === "dragging" ? snapshot2.previewText : null;
|
|
8667
9022
|
});
|
|
8668
9023
|
return <>
|
|
8669
|
-
<
|
|
8670
|
-
{(snapshot2) => <
|
|
9024
|
+
<Show18 when={menu()}>
|
|
9025
|
+
{(snapshot2) => <Show18 when={snapshot2().menu}>
|
|
8671
9026
|
{(layout) => <FillOptionsMenu
|
|
8672
9027
|
fill={props.fill}
|
|
8673
9028
|
layout={layout()}
|
|
@@ -8675,11 +9030,11 @@ function FillHandlePortals(props) {
|
|
|
8675
9030
|
seriesAvailable={snapshot2().seriesAvailable}
|
|
8676
9031
|
themeClassName={props.themeClassName}
|
|
8677
9032
|
/>}
|
|
8678
|
-
</
|
|
8679
|
-
</
|
|
8680
|
-
<
|
|
9033
|
+
</Show18>}
|
|
9034
|
+
</Show18>
|
|
9035
|
+
<Show18 when={tooltipText() !== null}>
|
|
8681
9036
|
<FillTooltip fill={props.fill} text={tooltipText() ?? ""} themeClassName={props.themeClassName} />
|
|
8682
|
-
</
|
|
9037
|
+
</Show18>
|
|
8683
9038
|
</>;
|
|
8684
9039
|
}
|
|
8685
9040
|
|
|
@@ -8989,7 +9344,7 @@ function createFilterManagement(inputs) {
|
|
|
8989
9344
|
}
|
|
8990
9345
|
|
|
8991
9346
|
// src/view/ColumnFilterPopoverHost.tsx
|
|
8992
|
-
import { Show as
|
|
9347
|
+
import { Show as Show19, createMemo as createMemo21, untrack as untrack16 } from "solid-js";
|
|
8993
9348
|
import {
|
|
8994
9349
|
createFilterPopoverCommands,
|
|
8995
9350
|
createFilterPopoverDerivedResolver
|
|
@@ -9165,12 +9520,12 @@ function ColumnFilterPopoverHost(props) {
|
|
|
9165
9520
|
columnKey
|
|
9166
9521
|
});
|
|
9167
9522
|
});
|
|
9168
|
-
return <
|
|
9169
|
-
{(column) => <
|
|
9170
|
-
{(layout) => <
|
|
9523
|
+
return <Show19 when={openedColumn()}>
|
|
9524
|
+
{(column) => <Show19 when={filterPopover.layout()}>
|
|
9525
|
+
{(layout) => <Show19 when={props.views()}>
|
|
9171
9526
|
{(views) => {
|
|
9172
9527
|
const ColumnFilterPopover = untrack16(views).ColumnFilterPopover;
|
|
9173
|
-
return <
|
|
9528
|
+
return <Show19 when={column().key} keyed>
|
|
9174
9529
|
{(columnKey) => <ColumnFilterPopover
|
|
9175
9530
|
popoverSlot={props.popoverSlot}
|
|
9176
9531
|
themeClassName={props.themeClassName}
|
|
@@ -9211,22 +9566,22 @@ function ColumnFilterPopoverHost(props) {
|
|
|
9211
9566
|
onSetClear={commands.clearSetFilterPopoverValue}
|
|
9212
9567
|
onSetReplaceSelection={commands.handleSetFilterReplaceSelection}
|
|
9213
9568
|
/>}
|
|
9214
|
-
</
|
|
9569
|
+
</Show19>;
|
|
9215
9570
|
}}
|
|
9216
|
-
</
|
|
9217
|
-
</
|
|
9218
|
-
</
|
|
9571
|
+
</Show19>}
|
|
9572
|
+
</Show19>}
|
|
9573
|
+
</Show19>;
|
|
9219
9574
|
}
|
|
9220
9575
|
|
|
9221
9576
|
// src/view/GridFilterChipBar.tsx
|
|
9222
|
-
import { For as
|
|
9577
|
+
import { For as For11, Show as Show20, createUniqueId as createUniqueId5 } from "solid-js";
|
|
9223
9578
|
import { formatLocaleText as formatLocaleText11 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
|
|
9224
9579
|
function GridFilterChipBar(props) {
|
|
9225
9580
|
const texts = useFeatureLocaleText();
|
|
9226
9581
|
const chipIdBase = createUniqueId5();
|
|
9227
|
-
return <
|
|
9582
|
+
return <Show20 when={props.entries.length > 0}>
|
|
9228
9583
|
<div class={["ssg-filter-chip-bar", props.slot?.className]} style={props.slot?.style}>
|
|
9229
|
-
<
|
|
9584
|
+
<For11 each={props.entries} keyed={(entry) => entry.columnKey}>
|
|
9230
9585
|
{(entry, index) => <div class={entry().isHidden ? "ssg-filter-chip ssg-filter-chip--hidden" : "ssg-filter-chip"}>
|
|
9231
9586
|
<button
|
|
9232
9587
|
type="button"
|
|
@@ -9261,7 +9616,7 @@ function GridFilterChipBar(props) {
|
|
|
9261
9616
|
{formatLocaleText11(texts().filterEditFor, { column: entry().title })}
|
|
9262
9617
|
</span>
|
|
9263
9618
|
</div>}
|
|
9264
|
-
</
|
|
9619
|
+
</For11>
|
|
9265
9620
|
<button
|
|
9266
9621
|
type="button"
|
|
9267
9622
|
class="ssg-filter-chip-bar-clear-all"
|
|
@@ -9271,15 +9626,15 @@ function GridFilterChipBar(props) {
|
|
|
9271
9626
|
{texts().clearAll}
|
|
9272
9627
|
</button>
|
|
9273
9628
|
</div>
|
|
9274
|
-
</
|
|
9629
|
+
</Show20>;
|
|
9275
9630
|
}
|
|
9276
9631
|
|
|
9277
9632
|
// src/view/lazyPopups.ts
|
|
9278
9633
|
import { createEffect as createEffect8, createMemo as createMemo22 } from "solid-js";
|
|
9279
9634
|
import { createLazyModule } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/lazyModule";
|
|
9280
9635
|
import { scheduleIdleTask } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/scheduler";
|
|
9281
|
-
var filterPopoverModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/ColumnFilterPopover-
|
|
9282
|
-
var toolPanelModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/toolPanelViews-
|
|
9636
|
+
var filterPopoverModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/ColumnFilterPopover-7COSTSPD.jsx"));
|
|
9637
|
+
var toolPanelModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/toolPanelViews-WBFE4QVY.jsx"));
|
|
9283
9638
|
var dateEditorCalendarModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/DateEditorCalendar-FVUNVD7Y.jsx"));
|
|
9284
9639
|
var preloadGridPopups = async () => {
|
|
9285
9640
|
await Promise.all([filterPopoverModule.load(), toolPanelModule.load(), dateEditorCalendarModule.load()]);
|
|
@@ -9344,7 +9699,7 @@ import { splitTextByFindRanges } from "@ishibashi0112/spreadsheet-grid-core/inte
|
|
|
9344
9699
|
import { DEFAULT_FIND_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
|
|
9345
9700
|
|
|
9346
9701
|
// src/view/GridFindBar.tsx
|
|
9347
|
-
import { Show as
|
|
9702
|
+
import { Show as Show21, createEffect as createEffect9, createRenderEffect as createRenderEffect6, createSignal as createSignal14, onSettled as onSettled7, untrack as untrack17 } from "solid-js";
|
|
9348
9703
|
import { isImeComposingKeyEvent as isImeComposingKeyEvent3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
|
|
9349
9704
|
function GridFindBar(props) {
|
|
9350
9705
|
const texts = useFeatureLocaleText();
|
|
@@ -9498,10 +9853,10 @@ function GridFindBar(props) {
|
|
|
9498
9853
|
}}
|
|
9499
9854
|
data-ssg-find-bar=""
|
|
9500
9855
|
>
|
|
9501
|
-
<
|
|
9856
|
+
<Show21 when={props.replaceParts} fallback={main()}>
|
|
9502
9857
|
{(parts) => <>
|
|
9503
9858
|
<div class="ssg-find-bar-row">{main(parts())}</div>
|
|
9504
|
-
<
|
|
9859
|
+
<Show21 when={props.replaceSnapshot?.expanded === true && props.replaceSnapshot}>
|
|
9505
9860
|
{(snapshot2) => {
|
|
9506
9861
|
const Section = untrack17(parts).FindReplaceSection;
|
|
9507
9862
|
return <Section
|
|
@@ -9514,9 +9869,9 @@ function GridFindBar(props) {
|
|
|
9514
9869
|
onClose={() => props.onClose()}
|
|
9515
9870
|
/>;
|
|
9516
9871
|
}}
|
|
9517
|
-
</
|
|
9872
|
+
</Show21>
|
|
9518
9873
|
</>}
|
|
9519
|
-
</
|
|
9874
|
+
</Show21>
|
|
9520
9875
|
</div>;
|
|
9521
9876
|
}
|
|
9522
9877
|
|
|
@@ -9533,7 +9888,7 @@ import { createFindReplaceController } from "@ishibashi0112/spreadsheet-grid-cor
|
|
|
9533
9888
|
import { DEFAULT_FIND_REPLACE_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
|
|
9534
9889
|
|
|
9535
9890
|
// src/view/GridFindReplace.tsx
|
|
9536
|
-
import { Show as
|
|
9891
|
+
import { Show as Show22, createRenderEffect as createRenderEffect7, createSignal as createSignal15, untrack as untrack18 } from "solid-js";
|
|
9537
9892
|
import { formatLocaleText as formatLocaleText12 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
|
|
9538
9893
|
import { isImeComposingKeyEvent as isImeComposingKeyEvent4 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
|
|
9539
9894
|
var describeFindReplaceNotice = (notice, texts) => {
|
|
@@ -9681,17 +10036,17 @@ function GridFindReplaceSection(props) {
|
|
|
9681
10036
|
/* 知らせのたびに文の要素を作り直します(同じ文が続いても読み上げに届く。React 版と同じ)。 */
|
|
9682
10037
|
}
|
|
9683
10038
|
<div class={["ssg-find-bar-message", { "ssg-find-bar-message--empty": message().length === 0 }]} aria-live="polite">
|
|
9684
|
-
<
|
|
10039
|
+
<Show22 when={props.snapshot.noticeId + 1} keyed>
|
|
9685
10040
|
{(noticeKey) => {
|
|
9686
10041
|
void noticeKey;
|
|
9687
10042
|
return <span>{message()}</span>;
|
|
9688
10043
|
}}
|
|
9689
|
-
</
|
|
10044
|
+
</Show22>
|
|
9690
10045
|
</div>
|
|
9691
10046
|
</>;
|
|
9692
10047
|
}
|
|
9693
10048
|
function GridFindScopeOverlay(props) {
|
|
9694
|
-
return <
|
|
10049
|
+
return <Show22 when={props.rect}>
|
|
9695
10050
|
{(rect) => <div
|
|
9696
10051
|
class="ssg-find-scope-overlay"
|
|
9697
10052
|
style={{
|
|
@@ -9703,7 +10058,7 @@ function GridFindScopeOverlay(props) {
|
|
|
9703
10058
|
}}
|
|
9704
10059
|
data-ssg-find-scope=""
|
|
9705
10060
|
/>}
|
|
9706
|
-
</
|
|
10061
|
+
</Show22>;
|
|
9707
10062
|
}
|
|
9708
10063
|
|
|
9709
10064
|
// src/features/findReplace.ts
|
|
@@ -9732,7 +10087,7 @@ import { buildGroupTree, flattenGroupTree } from "@ishibashi0112/spreadsheet-gri
|
|
|
9732
10087
|
import { DEFAULT_GROUPING_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
|
|
9733
10088
|
|
|
9734
10089
|
// src/view/GridBodyGroupRow.tsx
|
|
9735
|
-
import { For as
|
|
10090
|
+
import { For as For12, Show as Show23, createMemo as createMemo23 } from "solid-js";
|
|
9736
10091
|
import { GROUP_AUTO_COLUMN_KEY as GROUP_AUTO_COLUMN_KEY3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/grouping";
|
|
9737
10092
|
import {
|
|
9738
10093
|
formatTotalRowCellText,
|
|
@@ -9762,7 +10117,7 @@ function GridBodyGroupRow(props) {
|
|
|
9762
10117
|
}}
|
|
9763
10118
|
onDblClick={() => props.onGroupToggle(props.groupRow.groupKey)}
|
|
9764
10119
|
>
|
|
9765
|
-
<
|
|
10120
|
+
<Show23 when={props.ownsRowHeader}>
|
|
9766
10121
|
<div
|
|
9767
10122
|
role={rowHeaderIsCell() ? "rowheader" : void 0}
|
|
9768
10123
|
aria-colindex={rowHeaderIsCell() ? 1 : void 0}
|
|
@@ -9785,10 +10140,10 @@ function GridBodyGroupRow(props) {
|
|
|
9785
10140
|
height: px(props.rowHeight)
|
|
9786
10141
|
}}
|
|
9787
10142
|
>
|
|
9788
|
-
{props.showRowCheckbox ? null : props.rowIndex + 1}
|
|
10143
|
+
{props.showRowCheckbox ? null : props.rowIndex + (props.rowNumberOffset ?? 0) + 1}
|
|
9789
10144
|
</div>
|
|
9790
|
-
</
|
|
9791
|
-
<
|
|
10145
|
+
</Show23>
|
|
10146
|
+
<For12 each={props.entries} keyed={(entry) => entry.column.key}>
|
|
9792
10147
|
{(entry) => {
|
|
9793
10148
|
const unbound = createMemo23(() => entry().column);
|
|
9794
10149
|
const column = () => unbound();
|
|
@@ -9830,19 +10185,19 @@ function GridBodyGroupRow(props) {
|
|
|
9830
10185
|
"z-index": 1
|
|
9831
10186
|
}}
|
|
9832
10187
|
>
|
|
9833
|
-
<
|
|
10188
|
+
<Show23
|
|
9834
10189
|
when={isAutoGroupColumn()}
|
|
9835
|
-
fallback={<
|
|
10190
|
+
fallback={<Show23 when={aggregate()}>
|
|
9836
10191
|
{(shown) => <span
|
|
9837
10192
|
class="ssg-group-value"
|
|
9838
10193
|
data-ssg-tooltip-overflow={shown().text !== "" ? shown().caption !== void 0 ? `${shown().caption} ${shown().text}` : shown().text : void 0}
|
|
9839
10194
|
>
|
|
9840
|
-
<
|
|
10195
|
+
<Show23 when={shown().caption !== void 0 && shown().text !== ""}>
|
|
9841
10196
|
<span class="ssg-group-caption">{shown().caption}</span>
|
|
9842
|
-
</
|
|
10197
|
+
</Show23>
|
|
9843
10198
|
{shown().text}
|
|
9844
10199
|
</span>}
|
|
9845
|
-
</
|
|
10200
|
+
</Show23>}
|
|
9846
10201
|
>
|
|
9847
10202
|
<span
|
|
9848
10203
|
aria-hidden="true"
|
|
@@ -9866,10 +10221,10 @@ function GridBodyGroupRow(props) {
|
|
|
9866
10221
|
<span class="ssg-group-count">
|
|
9867
10222
|
{formatLocaleText13(texts().groupRowCount, { count: formatTotalRowNumber(props.groupRow.leafCount) })}
|
|
9868
10223
|
</span>
|
|
9869
|
-
</
|
|
10224
|
+
</Show23>
|
|
9870
10225
|
</div>;
|
|
9871
10226
|
}}
|
|
9872
|
-
</
|
|
10227
|
+
</For12>
|
|
9873
10228
|
</div>;
|
|
9874
10229
|
}
|
|
9875
10230
|
|
|
@@ -9902,7 +10257,7 @@ import {
|
|
|
9902
10257
|
} from "@ishibashi0112/spreadsheet-grid-core/internal/logic/labelRows";
|
|
9903
10258
|
|
|
9904
10259
|
// src/view/GridBodyLabelRow.tsx
|
|
9905
|
-
import { Show as
|
|
10260
|
+
import { Show as Show24, createMemo as createMemo24 } from "solid-js";
|
|
9906
10261
|
var createLabelRowRenderContext = (labelRow, rowIndex, rowKey) => {
|
|
9907
10262
|
const row = createMemo24(() => labelRow().row);
|
|
9908
10263
|
const sourceRowIndex = createMemo24(() => labelRow().sourceIndex);
|
|
@@ -9932,7 +10287,7 @@ var createLabelRowRenderContext = (labelRow, rowIndex, rowKey) => {
|
|
|
9932
10287
|
function GridBodyLabelRow(props) {
|
|
9933
10288
|
const ctx = createLabelRowRenderContext(
|
|
9934
10289
|
() => props.labelRow,
|
|
9935
|
-
() => props.rowIndex,
|
|
10290
|
+
() => props.rowIndex + (props.rowIndexOffset ?? 0),
|
|
9936
10291
|
() => props.rowKey
|
|
9937
10292
|
);
|
|
9938
10293
|
return <div
|
|
@@ -9952,7 +10307,7 @@ function GridBodyLabelRow(props) {
|
|
|
9952
10307
|
transform: `translateY(${props.top}px)`
|
|
9953
10308
|
}}
|
|
9954
10309
|
>
|
|
9955
|
-
<
|
|
10310
|
+
<Show24 when={props.ownsRowHeader}>
|
|
9956
10311
|
<div
|
|
9957
10312
|
aria-hidden="true"
|
|
9958
10313
|
class={["ssg-header-cell", "ssg-row-header-cell", "ssg-row-header-cell--label", props.slots.rowHeaderCell?.className]}
|
|
@@ -9963,8 +10318,8 @@ function GridBodyLabelRow(props) {
|
|
|
9963
10318
|
height: px(props.rowHeight)
|
|
9964
10319
|
}}
|
|
9965
10320
|
/>
|
|
9966
|
-
</
|
|
9967
|
-
<
|
|
10321
|
+
</Show24>
|
|
10322
|
+
<Show24 when={props.renderContent}>
|
|
9968
10323
|
{(render) => <div
|
|
9969
10324
|
role="rowheader"
|
|
9970
10325
|
aria-colindex={1}
|
|
@@ -9978,17 +10333,17 @@ function GridBodyLabelRow(props) {
|
|
|
9978
10333
|
{render()(ctx)}
|
|
9979
10334
|
</div>
|
|
9980
10335
|
</div>}
|
|
9981
|
-
</
|
|
10336
|
+
</Show24>
|
|
9982
10337
|
</div>;
|
|
9983
10338
|
}
|
|
9984
10339
|
|
|
9985
10340
|
// src/view/GridStickyLabelLayer.tsx
|
|
9986
|
-
import { Show as
|
|
10341
|
+
import { Show as Show25, createMemo as createMemo25, onSettled as onSettled8 } from "solid-js";
|
|
9987
10342
|
var FOCUSABLE_SELECTOR = 'a[href], button, input, select, textarea, [tabindex], [contenteditable="true"]';
|
|
9988
10343
|
function GridStickyLabelLayer(props) {
|
|
9989
|
-
return <
|
|
10344
|
+
return <Show25 when={props.entry}>
|
|
9990
10345
|
{(entry) => <StickyLabel layer={props} entry={entry} />}
|
|
9991
|
-
</
|
|
10346
|
+
</Show25>;
|
|
9992
10347
|
}
|
|
9993
10348
|
function StickyLabel(props) {
|
|
9994
10349
|
const layer = props.layer;
|
|
@@ -9996,7 +10351,7 @@ function StickyLabel(props) {
|
|
|
9996
10351
|
const rowIndex = createMemo25(() => props.entry().rowIndex);
|
|
9997
10352
|
const rowKey = createMemo25(() => props.entry().rowKey);
|
|
9998
10353
|
const height = createMemo25(() => props.entry().height);
|
|
9999
|
-
const ctx = createLabelRowRenderContext(labelRow, rowIndex, rowKey);
|
|
10354
|
+
const ctx = createLabelRowRenderContext(labelRow, () => rowIndex() + (layer.rowIndexOffset ?? 0), rowKey);
|
|
10000
10355
|
let element;
|
|
10001
10356
|
onSettled8(() => {
|
|
10002
10357
|
const target = element;
|
|
@@ -10050,7 +10405,7 @@ function StickyLabel(props) {
|
|
|
10050
10405
|
...props.entry().pushOffset > 0 ? { transform: `translateY(${-props.entry().pushOffset}px)` } : null
|
|
10051
10406
|
}}
|
|
10052
10407
|
>
|
|
10053
|
-
<
|
|
10408
|
+
<Show25 when={layer.ownsRowHeader}>
|
|
10054
10409
|
<div
|
|
10055
10410
|
class={["ssg-header-cell", "ssg-row-header-cell", "ssg-row-header-cell--label", layer.slots.rowHeaderCell?.className]}
|
|
10056
10411
|
style={{
|
|
@@ -10060,8 +10415,8 @@ function StickyLabel(props) {
|
|
|
10060
10415
|
height: px(height())
|
|
10061
10416
|
}}
|
|
10062
10417
|
/>
|
|
10063
|
-
</
|
|
10064
|
-
<
|
|
10418
|
+
</Show25>
|
|
10419
|
+
<Show25 when={layer.renderContent}>
|
|
10065
10420
|
{(render) => <div
|
|
10066
10421
|
class="ssg-label-row-content-holder"
|
|
10067
10422
|
style={{ left: px(layer.contentStickyLeft), width: px(layer.contentWidth), height: px(height()) }}
|
|
@@ -10070,12 +10425,12 @@ function StickyLabel(props) {
|
|
|
10070
10425
|
class={["ssg-label-row-content", layer.slots.labelRowContent?.className]}
|
|
10071
10426
|
style={layer.slots.labelRowContent?.style}
|
|
10072
10427
|
>
|
|
10073
|
-
<
|
|
10428
|
+
<Show25 when={[rowKey(), render()]} keyed>
|
|
10074
10429
|
{([, renderContent]) => renderContent(ctx)}
|
|
10075
|
-
</
|
|
10430
|
+
</Show25>
|
|
10076
10431
|
</div>
|
|
10077
10432
|
</div>}
|
|
10078
|
-
</
|
|
10433
|
+
</Show25>
|
|
10079
10434
|
</div>
|
|
10080
10435
|
</div>
|
|
10081
10436
|
);
|
|
@@ -10145,6 +10500,8 @@ function createServerSide(args) {
|
|
|
10145
10500
|
requestRange,
|
|
10146
10501
|
refresh: controller.refresh,
|
|
10147
10502
|
retryFailedBlocks: controller.retryFailedBlocks,
|
|
10503
|
+
// 追加(1.14.0): サーバーから読んでいる間か(getRowCounts の loading)。
|
|
10504
|
+
isLoading: controller.isLoading,
|
|
10148
10505
|
// 書き戻し先(dataSource.updateRows)があるか。無い間はシェルがすべてのセルを編集できないようにする。
|
|
10149
10506
|
canUpdateRows: createMemo26(() => args().dataSource?.updateRows !== void 0),
|
|
10150
10507
|
applyCellEdits: controller.applyCellEdits
|
|
@@ -10152,7 +10509,7 @@ function createServerSide(args) {
|
|
|
10152
10509
|
}
|
|
10153
10510
|
|
|
10154
10511
|
// src/view/GridServerSideErrorBars.tsx
|
|
10155
|
-
import { Show as
|
|
10512
|
+
import { Show as Show26, createSignal as createSignal16 } from "solid-js";
|
|
10156
10513
|
import { formatLocaleText as formatLocaleText14 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
|
|
10157
10514
|
function GridServerSideErrorBars(props) {
|
|
10158
10515
|
const [dismissedLoadError, setDismissedLoadError] = createSignal16(null);
|
|
@@ -10160,9 +10517,9 @@ function GridServerSideErrorBars(props) {
|
|
|
10160
10517
|
const texts = () => props.localeTexts;
|
|
10161
10518
|
const shownLoadError = () => props.loadError !== null && props.loadError !== dismissedLoadError() ? props.loadError : null;
|
|
10162
10519
|
const shownWriteError = () => props.writeError !== null && props.writeError !== dismissedWriteError() ? props.writeError : null;
|
|
10163
|
-
return <
|
|
10520
|
+
return <Show26 when={shownLoadError() !== null || shownWriteError() !== null}>
|
|
10164
10521
|
<div class="ssg-ssrm-error-bars">
|
|
10165
|
-
<
|
|
10522
|
+
<Show26 when={shownLoadError()}>
|
|
10166
10523
|
{(loadError) => <div class={["ssg-ssrm-error-bar", props.slot?.className]} style={props.slot?.style} role="alert">
|
|
10167
10524
|
<span class="ssg-ssrm-error-bar-dot" aria-hidden="true" />
|
|
10168
10525
|
<span class="ssg-ssrm-error-bar-msg">
|
|
@@ -10180,8 +10537,8 @@ function GridServerSideErrorBars(props) {
|
|
|
10180
10537
|
×
|
|
10181
10538
|
</button>
|
|
10182
10539
|
</div>}
|
|
10183
|
-
</
|
|
10184
|
-
<
|
|
10540
|
+
</Show26>
|
|
10541
|
+
<Show26 when={shownWriteError()}>
|
|
10185
10542
|
{(writeError) => <div class={["ssg-ssrm-error-bar", props.slot?.className]} style={props.slot?.style} role="alert">
|
|
10186
10543
|
<span class="ssg-ssrm-error-bar-dot" aria-hidden="true" />
|
|
10187
10544
|
<span class="ssg-ssrm-error-bar-msg">
|
|
@@ -10196,89 +10553,9 @@ function GridServerSideErrorBars(props) {
|
|
|
10196
10553
|
×
|
|
10197
10554
|
</button>
|
|
10198
10555
|
</div>}
|
|
10199
|
-
</
|
|
10556
|
+
</Show26>
|
|
10200
10557
|
</div>
|
|
10201
|
-
</
|
|
10202
|
-
}
|
|
10203
|
-
|
|
10204
|
-
// src/view/GridBodySkeletonRow.tsx
|
|
10205
|
-
import { For as For12, Show as Show26 } from "solid-js";
|
|
10206
|
-
var SKELETON_BAR_WIDTHS = ["62%", "46%", "78%", "54%"];
|
|
10207
|
-
function GridBodySkeletonRow(props) {
|
|
10208
|
-
return <div
|
|
10209
|
-
data-pane={props.pane}
|
|
10210
|
-
data-row-index={props.rowIndex}
|
|
10211
|
-
data-skeleton-row=""
|
|
10212
|
-
role="row"
|
|
10213
|
-
aria-rowindex={props.rowIndex + 2 + props.ariaRowOffset}
|
|
10214
|
-
aria-busy="true"
|
|
10215
|
-
class={["ssg-body-row", props.slots.bodyRow?.className]}
|
|
10216
|
-
style={{
|
|
10217
|
-
...props.slots.bodyRow?.style,
|
|
10218
|
-
height: px(props.rowHeight),
|
|
10219
|
-
transform: `translateY(${props.top}px)`
|
|
10220
|
-
}}
|
|
10221
|
-
>
|
|
10222
|
-
<Show26 when={props.ownsRowHeader}>
|
|
10223
|
-
<div
|
|
10224
|
-
role="rowheader"
|
|
10225
|
-
aria-colindex={1}
|
|
10226
|
-
onPointerDown={(event) => props.onRowHeaderPointerDown(props.rowIndex, event)}
|
|
10227
|
-
onPointerEnter={(event) => props.onRowHeaderPointerEnter(props.rowIndex, event)}
|
|
10228
|
-
onPointerLeave={() => props.onRowHeaderPointerLeave(props.rowIndex)}
|
|
10229
|
-
class={[
|
|
10230
|
-
"ssg-header-cell",
|
|
10231
|
-
"ssg-row-header-cell",
|
|
10232
|
-
"ssg-skeleton-rowheader",
|
|
10233
|
-
{
|
|
10234
|
-
"ssg-row-header-cell--checkbox": props.showRowCheckbox,
|
|
10235
|
-
"ssg-header-cell--hovered": props.isRowHovered
|
|
10236
|
-
},
|
|
10237
|
-
props.slots.rowHeaderCell?.className
|
|
10238
|
-
]}
|
|
10239
|
-
style={{
|
|
10240
|
-
...props.slots.rowHeaderCell?.style,
|
|
10241
|
-
width: px(props.rowHeaderWidth),
|
|
10242
|
-
"min-width": px(props.rowHeaderWidth),
|
|
10243
|
-
height: px(props.rowHeight)
|
|
10244
|
-
}}
|
|
10245
|
-
>
|
|
10246
|
-
<Show26 when={props.showRowCheckbox} fallback={props.rowIndex + 1}>
|
|
10247
|
-
<RowSelectionCheckbox slot={props.slots.checkbox} state="unchecked" disabled />
|
|
10248
|
-
</Show26>
|
|
10249
|
-
</div>
|
|
10250
|
-
</Show26>
|
|
10251
|
-
<For12 each={props.entries} keyed={(entry) => entry.logicalIndex}>
|
|
10252
|
-
{(entry) => {
|
|
10253
|
-
const cell = () => ({ row: props.rowIndex, col: entry().logicalIndex });
|
|
10254
|
-
return <div
|
|
10255
|
-
role="gridcell"
|
|
10256
|
-
aria-colindex={entry().logicalIndex + 2}
|
|
10257
|
-
class={[
|
|
10258
|
-
"ssg-body-cell",
|
|
10259
|
-
{ "ssg-body-cell--row-hovered": props.isRowHovered },
|
|
10260
|
-
props.slots.bodyCell?.className
|
|
10261
|
-
]}
|
|
10262
|
-
onPointerDown={(event) => props.onCellPointerDown(cell(), event)}
|
|
10263
|
-
onPointerEnter={(event) => props.onCellPointerEnter(cell(), event)}
|
|
10264
|
-
style={{
|
|
10265
|
-
...props.slots.bodyCell?.style,
|
|
10266
|
-
left: px(props.leadingWidth + entry().paneLocalStart),
|
|
10267
|
-
width: px(entry().paneLocalSize),
|
|
10268
|
-
"min-width": px(entry().paneLocalSize),
|
|
10269
|
-
height: px(props.rowHeight),
|
|
10270
|
-
"z-index": 1
|
|
10271
|
-
}}
|
|
10272
|
-
>
|
|
10273
|
-
<div
|
|
10274
|
-
aria-hidden="true"
|
|
10275
|
-
class="ssg-skeleton-bar"
|
|
10276
|
-
style={{ width: SKELETON_BAR_WIDTHS[entry().logicalIndex % SKELETON_BAR_WIDTHS.length] }}
|
|
10277
|
-
/>
|
|
10278
|
-
</div>;
|
|
10279
|
-
}}
|
|
10280
|
-
</For12>
|
|
10281
|
-
</div>;
|
|
10558
|
+
</Show26>;
|
|
10282
10559
|
}
|
|
10283
10560
|
|
|
10284
10561
|
// src/features/serverSide.ts
|
|
@@ -10545,7 +10822,9 @@ function createRowDrag(inputs) {
|
|
|
10545
10822
|
const leftIndicatorRef = { current: null };
|
|
10546
10823
|
const centerIndicatorRef = { current: null };
|
|
10547
10824
|
const rightIndicatorRef = { current: null };
|
|
10548
|
-
const canDropAt = createMemo28(
|
|
10825
|
+
const canDropAt = createMemo28(
|
|
10826
|
+
() => createRowDropCheck(inputs.canDropRow(), inputs.rows(), inputs.resolveRowKey(), inputs.rowOffset?.() ?? 0)
|
|
10827
|
+
);
|
|
10549
10828
|
const getRowDragLabel = (viewIndex) => resolveRowDragLabel(untrack20(inputs.rowModel), untrack20(inputs.visibleColumns), viewIndex, untrack20(inputs.dragRowLabel));
|
|
10550
10829
|
const getDragRow = (viewIndex) => getDragRowToken(untrack20(inputs.rowModel), viewIndex);
|
|
10551
10830
|
const locateDragRow = createMemo28(() => {
|
|
@@ -10729,17 +11008,38 @@ function GridScrollHint(props) {
|
|
|
10729
11008
|
{ name: "scrollHintGutterWheel" }
|
|
10730
11009
|
);
|
|
10731
11010
|
const rulerHeight = () => Math.max(props.viewportHeight - props.headerHeight, 0);
|
|
10732
|
-
const
|
|
11011
|
+
const rowOffset = () => props.rowOffset ?? 0;
|
|
11012
|
+
const labelCount = createMemo29(() => {
|
|
11013
|
+
const labels = props.labelViewIndexes;
|
|
11014
|
+
if (!labels) {
|
|
11015
|
+
return 0;
|
|
11016
|
+
}
|
|
11017
|
+
const first = rowOffset();
|
|
11018
|
+
const end = first + props.rowMetrics.rowCount;
|
|
11019
|
+
let count = 0;
|
|
11020
|
+
for (let k = 0; k < labels.length; k += 1) {
|
|
11021
|
+
const index = labels[k] ?? -1;
|
|
11022
|
+
if (index >= first && index < end) {
|
|
11023
|
+
count += 1;
|
|
11024
|
+
}
|
|
11025
|
+
}
|
|
11026
|
+
return count;
|
|
11027
|
+
});
|
|
10733
11028
|
const dataRowCount = createMemo29(() => Math.max(props.rowMetrics.rowCount - labelCount(), 0));
|
|
10734
11029
|
const rowNumberOf = (viewIndex) => {
|
|
10735
11030
|
const labels = props.labelViewIndexes;
|
|
10736
|
-
return labels && labels.length > 0 ? resolveDataRowNumber3(labels, viewIndex) : viewIndex + 1;
|
|
11031
|
+
return labels && labels.length > 0 ? resolveDataRowNumber3(labels, viewIndex + rowOffset()) : viewIndex + rowOffset() + 1;
|
|
10737
11032
|
};
|
|
11033
|
+
const firstRowNumber = createMemo29(() => {
|
|
11034
|
+
const labels = props.labelViewIndexes;
|
|
11035
|
+
return labels && labels.length > 0 ? resolveDataRowNumber3(labels, rowOffset()) : rowOffset() + 1;
|
|
11036
|
+
});
|
|
10738
11037
|
const rulerTicks = createMemo29(
|
|
10739
11038
|
() => props.options.ruler ? computeScrollHintRulerTicks({
|
|
10740
11039
|
rowCount: dataRowCount(),
|
|
10741
11040
|
rulerHeight: rulerHeight(),
|
|
10742
|
-
tenThousands: texts().scrollHintTenThousands
|
|
11041
|
+
tenThousands: texts().scrollHintTenThousands,
|
|
11042
|
+
labelOffset: firstRowNumber() - 1
|
|
10743
11043
|
}) : []
|
|
10744
11044
|
);
|
|
10745
11045
|
const visible = () => props.options.trigger === "always" || scrollActive() || props.options.trigger === "hover" && hovered();
|
|
@@ -10757,7 +11057,8 @@ function GridScrollHint(props) {
|
|
|
10757
11057
|
return props.rowMetrics.rowAtContentY(logical);
|
|
10758
11058
|
});
|
|
10759
11059
|
const detailOf = (rowIndex) => resolveScrollHintDetail(props.options, {
|
|
10760
|
-
rowIndex
|
|
11060
|
+
// 変更(1.15.0 / ページ送り): renderHint の rowIndex は通し番号。
|
|
11061
|
+
rowIndex: rowIndex + rowOffset(),
|
|
10761
11062
|
rowData: props.rowModel.getRow(rowIndex)
|
|
10762
11063
|
});
|
|
10763
11064
|
const detail = createMemo29(() => detailOf(topRowIndex()));
|
|
@@ -10876,7 +11177,7 @@ function GridScrollHint(props) {
|
|
|
10876
11177
|
<span class="ssg-scroll-hint-bubble-main">
|
|
10877
11178
|
{formatLocaleText16(texts().scrollHintRow, { row: rowNumberOf(topRowIndex()).toLocaleString() })}
|
|
10878
11179
|
<span class="ssg-scroll-hint-bubble-total">
|
|
10879
|
-
{" "}/ {dataRowCount().toLocaleString()}
|
|
11180
|
+
{" "}/ {(props.totalDataRowCount ?? dataRowCount()).toLocaleString()}
|
|
10880
11181
|
</span>
|
|
10881
11182
|
</span>
|
|
10882
11183
|
<Show28 when={detail() !== null}>
|
|
@@ -12257,6 +12558,152 @@ var rangeDecorationsFeature = {
|
|
|
12257
12558
|
RangeDecorationFrames: GridRangeDecorationFrames
|
|
12258
12559
|
};
|
|
12259
12560
|
|
|
12561
|
+
// src/features/pagination.ts
|
|
12562
|
+
import { createPaginationController } from "@ishibashi0112/spreadsheet-grid-core/internal/engine/paginationController";
|
|
12563
|
+
import {
|
|
12564
|
+
resolveAutoPageSize,
|
|
12565
|
+
resolvePaginationOptions
|
|
12566
|
+
} from "@ishibashi0112/spreadsheet-grid-core/internal/logic/pagination";
|
|
12567
|
+
import { DEFAULT_PAGINATION_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
|
|
12568
|
+
|
|
12569
|
+
// src/view/GridPager.tsx
|
|
12570
|
+
import { For as For21, Show as Show35, createMemo as createMemo34, createSignal as createSignal21, createEffect as createEffect15 } from "solid-js";
|
|
12571
|
+
import { formatLocaleText as formatLocaleText18 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
|
|
12572
|
+
import {
|
|
12573
|
+
resolvePageRangeValues,
|
|
12574
|
+
resolvePageSizeChoices,
|
|
12575
|
+
resolvePagerItems,
|
|
12576
|
+
resolvePagerSizerTexts
|
|
12577
|
+
} from "@ishibashi0112/spreadsheet-grid-core/internal/logic/pagination";
|
|
12578
|
+
import { keepPagerFocus } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/pagerFocus";
|
|
12579
|
+
function GridPager(props) {
|
|
12580
|
+
const texts = useFeatureLocaleText();
|
|
12581
|
+
const rangeText = createMemo34(() => {
|
|
12582
|
+
const range = resolvePageRangeValues(props.info);
|
|
12583
|
+
if (range === null) {
|
|
12584
|
+
return props.loading === true ? texts().loadingRows : texts().pageRangeEmpty;
|
|
12585
|
+
}
|
|
12586
|
+
return formatLocaleText18(texts().pageRange, range);
|
|
12587
|
+
});
|
|
12588
|
+
const items = createMemo34(
|
|
12589
|
+
() => resolvePagerItems(props.info.page, props.info.pageCount).map((page, index) => ({
|
|
12590
|
+
key: page === null ? `gap-${index}` : `page-${page}`,
|
|
12591
|
+
page
|
|
12592
|
+
}))
|
|
12593
|
+
);
|
|
12594
|
+
const sizer = createMemo34(() => resolvePagerSizerTexts(props.info, texts()));
|
|
12595
|
+
const choices = createMemo34(() => resolvePageSizeChoices(props.info.pageSizeOptions, props.info.pageSize));
|
|
12596
|
+
const bindSize = createInputValue(() => String(props.info.pageSize));
|
|
12597
|
+
const [announcement, setAnnouncement] = createSignal21("");
|
|
12598
|
+
let announcedKey = null;
|
|
12599
|
+
createEffect15(
|
|
12600
|
+
() => [props.info.rowCount === 0 ? "" : `${props.info.page}:${props.info.pageSize}`, rangeText()],
|
|
12601
|
+
([key, text]) => {
|
|
12602
|
+
if (announcedKey !== null && announcedKey !== key && announcedKey !== "" && key !== "") {
|
|
12603
|
+
setAnnouncement(text);
|
|
12604
|
+
}
|
|
12605
|
+
announcedKey = key;
|
|
12606
|
+
}
|
|
12607
|
+
);
|
|
12608
|
+
let navElement;
|
|
12609
|
+
return <nav
|
|
12610
|
+
ref={(element) => {
|
|
12611
|
+
navElement = element;
|
|
12612
|
+
}}
|
|
12613
|
+
class={[
|
|
12614
|
+
"ssg-pager",
|
|
12615
|
+
`ssg-pager--${props.variant}`,
|
|
12616
|
+
{ "ssg-pager--with-counts": props.variant === "bar" && (props.withCounts ?? true) }
|
|
12617
|
+
]}
|
|
12618
|
+
aria-label={texts().paginationLabel}
|
|
12619
|
+
style={{ "--ssg-pager-digits": String(sizer().digits) }}
|
|
12620
|
+
>
|
|
12621
|
+
<span class="ssg-pager-range" data-ssg-pager-sizer={sizer().range}>
|
|
12622
|
+
<span>{rangeText()}</span>
|
|
12623
|
+
</span>
|
|
12624
|
+
<span class="ssg-pager-pages">
|
|
12625
|
+
<button
|
|
12626
|
+
type="button"
|
|
12627
|
+
class="ssg-pager-button ssg-pager-button--prev"
|
|
12628
|
+
aria-label={texts().previousPage}
|
|
12629
|
+
data-ssg-tooltip={texts().previousPage}
|
|
12630
|
+
disabled={props.info.page <= 0}
|
|
12631
|
+
onClick={() => {
|
|
12632
|
+
keepPagerFocus(navElement, "prev");
|
|
12633
|
+
props.info.setPage(props.info.page - 1);
|
|
12634
|
+
}}
|
|
12635
|
+
>
|
|
12636
|
+
<span aria-hidden="true">{"\u2039"}</span>
|
|
12637
|
+
</button>
|
|
12638
|
+
<For21 each={items()} keyed={(item) => item.key}>
|
|
12639
|
+
{(item) => <Show35
|
|
12640
|
+
when={item().page !== null}
|
|
12641
|
+
fallback={<span class="ssg-pager-gap" aria-hidden="true">
|
|
12642
|
+
{"\u2026"}
|
|
12643
|
+
</span>}
|
|
12644
|
+
>
|
|
12645
|
+
<button
|
|
12646
|
+
type="button"
|
|
12647
|
+
class="ssg-pager-button ssg-pager-button--page"
|
|
12648
|
+
aria-label={formatLocaleText18(texts().goToPage, { page: (item().page ?? 0) + 1 })}
|
|
12649
|
+
aria-current={item().page === props.info.page ? "page" : void 0}
|
|
12650
|
+
onClick={() => props.info.setPage(item().page ?? 0)}
|
|
12651
|
+
>
|
|
12652
|
+
{(item().page ?? 0) + 1}
|
|
12653
|
+
</button>
|
|
12654
|
+
</Show35>}
|
|
12655
|
+
</For21>
|
|
12656
|
+
<span class="ssg-pager-status" data-ssg-pager-sizer={sizer().status}>
|
|
12657
|
+
<span>{formatLocaleText18(texts().pageOfPages, { page: props.info.page + 1, pageCount: props.info.pageCount })}</span>
|
|
12658
|
+
</span>
|
|
12659
|
+
<button
|
|
12660
|
+
type="button"
|
|
12661
|
+
class="ssg-pager-button ssg-pager-button--next"
|
|
12662
|
+
aria-label={texts().nextPage}
|
|
12663
|
+
data-ssg-tooltip={texts().nextPage}
|
|
12664
|
+
disabled={props.info.page >= props.info.pageCount - 1}
|
|
12665
|
+
onClick={() => {
|
|
12666
|
+
keepPagerFocus(navElement, "next");
|
|
12667
|
+
props.info.setPage(props.info.page + 1);
|
|
12668
|
+
}}
|
|
12669
|
+
>
|
|
12670
|
+
<span aria-hidden="true">{"\u203A"}</span>
|
|
12671
|
+
</button>
|
|
12672
|
+
</span>
|
|
12673
|
+
<Show35 when={choices().length > 0}>
|
|
12674
|
+
<label class="ssg-pager-size">
|
|
12675
|
+
<span class="ssg-pager-size-label">{texts().pageSizeLabel}</span>
|
|
12676
|
+
<select
|
|
12677
|
+
ref={bindSize}
|
|
12678
|
+
class="ssg-pager-size-select"
|
|
12679
|
+
onChange={(event) => props.info.setPageSize(Number(event.currentTarget.value))}
|
|
12680
|
+
>
|
|
12681
|
+
{
|
|
12682
|
+
/* 変更(1.15.0 のレビュー): 選んだ件数の項目に selected(選択肢が後から描かれると select の value が先頭に戻っていた)。 */
|
|
12683
|
+
}
|
|
12684
|
+
<For21 each={choices()}>
|
|
12685
|
+
{(choice) => <option value={String(choice)} selected={choice === props.info.pageSize}>
|
|
12686
|
+
{choice}
|
|
12687
|
+
</option>}
|
|
12688
|
+
</For21>
|
|
12689
|
+
</select>
|
|
12690
|
+
</label>
|
|
12691
|
+
</Show35>
|
|
12692
|
+
<span class="ssg-visually-hidden" aria-live="polite" aria-atomic="true">
|
|
12693
|
+
{announcement()}
|
|
12694
|
+
</span>
|
|
12695
|
+
</nav>;
|
|
12696
|
+
}
|
|
12697
|
+
|
|
12698
|
+
// src/features/pagination.ts
|
|
12699
|
+
var paginationFeature = {
|
|
12700
|
+
createPaginationController,
|
|
12701
|
+
resolvePaginationOptions,
|
|
12702
|
+
resolveAutoPageSize,
|
|
12703
|
+
Pager: GridPager,
|
|
12704
|
+
localeText: DEFAULT_PAGINATION_LOCALE_TEXT
|
|
12705
|
+
};
|
|
12706
|
+
|
|
12260
12707
|
// src/features/excelShortcuts.ts
|
|
12261
12708
|
import { createExcelShortcutCommands } from "@ishibashi0112/spreadsheet-grid-core/internal/engine/excelShortcutCommands";
|
|
12262
12709
|
var excelShortcutsFeature = {
|
|
@@ -12285,29 +12732,29 @@ import { createTreeStage } from "@ishibashi0112/spreadsheet-grid-core/internal/e
|
|
|
12285
12732
|
import { DEFAULT_TREE_DATA_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
|
|
12286
12733
|
|
|
12287
12734
|
// src/view/GridTreeCell.tsx
|
|
12288
|
-
import { createMemo as
|
|
12289
|
-
import { formatLocaleText as
|
|
12735
|
+
import { createMemo as createMemo35, Show as Show36 } from "solid-js";
|
|
12736
|
+
import { formatLocaleText as formatLocaleText19 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
|
|
12290
12737
|
import {
|
|
12291
12738
|
formatTotalRowCellText as formatTotalRowCellText2,
|
|
12292
12739
|
resolveTotalRowCaption as resolveTotalRowCaption2
|
|
12293
12740
|
} from "@ishibashi0112/spreadsheet-grid-core/internal/logic/totalRow";
|
|
12294
12741
|
function GridTreeCellPrefix(props) {
|
|
12295
12742
|
const texts = useFeatureLocaleText();
|
|
12296
|
-
const label =
|
|
12743
|
+
const label = createMemo35(() => {
|
|
12297
12744
|
const name = props.rowLabel.trim();
|
|
12298
|
-
return
|
|
12299
|
-
row: name !== "" ? name :
|
|
12745
|
+
return formatLocaleText19(props.open ? texts().collapseTreeRow : texts().expandTreeRow, {
|
|
12746
|
+
row: name !== "" ? name : formatLocaleText19(texts().treeRowNumber, { row: props.rowNumber })
|
|
12300
12747
|
});
|
|
12301
12748
|
});
|
|
12302
12749
|
return <>
|
|
12303
|
-
<
|
|
12750
|
+
<Show36 when={props.level > 0}>
|
|
12304
12751
|
<span
|
|
12305
12752
|
aria-hidden="true"
|
|
12306
12753
|
class="ssg-tree-indent"
|
|
12307
12754
|
style={{ width: `calc(var(--ssg-tree-indent) * ${props.level})` }}
|
|
12308
12755
|
/>
|
|
12309
|
-
</
|
|
12310
|
-
<
|
|
12756
|
+
</Show36>
|
|
12757
|
+
<Show36 when={props.hasChildren} fallback={<span aria-hidden="true" class="ssg-tree-spacer" />}>
|
|
12311
12758
|
<button
|
|
12312
12759
|
type="button"
|
|
12313
12760
|
tabindex={-1}
|
|
@@ -12328,28 +12775,28 @@ function GridTreeCellPrefix(props) {
|
|
|
12328
12775
|
>
|
|
12329
12776
|
{props.open ? "\u25BE" : "\u25B8"}
|
|
12330
12777
|
</button>
|
|
12331
|
-
</
|
|
12778
|
+
</Show36>
|
|
12332
12779
|
</>;
|
|
12333
12780
|
}
|
|
12334
12781
|
function GridTreeAggregateValue(props) {
|
|
12335
12782
|
const texts = useFeatureLocaleText();
|
|
12336
|
-
const shown =
|
|
12783
|
+
const shown = createMemo35(() => {
|
|
12337
12784
|
const column = props.column;
|
|
12338
12785
|
const kind = typeof column.aggFunc === "string" ? column.aggFunc : "custom";
|
|
12339
12786
|
const text = formatTotalRowCellText2(column, { value: props.value, kind });
|
|
12340
12787
|
return text === "" ? null : { text, caption: resolveTotalRowCaption2(kind, texts()) };
|
|
12341
12788
|
});
|
|
12342
|
-
return <
|
|
12789
|
+
return <Show36 when={shown()}>
|
|
12343
12790
|
{(current) => <span
|
|
12344
12791
|
class="ssg-group-value ssg-tree-aggregate"
|
|
12345
12792
|
data-ssg-tooltip-overflow={current().caption !== void 0 ? `${current().caption} ${current().text}` : current().text}
|
|
12346
12793
|
>
|
|
12347
|
-
<
|
|
12794
|
+
<Show36 when={current().caption !== void 0}>
|
|
12348
12795
|
<span class="ssg-group-caption">{current().caption}</span>
|
|
12349
|
-
</
|
|
12796
|
+
</Show36>
|
|
12350
12797
|
{current().text}
|
|
12351
12798
|
</span>}
|
|
12352
|
-
</
|
|
12799
|
+
</Show36>;
|
|
12353
12800
|
}
|
|
12354
12801
|
|
|
12355
12802
|
// src/features/treeData.ts
|
|
@@ -12369,7 +12816,7 @@ var treeDataFeature = {
|
|
|
12369
12816
|
import { DEFAULT_AGGREGATES_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
|
|
12370
12817
|
|
|
12371
12818
|
// src/primitives/selectionAggregates.ts
|
|
12372
|
-
import { createMemo as
|
|
12819
|
+
import { createMemo as createMemo36 } from "solid-js";
|
|
12373
12820
|
import {
|
|
12374
12821
|
createSelectionAggregatesRunner,
|
|
12375
12822
|
resolveSyncSelectionAggregates,
|
|
@@ -12381,15 +12828,15 @@ import {
|
|
|
12381
12828
|
} from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectionAggregates";
|
|
12382
12829
|
function createSelectionAggregates(args) {
|
|
12383
12830
|
const stabilizeTarget = createSelectionAggregateTargetStabilizer();
|
|
12384
|
-
const target =
|
|
12831
|
+
const target = createMemo36(() => {
|
|
12385
12832
|
const current = args();
|
|
12386
12833
|
return stabilizeTarget(
|
|
12387
12834
|
current.enabled ? resolveSelectionAggregateTarget(current.selection, current.viewRowCount, current.orderedColumns) : null
|
|
12388
12835
|
);
|
|
12389
12836
|
});
|
|
12390
|
-
const rowModel =
|
|
12391
|
-
const key =
|
|
12392
|
-
const syncResult =
|
|
12837
|
+
const rowModel = createMemo36(() => args().rowModel);
|
|
12838
|
+
const key = createMemo36(() => ({ rowModel: rowModel(), target: target() }));
|
|
12839
|
+
const syncResult = createMemo36(() => resolveSyncSelectionAggregates(key()));
|
|
12393
12840
|
const runner = createSelectionAggregatesRunner();
|
|
12394
12841
|
connectController(
|
|
12395
12842
|
runner,
|
|
@@ -12398,16 +12845,16 @@ function createSelectionAggregates(args) {
|
|
|
12398
12845
|
"selectionAggregates"
|
|
12399
12846
|
);
|
|
12400
12847
|
const snapshot2 = createExternalStoreSignal(runner, "selectionAggregatesStore");
|
|
12401
|
-
return
|
|
12848
|
+
return createMemo36(() => selectSelectionAggregatesResult(syncResult(), snapshot2(), key()));
|
|
12402
12849
|
}
|
|
12403
12850
|
|
|
12404
12851
|
// src/view/GridSelectionAggregates.tsx
|
|
12405
|
-
import { For as
|
|
12852
|
+
import { For as For22, Show as Show37, createMemo as createMemo37 } from "solid-js";
|
|
12406
12853
|
import { formatSelectionAggregateNumber } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectionAggregates";
|
|
12407
|
-
import { formatLocaleText as
|
|
12854
|
+
import { formatLocaleText as formatLocaleText20 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
|
|
12408
12855
|
function GridSelectionAggregates(props) {
|
|
12409
12856
|
const texts = useFeatureLocaleText();
|
|
12410
|
-
const chips =
|
|
12857
|
+
const chips = createMemo37(() => {
|
|
12411
12858
|
const aggregates = props.aggregates;
|
|
12412
12859
|
if (!aggregates) {
|
|
12413
12860
|
return null;
|
|
@@ -12417,7 +12864,7 @@ function GridSelectionAggregates(props) {
|
|
|
12417
12864
|
return [
|
|
12418
12865
|
{
|
|
12419
12866
|
key: "computing",
|
|
12420
|
-
text:
|
|
12867
|
+
text: formatLocaleText20(localeTexts.aggregateComputing, { percent: Math.floor(aggregates.progress * 100) })
|
|
12421
12868
|
}
|
|
12422
12869
|
];
|
|
12423
12870
|
}
|
|
@@ -12440,12 +12887,12 @@ function GridSelectionAggregates(props) {
|
|
|
12440
12887
|
}
|
|
12441
12888
|
return list;
|
|
12442
12889
|
});
|
|
12443
|
-
return <
|
|
12890
|
+
return <Show37 when={chips()}>
|
|
12444
12891
|
{(list) => <div class={["ssg-bar-aggregates", { "ssg-bar-aggregates--trailing": props.trailing }]}>
|
|
12445
12892
|
<div class="ssg-bar-aggregates-inner" title={list().map((chip) => chip.text).join(" ")}>
|
|
12446
12893
|
<div class="ssg-bar-aggregates-list">
|
|
12447
12894
|
<span class="ssg-bar-aggregates-fit" aria-hidden="true" />
|
|
12448
|
-
<
|
|
12895
|
+
<For22 each={list()} keyed={(chip) => chip.key}>
|
|
12449
12896
|
{(chip, index) => <span
|
|
12450
12897
|
class={[
|
|
12451
12898
|
"ssg-bar-chip",
|
|
@@ -12456,16 +12903,16 @@ function GridSelectionAggregates(props) {
|
|
|
12456
12903
|
]}
|
|
12457
12904
|
style={{ order: String(-index()) }}
|
|
12458
12905
|
>
|
|
12459
|
-
<
|
|
12906
|
+
<Show37 when={chip().label !== void 0} fallback={chip().text}>
|
|
12460
12907
|
{chip().label}
|
|
12461
12908
|
<b class="ssg-bar-aggregate-value">{chip().value}</b>
|
|
12462
|
-
</
|
|
12909
|
+
</Show37>
|
|
12463
12910
|
</span>}
|
|
12464
|
-
</
|
|
12911
|
+
</For22>
|
|
12465
12912
|
</div>
|
|
12466
12913
|
</div>
|
|
12467
12914
|
</div>}
|
|
12468
|
-
</
|
|
12915
|
+
</Show37>;
|
|
12469
12916
|
}
|
|
12470
12917
|
|
|
12471
12918
|
// src/features/selectionAggregates.ts
|
|
@@ -12476,7 +12923,7 @@ var selectionAggregatesFeature = {
|
|
|
12476
12923
|
};
|
|
12477
12924
|
|
|
12478
12925
|
// src/primitives/toolPanel.ts
|
|
12479
|
-
import { createMemo as
|
|
12926
|
+
import { createMemo as createMemo38 } from "solid-js";
|
|
12480
12927
|
import {
|
|
12481
12928
|
createToolPanelController,
|
|
12482
12929
|
resolveActiveToolPanelTab,
|
|
@@ -12495,7 +12942,7 @@ function createToolPanel(inputs) {
|
|
|
12495
12942
|
onSuppressedEscape: inputs.onSuppressedEscape
|
|
12496
12943
|
}), "render", "toolPanel");
|
|
12497
12944
|
const snapshot2 = createExternalStoreSignal(controller, "toolPanelStore");
|
|
12498
|
-
const availableTabs =
|
|
12945
|
+
const availableTabs = createMemo38(
|
|
12499
12946
|
() => resolveAvailableToolPanelTabs({
|
|
12500
12947
|
canUseFilterTab: inputs.canUseFilterTab(),
|
|
12501
12948
|
canUseColumnsTab: inputs.canUseColumnsTab(),
|
|
@@ -12504,10 +12951,10 @@ function createToolPanel(inputs) {
|
|
|
12504
12951
|
{ equals: sameTabs }
|
|
12505
12952
|
);
|
|
12506
12953
|
return {
|
|
12507
|
-
activeTab:
|
|
12954
|
+
activeTab: createMemo38(() => resolveActiveToolPanelTab(snapshot2().requestedTab, availableTabs())),
|
|
12508
12955
|
availableTabs,
|
|
12509
|
-
layout:
|
|
12510
|
-
flashTick:
|
|
12956
|
+
layout: createMemo38(() => snapshot2().layout),
|
|
12957
|
+
flashTick: createMemo38(() => snapshot2().flashTick),
|
|
12511
12958
|
panelRef: controller.panelRef,
|
|
12512
12959
|
open: controller.open,
|
|
12513
12960
|
close: controller.close,
|
|
@@ -12531,7 +12978,7 @@ import {
|
|
|
12531
12978
|
} from "@ishibashi0112/spreadsheet-grid-core/internal/logic/totalRow";
|
|
12532
12979
|
|
|
12533
12980
|
// src/view/GridTotalRow.tsx
|
|
12534
|
-
import { For as
|
|
12981
|
+
import { For as For23, Show as Show38, createMemo as createMemo39 } from "solid-js";
|
|
12535
12982
|
import {
|
|
12536
12983
|
formatTotalRowCellText as formatTotalRowCellText3,
|
|
12537
12984
|
resolveTotalRowCaption as resolveTotalRowCaption3
|
|
@@ -12558,7 +13005,7 @@ function GridTotalRow(props) {
|
|
|
12558
13005
|
...props.stickyBottom > 0 ? { bottom: px(props.stickyBottom) } : null
|
|
12559
13006
|
}}
|
|
12560
13007
|
>
|
|
12561
|
-
<
|
|
13008
|
+
<Show38 when={props.ownsRowHeader}>
|
|
12562
13009
|
<div
|
|
12563
13010
|
role={rowHeaderIsCell() ? "rowheader" : void 0}
|
|
12564
13011
|
aria-colindex={rowHeaderIsCell() ? 1 : void 0}
|
|
@@ -12573,13 +13020,13 @@ function GridTotalRow(props) {
|
|
|
12573
13020
|
>
|
|
12574
13021
|
{rowHeaderText() === "" ? null : rowHeaderText()}
|
|
12575
13022
|
</div>
|
|
12576
|
-
</
|
|
12577
|
-
<
|
|
13023
|
+
</Show38>
|
|
13024
|
+
<For23 each={props.entries} keyed={(entry) => entry.column.key}>
|
|
12578
13025
|
{(entry) => {
|
|
12579
|
-
const unbound =
|
|
13026
|
+
const unbound = createMemo39(() => entry().column);
|
|
12580
13027
|
const cell = () => props.cells.get(unbound().key);
|
|
12581
13028
|
const isLabelCell = () => unbound().key === props.labelColumnKey;
|
|
12582
|
-
const content =
|
|
13029
|
+
const content = createMemo39(() => {
|
|
12583
13030
|
const total = cell();
|
|
12584
13031
|
if (total) {
|
|
12585
13032
|
const column = unbound();
|
|
@@ -12631,7 +13078,7 @@ function GridTotalRow(props) {
|
|
|
12631
13078
|
{content()}
|
|
12632
13079
|
</div>;
|
|
12633
13080
|
}}
|
|
12634
|
-
</
|
|
13081
|
+
</For23>
|
|
12635
13082
|
</div>
|
|
12636
13083
|
</>;
|
|
12637
13084
|
}
|
|
@@ -12666,6 +13113,7 @@ var fullGridFeatures = {
|
|
|
12666
13113
|
changeTracking: changeTrackingFeature,
|
|
12667
13114
|
diffView: diffViewFeature,
|
|
12668
13115
|
rangeDecorations: rangeDecorationsFeature,
|
|
13116
|
+
pagination: paginationFeature,
|
|
12669
13117
|
excelShortcuts: excelShortcutsFeature,
|
|
12670
13118
|
newRow: newRowFeature,
|
|
12671
13119
|
treeData: treeDataFeature,
|
|
@@ -12728,6 +13176,7 @@ export {
|
|
|
12728
13176
|
newRowFeature,
|
|
12729
13177
|
numberFormatter,
|
|
12730
13178
|
numberParser,
|
|
13179
|
+
paginationFeature,
|
|
12731
13180
|
pinnedRowsFeature,
|
|
12732
13181
|
preloadGridPopups,
|
|
12733
13182
|
rangeDecorationsFeature,
|