@ishibashi0112/spreadsheet-grid-solid 1.14.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.
Files changed (31) hide show
  1. package/API_REFERENCE.md +101 -13
  2. package/README.md +9 -9
  3. package/dist/{ColumnFilterPopover-t32VGfTq.js → ColumnFilterPopover-DYnfyUTm.js} +40 -41
  4. package/dist/devWarnings.d.ts +1 -0
  5. package/dist/features/pagination.d.ts +2 -0
  6. package/dist/features/types.d.ts +7 -0
  7. package/dist/index.d.ts +2 -1
  8. package/dist/index.js +3610 -3315
  9. package/dist/inputValue-Dvxw-RUC.js +69 -0
  10. package/dist/primitives/rowDrag.d.ts +1 -0
  11. package/dist/source/chunks/{ColumnFilterPopover-JL3HPGXY.jsx → ColumnFilterPopover-7COSTSPD.jsx} +2 -4
  12. package/dist/source/chunks/{chunk-AI3CSPI3.jsx → chunk-D4IAL3ZE.jsx} +43 -1
  13. package/dist/source/chunks/{toolPanelViews-N6TGBFFW.jsx → toolPanelViews-WBFE4QVY.jsx} +2 -4
  14. package/dist/source/index.jsx +920 -477
  15. package/dist/style.css +1 -1
  16. package/dist/style.layer.css +1 -1
  17. package/dist/{toolPanelViews-CPYtBTQP.js → toolPanelViews-BgEAIDpk.js} +35 -36
  18. package/dist/view/DefaultGridBottomBar.d.ts +3 -0
  19. package/dist/view/DefaultGridTopBar.d.ts +1 -0
  20. package/dist/view/GridBodyGroupRow.d.ts +1 -0
  21. package/dist/view/GridBodyLabelRow.d.ts +1 -0
  22. package/dist/view/GridBodyLayer.d.ts +1 -0
  23. package/dist/view/GridBodySkeletonRow.d.ts +2 -0
  24. package/dist/view/GridPager.d.ts +9 -0
  25. package/dist/view/GridScrollHint.d.ts +2 -0
  26. package/dist/view/GridStickyLabelLayer.d.ts +1 -0
  27. package/package.json +3 -3
  28. package/skills/spreadsheet-grid-solid/SKILL.md +3 -1
  29. package/dist/inputValue-C6BHBMBx.js +0 -24
  30. package/dist/portalTokens-LgUwLYnR.js +0 -47
  31. package/dist/source/chunks/chunk-WLXZT66B.jsx +0 -44
@@ -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-AI3CSPI3.jsx";
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 For5, Match, NoHydration, Show as Show12, 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
+ 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={props.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={props.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={props.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 + props.ariaRowOffset}
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 Show3 } from "solid-js";
1644
+ import { Show as Show4 } from "solid-js";
1544
1645
  function Overlay(props) {
1545
- return <Show3 when={props.rect}>
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
- </Show3>;
1658
+ </Show4>;
1558
1659
  }
1559
1660
 
1560
1661
  // src/view/GridDetailLayer.tsx
1561
- import { For as For3, Show as Show4, createMemo as createMemo6, onCleanup as onCleanup2, untrack as untrack4 } from "solid-js";
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 <For3 each={props.entries} keyed={(entry) => entry.rowKey}>
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 <Show4 when={detailSize() > 0}>
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
- <Show4 when={props.mode === "center"}>
1691
+ <Show5 when={props.mode === "center"}>
1591
1692
  <DetailCard entry={entry} index={index} layer={props} />
1592
- </Show4>
1693
+ </Show5>
1593
1694
  </div>
1594
- </Show4>;
1695
+ </Show5>;
1595
1696
  }}
1596
- </For3>;
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
- <Show4 when={row() !== void 0}>{layer.renderCard?.(ctx)}</Show4>
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 Show8, createMemo as createMemo7, untrack as untrack11 } from "solid-js";
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 Show6, createRenderEffect as createRenderEffect3, createSignal as createSignal4, onCleanup as onCleanup3, onSettled as onSettled3, untrack as untrack6 } from "solid-js";
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 Show5, createSignal as createSignal3, onSettled as onSettled2 } from "solid-js";
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 <Show5 when={props.message !== null ? { message: props.message } : null} keyed>
1839
+ return <Show6 when={props.message !== null ? { message: props.message } : null} keyed>
1738
1840
  {(state) => <CellEditorErrorBubble message={state.message} />}
1739
- </Show5>;
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 <Show6 when={props.multiline ?? false} fallback={renderInput()}>
1997
+ return <Show7 when={props.multiline ?? false} fallback={renderInput()}>
1896
1998
  {renderTextarea()}
1897
- </Show6>;
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 For4,
1976
- Show as Show7,
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
- <Show7 when={mount()}>
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
- <Show7
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
- <For4 each={props.options} keyed={false}>
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
- </For4>
2236
- </Show7>
2337
+ </For5>
2338
+ </Show8>
2237
2339
  </div>
2238
2340
  </Portal>}
2239
- </Show7>
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 <Show8 when={session() !== null}>
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
- </Show8>;
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 <Show8 when={props.rect !== null ? props.sessionId : null} keyed>
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
- <Show8 when={kind()} keyed>
2721
+ <Show9 when={kind()} keyed>
2620
2722
  {(type) => renderEditor(type, sessionId)}
2621
- </Show8>
2723
+ </Show9>
2622
2724
  </div>}
2623
- </Show8>;
2725
+ </Show9>;
2624
2726
  }
2625
2727
 
2626
2728
  // src/view/DefaultGridTopBar.tsx
2627
- import { Show as Show9, createMemo as createMemo8, createRenderEffect as createRenderEffect5, createSignal as createSignal8, createUniqueId as createUniqueId2, untrack as untrack12 } from "solid-js";
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
- <Show9 when={props.showSummary}>
2779
+ <Show10 when={props.showSummary}>
2678
2780
  <div class="ssg-bar-group ssg-bar-leading">
2679
- <Show9 when={props.showCounts}>
2680
- <span class="ssg-bar-chip ssg-bar-chip--emphasis">{props.derivedSummary.rowSummaryText}</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
- </Show9>
2683
- <Show9
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
- </Show9>
2812
+ </Show10>
2704
2813
  <span class="ssg-bar-chip ssg-bar-chip--emphasis">{props.derivedSummary.sortSummaryText}</span>
2705
- <Show9 when={props.onFilterSummaryClick}>
2814
+ <Show10 when={props.onFilterSummaryClick}>
2706
2815
  <span id={`${filterSummaryId}-action`} hidden>
2707
2816
  {texts().toggleFilterPanel}
2708
2817
  </span>
2709
- </Show9>
2818
+ </Show10>
2710
2819
  </div>
2711
- </Show9>
2712
- <Show9 when={props.showFilter}>
2820
+ </Show10>
2821
+ <Show10 when={props.showFilter}>
2713
2822
  <div class="ssg-bar-input-group">
2714
- <Show9 when={filterIcon()}>
2823
+ <Show10 when={filterIcon()}>
2715
2824
  {(icon) => <span class="ssg-bar-input-icon" aria-hidden="true">
2716
2825
  {icon()}
2717
2826
  </span>}
2718
- </Show9>
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
- <Show9 when={hasFilterText()}>
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
- </Show9>
2847
+ </Show10>
2739
2848
  </div>
2740
- </Show9>
2849
+ </Show10>
2741
2850
  </div>
2742
2851
  </div>;
2743
2852
  }
2744
2853
 
2745
2854
  // src/view/DefaultGridBottomBar.tsx
2746
- import { Show as Show10 } from "solid-js";
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
- <Show10 when={props.unsavedText}>
2865
+ <Show11 when={props.unsavedText}>
2757
2866
  {(text) => <span class="ssg-bar-chip ssg-bar-chip--unsaved">{text()}</span>}
2758
- </Show10>
2867
+ </Show11>
2759
2868
  </>;
2760
- return <div class={["ssg-bar--bottom", props.slot?.className]} style={props.slot?.style}>
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
- <Show10 when={props.showCounts}>
2874
+ <Show11 when={props.showCounts}>
2763
2875
  <div class="ssg-bar-group">
2764
- <span class="ssg-bar-chip">{props.derivedSummary.rowSummaryText}</span>
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
- </Show10>
2886
+ </Show11>
2770
2887
  <div class="ssg-bar-group">
2771
- <Show10 when={!props.showCounts}>{unsavedChip()}</Show10>
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
- <Show10 when={!props.showCounts}>{aggregates(true)}</Show10>
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 Show11 } from "solid-js";
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 <Show11 when={props.rect}>
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
- </Show11>;
2923
+ </Show12>;
2803
2924
  }
2804
2925
  function ColumnHoverOverlay(props) {
2805
- return <Show11 when={props.rect}>
2926
+ return <Show12 when={props.rect}>
2806
2927
  {(rect) => <div class="ssg-col-hover-overlay" style={placement(props, rect())} data-ssg-col-hover="" />}
2807
- </Show11>;
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 editLocked = () => readOnly() || refetchingRows();
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 rowModel = createMemo10(() => engine.newRow.wrapRowModel(baseRowModel(), newRowActive()));
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 applyServerSideCellEdits = createMemo10(
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 : newRowActive() ? viewRowCount() - 1 : viewRowCount();
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: 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: 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: 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 = labelViewIndexes();
3947
- return labelSticky() && labelRowFeature2 && indexes && indexes.length > 0 ? indexes : null;
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 resolution = labelRowFeature2.resolveStickyLabel(
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 descriptor = model.getLabelRow?.(resolution.labelViewIndex);
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 = feature.resolveStickyLabel(indexes, rowMetrics, logicalScrollTop);
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) => feature.resolveStickyLabel(indexes, rowMetrics, rowTop)?.height ?? 0
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(rowModel(), orderedColumns()));
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 = rowModel();
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
- rowModel: rowModel(),
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 = rowModel();
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 ? props.hoveredRowIndex : view().hoveredRowIndex;
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
- rowModel: rowModel(),
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(() => createHistoryRowLocator(rowModel(), treeStage()));
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
- enabled: (props.enableUndoRedo ?? true) && !readOnly() && !isServerSide(),
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
- rowModel: treeRowModel ?? rowModel(),
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 ?? rowModel(),
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
- getSelection: () => store.getState().selection,
4994
- viewRowCount: viewRowCount(),
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: editLocked(),
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 = (fromIndex, toIndex) => {
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 ? <Show12 when={rowDragAvailable()}>
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
- </Show12> : null;
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(),
@@ -5854,6 +6143,14 @@ function GridShellBody(props, features, mountGate, mode) {
5854
6143
  // 段の memo を読みません(読むとこの effect がほかの通知の effect の後ろに回り、onColumnGroupOpenChange との順番が
5855
6144
  // React 版と変わっていた)。
5856
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
+ },
5857
6154
  onStateChange: inOwnTick(props.onStateChange),
5858
6155
  onFiltersChange: inOwnTick(props.onFiltersChange),
5859
6156
  onSortChange: inOwnTick(props.onSortChange)
@@ -5907,6 +6204,12 @@ function GridShellBody(props, features, mountGate, mode) {
5907
6204
  })
5908
6205
  );
5909
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
+ });
5910
6213
  const slotContextBase = createMemo10(() => ({
5911
6214
  rows: rows(),
5912
6215
  columns: props.columns,
@@ -5914,8 +6217,8 @@ function GridShellBody(props, features, mountGate, mode) {
5914
6217
  globalFilterText: globalFilterText(),
5915
6218
  columnFilterValues: columnFilters(),
5916
6219
  sortState: ui().sort,
5917
- activeCell: ui().activeCell,
5918
- selection: ui().selection
6220
+ activeCell: barSelection().activeCell,
6221
+ selection: barSelection().selection
5919
6222
  }));
5920
6223
  const derivedSummary = createMemo10(() => {
5921
6224
  const titles = columnTitles();
@@ -5931,7 +6234,8 @@ function GridShellBody(props, features, mountGate, mode) {
5931
6234
  // 件数はグループ行 / ラベル行を除くデータ行の数(slotContext.filteredRows と同じ)。分母(総データ行数)はラベル行を除く
5932
6235
  // (ラベル行が無ければ rows の数)。サーバーサイドは rows が空なので、サーバーが返した今の条件での件数(React 版と同じ)。
5933
6236
  leafRowCount(),
5934
- isServerSide() ? viewRowCount() : labelLayout()?.dataRowCount,
6237
+ // 変更(1.15.0 / ページ送り): サーバーサイドの分母は区切る前の行の数(React 版と同じ)。
6238
+ isServerSide() ? baseRowCount() : labelLayout()?.dataRowCount,
5935
6239
  columnNamer(),
5936
6240
  rowNumberer(),
5937
6241
  localeTexts()
@@ -5948,6 +6252,21 @@ function GridShellBody(props, features, mountGate, mode) {
5948
6252
  rowModel: rowModel()
5949
6253
  })) : () => null;
5950
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
+ });
5951
6270
  const slotContext = createMemo10(() => {
5952
6271
  const filteredRows = getFilteredRows();
5953
6272
  return {
@@ -5961,7 +6280,10 @@ function GridShellBody(props, features, mountGate, mode) {
5961
6280
  globalFilterProgress: globalFilterProgress(),
5962
6281
  selectionAggregates: selectionAggregates(),
5963
6282
  // 追加(1.8.0): 変更の追跡の件数(効いていなければ null)。
5964
- unsavedChanges: unsavedChanges()
6283
+ unsavedChanges: unsavedChanges(),
6284
+ // 追加(1.15.0): ページ送り(効いていなければ null)と読み込み中。
6285
+ pagination: paginationContext(),
6286
+ loading: loading()
5965
6287
  };
5966
6288
  });
5967
6289
  const liveSlotContext = createLiveObject(SLOT_CONTEXT_KEYS, slotContext);
@@ -5977,10 +6299,10 @@ function GridShellBody(props, features, mountGate, mode) {
5977
6299
  });
5978
6300
  const showTopBarSummary = () => props.showTopBarSummary ?? true;
5979
6301
  const showTopBarFilter = () => (props.showTopBarFilter ?? true) && globalFilterEnabled();
5980
- const topBar = () => <Show12 when={props.showTopBar ?? true}>
5981
- <Show12
6302
+ const topBar = () => <Show13 when={props.showTopBar ?? true}>
6303
+ <Show13
5982
6304
  when={renderTopBarFn() !== void 0}
5983
- fallback={<Show12 when={showTopBarSummary() || showTopBarFilter()}>
6305
+ fallback={<Show13 when={showTopBarSummary() || showTopBarFilter()}>
5984
6306
  <DefaultGridTopBar
5985
6307
  slot={slots().toolbar}
5986
6308
  derivedSummary={derivedSummary()}
@@ -5993,12 +6315,13 @@ function GridShellBody(props, features, mountGate, mode) {
5993
6315
  globalFilterIcon={props.globalFilterIcon}
5994
6316
  onFilterSummaryClick={columnFilterEnabled() && toolPanel ? toggleFilterManager : void 0}
5995
6317
  filterPanelOpen={toolPanel?.activeTab() === "filter"}
6318
+ loadingText={loading() ? localeTexts().loadingRows : null}
5996
6319
  />
5997
- </Show12>}
6320
+ </Show13>}
5998
6321
  >
5999
6322
  {customTopBar()}
6000
- </Show12>
6001
- </Show12>;
6323
+ </Show13>
6324
+ </Show13>;
6002
6325
  const removedRowLayer = createMemo10(
6003
6326
  () => diffShowRemoved() && removedViewIndexes() ? { description: localeTexts().diffRemovedRow } : void 0
6004
6327
  );
@@ -6017,7 +6340,7 @@ function GridShellBody(props, features, mountGate, mode) {
6017
6340
  return null;
6018
6341
  }
6019
6342
  const DiffBarChip = parts.DiffBarChip;
6020
- return <Show12 when={diffActive()}>
6343
+ return <Show13 when={diffActive()}>
6021
6344
  <DiffBarChip
6022
6345
  parts={parts.formatDiffSummaryParts(changeSnapshot(), !diffComparing(), diffTexts())}
6023
6346
  comparingText={diffTexts().diffComparing}
@@ -6028,10 +6351,19 @@ function GridShellBody(props, features, mountGate, mode) {
6028
6351
  onPrev={engine.gridApi.handle.goToPrevChange}
6029
6352
  onNext={engine.gridApi.handle.goToNextChange}
6030
6353
  />
6031
- </Show12>;
6354
+ </Show13>;
6032
6355
  };
6033
- const bottomBar = () => <Show12 when={props.showBottomBar ?? true}>
6034
- <Show12
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
6035
6367
  when={renderBottomBarFn() !== void 0}
6036
6368
  fallback={<DefaultGridBottomBar
6037
6369
  slot={slots().statusBar}
@@ -6041,11 +6373,14 @@ function GridShellBody(props, features, mountGate, mode) {
6041
6373
  SelectionAggregates={selectionAggregatesFeature2?.SelectionAggregates}
6042
6374
  unsavedText={changeTrackingParts && !diffActive() ? changeTrackingParts.formatUnsavedSummary(unsavedChanges(), localeTexts()) : null}
6043
6375
  diffChip={diffBarChip()}
6376
+ loadingText={loading() ? localeTexts().loadingRows : null}
6377
+ pager={barPager()}
6378
+ paged={paginationContext() !== null}
6044
6379
  />}
6045
6380
  >
6046
6381
  {customBottomBar()}
6047
- </Show12>
6048
- </Show12>;
6382
+ </Show13>
6383
+ </Show13>;
6049
6384
  const editorSession = createMemo10((previous) => {
6050
6385
  const cell = ui().editingCell;
6051
6386
  if (cell === null) {
@@ -6095,7 +6430,8 @@ function GridShellBody(props, features, mountGate, mode) {
6095
6430
  const { sourceRowIndex, rowKey } = resolveCanEditCellContext(model, cell.row);
6096
6431
  return {
6097
6432
  row,
6098
- rowIndex: cell.row,
6433
+ // 変更(1.15.0 / ページ送り): custom エディタの ctx.rowIndex は通し番号。
6434
+ rowIndex: cell.row + (model.pageStart ?? 0),
6099
6435
  sourceRowIndex,
6100
6436
  rowKey,
6101
6437
  colIndex: cell.col,
@@ -6143,13 +6479,13 @@ function GridShellBody(props, features, mountGate, mode) {
6143
6479
  const isRowDraggable = props.isRowDraggable;
6144
6480
  return !isRowDraggable || isRowDraggable(row, { rowKey: cell.rowKey, sourceRowIndex: cell.sourceRowIndex });
6145
6481
  });
6146
- return <Show12 when={draggable()}>
6482
+ return <Show13 when={draggable()}>
6147
6483
  <RowDragHandle2
6148
6484
  operable={rowDragOperable()}
6149
6485
  tooltip={rowDragOperable() ? rowDragTexts().dragRow : orderResolution().rowDragBlockedByRemovedRows ? rowDragTexts().dragRowDisabledRemoved : rowDragTexts().dragRowDisabled}
6150
6486
  onPointerDown={(event) => rowDrag.onRowDragHandlePointerDown(untrack13(() => cell.rowIndex), event)}
6151
6487
  />
6152
- </Show12>;
6488
+ </Show13>;
6153
6489
  };
6154
6490
  const cellTextOf = (row, column) => {
6155
6491
  return formatCellText(
@@ -6192,9 +6528,9 @@ function GridShellBody(props, features, mountGate, mode) {
6192
6528
  return editor?.type === "checkbox" ? editor : void 0;
6193
6529
  });
6194
6530
  const otherwise = renderDefaultCellContent(currentRow, column, cell, treeAggregate, true);
6195
- return <Show12 when={checkboxEditor() !== void 0} fallback={otherwise}>
6531
+ return <Show13 when={checkboxEditor() !== void 0} fallback={otherwise}>
6196
6532
  {renderCheckbox(() => checkboxEditor() ?? {})}
6197
- </Show12>;
6533
+ </Show13>;
6198
6534
  }
6199
6535
  const staticEditor = resolveStaticColumnEditor2(column);
6200
6536
  if (!column.renderCell && staticEditor?.type === "checkbox") {
@@ -6219,18 +6555,20 @@ function GridShellBody(props, features, mountGate, mode) {
6219
6555
  if (column.key === DETAIL_TOGGLE_COLUMN_KEY2) {
6220
6556
  const rowNumber = () => {
6221
6557
  const indexes = labelViewIndexes();
6222
- return indexes ? resolveDataRowNumber2(indexes, cell.rowIndex) : cell.rowIndex + 1;
6558
+ const publicRowIndex = cell.rowIndex + pageStart();
6559
+ return indexes ? resolveDataRowNumber2(indexes, publicRowIndex) : publicRowIndex + 1;
6223
6560
  };
6224
- return <Show12 when={expandable()}>
6561
+ return <Show13 when={expandable()}>
6225
6562
  <DetailToggleButton detail={detail} rowNumber={rowNumber()} onPress={edit.endEditLeftOpen} />
6226
- </Show12>;
6563
+ </Show13>;
6227
6564
  }
6228
6565
  const context = {
6229
6566
  get row() {
6230
6567
  return currentRow();
6231
6568
  },
6569
+ // 変更(1.15.0 / ページ送り): 利用側へ渡す行の番号は通し番号(cell.rowIndex はページの中の番号)。
6232
6570
  get rowIndex() {
6233
- return cell.rowIndex;
6571
+ return cell.rowIndex + pageStart();
6234
6572
  },
6235
6573
  get sourceRowIndex() {
6236
6574
  return cell.sourceRowIndex;
@@ -6297,13 +6635,13 @@ function GridShellBody(props, features, mountGate, mode) {
6297
6635
  const ranges = cell.findRanges;
6298
6636
  return list && ranges && ranges.length > 0 ? splitRangesByChips2(list, separator().length, ranges) : void 0;
6299
6637
  });
6300
- return <Show12 when={labels()} fallback={<span class="ssg-cell-value">{highlightCellFind(textOf(currentRow()))}</span>}>
6638
+ return <Show13 when={labels()} fallback={<span class="ssg-cell-value">{highlightCellFind(textOf(currentRow()))}</span>}>
6301
6639
  {(list) => <MultiSelectChips
6302
6640
  labels={list()}
6303
6641
  separator={separator()}
6304
6642
  renderLabel={(label, index) => highlightFind(label, chipRanges()?.[index], findCurrentIndex2)}
6305
6643
  />}
6306
- </Show12>;
6644
+ </Show13>;
6307
6645
  }
6308
6646
  const chips = formatRules?.chips;
6309
6647
  if (conditionalFormatFeature2 && chips) {
@@ -6314,8 +6652,9 @@ function GridShellBody(props, features, mountGate, mode) {
6314
6652
  const chip = createMemo10(
6315
6653
  () => resolveChipSpec2(chips, {
6316
6654
  row,
6655
+ // 変更(1.15.0 / ページ送り): 通し番号。
6317
6656
  get rowIndex() {
6318
- return cell.rowIndex;
6657
+ return cell.rowIndex + pageStart();
6319
6658
  },
6320
6659
  get sourceRowIndex() {
6321
6660
  return cell.sourceRowIndex;
@@ -6340,9 +6679,9 @@ function GridShellBody(props, features, mountGate, mode) {
6340
6679
  }
6341
6680
  })
6342
6681
  );
6343
- return <Show12 when={chip()} fallback={<span class="ssg-cell-value">{highlightCellFind(text)}</span>}>
6682
+ return <Show13 when={chip()} fallback={<span class="ssg-cell-value">{highlightCellFind(text)}</span>}>
6344
6683
  {(spec) => <GridChip2 spec={spec()}>{highlightCellFind(spec().label ?? text)}</GridChip2>}
6345
- </Show12>;
6684
+ </Show13>;
6346
6685
  }
6347
6686
  return <span class="ssg-cell-value">{highlightCellFind(textOf(currentRow()))}</span>;
6348
6687
  };
@@ -6361,9 +6700,9 @@ function GridShellBody(props, features, mountGate, mode) {
6361
6700
  const value = createMemo10(() => cell.treeRow?.aggregates?.[column.key]);
6362
6701
  const aggregate = { has, value };
6363
6702
  const TreeAggregateValue = parts.TreeAggregateValue;
6364
- content = column.renderCell ? renderDefaultCellContent(currentRow, column, cell, aggregate) : <Show12 when={has()} fallback={renderDefaultCellContent(currentRow, column, cell)}>
6703
+ content = column.renderCell ? renderDefaultCellContent(currentRow, column, cell, aggregate) : <Show13 when={has()} fallback={renderDefaultCellContent(currentRow, column, cell)}>
6365
6704
  <TreeAggregateValue column={column} value={value()} />
6366
- </Show12>;
6705
+ </Show13>;
6367
6706
  } else {
6368
6707
  content = renderDefaultCellContent(currentRow, column, cell);
6369
6708
  }
@@ -6373,17 +6712,17 @@ function GridShellBody(props, features, mountGate, mode) {
6373
6712
  const TreeCellPrefix = parts.TreeCellPrefix;
6374
6713
  const rowLabel = () => cellTextOf(currentRow(), column);
6375
6714
  return <>
6376
- <Show12 when={cell.treeRow}>
6715
+ <Show13 when={cell.treeRow}>
6377
6716
  {(tree) => <TreeCellPrefix
6378
6717
  level={tree().level}
6379
6718
  hasChildren={tree().hasChildren}
6380
6719
  open={tree().open}
6381
6720
  rowLabel={rowLabel()}
6382
- rowNumber={cell.rowIndex + 1}
6721
+ rowNumber={cell.rowIndex + pageStart() + 1}
6383
6722
  onToggle={(open) => engine.gridApi.handle.setTreeRowOpen(cell.rowKey, open)}
6384
6723
  onPress={edit.endEditLeftOpen}
6385
6724
  />}
6386
- </Show12>
6725
+ </Show13>
6387
6726
  {content}
6388
6727
  </>;
6389
6728
  };
@@ -6411,7 +6750,7 @@ function GridShellBody(props, features, mountGate, mode) {
6411
6750
  const activeRect = () => placementRectInPane(activeCellPlacement(), pane);
6412
6751
  const editorRect = () => placementRectInPane(editingCellPlacement(), pane);
6413
6752
  const clearHoveredRow = () => applyHoveredRowChange(null);
6414
- const renderPinnedRows = (position) => PinnedRows ? <Show12 when={position === "top" ? pinnedTop() : pinnedBottom()}>
6753
+ const renderPinnedRows = (position) => PinnedRows ? <Show13 when={position === "top" ? pinnedTop() : pinnedBottom()}>
6415
6754
  {(pinnedRows) => <PinnedRows
6416
6755
  pane={pane}
6417
6756
  position={position}
@@ -6424,7 +6763,7 @@ function GridShellBody(props, features, mountGate, mode) {
6424
6763
  bodyHeight={position === "top" || pinnedBelowTotal() ? 0 : vertical().physicalBodyHeight}
6425
6764
  entries={entries()}
6426
6765
  rowKeyGetter={resolvedRowKeyGetter()}
6427
- ariaRowIndexStart={(position === "top" ? 2 : viewRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 1 : 0)) + columnGroupDepth()}
6766
+ ariaRowIndexStart={(position === "top" ? 2 : ariaBodyRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 1 : 0)) + columnGroupDepth()}
6428
6767
  getRowClassName={props.getRowClassName}
6429
6768
  showCellOverflowTooltip={props.showCellOverflowTooltip ?? false}
6430
6769
  conditionalFormat={conditionalFormatFeature2}
@@ -6433,8 +6772,8 @@ function GridShellBody(props, features, mountGate, mode) {
6433
6772
  slots={slots()}
6434
6773
  onPointerEnter={clearHoveredRow}
6435
6774
  />}
6436
- </Show12> : null;
6437
- const renderTotalRow = () => TotalRow ? <Show12 when={totalRowEnabled()}>
6775
+ </Show13> : null;
6776
+ const renderTotalRow = () => TotalRow ? <Show13 when={totalRowEnabled()}>
6438
6777
  <TotalRow
6439
6778
  pane={pane}
6440
6779
  ownsRowHeader={ownsRowHeader()}
@@ -6447,14 +6786,14 @@ function GridShellBody(props, features, mountGate, mode) {
6447
6786
  cells={totalRowCells()}
6448
6787
  label={totalRowLabel()}
6449
6788
  labelColumnKey={totalRowLabelColumnKey()}
6450
- ariaRowIndex={viewRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 0 : pinnedBottomCount()) + columnGroupDepth()}
6789
+ ariaRowIndex={ariaBodyRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 0 : pinnedBottomCount()) + columnGroupDepth()}
6451
6790
  renderCell={totalRowOptions()?.renderCell}
6452
6791
  rowClassName={totalRowSlot().className}
6453
6792
  rowStyle={totalRowSlot().style}
6454
6793
  slots={slots()}
6455
6794
  onPointerEnter={clearHoveredRow}
6456
6795
  />
6457
- </Show12> : null;
6796
+ </Show13> : null;
6458
6797
  return <div
6459
6798
  style={{
6460
6799
  position: "relative",
@@ -6468,7 +6807,7 @@ function GridShellBody(props, features, mountGate, mode) {
6468
6807
  {
6469
6808
  /* 列のグループの段(1.6.0。列見出しの行の前の sticky の器)。 */
6470
6809
  }
6471
- {ColumnGroupHeader ? <Show12 when={columnGroupTree()}>
6810
+ {ColumnGroupHeader ? <Show13 when={columnGroupTree()}>
6472
6811
  {(tree) => <ColumnGroupHeader
6473
6812
  pane={pane}
6474
6813
  tree={tree()}
@@ -6487,7 +6826,7 @@ function GridShellBody(props, features, mountGate, mode) {
6487
6826
  onResizePointerDown={columnCommands.handleColumnGroupResizePointerDown}
6488
6827
  onGripPointerDown={columnGroupDragHandler()}
6489
6828
  />}
6490
- </Show12> : null}
6829
+ </Show13> : null}
6491
6830
  <GridHeaderRow
6492
6831
  pane={pane}
6493
6832
  ownsRowHeader={ownsRowHeader()}
@@ -6544,6 +6883,7 @@ function GridShellBody(props, features, mountGate, mode) {
6544
6883
  rowClassName={stickyLabelSlot().className}
6545
6884
  rowStyle={stickyLabelSlot().style}
6546
6885
  slots={slots()}
6886
+ rowIndexOffset={pageStart()}
6547
6887
  /> : null}
6548
6888
  <div
6549
6889
  style={{
@@ -6569,16 +6909,16 @@ function GridShellBody(props, features, mountGate, mode) {
6569
6909
  }
6570
6910
  {findReplaceFeature2 ? (() => {
6571
6911
  const { FindScopeOverlay } = findReplaceFeature2;
6572
- return <For5 each={findScopeRectsForPane(pane)} keyed={false}>
6912
+ return <For6 each={findScopeRectsForPane(pane)} keyed={false}>
6573
6913
  {(rect) => <FindScopeOverlay
6574
6914
  rect={rect()}
6575
6915
  headerHeight={headerHeight()}
6576
6916
  leadingWidth={leadingWidth()}
6577
6917
  baseOffset={vertical().overlayBaseOffset}
6578
6918
  />}
6579
- </For5>;
6919
+ </For6>;
6580
6920
  })() : null}
6581
- <For5 each={selectionRectsForPane(pane)} keyed={false}>
6921
+ <For6 each={selectionRectsForPane(pane)} keyed={false}>
6582
6922
  {(rect) => <Overlay
6583
6923
  class="ssg-selection-overlay"
6584
6924
  slot={slots().selectionOverlay}
@@ -6587,8 +6927,8 @@ function GridShellBody(props, features, mountGate, mode) {
6587
6927
  leadingWidth={leadingWidth()}
6588
6928
  baseOffset={vertical().overlayBaseOffset}
6589
6929
  />}
6590
- </For5>
6591
- <For5 each={copyRectsForPane(pane)} keyed={false}>
6930
+ </For6>
6931
+ <For6 each={copyRectsForPane(pane)} keyed={false}>
6592
6932
  {(rect) => <CopyRangeOverlay
6593
6933
  slot={slots().copyRangeOverlay}
6594
6934
  rect={rect()}
@@ -6596,7 +6936,7 @@ function GridShellBody(props, features, mountGate, mode) {
6596
6936
  leadingWidth={leadingWidth()}
6597
6937
  baseOffset={vertical().overlayBaseOffset}
6598
6938
  />}
6599
- </For5>
6939
+ </For6>
6600
6940
  {motionExtrasFeature2 ? (() => {
6601
6941
  const { ColumnHoverOverlay: ColumnHoverOverlay2 } = motionExtrasFeature2;
6602
6942
  return <>
@@ -6668,7 +7008,8 @@ function GridShellBody(props, features, mountGate, mode) {
6668
7008
  collapsedGroupKeys={ui().collapsedGroupKeys}
6669
7009
  onGroupToggle={handleGroupToggle}
6670
7010
  labelRowLayer={pane === "center" ? labelRowLayerCenter() : labelRowLayerBand()}
6671
- skeletonRow={isServerSide() ? serverSideFeature2?.BodySkeletonRow : void 0}
7011
+ skeletonRow={isServerSide() ? serverSideFeature2?.BodySkeletonRow : loadingEmpty() ? GridBodySkeletonRow : void 0}
7012
+ placeholderRows={loadingEmpty()}
6672
7013
  labelViewIndexes={labelViewIndexes()}
6673
7014
  newRowLayer={newRowLayer()}
6674
7015
  newRowDraft={newRowDraft()}
@@ -6678,7 +7019,7 @@ function GridShellBody(props, features, mountGate, mode) {
6678
7019
  rowHeaderWidth={rowHeaderWidth()}
6679
7020
  rows={bodyRows()}
6680
7021
  entries={entries()}
6681
- rowModel={rowModel()}
7022
+ rowModel={layoutRowModel()}
6682
7023
  ariaRowOffset={pinnedTopCount() + columnGroupDepth()}
6683
7024
  activeCell={ui().activeCell}
6684
7025
  editingCell={ui().editingCell}
@@ -6729,10 +7070,10 @@ function GridShellBody(props, features, mountGate, mode) {
6729
7070
  {
6730
7071
  /* 下端の行(本体ぶんの空きの直後 = 箱の下端の sticky の行)。既定は下の固定行 → 合計行、'belowTotal' は合計行 → 固定行。 */
6731
7072
  }
6732
- <Show12 when={pinnedBelowTotal()} fallback={[renderPinnedRows("bottom"), renderTotalRow()]}>
7073
+ <Show13 when={pinnedBelowTotal()} fallback={[renderPinnedRows("bottom"), renderTotalRow()]}>
6733
7074
  {renderTotalRow()}
6734
7075
  {renderPinnedRows("bottom")}
6735
- </Show12>
7076
+ </Show13>
6736
7077
  {
6737
7078
  /* 中央ペインのドロップの縦線(左右のペインは、固定列が 0 本でも線を出せるよう外側の器に置く。React 版と同じ)。 */
6738
7079
  }
@@ -6775,6 +7116,8 @@ function GridShellBody(props, features, mountGate, mode) {
6775
7116
  "ssg-root--dim-readonly": props.dimReadOnlyCells ?? false,
6776
7117
  // 追加(1.5.0 / serverSideRefetch="keep"): 取り直しの間に前の行を見せている(行を薄くする)。
6777
7118
  "ssg-root--refetching": refetchingRows(),
7119
+ // 追加(1.15.0): 読み込み中(行があるとき。薄くする面と動く線は取り直しと同じ)。
7120
+ "ssg-root--loading": loading(),
6778
7121
  // 追加(1.13.0 / 差分の表示): baseline と比べている(変更のセル・追加の行・削除の行を色で塗る。ユーザー判断 C)。
6779
7122
  "ssg-root--diff": diffActive(),
6780
7123
  "ssg-root--fill-height": heightLayout().fillParent,
@@ -6794,7 +7137,7 @@ function GridShellBody(props, features, mountGate, mode) {
6794
7137
  {
6795
7138
  /* フィルターのチップのバー(showFilterChipBar)。適用中の列フィルターをチップで並べる(0 件なら出さない)。 */
6796
7139
  }
6797
- {filterManagement && filteringFeature2 ? <Show12 when={props.showFilterChipBar}>
7140
+ {filterManagement && filteringFeature2 ? <Show13 when={props.showFilterChipBar}>
6798
7141
  <filteringFeature2.FilterChipBar
6799
7142
  slot={slots().filterChipBar}
6800
7143
  entries={filterManagement.entries()}
@@ -6803,7 +7146,7 @@ function GridShellBody(props, features, mountGate, mode) {
6803
7146
  onClearFilter={columnCommands.handleFilterManagerClearFilter}
6804
7147
  onClearAllFilters={columnCommands.handleFilterManagerClearAll}
6805
7148
  />
6806
- </Show12> : null}
7149
+ </Show13> : null}
6807
7150
  <div
6808
7151
  ref={(element) => {
6809
7152
  gridRootRef.current = element;
@@ -6860,11 +7203,11 @@ function GridShellBody(props, features, mountGate, mode) {
6860
7203
  }}
6861
7204
  role={treeStage() ? "treegrid" : "grid"}
6862
7205
  aria-label={props.ariaLabel}
6863
- aria-rowcount={viewRowCount() + 1 + pinnedTopCount() + pinnedBottomCount() + (totalRowEnabled() ? 1 : 0) + columnGroupDepth()}
7206
+ aria-rowcount={ariaBodyRowCount() + 1 + pinnedTopCount() + pinnedBottomCount() + (totalRowEnabled() ? 1 : 0) + columnGroupDepth()}
6864
7207
  aria-colcount={orderedColumns().length + 1}
6865
7208
  aria-multiselectable={enableRangeSelection() ? "true" : void 0}
6866
7209
  aria-readonly={readOnly() ? "true" : void 0}
6867
- aria-busy={refetchingRows() ? "true" : void 0}
7210
+ aria-busy={refetchingRows() || loading() ? "true" : void 0}
6868
7211
  class={["ssg-scroll-container", { "ssg-scroll-container--custom-scrollbar": customScrollbar() }]}
6869
7212
  style={toSolidStyle(heightLayout().scrollContainerStyle)}
6870
7213
  >
@@ -6882,7 +7225,7 @@ function GridShellBody(props, features, mountGate, mode) {
6882
7225
  }}
6883
7226
  style={pinnedPaneStyle("left", paneResolution().leftPaneTotalWidth, paneLayout().left.entries.length > 0)}
6884
7227
  >
6885
- <Show12 when={paneResolution().hasLeftPane}>
7228
+ <Show13 when={paneResolution().hasLeftPane}>
6886
7229
  {renderPane(
6887
7230
  "left",
6888
7231
  () => paneResolution().leftPaneTotalWidth,
@@ -6890,7 +7233,7 @@ function GridShellBody(props, features, mountGate, mode) {
6890
7233
  () => true,
6891
7234
  () => paneLayout().left.entries
6892
7235
  )}
6893
- </Show12>
7236
+ </Show13>
6894
7237
  {renderColumnDropIndicator("left")}
6895
7238
  </div>
6896
7239
  <div
@@ -6917,7 +7260,7 @@ function GridShellBody(props, features, mountGate, mode) {
6917
7260
  }}
6918
7261
  style={pinnedPaneStyle("right", paneResolution().rightPaneTotalWidth, paneLayout().right.entries.length > 0)}
6919
7262
  >
6920
- <Show12 when={paneResolution().hasRightPane}>
7263
+ <Show13 when={paneResolution().hasRightPane}>
6921
7264
  {renderPane(
6922
7265
  "right",
6923
7266
  () => paneResolution().rightPaneTotalWidth,
@@ -6925,15 +7268,18 @@ function GridShellBody(props, features, mountGate, mode) {
6925
7268
  () => false,
6926
7269
  () => paneLayout().right.entries
6927
7270
  )}
6928
- </Show12>
7271
+ </Show13>
6929
7272
  {renderColumnDropIndicator("right")}
6930
7273
  </div>
6931
7274
  </div>
6932
- <Show12 when={viewRowCount() === 0 && hydrated()}>
7275
+ {
7276
+ /* 変更(1.15.0): 読み込み中で行が無い間は骨組みの行を描くので、空の文言は出しません。 */
7277
+ }
7278
+ <Show13 when={viewRowCount() === 0 && hydrated() && !loadingEmpty()}>
6933
7279
  <div class={["ssg-empty-state", slots().emptyState?.className]} style={slots().emptyState?.style}>
6934
7280
  {emptyStateText()}
6935
7281
  </div>
6936
- </Show12>
7282
+ </Show13>
6937
7283
  </div>
6938
7284
  <span
6939
7285
  ref={(element) => {
@@ -6944,7 +7290,7 @@ function GridShellBody(props, features, mountGate, mode) {
6944
7290
  aria-hidden={hasDetailCards() ? void 0 : "true"}
6945
7291
  onFocus={(event) => detailRows.handleTableExitFocus(event.relatedTarget)}
6946
7292
  />
6947
- <Show12 when={scrollHintFeature2 !== void 0 && activeScrollHint()}>
7293
+ <Show13 when={scrollHintFeature2 !== void 0 && activeScrollHint()}>
6948
7294
  {(options) => {
6949
7295
  const ScrollHint = scrollHintFeature2.ScrollHint;
6950
7296
  return <ScrollHint
@@ -6959,29 +7305,31 @@ function GridShellBody(props, features, mountGate, mode) {
6959
7305
  rowMetrics={vertical().rowMetrics}
6960
7306
  rowModel={rowModel()}
6961
7307
  labelViewIndexes={labelViewIndexes()}
7308
+ rowOffset={pageStart()}
7309
+ totalDataRowCount={pageWindow() === null ? void 0 : leafRowCount()}
6962
7310
  />;
6963
7311
  }}
6964
- </Show12>
7312
+ </Show13>
6965
7313
  {
6966
7314
  /* 列幅の自動調整の計測中の overlay(遅れて出す。pointer-events: none で操作は素通し)。 */
6967
7315
  }
6968
- <Show12 when={isAutosizing()}>
7316
+ <Show13 when={isAutosizing()}>
6969
7317
  <div class="ssg-autosize-overlay">
6970
7318
  <span class="ssg-autosize-pill">{localeTexts().sizingColumns}</span>
6971
7319
  </div>
6972
- </Show12>
7320
+ </Show13>
6973
7321
  {
6974
7322
  /* 追加(1.13.0 の実アプリでの点検 RD4-02): ▲ ▼ で回った先の読み上げ(見た目には出さない。差分の表示の間だけ置く)。 */
6975
7323
  }
6976
- <Show12 when={diffActive() && diffViewParts !== void 0}>
7324
+ <Show13 when={diffActive() && diffViewParts !== void 0}>
6977
7325
  <span class="ssg-visually-hidden" aria-live="polite" aria-atomic="true">
6978
7326
  {changeNavAnnouncement()}
6979
7327
  </span>
6980
- </Show12>
7328
+ </Show13>
6981
7329
  {
6982
7330
  /* グローバルフィルターの適用中の overlay(しきい値を超える表の時間分割の間だけ。pointer-events: none)。 */
6983
7331
  }
6984
- <Show12 when={globalFilterStatus() === "filtering"}>
7332
+ <Show13 when={globalFilterStatus() === "filtering"}>
6985
7333
  <div class="ssg-filter-overlay">
6986
7334
  <span class="ssg-filter-overlay-chip" role="status" aria-live="polite">
6987
7335
  <span class="ssg-filter-spinner" aria-hidden="true" />
@@ -6990,11 +7338,11 @@ function GridShellBody(props, features, mountGate, mode) {
6990
7338
  </span>
6991
7339
  </span>
6992
7340
  </div>
6993
- </Show12>
7341
+ </Show13>
6994
7342
  {
6995
7343
  /* セル内検索のバー(右上に浮く。見出しの直下)。開いているときだけ描きます。 */
6996
7344
  }
6997
- <Show12 when={findSnapshot().open}>
7345
+ <Show13 when={findSnapshot().open}>
6998
7346
  {FindBar && <FindBar
6999
7347
  snapshot={findSnapshot()}
7000
7348
  headerHeight={headerHeight()}
@@ -7016,11 +7364,11 @@ function GridShellBody(props, features, mountGate, mode) {
7016
7364
  onScopeChange={engine.findReplace.setScopeEnabled}
7017
7365
  onReplaceShortcut={() => engine.findReplace.setExpanded(true)}
7018
7366
  />}
7019
- </Show12>
7367
+ </Show13>
7020
7368
  {
7021
7369
  /* サーバーサイドのエラーバー(取得の失敗の再試行 / 保存の失敗。機能 features/serverSide の部品)。 */
7022
7370
  }
7023
- {serverSide && serverSideFeature2 ? <Show12 when={isServerSide()}>
7371
+ {serverSide && serverSideFeature2 ? <Show13 when={isServerSide()}>
7024
7372
  <serverSideFeature2.ErrorBars
7025
7373
  loadError={serverSide.loadError()}
7026
7374
  writeError={serverSide.writeError()}
@@ -7028,12 +7376,15 @@ function GridShellBody(props, features, mountGate, mode) {
7028
7376
  slot={slots().errorBar}
7029
7377
  localeTexts={localeTexts()}
7030
7378
  />
7031
- </Show12> : null}
7379
+ </Show13> : null}
7032
7380
  {
7033
7381
  /* 追加(1.5.0 / serverSideRefetch="keep"): 前の行を見せたまま取り直している間、本体の見えている所を薄くする面と、
7034
7382
  列見出しの下に流れる線(大きさはスクロールバーを除いた見える範囲。測る前は CSS の left / right / bottom。React 版と同じ)。 */
7035
7383
  }
7036
- <Show12 when={refetchingRows()}>
7384
+ {
7385
+ /* 変更(1.15.0): 読み込み中(loading)で行があるときも同じ面と線。 */
7386
+ }
7387
+ <Show13 when={refetchingRows() || loadingWithRows()}>
7037
7388
  <div
7038
7389
  class="ssg-refetch-veil"
7039
7390
  aria-hidden="true"
@@ -7048,12 +7399,12 @@ function GridShellBody(props, features, mountGate, mode) {
7048
7399
  aria-hidden="true"
7049
7400
  style={{ top: `${headerHeight()}px`, width: viewportWidth() > 0 ? `${viewportWidth()}px` : void 0 }}
7050
7401
  />
7051
- </Show12>
7402
+ </Show13>
7052
7403
  {
7053
7404
  /* IME オンのままの直接入力の入力受け(imeDirectInput が有効なときだけ)。値 / 位置 / 変換中の見た目はコントローラが
7054
7405
  直接扱います。Tab の順番には入れません(タブストップはシェルのまま)。 */
7055
7406
  }
7056
- <Show12 when={imeDirectInputEnabled()}>
7407
+ <Show13 when={imeDirectInputEnabled()}>
7057
7408
  <input
7058
7409
  ref={(element) => engine.imeInput.attach(element)}
7059
7410
  {...{ [IME_INPUT_ATTRIBUTE]: "" }}
@@ -7066,14 +7417,14 @@ function GridShellBody(props, features, mountGate, mode) {
7066
7417
  spellcheck="false"
7067
7418
  aria-label={localeTexts().cellInput}
7068
7419
  />
7069
- </Show12>
7420
+ </Show13>
7070
7421
  </div>
7071
7422
  {bottomBar()}
7072
7423
  {
7073
7424
  /* 列メニュー(グリッドの外のポップアップ)。 */
7074
7425
  }
7075
- {columnMenu && columnMenuFeature2 ? <Show12 when={columnMenu.openedColumn()}>
7076
- {(column) => <Show12 when={columnMenu.layout()}>
7426
+ {columnMenu && columnMenuFeature2 ? <Show13 when={columnMenu.openedColumn()}>
7427
+ {(column) => <Show13 when={columnMenu.layout()}>
7077
7428
  {(layout) => <columnMenuFeature2.ColumnMenuPopover
7078
7429
  slots={slots()}
7079
7430
  themeClassName={portalClassName()}
@@ -7122,8 +7473,8 @@ function GridShellBody(props, features, mountGate, mode) {
7122
7473
  }}
7123
7474
  onRequestClose={columnMenu.close}
7124
7475
  />}
7125
- </Show12>}
7126
- </Show12> : null}
7476
+ </Show13>}
7477
+ </Show13> : null}
7127
7478
  {
7128
7479
  /* 列フィルターのポップオーバー(グリッドの外のポップアップ。閉じている間は何も描かない)。 */
7129
7480
  }
@@ -7146,9 +7497,9 @@ function GridShellBody(props, features, mountGate, mode) {
7146
7497
  /* ツールパネル(グリッドの外のポップアップ。開いている間だけ描く)。タブを切り替えると中身を作り直す(タブの中の検索の
7147
7498
  文字などは戻る。React 版と同じ)。 */
7148
7499
  }
7149
- {toolPanel && toolPanelViews ? <Show12 when={toolPanel.activeTab()}>
7150
- {(tab) => <Show12 when={toolPanel.layout()}>
7151
- {(layout) => <Show12 when={toolPanelViews()}>
7500
+ {toolPanel && toolPanelViews ? <Show13 when={toolPanel.activeTab()}>
7501
+ {(tab) => <Show13 when={toolPanel.layout()}>
7502
+ {(layout) => <Show13 when={toolPanelViews()}>
7152
7503
  {(views) => {
7153
7504
  const { ToolPanel, FilterManagementPanel, ColumnChooserPanel, SortManagementPanel } = untrack13(views);
7154
7505
  return <ToolPanel
@@ -7207,13 +7558,13 @@ function GridShellBody(props, features, mountGate, mode) {
7207
7558
  </Switch>
7208
7559
  </ToolPanel>;
7209
7560
  }}
7210
- </Show12>}
7211
- </Show12>}
7212
- </Show12> : null}
7561
+ </Show13>}
7562
+ </Show13>}
7563
+ </Show13> : null}
7213
7564
  {
7214
7565
  /* セル / 行番号の右クリックメニュー(グリッドの外のポップアップ)。 */
7215
7566
  }
7216
- {contextMenu && contextMenuFeature2 ? <Show12 when={contextMenuView()}>
7567
+ {contextMenu && contextMenuFeature2 ? <Show13 when={contextMenuView()}>
7217
7568
  {(open) => <contextMenuFeature2.CellContextMenuPopover
7218
7569
  items={open().items}
7219
7570
  layout={open().layout}
@@ -7223,7 +7574,7 @@ function GridShellBody(props, features, mountGate, mode) {
7223
7574
  themeClassName={portalClassName()}
7224
7575
  slots={slots()}
7225
7576
  />}
7226
- </Show12> : null}
7577
+ </Show13> : null}
7227
7578
  {
7228
7579
  /* フィルハンドルの埋めたあとのメニュー / ドラッグ中の値のツールチップ(グリッドの外のポップアップ)。 */
7229
7580
  }
@@ -7316,7 +7667,7 @@ import {
7316
7667
  import { DEFAULT_COLUMN_GROUPS_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
7317
7668
 
7318
7669
  // src/view/GridColumnGroupHeader.tsx
7319
- import { For as For6, Show as Show13, createMemo as createMemo11 } from "solid-js";
7670
+ import { For as For7, Show as Show14, createMemo as createMemo11 } from "solid-js";
7320
7671
  import {
7321
7672
  createColumnGroupResize,
7322
7673
  resolveColumnGroupCells
@@ -7362,7 +7713,7 @@ function GridColumnGroupHeader(props) {
7362
7713
  return result.map((levelCells, level) => ({ level, cells: levelCells })).filter((entry) => entry.cells.length > 0);
7363
7714
  });
7364
7715
  return <div data-pane={props.pane} class="ssg-col-group-block" style={{ height: px(tree().depth * props.groupRowHeight) }}>
7365
- <For6 each={levels()} keyed={(entry) => entry.level}>
7716
+ <For7 each={levels()} keyed={(entry) => entry.level}>
7366
7717
  {(entry) => (
7367
7718
  // 段ごとに 1 行(3 ペインの同じ段は同じ行番号)。
7368
7719
  <div
@@ -7371,7 +7722,7 @@ function GridColumnGroupHeader(props) {
7371
7722
  class="ssg-col-group-row"
7372
7723
  style={{ top: px(entry().level * props.groupRowHeight), height: px(props.groupRowHeight) }}
7373
7724
  >
7374
- <For6 each={entry().cells} keyed={(cell) => cell.id}>
7725
+ <For7 each={entry().cells} keyed={(cell) => cell.id}>
7375
7726
  {(cell) => {
7376
7727
  const group = createMemo11(() => cell().group);
7377
7728
  const definition = createMemo11(() => group().definition);
@@ -7438,7 +7789,7 @@ function GridColumnGroupHeader(props) {
7438
7789
  >
7439
7790
  {definition().renderHeader ? definition().renderHeader?.(context) : title()}
7440
7791
  </span>
7441
- <Show13 when={group().collapsible}>
7792
+ <Show14 when={group().collapsible}>
7442
7793
  <button
7443
7794
  type="button"
7444
7795
  tabindex={-1}
@@ -7470,8 +7821,8 @@ function GridColumnGroupHeader(props) {
7470
7821
  />
7471
7822
  </svg>
7472
7823
  </button>
7473
- </Show13>
7474
- <Show13 when={props.onGripPointerDown}>
7824
+ </Show14>
7825
+ <Show14 when={props.onGripPointerDown}>
7475
7826
  {(handler) => <span
7476
7827
  aria-hidden="true"
7477
7828
  class="ssg-header-grip ssg-col-group-grip"
@@ -7487,17 +7838,17 @@ function GridColumnGroupHeader(props) {
7487
7838
  <circle cx="6" cy="11" r="1" />
7488
7839
  </svg>
7489
7840
  </span>}
7490
- </Show13>
7841
+ </Show14>
7491
7842
  </div>
7492
- <Show13 when={resize()}>
7843
+ <Show14 when={resize()}>
7493
7844
  {(value) => <div class="ssg-header-resize" onPointerDown={(event) => props.onResizePointerDown(value(), event)} />}
7494
- </Show13>
7845
+ </Show14>
7495
7846
  </div>;
7496
7847
  }}
7497
- </For6>
7848
+ </For7>
7498
7849
  </div>
7499
7850
  )}
7500
- </For6>
7851
+ </For7>
7501
7852
  </div>;
7502
7853
  }
7503
7854
 
@@ -7556,7 +7907,7 @@ function createColumnMenu(inputs) {
7556
7907
  }
7557
7908
 
7558
7909
  // src/view/ColumnMenuPopover.tsx
7559
- import { For as For7, Show as Show14, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal10, createUniqueId as createUniqueId4, onCleanup as onCleanup9 } from "solid-js";
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";
7560
7911
  import { Portal as Portal2 } from "@solidjs/web";
7561
7912
  var PINNED_ITEMS = [
7562
7913
  { value: void 0, label: "menuPinNone" },
@@ -7659,7 +8010,7 @@ function ColumnMenuPopover(props) {
7659
8010
  props.slots?.menuItem?.className
7660
8011
  ];
7661
8012
  const itemStyle = () => props.slots?.menuItem?.style;
7662
- return <Show14 when={container}>
8013
+ return <Show15 when={container}>
7663
8014
  {(mount) => <Portal2 mount={mount()}>
7664
8015
  <div
7665
8016
  ref={(node) => {
@@ -7692,8 +8043,8 @@ function ColumnMenuPopover(props) {
7692
8043
  {
7693
8044
  /* 列のグループの開閉(1.6.0 の実アプリの点検 G5-02)。 */
7694
8045
  }
7695
- <Show14 when={props.onToggleColumnGroup !== void 0 && (props.columnGroupToggles?.length ?? 0) > 0}>
7696
- <For7 each={props.columnGroupToggles ?? []} keyed={(toggle) => toggle.key}>
8046
+ <Show15 when={props.onToggleColumnGroup !== void 0 && (props.columnGroupToggles?.length ?? 0) > 0}>
8047
+ <For8 each={props.columnGroupToggles ?? []} keyed={(toggle) => toggle.key}>
7697
8048
  {(toggle) => <button
7698
8049
  type="button"
7699
8050
  role="menuitem"
@@ -7705,11 +8056,11 @@ function ColumnMenuPopover(props) {
7705
8056
  <span class="ssg-menu-icon" />
7706
8057
  <span class="ssg-menu-label">{toggle().label}</span>
7707
8058
  </button>}
7708
- </For7>
8059
+ </For8>
7709
8060
  <div role="separator" class="ssg-menu-separator" />
7710
- </Show14>
8061
+ </Show15>
7711
8062
 
7712
- <Show14 when={props.canFilter}>
8063
+ <Show15 when={props.canFilter}>
7713
8064
  <button
7714
8065
  type="button"
7715
8066
  role="menuitem"
@@ -7722,9 +8073,9 @@ function ColumnMenuPopover(props) {
7722
8073
  <span class="ssg-menu-label">{texts().menuFilter}</span>
7723
8074
  </button>
7724
8075
  <div role="separator" class="ssg-menu-separator" />
7725
- </Show14>
8076
+ </Show15>
7726
8077
 
7727
- <Show14 when={props.canSort}>
8078
+ <Show15 when={props.canSort}>
7728
8079
  <SortItem
7729
8080
  direction="asc"
7730
8081
  sortDirection={props.sortDirection}
@@ -7743,7 +8094,7 @@ function ColumnMenuPopover(props) {
7743
8094
  class={itemClass()}
7744
8095
  style={itemStyle()}
7745
8096
  />
7746
- <Show14 when={props.onOpenSortManager}>
8097
+ <Show15 when={props.onOpenSortManager}>
7747
8098
  {(open) => <button
7748
8099
  type="button"
7749
8100
  role="menuitem"
@@ -7755,10 +8106,10 @@ function ColumnMenuPopover(props) {
7755
8106
  <span class="ssg-menu-icon" />
7756
8107
  <span class="ssg-menu-label">{texts().menuManageSort}</span>
7757
8108
  </button>}
7758
- </Show14>
7759
- </Show14>
8109
+ </Show15>
8110
+ </Show15>
7760
8111
 
7761
- <Show14 when={props.canManageFilters ? props.onOpenFilterManager : void 0}>
8112
+ <Show15 when={props.canManageFilters ? props.onOpenFilterManager : void 0}>
7762
8113
  {(open) => <button
7763
8114
  type="button"
7764
8115
  role="menuitem"
@@ -7770,16 +8121,16 @@ function ColumnMenuPopover(props) {
7770
8121
  <span class="ssg-menu-icon" />
7771
8122
  <span class="ssg-menu-label">{texts().menuManageFilters}</span>
7772
8123
  </button>}
7773
- </Show14>
8124
+ </Show15>
7774
8125
 
7775
8126
  {
7776
8127
  /* 区切りは、並び替えの項目かフィルターを管理…のどちらかが出ているとき。 */
7777
8128
  }
7778
- <Show14 when={props.canSort || props.canManageFilters && props.onOpenFilterManager !== void 0}>
8129
+ <Show15 when={props.canSort || props.canManageFilters && props.onOpenFilterManager !== void 0}>
7779
8130
  <div role="separator" class="ssg-menu-separator" />
7780
- </Show14>
8131
+ </Show15>
7781
8132
 
7782
- <Show14 when={props.onGroupByColumn}>
8133
+ <Show15 when={props.onGroupByColumn}>
7783
8134
  {(groupBy) => <button
7784
8135
  type="button"
7785
8136
  role="menuitem"
@@ -7791,8 +8142,8 @@ function ColumnMenuPopover(props) {
7791
8142
  <span class="ssg-menu-icon" />
7792
8143
  <span class="ssg-menu-label">{texts().menuGroupBy}</span>
7793
8144
  </button>}
7794
- </Show14>
7795
- <Show14 when={props.onUngroup}>
8145
+ </Show15>
8146
+ <Show15 when={props.onUngroup}>
7796
8147
  {(ungroup) => <button
7797
8148
  type="button"
7798
8149
  role="menuitem"
@@ -7804,10 +8155,10 @@ function ColumnMenuPopover(props) {
7804
8155
  <span class="ssg-menu-icon" />
7805
8156
  <span class="ssg-menu-label">{texts().menuUngroup}</span>
7806
8157
  </button>}
7807
- </Show14>
7808
- <Show14 when={props.onGroupByColumn !== void 0 || props.onUngroup !== void 0}>
8158
+ </Show15>
8159
+ <Show15 when={props.onGroupByColumn !== void 0 || props.onUngroup !== void 0}>
7809
8160
  <div role="separator" class="ssg-menu-separator" />
7810
- </Show14>
8161
+ </Show15>
7811
8162
 
7812
8163
  {
7813
8164
  /* 列の固定 ›(小メニューはこの行 = position: relative を基準に置く。パネルの子孫なので外側の押下の判定にも入る)。 */
@@ -7868,7 +8219,7 @@ function ColumnMenuPopover(props) {
7868
8219
  ›
7869
8220
  </span>
7870
8221
  </button>
7871
- <Show14 when={isPinSubmenuOpen()}>
8222
+ <Show15 when={isPinSubmenuOpen()}>
7872
8223
  <div
7873
8224
  ref={(node) => {
7874
8225
  pinSubmenuElement = node;
@@ -7887,7 +8238,7 @@ function ColumnMenuPopover(props) {
7887
8238
  pinButton?.focus();
7888
8239
  }}
7889
8240
  >
7890
- <For7 each={PINNED_ITEMS}>
8241
+ <For8 each={PINNED_ITEMS}>
7891
8242
  {(item) => {
7892
8243
  const isSelected = () => props.pinned === item.value;
7893
8244
  return <button
@@ -7911,17 +8262,17 @@ function ColumnMenuPopover(props) {
7911
8262
  <span class="ssg-menu-label">{texts()[item.label]}</span>
7912
8263
  </button>;
7913
8264
  }}
7914
- </For7>
7915
- <Show14 when={!props.canChangePinned}>
8265
+ </For8>
8266
+ <Show15 when={!props.canChangePinned}>
7916
8267
  <div id={pinNoteId} role="none" class="ssg-menu-note">
7917
8268
  {texts().menuPinUnavailable}
7918
8269
  </div>
7919
- </Show14>
8270
+ </Show15>
7920
8271
  </div>
7921
- </Show14>
8272
+ </Show15>
7922
8273
  </div>
7923
8274
 
7924
- <Show14 when={props.onAutosizeColumn && props.onAutosizeAllColumns}>
8275
+ <Show15 when={props.onAutosizeColumn && props.onAutosizeAllColumns}>
7925
8276
  <button
7926
8277
  type="button"
7927
8278
  role="menuitem"
@@ -7944,9 +8295,9 @@ function ColumnMenuPopover(props) {
7944
8295
  <span class="ssg-menu-icon" />
7945
8296
  <span class="ssg-menu-label">{texts().menuAutosizeAll}</span>
7946
8297
  </button>
7947
- </Show14>
8298
+ </Show15>
7948
8299
 
7949
- <Show14 when={props.onOpenColumnChooser}>
8300
+ <Show15 when={props.onOpenColumnChooser}>
7950
8301
  {(open) => <button
7951
8302
  type="button"
7952
8303
  role="menuitem"
@@ -7958,7 +8309,7 @@ function ColumnMenuPopover(props) {
7958
8309
  <span class="ssg-menu-icon" />
7959
8310
  <span class="ssg-menu-label">{texts().menuColumns}</span>
7960
8311
  </button>}
7961
- </Show14>
8312
+ </Show15>
7962
8313
 
7963
8314
  <button
7964
8315
  type="button"
@@ -7986,7 +8337,7 @@ function ColumnMenuPopover(props) {
7986
8337
  </div>
7987
8338
  </div>
7988
8339
  </Portal2>}
7989
- </Show14>;
8340
+ </Show15>;
7990
8341
  }
7991
8342
  function SortItem(props) {
7992
8343
  const active = () => props.sortDirection === props.direction;
@@ -8065,7 +8416,7 @@ import {
8065
8416
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/conditionalFormat";
8066
8417
 
8067
8418
  // src/view/GridChip.tsx
8068
- import { Show as Show15 } from "solid-js";
8419
+ import { Show as Show16 } from "solid-js";
8069
8420
  import { resolveChipTone } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/conditionalFormat";
8070
8421
  var SVG_NOT_FOCUSABLE3 = { focusable: "false" };
8071
8422
  var ICON_PATHS = {
@@ -8091,7 +8442,7 @@ function GridChip(props) {
8091
8442
  class={["ssg-chip", custom() ? "ssg-chip--custom" : `ssg-chip--${tone()}`]}
8092
8443
  style={custom() ? { "--ssg-cf-chip-color": props.spec.color } : void 0}
8093
8444
  >
8094
- <Show15 when={props.spec.icon !== false}>
8445
+ <Show16 when={props.spec.icon !== false}>
8095
8446
  <span class="ssg-chip-icon" aria-hidden="true">
8096
8447
  <svg
8097
8448
  viewBox="0 0 12 12"
@@ -8105,7 +8456,7 @@ function GridChip(props) {
8105
8456
  {ICON_PATHS[tone()]()}
8106
8457
  </svg>
8107
8458
  </span>
8108
- </Show15>
8459
+ </Show16>
8109
8460
  <span class="ssg-chip-label">{props.children}</span>
8110
8461
  </span>;
8111
8462
  }
@@ -8145,7 +8496,7 @@ function createCellContextMenu(inputs) {
8145
8496
  }
8146
8497
 
8147
8498
  // src/view/CellContextMenuPopover.tsx
8148
- import { For as For8, Match as Match2, Show as Show16, Switch as Switch2, createMemo as createMemo15, createSignal as createSignal11, onCleanup as onCleanup10 } from "solid-js";
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";
8149
8500
  import { Portal as Portal3 } from "@solidjs/web";
8150
8501
  function CellContextMenuPopover(props) {
8151
8502
  const portal = useGridPortal();
@@ -8158,7 +8509,7 @@ function CellContextMenuPopover(props) {
8158
8509
  }
8159
8510
  });
8160
8511
  const layout = createMemo15(() => props.layout);
8161
- const element = <Show16 when={container}>
8512
+ const element = <Show17 when={container}>
8162
8513
  {(mount) => <Portal3 mount={mount()}>
8163
8514
  <div
8164
8515
  ref={(node) => {
@@ -8184,7 +8535,7 @@ function CellContextMenuPopover(props) {
8184
8535
  ...layout().maxHeight !== void 0 ? { "max-height": px(layout().maxHeight ?? 0), "overflow-y": "auto" } : null
8185
8536
  }}
8186
8537
  >
8187
- <For8 each={props.items}>
8538
+ <For9 each={props.items}>
8188
8539
  {(item) => <Switch2
8189
8540
  fallback={
8190
8541
  // action(kind 省略 or 'action')。押すと onSelect の後に閉じる。disabled は button の disabled で押せない。
@@ -8216,10 +8567,10 @@ function CellContextMenuPopover(props) {
8216
8567
  {(custom) => <div role="none">{custom().render({ close: props.onRequestClose })}</div>}
8217
8568
  </Match2>
8218
8569
  </Switch2>}
8219
- </For8>
8570
+ </For9>
8220
8571
  </div>
8221
8572
  </Portal3>}
8222
- </Show16>;
8573
+ </Show17>;
8223
8574
  createPortalTokens(panel, () => props.themeClassName, layout);
8224
8575
  return element;
8225
8576
  }
@@ -8437,7 +8788,7 @@ function createFillHandle(inputs) {
8437
8788
  }
8438
8789
 
8439
8790
  // src/view/FillHandleLayer.tsx
8440
- import { For as For9, Show as Show17, createEffect as createEffect7, createMemo as createMemo17, createSignal as createSignal12, onCleanup as onCleanup11 } from "solid-js";
8791
+ import { For as For10, Show as Show18, createEffect as createEffect7, createMemo as createMemo17, createSignal as createSignal12, onCleanup as onCleanup11 } from "solid-js";
8441
8792
  import { Portal as Portal4 } from "@solidjs/web";
8442
8793
  import { formatLocaleText as formatLocaleText8 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8443
8794
  import { getActiveElement } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/shadowDom";
@@ -8459,7 +8810,7 @@ function FillHandleLayer(props) {
8459
8810
  {
8460
8811
  /* ドラッグ中の埋める範囲の点線。 */
8461
8812
  }
8462
- <For9 each={props.fill.previewRects(props.pane)} keyed={false}>
8813
+ <For10 each={props.fill.previewRects(props.pane)} keyed={false}>
8463
8814
  {(rect) => <div
8464
8815
  class="ssg-fill-preview"
8465
8816
  style={{
@@ -8471,11 +8822,11 @@ function FillHandleLayer(props) {
8471
8822
  }}
8472
8823
  data-ssg-fill-preview=""
8473
8824
  />}
8474
- </For9>
8825
+ </For10>
8475
8826
  {
8476
8827
  /* 選択範囲の右下の四角。 */
8477
8828
  }
8478
- <Show17 when={corner()}>
8829
+ <Show18 when={corner()}>
8479
8830
  {(current) => <div
8480
8831
  class="ssg-fill-handle"
8481
8832
  style={{
@@ -8487,12 +8838,12 @@ function FillHandleLayer(props) {
8487
8838
  aria-hidden="true"
8488
8839
  onPointerDown={(event) => props.fill.controller.handlePointerDown(event)}
8489
8840
  />}
8490
- </Show17>
8841
+ </Show18>
8491
8842
  {
8492
8843
  /* 埋めたあとのボタン(左上の位置)。 */
8493
8844
  }
8494
- <Show17 when={filled()}>
8495
- {(snapshot2) => <Show17 when={chip()}>
8845
+ <Show18 when={filled()}>
8846
+ {(snapshot2) => <Show18 when={chip()}>
8496
8847
  {(position) => <FillOptionsChip
8497
8848
  fill={props.fill}
8498
8849
  x={props.leadingWidth + position().x}
@@ -8500,8 +8851,8 @@ function FillHandleLayer(props) {
8500
8851
  kind={snapshot2().kind}
8501
8852
  menuOpen={snapshot2().menu !== null}
8502
8853
  />}
8503
- </Show17>}
8504
- </Show17>
8854
+ </Show18>}
8855
+ </Show18>
8505
8856
  </>;
8506
8857
  }
8507
8858
  function FillOptionsChip(props) {
@@ -8588,7 +8939,7 @@ function FillOptionsMenu(props) {
8588
8939
  }
8589
8940
  event.stopPropagation();
8590
8941
  };
8591
- const element = <Show17 when={container}>
8942
+ const element = <Show18 when={container}>
8592
8943
  {(mount) => <Portal4 mount={mount()}>
8593
8944
  <div
8594
8945
  ref={(node) => {
@@ -8604,7 +8955,7 @@ function FillOptionsMenu(props) {
8604
8955
  onKeyDown={handleKeyDown}
8605
8956
  onContextMenu={(event) => event.preventDefault()}
8606
8957
  >
8607
- <For9 each={MENU_ITEMS}>
8958
+ <For10 each={MENU_ITEMS}>
8608
8959
  {(item) => {
8609
8960
  const disabled = () => item.kind === "series" && !props.seriesAvailable;
8610
8961
  const checked = () => item.kind === props.kind;
@@ -8623,10 +8974,10 @@ function FillOptionsMenu(props) {
8623
8974
  <span class="ssg-menu-label">{texts()[item.label]}</span>
8624
8975
  </button>;
8625
8976
  }}
8626
- </For9>
8977
+ </For10>
8627
8978
  </div>
8628
8979
  </Portal4>}
8629
- </Show17>;
8980
+ </Show18>;
8630
8981
  createPortalTokens(panel, () => props.themeClassName, () => null);
8631
8982
  return element;
8632
8983
  }
@@ -8641,7 +8992,7 @@ function FillTooltip(props) {
8641
8992
  const visible = createMemo17(() => pointer() !== null);
8642
8993
  const container = createMemo17(() => visible() ? portal.container() : null);
8643
8994
  const [tooltip, setTooltip] = createSignal12();
8644
- const element = <Show17 when={container()}>
8995
+ const element = <Show18 when={container()}>
8645
8996
  {(mount) => <Portal4 mount={mount()}>
8646
8997
  <div
8647
8998
  ref={setTooltip}
@@ -8656,7 +9007,7 @@ function FillTooltip(props) {
8656
9007
  {props.text}
8657
9008
  </div>
8658
9009
  </Portal4>}
8659
- </Show17>;
9010
+ </Show18>;
8660
9011
  createPortalTokens(tooltip, () => props.themeClassName, () => null);
8661
9012
  return element;
8662
9013
  }
@@ -8670,8 +9021,8 @@ function FillHandlePortals(props) {
8670
9021
  return snapshot2.status === "dragging" ? snapshot2.previewText : null;
8671
9022
  });
8672
9023
  return <>
8673
- <Show17 when={menu()}>
8674
- {(snapshot2) => <Show17 when={snapshot2().menu}>
9024
+ <Show18 when={menu()}>
9025
+ {(snapshot2) => <Show18 when={snapshot2().menu}>
8675
9026
  {(layout) => <FillOptionsMenu
8676
9027
  fill={props.fill}
8677
9028
  layout={layout()}
@@ -8679,11 +9030,11 @@ function FillHandlePortals(props) {
8679
9030
  seriesAvailable={snapshot2().seriesAvailable}
8680
9031
  themeClassName={props.themeClassName}
8681
9032
  />}
8682
- </Show17>}
8683
- </Show17>
8684
- <Show17 when={tooltipText() !== null}>
9033
+ </Show18>}
9034
+ </Show18>
9035
+ <Show18 when={tooltipText() !== null}>
8685
9036
  <FillTooltip fill={props.fill} text={tooltipText() ?? ""} themeClassName={props.themeClassName} />
8686
- </Show17>
9037
+ </Show18>
8687
9038
  </>;
8688
9039
  }
8689
9040
 
@@ -8993,7 +9344,7 @@ function createFilterManagement(inputs) {
8993
9344
  }
8994
9345
 
8995
9346
  // src/view/ColumnFilterPopoverHost.tsx
8996
- import { Show as Show18, createMemo as createMemo21, untrack as untrack16 } from "solid-js";
9347
+ import { Show as Show19, createMemo as createMemo21, untrack as untrack16 } from "solid-js";
8997
9348
  import {
8998
9349
  createFilterPopoverCommands,
8999
9350
  createFilterPopoverDerivedResolver
@@ -9169,12 +9520,12 @@ function ColumnFilterPopoverHost(props) {
9169
9520
  columnKey
9170
9521
  });
9171
9522
  });
9172
- return <Show18 when={openedColumn()}>
9173
- {(column) => <Show18 when={filterPopover.layout()}>
9174
- {(layout) => <Show18 when={props.views()}>
9523
+ return <Show19 when={openedColumn()}>
9524
+ {(column) => <Show19 when={filterPopover.layout()}>
9525
+ {(layout) => <Show19 when={props.views()}>
9175
9526
  {(views) => {
9176
9527
  const ColumnFilterPopover = untrack16(views).ColumnFilterPopover;
9177
- return <Show18 when={column().key} keyed>
9528
+ return <Show19 when={column().key} keyed>
9178
9529
  {(columnKey) => <ColumnFilterPopover
9179
9530
  popoverSlot={props.popoverSlot}
9180
9531
  themeClassName={props.themeClassName}
@@ -9215,22 +9566,22 @@ function ColumnFilterPopoverHost(props) {
9215
9566
  onSetClear={commands.clearSetFilterPopoverValue}
9216
9567
  onSetReplaceSelection={commands.handleSetFilterReplaceSelection}
9217
9568
  />}
9218
- </Show18>;
9569
+ </Show19>;
9219
9570
  }}
9220
- </Show18>}
9221
- </Show18>}
9222
- </Show18>;
9571
+ </Show19>}
9572
+ </Show19>}
9573
+ </Show19>;
9223
9574
  }
9224
9575
 
9225
9576
  // src/view/GridFilterChipBar.tsx
9226
- import { For as For10, Show as Show19, createUniqueId as createUniqueId5 } from "solid-js";
9577
+ import { For as For11, Show as Show20, createUniqueId as createUniqueId5 } from "solid-js";
9227
9578
  import { formatLocaleText as formatLocaleText11 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
9228
9579
  function GridFilterChipBar(props) {
9229
9580
  const texts = useFeatureLocaleText();
9230
9581
  const chipIdBase = createUniqueId5();
9231
- return <Show19 when={props.entries.length > 0}>
9582
+ return <Show20 when={props.entries.length > 0}>
9232
9583
  <div class={["ssg-filter-chip-bar", props.slot?.className]} style={props.slot?.style}>
9233
- <For10 each={props.entries} keyed={(entry) => entry.columnKey}>
9584
+ <For11 each={props.entries} keyed={(entry) => entry.columnKey}>
9234
9585
  {(entry, index) => <div class={entry().isHidden ? "ssg-filter-chip ssg-filter-chip--hidden" : "ssg-filter-chip"}>
9235
9586
  <button
9236
9587
  type="button"
@@ -9265,7 +9616,7 @@ function GridFilterChipBar(props) {
9265
9616
  {formatLocaleText11(texts().filterEditFor, { column: entry().title })}
9266
9617
  </span>
9267
9618
  </div>}
9268
- </For10>
9619
+ </For11>
9269
9620
  <button
9270
9621
  type="button"
9271
9622
  class="ssg-filter-chip-bar-clear-all"
@@ -9275,15 +9626,15 @@ function GridFilterChipBar(props) {
9275
9626
  {texts().clearAll}
9276
9627
  </button>
9277
9628
  </div>
9278
- </Show19>;
9629
+ </Show20>;
9279
9630
  }
9280
9631
 
9281
9632
  // src/view/lazyPopups.ts
9282
9633
  import { createEffect as createEffect8, createMemo as createMemo22 } from "solid-js";
9283
9634
  import { createLazyModule } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/lazyModule";
9284
9635
  import { scheduleIdleTask } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/scheduler";
9285
- var filterPopoverModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/ColumnFilterPopover-JL3HPGXY.jsx"));
9286
- var toolPanelModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/toolPanelViews-N6TGBFFW.jsx"));
9636
+ var filterPopoverModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/ColumnFilterPopover-7COSTSPD.jsx"));
9637
+ var toolPanelModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/toolPanelViews-WBFE4QVY.jsx"));
9287
9638
  var dateEditorCalendarModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/DateEditorCalendar-FVUNVD7Y.jsx"));
9288
9639
  var preloadGridPopups = async () => {
9289
9640
  await Promise.all([filterPopoverModule.load(), toolPanelModule.load(), dateEditorCalendarModule.load()]);
@@ -9348,7 +9699,7 @@ import { splitTextByFindRanges } from "@ishibashi0112/spreadsheet-grid-core/inte
9348
9699
  import { DEFAULT_FIND_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
9349
9700
 
9350
9701
  // src/view/GridFindBar.tsx
9351
- import { Show as Show20, createEffect as createEffect9, createRenderEffect as createRenderEffect6, createSignal as createSignal14, onSettled as onSettled7, untrack as untrack17 } from "solid-js";
9702
+ import { Show as Show21, createEffect as createEffect9, createRenderEffect as createRenderEffect6, createSignal as createSignal14, onSettled as onSettled7, untrack as untrack17 } from "solid-js";
9352
9703
  import { isImeComposingKeyEvent as isImeComposingKeyEvent3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
9353
9704
  function GridFindBar(props) {
9354
9705
  const texts = useFeatureLocaleText();
@@ -9502,10 +9853,10 @@ function GridFindBar(props) {
9502
9853
  }}
9503
9854
  data-ssg-find-bar=""
9504
9855
  >
9505
- <Show20 when={props.replaceParts} fallback={main()}>
9856
+ <Show21 when={props.replaceParts} fallback={main()}>
9506
9857
  {(parts) => <>
9507
9858
  <div class="ssg-find-bar-row">{main(parts())}</div>
9508
- <Show20 when={props.replaceSnapshot?.expanded === true && props.replaceSnapshot}>
9859
+ <Show21 when={props.replaceSnapshot?.expanded === true && props.replaceSnapshot}>
9509
9860
  {(snapshot2) => {
9510
9861
  const Section = untrack17(parts).FindReplaceSection;
9511
9862
  return <Section
@@ -9518,9 +9869,9 @@ function GridFindBar(props) {
9518
9869
  onClose={() => props.onClose()}
9519
9870
  />;
9520
9871
  }}
9521
- </Show20>
9872
+ </Show21>
9522
9873
  </>}
9523
- </Show20>
9874
+ </Show21>
9524
9875
  </div>;
9525
9876
  }
9526
9877
 
@@ -9537,7 +9888,7 @@ import { createFindReplaceController } from "@ishibashi0112/spreadsheet-grid-cor
9537
9888
  import { DEFAULT_FIND_REPLACE_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
9538
9889
 
9539
9890
  // src/view/GridFindReplace.tsx
9540
- import { Show as Show21, createRenderEffect as createRenderEffect7, createSignal as createSignal15, untrack as untrack18 } from "solid-js";
9891
+ import { Show as Show22, createRenderEffect as createRenderEffect7, createSignal as createSignal15, untrack as untrack18 } from "solid-js";
9541
9892
  import { formatLocaleText as formatLocaleText12 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
9542
9893
  import { isImeComposingKeyEvent as isImeComposingKeyEvent4 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
9543
9894
  var describeFindReplaceNotice = (notice, texts) => {
@@ -9685,17 +10036,17 @@ function GridFindReplaceSection(props) {
9685
10036
  /* 知らせのたびに文の要素を作り直します(同じ文が続いても読み上げに届く。React 版と同じ)。 */
9686
10037
  }
9687
10038
  <div class={["ssg-find-bar-message", { "ssg-find-bar-message--empty": message().length === 0 }]} aria-live="polite">
9688
- <Show21 when={props.snapshot.noticeId + 1} keyed>
10039
+ <Show22 when={props.snapshot.noticeId + 1} keyed>
9689
10040
  {(noticeKey) => {
9690
10041
  void noticeKey;
9691
10042
  return <span>{message()}</span>;
9692
10043
  }}
9693
- </Show21>
10044
+ </Show22>
9694
10045
  </div>
9695
10046
  </>;
9696
10047
  }
9697
10048
  function GridFindScopeOverlay(props) {
9698
- return <Show21 when={props.rect}>
10049
+ return <Show22 when={props.rect}>
9699
10050
  {(rect) => <div
9700
10051
  class="ssg-find-scope-overlay"
9701
10052
  style={{
@@ -9707,7 +10058,7 @@ function GridFindScopeOverlay(props) {
9707
10058
  }}
9708
10059
  data-ssg-find-scope=""
9709
10060
  />}
9710
- </Show21>;
10061
+ </Show22>;
9711
10062
  }
9712
10063
 
9713
10064
  // src/features/findReplace.ts
@@ -9736,7 +10087,7 @@ import { buildGroupTree, flattenGroupTree } from "@ishibashi0112/spreadsheet-gri
9736
10087
  import { DEFAULT_GROUPING_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
9737
10088
 
9738
10089
  // src/view/GridBodyGroupRow.tsx
9739
- import { For as For11, Show as Show22, createMemo as createMemo23 } from "solid-js";
10090
+ import { For as For12, Show as Show23, createMemo as createMemo23 } from "solid-js";
9740
10091
  import { GROUP_AUTO_COLUMN_KEY as GROUP_AUTO_COLUMN_KEY3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/grouping";
9741
10092
  import {
9742
10093
  formatTotalRowCellText,
@@ -9766,7 +10117,7 @@ function GridBodyGroupRow(props) {
9766
10117
  }}
9767
10118
  onDblClick={() => props.onGroupToggle(props.groupRow.groupKey)}
9768
10119
  >
9769
- <Show22 when={props.ownsRowHeader}>
10120
+ <Show23 when={props.ownsRowHeader}>
9770
10121
  <div
9771
10122
  role={rowHeaderIsCell() ? "rowheader" : void 0}
9772
10123
  aria-colindex={rowHeaderIsCell() ? 1 : void 0}
@@ -9789,10 +10140,10 @@ function GridBodyGroupRow(props) {
9789
10140
  height: px(props.rowHeight)
9790
10141
  }}
9791
10142
  >
9792
- {props.showRowCheckbox ? null : props.rowIndex + 1}
10143
+ {props.showRowCheckbox ? null : props.rowIndex + (props.rowNumberOffset ?? 0) + 1}
9793
10144
  </div>
9794
- </Show22>
9795
- <For11 each={props.entries} keyed={(entry) => entry.column.key}>
10145
+ </Show23>
10146
+ <For12 each={props.entries} keyed={(entry) => entry.column.key}>
9796
10147
  {(entry) => {
9797
10148
  const unbound = createMemo23(() => entry().column);
9798
10149
  const column = () => unbound();
@@ -9834,19 +10185,19 @@ function GridBodyGroupRow(props) {
9834
10185
  "z-index": 1
9835
10186
  }}
9836
10187
  >
9837
- <Show22
10188
+ <Show23
9838
10189
  when={isAutoGroupColumn()}
9839
- fallback={<Show22 when={aggregate()}>
10190
+ fallback={<Show23 when={aggregate()}>
9840
10191
  {(shown) => <span
9841
10192
  class="ssg-group-value"
9842
10193
  data-ssg-tooltip-overflow={shown().text !== "" ? shown().caption !== void 0 ? `${shown().caption} ${shown().text}` : shown().text : void 0}
9843
10194
  >
9844
- <Show22 when={shown().caption !== void 0 && shown().text !== ""}>
10195
+ <Show23 when={shown().caption !== void 0 && shown().text !== ""}>
9845
10196
  <span class="ssg-group-caption">{shown().caption}</span>
9846
- </Show22>
10197
+ </Show23>
9847
10198
  {shown().text}
9848
10199
  </span>}
9849
- </Show22>}
10200
+ </Show23>}
9850
10201
  >
9851
10202
  <span
9852
10203
  aria-hidden="true"
@@ -9870,10 +10221,10 @@ function GridBodyGroupRow(props) {
9870
10221
  <span class="ssg-group-count">
9871
10222
  {formatLocaleText13(texts().groupRowCount, { count: formatTotalRowNumber(props.groupRow.leafCount) })}
9872
10223
  </span>
9873
- </Show22>
10224
+ </Show23>
9874
10225
  </div>;
9875
10226
  }}
9876
- </For11>
10227
+ </For12>
9877
10228
  </div>;
9878
10229
  }
9879
10230
 
@@ -9906,7 +10257,7 @@ import {
9906
10257
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/labelRows";
9907
10258
 
9908
10259
  // src/view/GridBodyLabelRow.tsx
9909
- import { Show as Show23, createMemo as createMemo24 } from "solid-js";
10260
+ import { Show as Show24, createMemo as createMemo24 } from "solid-js";
9910
10261
  var createLabelRowRenderContext = (labelRow, rowIndex, rowKey) => {
9911
10262
  const row = createMemo24(() => labelRow().row);
9912
10263
  const sourceRowIndex = createMemo24(() => labelRow().sourceIndex);
@@ -9936,7 +10287,7 @@ var createLabelRowRenderContext = (labelRow, rowIndex, rowKey) => {
9936
10287
  function GridBodyLabelRow(props) {
9937
10288
  const ctx = createLabelRowRenderContext(
9938
10289
  () => props.labelRow,
9939
- () => props.rowIndex,
10290
+ () => props.rowIndex + (props.rowIndexOffset ?? 0),
9940
10291
  () => props.rowKey
9941
10292
  );
9942
10293
  return <div
@@ -9956,7 +10307,7 @@ function GridBodyLabelRow(props) {
9956
10307
  transform: `translateY(${props.top}px)`
9957
10308
  }}
9958
10309
  >
9959
- <Show23 when={props.ownsRowHeader}>
10310
+ <Show24 when={props.ownsRowHeader}>
9960
10311
  <div
9961
10312
  aria-hidden="true"
9962
10313
  class={["ssg-header-cell", "ssg-row-header-cell", "ssg-row-header-cell--label", props.slots.rowHeaderCell?.className]}
@@ -9967,8 +10318,8 @@ function GridBodyLabelRow(props) {
9967
10318
  height: px(props.rowHeight)
9968
10319
  }}
9969
10320
  />
9970
- </Show23>
9971
- <Show23 when={props.renderContent}>
10321
+ </Show24>
10322
+ <Show24 when={props.renderContent}>
9972
10323
  {(render) => <div
9973
10324
  role="rowheader"
9974
10325
  aria-colindex={1}
@@ -9982,17 +10333,17 @@ function GridBodyLabelRow(props) {
9982
10333
  {render()(ctx)}
9983
10334
  </div>
9984
10335
  </div>}
9985
- </Show23>
10336
+ </Show24>
9986
10337
  </div>;
9987
10338
  }
9988
10339
 
9989
10340
  // src/view/GridStickyLabelLayer.tsx
9990
- import { Show as Show24, createMemo as createMemo25, onSettled as onSettled8 } from "solid-js";
10341
+ import { Show as Show25, createMemo as createMemo25, onSettled as onSettled8 } from "solid-js";
9991
10342
  var FOCUSABLE_SELECTOR = 'a[href], button, input, select, textarea, [tabindex], [contenteditable="true"]';
9992
10343
  function GridStickyLabelLayer(props) {
9993
- return <Show24 when={props.entry}>
10344
+ return <Show25 when={props.entry}>
9994
10345
  {(entry) => <StickyLabel layer={props} entry={entry} />}
9995
- </Show24>;
10346
+ </Show25>;
9996
10347
  }
9997
10348
  function StickyLabel(props) {
9998
10349
  const layer = props.layer;
@@ -10000,7 +10351,7 @@ function StickyLabel(props) {
10000
10351
  const rowIndex = createMemo25(() => props.entry().rowIndex);
10001
10352
  const rowKey = createMemo25(() => props.entry().rowKey);
10002
10353
  const height = createMemo25(() => props.entry().height);
10003
- const ctx = createLabelRowRenderContext(labelRow, rowIndex, rowKey);
10354
+ const ctx = createLabelRowRenderContext(labelRow, () => rowIndex() + (layer.rowIndexOffset ?? 0), rowKey);
10004
10355
  let element;
10005
10356
  onSettled8(() => {
10006
10357
  const target = element;
@@ -10054,7 +10405,7 @@ function StickyLabel(props) {
10054
10405
  ...props.entry().pushOffset > 0 ? { transform: `translateY(${-props.entry().pushOffset}px)` } : null
10055
10406
  }}
10056
10407
  >
10057
- <Show24 when={layer.ownsRowHeader}>
10408
+ <Show25 when={layer.ownsRowHeader}>
10058
10409
  <div
10059
10410
  class={["ssg-header-cell", "ssg-row-header-cell", "ssg-row-header-cell--label", layer.slots.rowHeaderCell?.className]}
10060
10411
  style={{
@@ -10064,8 +10415,8 @@ function StickyLabel(props) {
10064
10415
  height: px(height())
10065
10416
  }}
10066
10417
  />
10067
- </Show24>
10068
- <Show24 when={layer.renderContent}>
10418
+ </Show25>
10419
+ <Show25 when={layer.renderContent}>
10069
10420
  {(render) => <div
10070
10421
  class="ssg-label-row-content-holder"
10071
10422
  style={{ left: px(layer.contentStickyLeft), width: px(layer.contentWidth), height: px(height()) }}
@@ -10074,12 +10425,12 @@ function StickyLabel(props) {
10074
10425
  class={["ssg-label-row-content", layer.slots.labelRowContent?.className]}
10075
10426
  style={layer.slots.labelRowContent?.style}
10076
10427
  >
10077
- <Show24 when={[rowKey(), render()]} keyed>
10428
+ <Show25 when={[rowKey(), render()]} keyed>
10078
10429
  {([, renderContent]) => renderContent(ctx)}
10079
- </Show24>
10430
+ </Show25>
10080
10431
  </div>
10081
10432
  </div>}
10082
- </Show24>
10433
+ </Show25>
10083
10434
  </div>
10084
10435
  </div>
10085
10436
  );
@@ -10158,7 +10509,7 @@ function createServerSide(args) {
10158
10509
  }
10159
10510
 
10160
10511
  // src/view/GridServerSideErrorBars.tsx
10161
- import { Show as Show25, createSignal as createSignal16 } from "solid-js";
10512
+ import { Show as Show26, createSignal as createSignal16 } from "solid-js";
10162
10513
  import { formatLocaleText as formatLocaleText14 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
10163
10514
  function GridServerSideErrorBars(props) {
10164
10515
  const [dismissedLoadError, setDismissedLoadError] = createSignal16(null);
@@ -10166,9 +10517,9 @@ function GridServerSideErrorBars(props) {
10166
10517
  const texts = () => props.localeTexts;
10167
10518
  const shownLoadError = () => props.loadError !== null && props.loadError !== dismissedLoadError() ? props.loadError : null;
10168
10519
  const shownWriteError = () => props.writeError !== null && props.writeError !== dismissedWriteError() ? props.writeError : null;
10169
- return <Show25 when={shownLoadError() !== null || shownWriteError() !== null}>
10520
+ return <Show26 when={shownLoadError() !== null || shownWriteError() !== null}>
10170
10521
  <div class="ssg-ssrm-error-bars">
10171
- <Show25 when={shownLoadError()}>
10522
+ <Show26 when={shownLoadError()}>
10172
10523
  {(loadError) => <div class={["ssg-ssrm-error-bar", props.slot?.className]} style={props.slot?.style} role="alert">
10173
10524
  <span class="ssg-ssrm-error-bar-dot" aria-hidden="true" />
10174
10525
  <span class="ssg-ssrm-error-bar-msg">
@@ -10186,8 +10537,8 @@ function GridServerSideErrorBars(props) {
10186
10537
  ×
10187
10538
  </button>
10188
10539
  </div>}
10189
- </Show25>
10190
- <Show25 when={shownWriteError()}>
10540
+ </Show26>
10541
+ <Show26 when={shownWriteError()}>
10191
10542
  {(writeError) => <div class={["ssg-ssrm-error-bar", props.slot?.className]} style={props.slot?.style} role="alert">
10192
10543
  <span class="ssg-ssrm-error-bar-dot" aria-hidden="true" />
10193
10544
  <span class="ssg-ssrm-error-bar-msg">
@@ -10202,89 +10553,9 @@ function GridServerSideErrorBars(props) {
10202
10553
  ×
10203
10554
  </button>
10204
10555
  </div>}
10205
- </Show25>
10556
+ </Show26>
10206
10557
  </div>
10207
- </Show25>;
10208
- }
10209
-
10210
- // src/view/GridBodySkeletonRow.tsx
10211
- import { For as For12, Show as Show26 } from "solid-js";
10212
- var SKELETON_BAR_WIDTHS = ["62%", "46%", "78%", "54%"];
10213
- function GridBodySkeletonRow(props) {
10214
- return <div
10215
- data-pane={props.pane}
10216
- data-row-index={props.rowIndex}
10217
- data-skeleton-row=""
10218
- role="row"
10219
- aria-rowindex={props.rowIndex + 2 + props.ariaRowOffset}
10220
- aria-busy="true"
10221
- class={["ssg-body-row", props.slots.bodyRow?.className]}
10222
- style={{
10223
- ...props.slots.bodyRow?.style,
10224
- height: px(props.rowHeight),
10225
- transform: `translateY(${props.top}px)`
10226
- }}
10227
- >
10228
- <Show26 when={props.ownsRowHeader}>
10229
- <div
10230
- role="rowheader"
10231
- aria-colindex={1}
10232
- onPointerDown={(event) => props.onRowHeaderPointerDown(props.rowIndex, event)}
10233
- onPointerEnter={(event) => props.onRowHeaderPointerEnter(props.rowIndex, event)}
10234
- onPointerLeave={() => props.onRowHeaderPointerLeave(props.rowIndex)}
10235
- class={[
10236
- "ssg-header-cell",
10237
- "ssg-row-header-cell",
10238
- "ssg-skeleton-rowheader",
10239
- {
10240
- "ssg-row-header-cell--checkbox": props.showRowCheckbox,
10241
- "ssg-header-cell--hovered": props.isRowHovered
10242
- },
10243
- props.slots.rowHeaderCell?.className
10244
- ]}
10245
- style={{
10246
- ...props.slots.rowHeaderCell?.style,
10247
- width: px(props.rowHeaderWidth),
10248
- "min-width": px(props.rowHeaderWidth),
10249
- height: px(props.rowHeight)
10250
- }}
10251
- >
10252
- <Show26 when={props.showRowCheckbox} fallback={props.rowIndex + 1}>
10253
- <RowSelectionCheckbox slot={props.slots.checkbox} state="unchecked" disabled />
10254
- </Show26>
10255
- </div>
10256
- </Show26>
10257
- <For12 each={props.entries} keyed={(entry) => entry.logicalIndex}>
10258
- {(entry) => {
10259
- const cell = () => ({ row: props.rowIndex, col: entry().logicalIndex });
10260
- return <div
10261
- role="gridcell"
10262
- aria-colindex={entry().logicalIndex + 2}
10263
- class={[
10264
- "ssg-body-cell",
10265
- { "ssg-body-cell--row-hovered": props.isRowHovered },
10266
- props.slots.bodyCell?.className
10267
- ]}
10268
- onPointerDown={(event) => props.onCellPointerDown(cell(), event)}
10269
- onPointerEnter={(event) => props.onCellPointerEnter(cell(), event)}
10270
- style={{
10271
- ...props.slots.bodyCell?.style,
10272
- left: px(props.leadingWidth + entry().paneLocalStart),
10273
- width: px(entry().paneLocalSize),
10274
- "min-width": px(entry().paneLocalSize),
10275
- height: px(props.rowHeight),
10276
- "z-index": 1
10277
- }}
10278
- >
10279
- <div
10280
- aria-hidden="true"
10281
- class="ssg-skeleton-bar"
10282
- style={{ width: SKELETON_BAR_WIDTHS[entry().logicalIndex % SKELETON_BAR_WIDTHS.length] }}
10283
- />
10284
- </div>;
10285
- }}
10286
- </For12>
10287
- </div>;
10558
+ </Show26>;
10288
10559
  }
10289
10560
 
10290
10561
  // src/features/serverSide.ts
@@ -10551,7 +10822,9 @@ function createRowDrag(inputs) {
10551
10822
  const leftIndicatorRef = { current: null };
10552
10823
  const centerIndicatorRef = { current: null };
10553
10824
  const rightIndicatorRef = { current: null };
10554
- const canDropAt = createMemo28(() => createRowDropCheck(inputs.canDropRow(), inputs.rows(), inputs.resolveRowKey()));
10825
+ const canDropAt = createMemo28(
10826
+ () => createRowDropCheck(inputs.canDropRow(), inputs.rows(), inputs.resolveRowKey(), inputs.rowOffset?.() ?? 0)
10827
+ );
10555
10828
  const getRowDragLabel = (viewIndex) => resolveRowDragLabel(untrack20(inputs.rowModel), untrack20(inputs.visibleColumns), viewIndex, untrack20(inputs.dragRowLabel));
10556
10829
  const getDragRow = (viewIndex) => getDragRowToken(untrack20(inputs.rowModel), viewIndex);
10557
10830
  const locateDragRow = createMemo28(() => {
@@ -10735,17 +11008,38 @@ function GridScrollHint(props) {
10735
11008
  { name: "scrollHintGutterWheel" }
10736
11009
  );
10737
11010
  const rulerHeight = () => Math.max(props.viewportHeight - props.headerHeight, 0);
10738
- const labelCount = () => props.labelViewIndexes?.length ?? 0;
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
+ });
10739
11028
  const dataRowCount = createMemo29(() => Math.max(props.rowMetrics.rowCount - labelCount(), 0));
10740
11029
  const rowNumberOf = (viewIndex) => {
10741
11030
  const labels = props.labelViewIndexes;
10742
- return labels && labels.length > 0 ? resolveDataRowNumber3(labels, viewIndex) : viewIndex + 1;
11031
+ return labels && labels.length > 0 ? resolveDataRowNumber3(labels, viewIndex + rowOffset()) : viewIndex + rowOffset() + 1;
10743
11032
  };
11033
+ const firstRowNumber = createMemo29(() => {
11034
+ const labels = props.labelViewIndexes;
11035
+ return labels && labels.length > 0 ? resolveDataRowNumber3(labels, rowOffset()) : rowOffset() + 1;
11036
+ });
10744
11037
  const rulerTicks = createMemo29(
10745
11038
  () => props.options.ruler ? computeScrollHintRulerTicks({
10746
11039
  rowCount: dataRowCount(),
10747
11040
  rulerHeight: rulerHeight(),
10748
- tenThousands: texts().scrollHintTenThousands
11041
+ tenThousands: texts().scrollHintTenThousands,
11042
+ labelOffset: firstRowNumber() - 1
10749
11043
  }) : []
10750
11044
  );
10751
11045
  const visible = () => props.options.trigger === "always" || scrollActive() || props.options.trigger === "hover" && hovered();
@@ -10763,7 +11057,8 @@ function GridScrollHint(props) {
10763
11057
  return props.rowMetrics.rowAtContentY(logical);
10764
11058
  });
10765
11059
  const detailOf = (rowIndex) => resolveScrollHintDetail(props.options, {
10766
- rowIndex,
11060
+ // 変更(1.15.0 / ページ送り): renderHint の rowIndex は通し番号。
11061
+ rowIndex: rowIndex + rowOffset(),
10767
11062
  rowData: props.rowModel.getRow(rowIndex)
10768
11063
  });
10769
11064
  const detail = createMemo29(() => detailOf(topRowIndex()));
@@ -10882,7 +11177,7 @@ function GridScrollHint(props) {
10882
11177
  <span class="ssg-scroll-hint-bubble-main">
10883
11178
  {formatLocaleText16(texts().scrollHintRow, { row: rowNumberOf(topRowIndex()).toLocaleString() })}
10884
11179
  <span class="ssg-scroll-hint-bubble-total">
10885
- {" "}/ {dataRowCount().toLocaleString()}
11180
+ {" "}/ {(props.totalDataRowCount ?? dataRowCount()).toLocaleString()}
10886
11181
  </span>
10887
11182
  </span>
10888
11183
  <Show28 when={detail() !== null}>
@@ -12263,6 +12558,152 @@ var rangeDecorationsFeature = {
12263
12558
  RangeDecorationFrames: GridRangeDecorationFrames
12264
12559
  };
12265
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
+
12266
12707
  // src/features/excelShortcuts.ts
12267
12708
  import { createExcelShortcutCommands } from "@ishibashi0112/spreadsheet-grid-core/internal/engine/excelShortcutCommands";
12268
12709
  var excelShortcutsFeature = {
@@ -12291,29 +12732,29 @@ import { createTreeStage } from "@ishibashi0112/spreadsheet-grid-core/internal/e
12291
12732
  import { DEFAULT_TREE_DATA_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
12292
12733
 
12293
12734
  // src/view/GridTreeCell.tsx
12294
- import { createMemo as createMemo34, Show as Show35 } from "solid-js";
12295
- import { formatLocaleText as formatLocaleText18 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
12735
+ import { createMemo as createMemo35, Show as Show36 } from "solid-js";
12736
+ import { formatLocaleText as formatLocaleText19 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
12296
12737
  import {
12297
12738
  formatTotalRowCellText as formatTotalRowCellText2,
12298
12739
  resolveTotalRowCaption as resolveTotalRowCaption2
12299
12740
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/totalRow";
12300
12741
  function GridTreeCellPrefix(props) {
12301
12742
  const texts = useFeatureLocaleText();
12302
- const label = createMemo34(() => {
12743
+ const label = createMemo35(() => {
12303
12744
  const name = props.rowLabel.trim();
12304
- return formatLocaleText18(props.open ? texts().collapseTreeRow : texts().expandTreeRow, {
12305
- row: name !== "" ? name : formatLocaleText18(texts().treeRowNumber, { row: props.rowNumber })
12745
+ return formatLocaleText19(props.open ? texts().collapseTreeRow : texts().expandTreeRow, {
12746
+ row: name !== "" ? name : formatLocaleText19(texts().treeRowNumber, { row: props.rowNumber })
12306
12747
  });
12307
12748
  });
12308
12749
  return <>
12309
- <Show35 when={props.level > 0}>
12750
+ <Show36 when={props.level > 0}>
12310
12751
  <span
12311
12752
  aria-hidden="true"
12312
12753
  class="ssg-tree-indent"
12313
12754
  style={{ width: `calc(var(--ssg-tree-indent) * ${props.level})` }}
12314
12755
  />
12315
- </Show35>
12316
- <Show35 when={props.hasChildren} fallback={<span aria-hidden="true" class="ssg-tree-spacer" />}>
12756
+ </Show36>
12757
+ <Show36 when={props.hasChildren} fallback={<span aria-hidden="true" class="ssg-tree-spacer" />}>
12317
12758
  <button
12318
12759
  type="button"
12319
12760
  tabindex={-1}
@@ -12334,28 +12775,28 @@ function GridTreeCellPrefix(props) {
12334
12775
  >
12335
12776
  {props.open ? "\u25BE" : "\u25B8"}
12336
12777
  </button>
12337
- </Show35>
12778
+ </Show36>
12338
12779
  </>;
12339
12780
  }
12340
12781
  function GridTreeAggregateValue(props) {
12341
12782
  const texts = useFeatureLocaleText();
12342
- const shown = createMemo34(() => {
12783
+ const shown = createMemo35(() => {
12343
12784
  const column = props.column;
12344
12785
  const kind = typeof column.aggFunc === "string" ? column.aggFunc : "custom";
12345
12786
  const text = formatTotalRowCellText2(column, { value: props.value, kind });
12346
12787
  return text === "" ? null : { text, caption: resolveTotalRowCaption2(kind, texts()) };
12347
12788
  });
12348
- return <Show35 when={shown()}>
12789
+ return <Show36 when={shown()}>
12349
12790
  {(current) => <span
12350
12791
  class="ssg-group-value ssg-tree-aggregate"
12351
12792
  data-ssg-tooltip-overflow={current().caption !== void 0 ? `${current().caption} ${current().text}` : current().text}
12352
12793
  >
12353
- <Show35 when={current().caption !== void 0}>
12794
+ <Show36 when={current().caption !== void 0}>
12354
12795
  <span class="ssg-group-caption">{current().caption}</span>
12355
- </Show35>
12796
+ </Show36>
12356
12797
  {current().text}
12357
12798
  </span>}
12358
- </Show35>;
12799
+ </Show36>;
12359
12800
  }
12360
12801
 
12361
12802
  // src/features/treeData.ts
@@ -12375,7 +12816,7 @@ var treeDataFeature = {
12375
12816
  import { DEFAULT_AGGREGATES_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
12376
12817
 
12377
12818
  // src/primitives/selectionAggregates.ts
12378
- import { createMemo as createMemo35 } from "solid-js";
12819
+ import { createMemo as createMemo36 } from "solid-js";
12379
12820
  import {
12380
12821
  createSelectionAggregatesRunner,
12381
12822
  resolveSyncSelectionAggregates,
@@ -12387,15 +12828,15 @@ import {
12387
12828
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectionAggregates";
12388
12829
  function createSelectionAggregates(args) {
12389
12830
  const stabilizeTarget = createSelectionAggregateTargetStabilizer();
12390
- const target = createMemo35(() => {
12831
+ const target = createMemo36(() => {
12391
12832
  const current = args();
12392
12833
  return stabilizeTarget(
12393
12834
  current.enabled ? resolveSelectionAggregateTarget(current.selection, current.viewRowCount, current.orderedColumns) : null
12394
12835
  );
12395
12836
  });
12396
- const rowModel = createMemo35(() => args().rowModel);
12397
- const key = createMemo35(() => ({ rowModel: rowModel(), target: target() }));
12398
- const syncResult = createMemo35(() => resolveSyncSelectionAggregates(key()));
12837
+ const rowModel = createMemo36(() => args().rowModel);
12838
+ const key = createMemo36(() => ({ rowModel: rowModel(), target: target() }));
12839
+ const syncResult = createMemo36(() => resolveSyncSelectionAggregates(key()));
12399
12840
  const runner = createSelectionAggregatesRunner();
12400
12841
  connectController(
12401
12842
  runner,
@@ -12404,16 +12845,16 @@ function createSelectionAggregates(args) {
12404
12845
  "selectionAggregates"
12405
12846
  );
12406
12847
  const snapshot2 = createExternalStoreSignal(runner, "selectionAggregatesStore");
12407
- return createMemo35(() => selectSelectionAggregatesResult(syncResult(), snapshot2(), key()));
12848
+ return createMemo36(() => selectSelectionAggregatesResult(syncResult(), snapshot2(), key()));
12408
12849
  }
12409
12850
 
12410
12851
  // src/view/GridSelectionAggregates.tsx
12411
- import { For as For21, Show as Show36, createMemo as createMemo36 } from "solid-js";
12852
+ import { For as For22, Show as Show37, createMemo as createMemo37 } from "solid-js";
12412
12853
  import { formatSelectionAggregateNumber } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectionAggregates";
12413
- import { formatLocaleText as formatLocaleText19 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
12854
+ import { formatLocaleText as formatLocaleText20 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
12414
12855
  function GridSelectionAggregates(props) {
12415
12856
  const texts = useFeatureLocaleText();
12416
- const chips = createMemo36(() => {
12857
+ const chips = createMemo37(() => {
12417
12858
  const aggregates = props.aggregates;
12418
12859
  if (!aggregates) {
12419
12860
  return null;
@@ -12423,7 +12864,7 @@ function GridSelectionAggregates(props) {
12423
12864
  return [
12424
12865
  {
12425
12866
  key: "computing",
12426
- text: formatLocaleText19(localeTexts.aggregateComputing, { percent: Math.floor(aggregates.progress * 100) })
12867
+ text: formatLocaleText20(localeTexts.aggregateComputing, { percent: Math.floor(aggregates.progress * 100) })
12427
12868
  }
12428
12869
  ];
12429
12870
  }
@@ -12446,12 +12887,12 @@ function GridSelectionAggregates(props) {
12446
12887
  }
12447
12888
  return list;
12448
12889
  });
12449
- return <Show36 when={chips()}>
12890
+ return <Show37 when={chips()}>
12450
12891
  {(list) => <div class={["ssg-bar-aggregates", { "ssg-bar-aggregates--trailing": props.trailing }]}>
12451
12892
  <div class="ssg-bar-aggregates-inner" title={list().map((chip) => chip.text).join(" ")}>
12452
12893
  <div class="ssg-bar-aggregates-list">
12453
12894
  <span class="ssg-bar-aggregates-fit" aria-hidden="true" />
12454
- <For21 each={list()} keyed={(chip) => chip.key}>
12895
+ <For22 each={list()} keyed={(chip) => chip.key}>
12455
12896
  {(chip, index) => <span
12456
12897
  class={[
12457
12898
  "ssg-bar-chip",
@@ -12462,16 +12903,16 @@ function GridSelectionAggregates(props) {
12462
12903
  ]}
12463
12904
  style={{ order: String(-index()) }}
12464
12905
  >
12465
- <Show36 when={chip().label !== void 0} fallback={chip().text}>
12906
+ <Show37 when={chip().label !== void 0} fallback={chip().text}>
12466
12907
  {chip().label}
12467
12908
  <b class="ssg-bar-aggregate-value">{chip().value}</b>
12468
- </Show36>
12909
+ </Show37>
12469
12910
  </span>}
12470
- </For21>
12911
+ </For22>
12471
12912
  </div>
12472
12913
  </div>
12473
12914
  </div>}
12474
- </Show36>;
12915
+ </Show37>;
12475
12916
  }
12476
12917
 
12477
12918
  // src/features/selectionAggregates.ts
@@ -12482,7 +12923,7 @@ var selectionAggregatesFeature = {
12482
12923
  };
12483
12924
 
12484
12925
  // src/primitives/toolPanel.ts
12485
- import { createMemo as createMemo37 } from "solid-js";
12926
+ import { createMemo as createMemo38 } from "solid-js";
12486
12927
  import {
12487
12928
  createToolPanelController,
12488
12929
  resolveActiveToolPanelTab,
@@ -12501,7 +12942,7 @@ function createToolPanel(inputs) {
12501
12942
  onSuppressedEscape: inputs.onSuppressedEscape
12502
12943
  }), "render", "toolPanel");
12503
12944
  const snapshot2 = createExternalStoreSignal(controller, "toolPanelStore");
12504
- const availableTabs = createMemo37(
12945
+ const availableTabs = createMemo38(
12505
12946
  () => resolveAvailableToolPanelTabs({
12506
12947
  canUseFilterTab: inputs.canUseFilterTab(),
12507
12948
  canUseColumnsTab: inputs.canUseColumnsTab(),
@@ -12510,10 +12951,10 @@ function createToolPanel(inputs) {
12510
12951
  { equals: sameTabs }
12511
12952
  );
12512
12953
  return {
12513
- activeTab: createMemo37(() => resolveActiveToolPanelTab(snapshot2().requestedTab, availableTabs())),
12954
+ activeTab: createMemo38(() => resolveActiveToolPanelTab(snapshot2().requestedTab, availableTabs())),
12514
12955
  availableTabs,
12515
- layout: createMemo37(() => snapshot2().layout),
12516
- flashTick: createMemo37(() => snapshot2().flashTick),
12956
+ layout: createMemo38(() => snapshot2().layout),
12957
+ flashTick: createMemo38(() => snapshot2().flashTick),
12517
12958
  panelRef: controller.panelRef,
12518
12959
  open: controller.open,
12519
12960
  close: controller.close,
@@ -12537,7 +12978,7 @@ import {
12537
12978
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/totalRow";
12538
12979
 
12539
12980
  // src/view/GridTotalRow.tsx
12540
- import { For as For22, Show as Show37, createMemo as createMemo38 } from "solid-js";
12981
+ import { For as For23, Show as Show38, createMemo as createMemo39 } from "solid-js";
12541
12982
  import {
12542
12983
  formatTotalRowCellText as formatTotalRowCellText3,
12543
12984
  resolveTotalRowCaption as resolveTotalRowCaption3
@@ -12564,7 +13005,7 @@ function GridTotalRow(props) {
12564
13005
  ...props.stickyBottom > 0 ? { bottom: px(props.stickyBottom) } : null
12565
13006
  }}
12566
13007
  >
12567
- <Show37 when={props.ownsRowHeader}>
13008
+ <Show38 when={props.ownsRowHeader}>
12568
13009
  <div
12569
13010
  role={rowHeaderIsCell() ? "rowheader" : void 0}
12570
13011
  aria-colindex={rowHeaderIsCell() ? 1 : void 0}
@@ -12579,13 +13020,13 @@ function GridTotalRow(props) {
12579
13020
  >
12580
13021
  {rowHeaderText() === "" ? null : rowHeaderText()}
12581
13022
  </div>
12582
- </Show37>
12583
- <For22 each={props.entries} keyed={(entry) => entry.column.key}>
13023
+ </Show38>
13024
+ <For23 each={props.entries} keyed={(entry) => entry.column.key}>
12584
13025
  {(entry) => {
12585
- const unbound = createMemo38(() => entry().column);
13026
+ const unbound = createMemo39(() => entry().column);
12586
13027
  const cell = () => props.cells.get(unbound().key);
12587
13028
  const isLabelCell = () => unbound().key === props.labelColumnKey;
12588
- const content = createMemo38(() => {
13029
+ const content = createMemo39(() => {
12589
13030
  const total = cell();
12590
13031
  if (total) {
12591
13032
  const column = unbound();
@@ -12637,7 +13078,7 @@ function GridTotalRow(props) {
12637
13078
  {content()}
12638
13079
  </div>;
12639
13080
  }}
12640
- </For22>
13081
+ </For23>
12641
13082
  </div>
12642
13083
  </>;
12643
13084
  }
@@ -12672,6 +13113,7 @@ var fullGridFeatures = {
12672
13113
  changeTracking: changeTrackingFeature,
12673
13114
  diffView: diffViewFeature,
12674
13115
  rangeDecorations: rangeDecorationsFeature,
13116
+ pagination: paginationFeature,
12675
13117
  excelShortcuts: excelShortcutsFeature,
12676
13118
  newRow: newRowFeature,
12677
13119
  treeData: treeDataFeature,
@@ -12734,6 +13176,7 @@ export {
12734
13176
  newRowFeature,
12735
13177
  numberFormatter,
12736
13178
  numberParser,
13179
+ paginationFeature,
12737
13180
  pinnedRowsFeature,
12738
13181
  preloadGridPopups,
12739
13182
  rangeDecorationsFeature,