@ishibashi0112/spreadsheet-grid-solid 1.5.1 → 1.7.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.
@@ -388,12 +388,18 @@ var HEADER_INLINE_ACTIONS_MIN_WIDTH = 120;
388
388
  var SVG_NOT_FOCUSABLE = { focusable: "false" };
389
389
  function GridHeaderRow(props) {
390
390
  const texts = useGridLocaleText();
391
+ const stickyTop = () => props.stickyTop ?? 0;
391
392
  return <div
392
393
  data-pane={props.pane}
393
394
  role="row"
394
- aria-rowindex={1}
395
- class={["ssg-header-row", props.slots.headerRow?.className]}
396
- style={{ ...props.slots.headerRow?.style, height: px(props.headerHeight) }}
395
+ aria-rowindex={props.ariaRowIndex ?? 1}
396
+ class={["ssg-header-row", { "ssg-header-row--grouped": stickyTop() > 0 }, props.slots.headerRow?.className]}
397
+ style={{
398
+ ...props.slots.headerRow?.style,
399
+ height: px(props.headerHeight),
400
+ // 追加(1.6.0 / 列見出しの多段化): グループの段の下に留める。
401
+ ...stickyTop() > 0 ? { top: px(stickyTop()) } : {}
402
+ }}
397
403
  >
398
404
  <Show when={props.ownsRowHeader}>
399
405
  <div
@@ -418,7 +424,9 @@ function GridHeaderRow(props) {
418
424
  ...props.slots.cornerCell?.style,
419
425
  width: px(props.rowHeaderWidth),
420
426
  "min-width": px(props.rowHeaderWidth),
421
- height: px(props.headerHeight),
427
+ height: px(props.headerHeight + stickyTop()),
428
+ // 追加(1.6.0 / 列見出しの多段化): グループの段の高さぶん上へ伸ばし、中身は一番下の段に置く。
429
+ ...stickyTop() > 0 ? { top: px(-stickyTop()), "padding-top": px(stickyTop()) } : {},
422
430
  cursor: props.filteredRowsLength > 0 && props.visibleColumnsLength > 0 ? "pointer" : "default"
423
431
  }}
424
432
  >
@@ -443,6 +451,7 @@ function GridHeaderRow(props) {
443
451
  const isSynthetic = () => isSyntheticColumnKey(column().key);
444
452
  const isDetailToggleColumn = () => column().key === DETAIL_TOGGLE_COLUMN_KEY || column().key === ROW_DRAG_HANDLE_COLUMN_KEY;
445
453
  const headerAlign = () => column().headerAlign ?? column().align;
454
+ const extend = () => props.getHeaderSpanRows ? props.getHeaderSpanRows(column().key) * (props.groupRowHeight ?? 0) : 0;
446
455
  const headerContext = {
447
456
  get colIndex() {
448
457
  return colIndex();
@@ -502,7 +511,8 @@ function GridHeaderRow(props) {
502
511
  left: px(props.leadingWidth + entry().paneLocalStart),
503
512
  width: px(size()),
504
513
  "min-width": px(size()),
505
- height: px(props.headerHeight)
514
+ height: px(props.headerHeight + extend()),
515
+ ...extend() > 0 ? { top: px(-extend()), "padding-top": px(extend()) } : {}
506
516
  }}
507
517
  >
508
518
  <div
@@ -540,7 +550,7 @@ function GridHeaderRow(props) {
540
550
  </span>
541
551
  </Show>
542
552
  </div>
543
- <div class="ssg-header-actions">
553
+ <div class="ssg-header-actions" style={extend() > 0 ? { top: px(extend()), height: px(props.headerHeight) } : void 0}>
544
554
  {
545
555
  /* 列の並べ替えの grip(合成列には出さない)。ホバーで出る(CSS)。 */
546
556
  }
@@ -1435,6 +1445,7 @@ import { Show as Show8, createMemo as createMemo7, untrack as untrack11 } from "
1435
1445
  import { toDateInputValue } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/editorValues";
1436
1446
  import { resolveTypedStartText } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/editorStart";
1437
1447
  import { formatLocaleText as formatLocaleText4 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
1448
+ import { isSearchSelectEditor } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectEditorState";
1438
1449
 
1439
1450
  // src/editors/TextCellEditor.tsx
1440
1451
  import { Show as Show6, createRenderEffect as createRenderEffect3, createSignal as createSignal4, onCleanup as onCleanup3, onSettled as onSettled3, untrack as untrack6 } from "solid-js";
@@ -1725,8 +1736,11 @@ import {
1725
1736
  handleSelectEditorKeyDown,
1726
1737
  resolveSelectEditorStart,
1727
1738
  resolveSelectOptionRowHeight,
1728
- typeaheadJump
1739
+ typeaheadJump,
1740
+ createPointerMoveFilter
1729
1741
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectEditorState";
1742
+ import { withAnchorVisibility } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/editorVisibleBounds";
1743
+ import { revealOverflowTitle } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/overflowTitle";
1730
1744
  import { isImeComposingKeyEvent } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
1731
1745
  function SelectCellEditor(props) {
1732
1746
  const texts = useGridLocaleText();
@@ -1738,6 +1752,7 @@ function SelectCellEditor(props) {
1738
1752
  const start = untrack8(() => resolveSelectEditorStart(props.options, props.value, props.initialText, Date.now()));
1739
1753
  let typeahead = start.typeahead;
1740
1754
  const [highlight, setHighlight] = createSignal6(start.highlight);
1755
+ const pointerMoved = createPointerMoveFilter();
1741
1756
  let currentHighlight = start.highlight;
1742
1757
  const updateHighlight = (next) => {
1743
1758
  currentHighlight = typeof next === "function" ? next(currentHighlight) : next;
@@ -1758,12 +1773,15 @@ function SelectCellEditor(props) {
1758
1773
  return;
1759
1774
  }
1760
1775
  setPlacement(
1761
- computeSelectPopoverPlacement(
1762
- element.getBoundingClientRect(),
1763
- untrack8(() => props.options.length),
1764
- window.innerWidth,
1765
- window.innerHeight,
1766
- optionRowHeight
1776
+ withAnchorVisibility(
1777
+ element,
1778
+ computeSelectPopoverPlacement(
1779
+ element.getBoundingClientRect(),
1780
+ untrack8(() => props.options.length),
1781
+ window.innerWidth,
1782
+ window.innerHeight,
1783
+ optionRowHeight
1784
+ )
1767
1785
  )
1768
1786
  );
1769
1787
  };
@@ -1777,23 +1795,28 @@ function SelectCellEditor(props) {
1777
1795
  window.removeEventListener("scroll", measure, true);
1778
1796
  };
1779
1797
  });
1798
+ let refocusSeen = false;
1780
1799
  createEffect2(
1781
1800
  () => props.options.length,
1782
- (_length, previous) => {
1783
- if (previous !== void 0) {
1801
+ outsideGraphApply(() => {
1802
+ if (refocusSeen) {
1784
1803
  untrack8(input)?.focus();
1785
1804
  measure();
1786
1805
  }
1787
- },
1806
+ refocusSeen = true;
1807
+ }),
1788
1808
  { name: "selectEditorOptionsRefocus" }
1789
1809
  );
1810
+ let followedPosition;
1790
1811
  createEffect2(
1791
1812
  () => `${props.cellTop ?? 0}:${props.cellLeft ?? 0}`,
1792
- (position, previous) => {
1813
+ outsideGraphApply((position) => {
1814
+ const previous = followedPosition;
1815
+ followedPosition = position;
1793
1816
  if (previous !== void 0 && previous !== position) {
1794
1817
  measure();
1795
1818
  }
1796
- },
1819
+ }),
1797
1820
  { name: "selectEditorFollowCell" }
1798
1821
  );
1799
1822
  const mount = () => placement2() !== null ? portal.container() : null;
@@ -1805,8 +1828,8 @@ function SelectCellEditor(props) {
1805
1828
  },
1806
1829
  { name: "selectEditorScrollHighlight" }
1807
1830
  );
1808
- const commitValue = (optionValue, direction) => {
1809
- const result = props.onCommit(optionValue, direction);
1831
+ const commitValue = (option, direction) => {
1832
+ const result = props.onCommit(option.value, direction, option);
1810
1833
  if (result && result.status === "rejected") {
1811
1834
  setError(result.message);
1812
1835
  }
@@ -1817,7 +1840,7 @@ function SelectCellEditor(props) {
1817
1840
  props.onCancel();
1818
1841
  return;
1819
1842
  }
1820
- commitValue(option.value, direction);
1843
+ commitValue(option, direction);
1821
1844
  };
1822
1845
  const handleKeyDown = (event) => {
1823
1846
  if (isImeComposingKeyEvent(event)) {
@@ -1908,7 +1931,8 @@ function SelectCellEditor(props) {
1908
1931
  left: px(placement2()?.left ?? 0),
1909
1932
  top: px(placement2()?.top ?? 0),
1910
1933
  width: px(placement2()?.width ?? 0),
1911
- "max-height": px(placement2()?.maxHeight ?? 0)
1934
+ "max-height": px(placement2()?.maxHeight ?? 0),
1935
+ visibility: placement2()?.hidden ? "hidden" : void 0
1912
1936
  }}
1913
1937
  onPointerDown={(event) => event.preventDefault()}
1914
1938
  >
@@ -1929,8 +1953,13 @@ function SelectCellEditor(props) {
1929
1953
  "ssg-select-editor-option",
1930
1954
  { "ssg-select-editor-option--highlighted": index === highlight() }
1931
1955
  ]}
1932
- onClick={() => commitValue(option().value)}
1933
- onPointerEnter={() => updateHighlight(index)}
1956
+ onClick={() => commitValue(option())}
1957
+ onPointerEnter={(event) => revealOverflowTitle(event.currentTarget)}
1958
+ onPointerMove={(event) => {
1959
+ if (pointerMoved(event)) {
1960
+ updateHighlight(index);
1961
+ }
1962
+ }}
1934
1963
  >
1935
1964
  {option().label}
1936
1965
  </div>}
@@ -2164,7 +2193,7 @@ function CellEditorLayer(props) {
2164
2193
  get alignTop() {
2165
2194
  return props.alignTop;
2166
2195
  },
2167
- onCommit: (value, direction) => props.onCommit(value, direction),
2196
+ onCommit: (value, direction, option, forwardText) => props.onCommit(value, direction, option, forwardText),
2168
2197
  onCancel: () => props.onCancel(),
2169
2198
  onRegisterFlush: (flush) => props.onRegisterFlush?.(flush)
2170
2199
  };
@@ -2196,6 +2225,25 @@ function CellEditorLayer(props) {
2196
2225
  }
2197
2226
  case "select": {
2198
2227
  const session = untrack11(() => props.session);
2228
+ const current = untrack11(editor);
2229
+ const SearchSelectEditor = props.SearchSelectEditor;
2230
+ const initialText = session ? resolveTypedStartText(initialValue, session.value) : void 0;
2231
+ if (SearchSelectEditor && current?.type === "select" && isSearchSelectEditor(current)) {
2232
+ const loadOptions = current.loadOptions;
2233
+ return <SearchSelectEditor
2234
+ {...common}
2235
+ popoverSlot={props.slots.popover}
2236
+ themeClassName={props.themeClassName}
2237
+ options={selectOptions()}
2238
+ value={session?.value}
2239
+ displayText={session ? session.column.valueFormatter?.({ value: session.value, row: session.row, column: session.column }) : void 0}
2240
+ allowFreeText={current.allowFreeText === true}
2241
+ load={loadOptions && session ? (query, signal) => loadOptions({ query, row: session.row, rowKey: session.rowKey, column: session.column, signal }) : void 0}
2242
+ initialText={initialText}
2243
+ cellTop={props.rect?.top ?? 0}
2244
+ cellLeft={props.rect?.left ?? 0}
2245
+ />;
2246
+ }
2199
2247
  return <SelectCellEditor
2200
2248
  {...common}
2201
2249
  popoverSlot={props.slots.popover}
@@ -2204,7 +2252,7 @@ function CellEditorLayer(props) {
2204
2252
  value={props.session?.value}
2205
2253
  cellTop={props.rect?.top ?? 0}
2206
2254
  cellLeft={props.rect?.left ?? 0}
2207
- initialText={session ? resolveTypedStartText(initialValue, session.value) : void 0}
2255
+ initialText={initialText}
2208
2256
  />;
2209
2257
  }
2210
2258
  case "custom": {
@@ -2407,6 +2455,7 @@ function DefaultGridBottomBar(props) {
2407
2455
  // src/devWarnings.ts
2408
2456
  import { createEffect as createEffect3, createMemo as createMemo9 } from "solid-js";
2409
2457
  import { AUTO_HEIGHT_MAX_ROWS } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/verticalGeometry";
2458
+ import { isSearchSelectEditor as isSearchSelectEditor2 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectEditorState";
2410
2459
  import { createInertExportCommands } from "@ishibashi0112/spreadsheet-grid-core/internal/engine/features";
2411
2460
  import {
2412
2461
  warnUnregisteredFeatureMethod,
@@ -2426,11 +2475,20 @@ var FEATURE_PROPS = {
2426
2475
  rowDrag: [{ prop: "enableRowDrag", isUsed: (props) => props.enableRowDrag === true }],
2427
2476
  scrollHint: [{ prop: "scrollHint", isUsed: (props) => props.scrollHint !== void 0 && props.scrollHint !== false }],
2428
2477
  imeDirectInput: [{ prop: "imeDirectInput", isUsed: (props) => props.imeDirectInput === true }],
2478
+ // 列の select エディタの search(loadOptions / allowFreeText は search の既定を true にする)。どれか 1 列でも検索できる選択
2479
+ // エディタなら警告する(React 版と同じ)。
2480
+ selectSearch: [
2481
+ {
2482
+ prop: "columns[].editor.search / loadOptions / allowFreeText",
2483
+ isUsed: (props) => props.columns.some((column) => isSearchSelectEditor2(column.editor))
2484
+ }
2485
+ ],
2429
2486
  totalRow: [{ prop: "totalRow", isUsed: (props) => props.totalRow !== void 0 && props.totalRow !== false }],
2430
2487
  pinnedRows: [
2431
2488
  { prop: "pinnedTopRows", isUsed: (props) => (props.pinnedTopRows?.length ?? 0) > 0 },
2432
2489
  { prop: "pinnedBottomRows", isUsed: (props) => (props.pinnedBottomRows?.length ?? 0) > 0 }
2433
2490
  ],
2491
+ columnGroups: [{ prop: "columnGroups", isUsed: (props) => (props.columnGroups?.length ?? 0) > 0 }],
2434
2492
  columnAutosize: [
2435
2493
  {
2436
2494
  prop: "autoSizeColumns",
@@ -2806,12 +2864,22 @@ function GridShellBody(props, features, mountGate, mode) {
2806
2864
  );
2807
2865
  const pinnedTopCount = () => pinnedTop()?.length ?? 0;
2808
2866
  const pinnedBottomCount = () => pinnedBottom()?.length ?? 0;
2809
- const headerHeight = createMemo10(() => columnHeaderHeight() + pinnedTopCount() * rowHeight());
2867
+ const columnGroupsFeature2 = features.columnGroups;
2868
+ const columnKeys = createMemo10(() => props.columns.map((column) => column.key), {
2869
+ equals: (a, b) => a.length === b.length && a.every((key, index) => key === b[index])
2870
+ });
2871
+ const columnGroupTree = createMemo10(
2872
+ () => columnGroupsFeature2 && props.columnGroups ? columnGroupsFeature2.buildColumnGroupTree(props.columnGroups, new Set(columnKeys())) : null
2873
+ );
2874
+ const columnGroupDepth = () => columnGroupTree()?.depth ?? 0;
2875
+ const columnGroupRowHeight = () => Math.max(0, props.columnGroupHeaderHeight ?? columnHeaderHeight());
2876
+ const columnGroupHeight = () => columnGroupDepth() * columnGroupRowHeight();
2877
+ const headerHeight = createMemo10(() => columnGroupHeight() + columnHeaderHeight() + pinnedTopCount() * rowHeight());
2810
2878
  const footerHeight = createMemo10(() => totalRowHeight() + pinnedBottomCount() * rowHeight());
2811
2879
  const pinnedBelowTotal = createMemo10(
2812
2880
  () => props.pinnedBottomRowsPlacement === "belowTotal" && pinnedBottom() !== null && totalRowEnabled()
2813
2881
  );
2814
- const stickyTopHeight = () => pinnedTopCount() > 0 ? headerHeight() : 0;
2882
+ const stickyTopHeight = () => pinnedTopCount() > 0 || columnGroupHeight() > 0 ? headerHeight() : 0;
2815
2883
  const engine = createGridEngine({
2816
2884
  features,
2817
2885
  initialState: untrack13(() => props.initialState),
@@ -2852,7 +2920,34 @@ function GridShellBody(props, features, mountGate, mode) {
2852
2920
  const shell = gridRootRef.current;
2853
2921
  return registerPopupContainer([shell, shell?.closest(".ssg-root")], getPopupContainer);
2854
2922
  });
2855
- const columnResolution = createMemo10(() => engine.resolveColumns(columnInputs()));
2923
+ const closedColumnGroupKeys = createMemo10(() => ui().closedColumnGroupKeys);
2924
+ const collapseColumns = createMemo10(() => {
2925
+ const tree = columnGroupTree();
2926
+ const closed = closedColumnGroupKeys();
2927
+ return columnGroupsFeature2 && tree && tree.hasCollapsible ? { resolve: (displayColumns) => columnGroupsFeature2.resolveCollapsedColumnKeys(tree, closed, displayColumns) } : null;
2928
+ });
2929
+ const columnGroupFollow = createMemo10(() => {
2930
+ const tree = columnGroupTree();
2931
+ return columnGroupsFeature2 && tree && tree.hasCollapsible ? {
2932
+ collapseFor: (closedKeys) => (displayColumns) => columnGroupsFeature2.resolveCollapsedColumnKeys(tree, closedKeys, displayColumns),
2933
+ remap: (state, prevKeys, nextKeys) => columnGroupsFeature2.followColumnKeysAfterColumnGroupChange(tree, state, prevKeys, nextKeys)
2934
+ } : null;
2935
+ });
2936
+ const columnTitles = createMemo10(() => {
2937
+ const tree = columnGroupTree();
2938
+ return columnGroupsFeature2 && tree ? columnGroupsFeature2.resolveColumnGroupDistinctTitles(tree, columns()) : null;
2939
+ });
2940
+ const placeUnpinnedColumn = createMemo10(() => {
2941
+ const tree = columnGroupTree();
2942
+ return columnGroupsFeature2 && tree ? (nextColumns, columnKey) => columnGroupsFeature2.placeUnpinnedColumnInGroup(tree, nextColumns, columnKey) : null;
2943
+ });
2944
+ const columnResolution = createMemo10(
2945
+ () => engine.resolveColumns({
2946
+ ...columnInputs(),
2947
+ collapseColumns: collapseColumns()?.resolve ?? null,
2948
+ columnGroupFollow: columnGroupFollow()
2949
+ })
2950
+ );
2856
2951
  const visibleColumns = () => columnResolution().visibleColumns;
2857
2952
  const orderedColumns = () => columnResolution().orderedColumns;
2858
2953
  const rowGroupingActive = () => columnResolution().rowGroupingActive;
@@ -2879,6 +2974,15 @@ function GridShellBody(props, features, mountGate, mode) {
2879
2974
  }),
2880
2975
  { name: "reconcileColumnWidths" }
2881
2976
  );
2977
+ if (columnGroupsFeature2) {
2978
+ createEffect4(
2979
+ () => [props.columnGroups, columns()],
2980
+ ([definitions, next]) => {
2981
+ columnGroupsFeature2.warnUnknownColumnGroupKeys(definitions, next);
2982
+ },
2983
+ { name: "warnUnknownColumnGroupKeys" }
2984
+ );
2985
+ }
2882
2986
  const labelRowFeature2 = features.labelRow;
2883
2987
  const labelIsLabelRow = createMemo10(() => props.labelRow?.isLabelRow);
2884
2988
  const labelGetLabel = createMemo10(() => props.labelRow?.getLabel);
@@ -4126,7 +4230,9 @@ function GridShellBody(props, features, mountGate, mode) {
4126
4230
  localeTexts: localeTexts(),
4127
4231
  followsRow: activeRowFollowEnabled(),
4128
4232
  getUiState: store.getState,
4129
- rowKeyGetter: resolvedRowKeyGetter()
4233
+ rowKeyGetter: resolvedRowKeyGetter(),
4234
+ // 追加(1.7.0 / 検索できる選択エディタ): select の fillRow が書く項目の列(reject の検査に使う。隠した列も含む全部の列)。
4235
+ columns: columns()
4130
4236
  }), "render", "edit");
4131
4237
  connectController(cells, () => ({
4132
4238
  rows: rows(),
@@ -4242,7 +4348,9 @@ function GridShellBody(props, features, mountGate, mode) {
4242
4348
  closeColumnMenu: columnMenu?.close ?? noop3,
4243
4349
  openToolPanel,
4244
4350
  openColumnFilterPopover: filterPopover?.open ?? noop3,
4245
- runAutosize: columnAutosize?.runAutosize
4351
+ runAutosize: columnAutosize?.runAutosize,
4352
+ // 列メニューで固定を外した列を同じグループの中央の列の隣へ置く(1.6.0 の実アプリの点検 G3-04。React 版と同じ)。
4353
+ placeUnpinnedColumn: placeUnpinnedColumn()
4246
4354
  }), "render", "columnCommands");
4247
4355
  const filterManagement = features.filtering?.createFilterManagement({
4248
4356
  columns,
@@ -4257,7 +4365,8 @@ function GridShellBody(props, features, mountGate, mode) {
4257
4365
  rightPaneTotalWidth: () => paneResolution().rightPaneTotalWidth,
4258
4366
  openColumnFilterPopover: filterPopover?.open ?? noop3,
4259
4367
  groupColumns: activeGroupColumns,
4260
- localeTexts
4368
+ localeTexts,
4369
+ columnTitles
4261
4370
  });
4262
4371
  const columnChooserItems = createMemo10(
4263
4372
  () => columns().map((column) => ({
@@ -4266,11 +4375,17 @@ function GridShellBody(props, features, mountGate, mode) {
4266
4375
  visible: column.visible !== false,
4267
4376
  pane: getColumnPane(column),
4268
4377
  // グループ化している間のグループ元の列は表示を切り替えられない印(React 版の DF-22)。
4269
- grouped: rowGroupingActive() && column.rowGroup === true ? true : void 0
4378
+ grouped: rowGroupingActive() && column.rowGroup === true ? true : void 0,
4379
+ // 列のグループ(1.6.0。パネルはグループごとにまとめて出す)。
4380
+ groups: columnGroupTree()?.pathByColumn.get(column.key)?.map((group) => ({ key: group.key, title: group.title || group.key }))
4270
4381
  }))
4271
4382
  );
4383
+ const clampColumnChooserDrop = createMemo10(() => {
4384
+ const tree = columnGroupTree();
4385
+ return tree && columnGroupsFeature2 ? columnGroupsFeature2.createColumnChooserDropClamp(tree, columns()) : void 0;
4386
+ });
4272
4387
  const sortManagerColumns = createMemo10(
4273
- () => [...visibleColumns(), ...activeGroupColumns()].filter((column) => !isSyntheticColumnKey2(column.key)).map((column) => ({ key: column.key, title: column.title || column.key }))
4388
+ () => [...visibleColumns(), ...activeGroupColumns()].filter((column) => !isSyntheticColumnKey2(column.key)).map((column) => ({ key: column.key, title: columnTitles()?.get(column.key) ?? (column.title || column.key) }))
4274
4389
  );
4275
4390
  const showGlobalFilterRow = () => globalFilterEnabled() && globalFilterText().trim().length > 0;
4276
4391
  const toolPanelTabs = createMemo10(
@@ -4292,6 +4407,10 @@ function GridShellBody(props, features, mountGate, mode) {
4292
4407
  const columnMenuGroupingAvailable = createMemo10(
4293
4408
  () => groupingFeature2 !== void 0 && !isServerSide() && !labelRowEnabled() && props.onColumnsChange !== void 0 && columns().some((column) => column.rowGroup !== void 0)
4294
4409
  );
4410
+ const columnGroupDragSupport = createMemo10(() => {
4411
+ const tree = columnGroupTree();
4412
+ return columnGroupsFeature2 && tree ? { ...columnGroupsFeature2, tree } : null;
4413
+ });
4295
4414
  const columnReorder = features.columnReorder?.createColumnReorder(() => ({
4296
4415
  enabled: Boolean(props.onColumnsChange),
4297
4416
  columns: columns(),
@@ -4305,11 +4424,16 @@ function GridShellBody(props, features, mountGate, mode) {
4305
4424
  rightLeadingWidth: paneResolution().rightLeadingWidth,
4306
4425
  applyColumnOrderAndPin: columnCommands.applyColumnOrderAndPin,
4307
4426
  ghostSlot: slots().dragGhost,
4308
- motion: resolvedMotion() === "off" ? "ghost" : props.columnDragMotion ?? "ghost"
4427
+ motion: resolvedMotion() === "off" ? "ghost" : props.columnDragMotion ?? "ghost",
4428
+ // 列のグループ(1.6.0): 列はグループの中でだけ動かし、グループの見出しの掴み手でグループごと動かす。
4429
+ columnGroups: columnGroupDragSupport()
4309
4430
  }));
4310
4431
  const columnDragHandler = createMemo10(
4311
4432
  () => columnReorder && props.onColumnsChange ? columnReorder.onColumnDragHandlePointerDown : void 0
4312
4433
  );
4434
+ const columnGroupDragHandler = createMemo10(
4435
+ () => columnReorder && props.onColumnsChange ? columnReorder.onColumnGroupDragHandlePointerDown : void 0
4436
+ );
4313
4437
  const renderColumnDropIndicator = (pane) => columnReorder ? <div
4314
4438
  ref={(element) => columnReorder.setIndicator(pane, element)}
4315
4439
  class="ssg-col-drop-indicator"
@@ -4487,6 +4611,8 @@ function GridShellBody(props, features, mountGate, mode) {
4487
4611
  focusGrid: () => gridRootRef.current?.focus({ preventScroll: true }),
4488
4612
  beforeDetailRowsCollapse: detailRows.returnFocusFromCards,
4489
4613
  startEditCell: tryStartEditCell,
4614
+ // 列のグループ(1.6.0): setColumnGroupOpen / getState の closedColumnGroups / エクスポートの段。
4615
+ columnGroupTree: columnGroupTree(),
4490
4616
  headerHeight: headerHeight(),
4491
4617
  verticalScaleFactor: vertical().verticalScaleFactor,
4492
4618
  leftPaneTotalWidth: paneResolution().leftPaneTotalWidth,
@@ -4559,6 +4685,9 @@ function GridShellBody(props, features, mountGate, mode) {
4559
4685
  columns: columns(),
4560
4686
  collapsedGroupKeys: ui().collapsedGroupKeys,
4561
4687
  includeGroupingInState: props.includeGroupingInState ?? false,
4688
+ // 閉じている列のグループ(開閉できるグループがあるときだけ状態に入る)。
4689
+ closedColumnGroupKeys: ui().closedColumnGroupKeys,
4690
+ columnGroupTree: columnGroupTree(),
4562
4691
  onStateChange: inOwnTick(props.onStateChange),
4563
4692
  onFiltersChange: inOwnTick(props.onFiltersChange),
4564
4693
  onSortChange: inOwnTick(props.onSortChange)
@@ -4566,6 +4695,16 @@ function GridShellBody(props, features, mountGate, mode) {
4566
4695
  "effect",
4567
4696
  "stateChangeNotifier"
4568
4697
  );
4698
+ connectController(
4699
+ engine.columnGroupOpenNotifier,
4700
+ () => ({
4701
+ closedColumnGroupKeys: ui().closedColumnGroupKeys,
4702
+ columnGroupTree: columnGroupTree(),
4703
+ onColumnGroupOpenChange: inOwnTick(props.onColumnGroupOpenChange)
4704
+ }),
4705
+ "effect",
4706
+ "columnGroupOpenNotifier"
4707
+ );
4569
4708
  onGridMounted(() => {
4570
4709
  const element = gridRootRef.current;
4571
4710
  if (!element) {
@@ -4604,8 +4743,16 @@ function GridShellBody(props, features, mountGate, mode) {
4604
4743
  selection: ui().selection
4605
4744
  }));
4606
4745
  const derivedSummary = createMemo10(() => {
4746
+ const titles = columnTitles();
4747
+ const base = titles ? {
4748
+ ...slotContextBase(),
4749
+ columns: slotContextBase().columns.map((column) => {
4750
+ const title = titles.get(column.key);
4751
+ return title === void 0 ? column : { ...column, title };
4752
+ })
4753
+ } : slotContextBase();
4607
4754
  const summary = buildGridDerivedSummary(
4608
- filteringAvailable ? slotContextBase() : { ...slotContextBase(), globalFilterText: "", columnFilterValues: NO_COLUMN_FILTERS },
4755
+ filteringAvailable ? base : { ...base, globalFilterText: "", columnFilterValues: NO_COLUMN_FILTERS },
4609
4756
  // 件数はグループ行 / ラベル行を除くデータ行の数(slotContext.filteredRows と同じ)。分母(総データ行数)はラベル行を除く
4610
4757
  // (ラベル行が無ければ rows の数)。サーバーサイドは rows が空なので、サーバーが返した今の条件での件数(React 版と同じ)。
4611
4758
  leafRowCount(),
@@ -4933,6 +5080,15 @@ function GridShellBody(props, features, mountGate, mode) {
4933
5080
  "z-index": 2,
4934
5081
  ...hasContent ? side === "left" ? { "border-right": "1px solid var(--ssg-pane-border)", "box-shadow": "var(--ssg-pane-shadow-left)" } : { "border-left": "1px solid var(--ssg-pane-border)", "box-shadow": "var(--ssg-pane-shadow-right)" } : {}
4935
5082
  });
5083
+ const ColumnGroupHeader = columnGroupsFeature2?.ColumnGroupHeader;
5084
+ const columnGroupStickyInset = createMemo10(() => ({
5085
+ left: paneResolution().leftPaneTotalWidth + paneResolution().centerLeadingWidth,
5086
+ right: paneResolution().rightPaneTotalWidth
5087
+ }));
5088
+ const getColumnHeaderSpanRows = (columnKey) => {
5089
+ const tree = columnGroupTree();
5090
+ return tree && columnGroupsFeature2 ? columnGroupsFeature2.columnHeaderSpanRows(tree, columnKey) : 0;
5091
+ };
4936
5092
  const renderPane = (pane, width, leadingWidth, ownsRowHeader, entries) => {
4937
5093
  const bodyHeight = () => headerHeight() + vertical().physicalBodyHeight;
4938
5094
  const activeRect = () => placementRectInPane(activeCellPlacement(), pane);
@@ -4947,11 +5103,11 @@ function GridShellBody(props, features, mountGate, mode) {
4947
5103
  rowHeaderWidth={rowHeaderWidth()}
4948
5104
  rows={pinnedRows()}
4949
5105
  rowHeight={rowHeight()}
4950
- stickyOffset={position === "top" ? columnHeaderHeight() : pinnedBelowTotal() ? 0 : totalRowHeight()}
5106
+ stickyOffset={position === "top" ? columnGroupHeight() + columnHeaderHeight() : pinnedBelowTotal() ? 0 : totalRowHeight()}
4951
5107
  bodyHeight={position === "top" || pinnedBelowTotal() ? 0 : vertical().physicalBodyHeight}
4952
5108
  entries={entries()}
4953
5109
  rowKeyGetter={resolvedRowKeyGetter()}
4954
- ariaRowIndexStart={position === "top" ? 2 : viewRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 1 : 0)}
5110
+ ariaRowIndexStart={(position === "top" ? 2 : viewRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 1 : 0)) + columnGroupDepth()}
4955
5111
  getRowClassName={props.getRowClassName}
4956
5112
  showCellOverflowTooltip={props.showCellOverflowTooltip ?? false}
4957
5113
  conditionalFormat={conditionalFormatFeature2}
@@ -4973,7 +5129,7 @@ function GridShellBody(props, features, mountGate, mode) {
4973
5129
  cells={totalRowCells()}
4974
5130
  label={totalRowLabel()}
4975
5131
  labelColumnKey={totalRowLabelColumnKey()}
4976
- ariaRowIndex={viewRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 0 : pinnedBottomCount())}
5132
+ ariaRowIndex={viewRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 0 : pinnedBottomCount()) + columnGroupDepth()}
4977
5133
  renderCell={totalRowOptions()?.renderCell}
4978
5134
  rowClassName={totalRowSlot().className}
4979
5135
  rowStyle={totalRowSlot().style}
@@ -4991,11 +5147,38 @@ function GridShellBody(props, features, mountGate, mode) {
4991
5147
  height: px(bodyHeight() + footerHeight())
4992
5148
  }}
4993
5149
  >
5150
+ {
5151
+ /* 列のグループの段(1.6.0。列見出しの行の前の sticky の器)。 */
5152
+ }
5153
+ {ColumnGroupHeader ? <Show11 when={columnGroupTree()}>
5154
+ {(tree) => <ColumnGroupHeader
5155
+ pane={pane}
5156
+ tree={tree()}
5157
+ groupRowHeight={columnGroupRowHeight()}
5158
+ leadingWidth={leadingWidth()}
5159
+ entries={paneLayout()[pane].entries}
5160
+ renderEntries={pane === "center" ? centerRenderEntries() : void 0}
5161
+ closedKeys={ui().closedColumnGroupKeys}
5162
+ selection={selectionSnapshot()}
5163
+ isWholeGridSelected={isWholeGridSelected()}
5164
+ stickyInset={pane === "center" ? columnGroupStickyInset() : null}
5165
+ enableColumnResize={enableColumnResize()}
5166
+ slots={slots()}
5167
+ dispatch={dispatch}
5168
+ onGroupPointerDown={pointer.handleColumnGroupHeaderPointerDown}
5169
+ onResizePointerDown={columnCommands.handleColumnGroupResizePointerDown}
5170
+ onGripPointerDown={columnGroupDragHandler()}
5171
+ />}
5172
+ </Show11> : null}
4994
5173
  <GridHeaderRow
4995
5174
  pane={pane}
4996
5175
  ownsRowHeader={ownsRowHeader()}
4997
5176
  leadingWidth={leadingWidth()}
4998
5177
  headerHeight={columnHeaderHeight()}
5178
+ stickyTop={columnGroupTree() ? columnGroupHeight() : void 0}
5179
+ ariaRowIndex={columnGroupTree() ? columnGroupDepth() + 1 : void 0}
5180
+ groupRowHeight={columnGroupTree() ? columnGroupRowHeight() : void 0}
5181
+ getHeaderSpanRows={columnGroupTree() ? getColumnHeaderSpanRows : void 0}
4999
5182
  rowHeaderWidth={rowHeaderWidth()}
5000
5183
  slots={slots()}
5001
5184
  isCornerHovered={view().isCornerHovered}
@@ -5113,7 +5296,8 @@ function GridShellBody(props, features, mountGate, mode) {
5113
5296
  session={editingSessionInfo()}
5114
5297
  themeClassName={portalClassName()}
5115
5298
  slots={slots()}
5116
- onCommit={(value, direction) => edit.commitEdit(value, direction)}
5299
+ onCommit={(value, direction, option, forwardText) => edit.commitEdit(value, direction, option, forwardText)}
5300
+ SearchSelectEditor={features.selectSearch?.SearchSelectCellEditor}
5117
5301
  onCancel={edit.cancelEdit}
5118
5302
  onRegisterFlush={edit.registerDraftFlush}
5119
5303
  onRegisterLateCommit={edit.registerLateCommitReceiver}
@@ -5143,7 +5327,7 @@ function GridShellBody(props, features, mountGate, mode) {
5143
5327
  rows={bodyRows()}
5144
5328
  entries={entries()}
5145
5329
  rowModel={rowModel()}
5146
- ariaRowOffset={pinnedTopCount()}
5330
+ ariaRowOffset={pinnedTopCount() + columnGroupDepth()}
5147
5331
  activeCell={ui().activeCell}
5148
5332
  editingCell={ui().editingCell}
5149
5333
  selection={selectionSnapshot()}
@@ -5309,7 +5493,7 @@ function GridShellBody(props, features, mountGate, mode) {
5309
5493
  }}
5310
5494
  role="grid"
5311
5495
  aria-label={props.ariaLabel}
5312
- aria-rowcount={viewRowCount() + 1 + pinnedTopCount() + pinnedBottomCount() + (totalRowEnabled() ? 1 : 0)}
5496
+ aria-rowcount={viewRowCount() + 1 + pinnedTopCount() + pinnedBottomCount() + (totalRowEnabled() ? 1 : 0) + columnGroupDepth()}
5313
5497
  aria-colcount={orderedColumns().length + 1}
5314
5498
  aria-multiselectable={enableRangeSelection() ? "true" : void 0}
5315
5499
  aria-readonly={readOnly() ? "true" : void 0}
@@ -5534,6 +5718,21 @@ function GridShellBody(props, features, mountGate, mode) {
5534
5718
  ) ? () => columnCommands.handleColumnMenuGroupBy(column().key) : void 0
5535
5719
  }
5536
5720
  onUngroup={columnMenuGroupingAvailable() && rowGroupingActive() ? columnCommands.handleColumnMenuUngroup : void 0}
5721
+ columnGroupToggles={(() => {
5722
+ const tree = columnGroupTree();
5723
+ return columnGroupsFeature2 && tree ? columnGroupsFeature2.resolveColumnMenuGroupToggles(tree, ui().closedColumnGroupKeys, column().key).map((toggle) => ({
5724
+ key: toggle.key,
5725
+ open: toggle.open,
5726
+ label: formatLocaleText6(
5727
+ toggle.open ? localeTexts().collapseColumnGroup : localeTexts().expandColumnGroup,
5728
+ { group: toggle.title }
5729
+ )
5730
+ })) : void 0;
5731
+ })()}
5732
+ onToggleColumnGroup={(groupKey, open) => {
5733
+ columnMenu.close();
5734
+ dispatch(gridActions.setColumnGroupOpen(groupKey, open));
5735
+ }}
5537
5736
  onRequestClose={columnMenu.close}
5538
5737
  />}
5539
5738
  </Show11>}
@@ -5554,6 +5753,7 @@ function GridShellBody(props, features, mountGate, mode) {
5554
5753
  popoverSlot={slots().popover}
5555
5754
  themeClassName={portalClassName()}
5556
5755
  localeTexts={localeTexts()}
5756
+ columnTitles={columnTitles()}
5557
5757
  /> : null}
5558
5758
  {
5559
5759
  /* ツールパネル(グリッドの外のポップアップ。開いている間だけ描く)。タブを切り替えると中身を作り直す(タブの中の検索の
@@ -5596,6 +5796,8 @@ function GridShellBody(props, features, mountGate, mode) {
5596
5796
  items={columnChooserItems()}
5597
5797
  canToggle={props.onColumnsChange !== void 0}
5598
5798
  onToggleColumnVisibility={columnCommands.handleColumnChooserToggleVisibility}
5799
+ onToggleColumnsVisibility={columnCommands.handleColumnChooserToggleColumnsVisibility}
5800
+ clampDropIndex={clampColumnChooserDrop()}
5599
5801
  onShowAllColumns={columnCommands.handleColumnChooserShowAll}
5600
5802
  onHideAllColumns={columnCommands.handleColumnChooserHideAll}
5601
5803
  onResetColumns={columnCommands.handleColumnChooserReset}
@@ -5708,11 +5910,234 @@ var columnAutosizeFeature = {
5708
5910
  createColumnAutosize
5709
5911
  };
5710
5912
 
5913
+ // src/features/columnGroups.ts
5914
+ import {
5915
+ buildColumnGroupTree,
5916
+ columnHeaderSpanRows,
5917
+ computeColumnBlockReorderedKeys,
5918
+ createColumnChooserDropClamp,
5919
+ followColumnKeysAfterColumnGroupChange,
5920
+ placeUnpinnedColumnInGroup,
5921
+ resolveColumnMenuGroupToggles,
5922
+ resolveColumnGroupDistinctTitles,
5923
+ resolveCollapsedColumnKeys,
5924
+ resolveColumnDragItem,
5925
+ resolveColumnGroupDragItem,
5926
+ resolveColumnGroupDropPlacement,
5927
+ warnUnknownColumnGroupKeys
5928
+ } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/columnGroups";
5929
+ import { DEFAULT_COLUMN_GROUPS_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
5930
+
5931
+ // src/view/GridColumnGroupHeader.tsx
5932
+ import { For as For6, Show as Show12, createMemo as createMemo11 } from "solid-js";
5933
+ import {
5934
+ createColumnGroupResize,
5935
+ resolveColumnGroupCells
5936
+ } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/columnGroups";
5937
+ import { gridActions as gridActions2 } from "@ishibashi0112/spreadsheet-grid-core/internal/model/gridActions";
5938
+ import { formatLocaleText as formatLocaleText7 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
5939
+ import { isFromRenderHeaderControl as isFromRenderHeaderControl2 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
5940
+ var SVG_NOT_FOCUSABLE2 = { focusable: "false" };
5941
+ var stopPointerDown = (event) => {
5942
+ event.stopPropagation();
5943
+ if (event.pointerType === "mouse") event.preventDefault();
5944
+ };
5945
+ var resolveResize = (entries, cell, enableColumnResize) => createColumnGroupResize(
5946
+ entries.slice(cell.startIndex, cell.endIndex + 1).filter((entry) => entry.column.resizable ?? enableColumnResize).map((entry) => ({
5947
+ key: entry.column.key,
5948
+ startWidth: entry.paneLocalSize,
5949
+ minWidth: entry.column.minWidth ?? 60,
5950
+ maxWidth: entry.column.maxWidth ?? Number.POSITIVE_INFINITY
5951
+ }))
5952
+ );
5953
+ function GridColumnGroupHeader(props) {
5954
+ const texts = useFeatureLocaleText();
5955
+ const tree = createMemo11(() => props.tree);
5956
+ const entries = createMemo11(() => props.entries);
5957
+ const allCells = createMemo11(() => resolveColumnGroupCells(tree(), entries()));
5958
+ const cells = createMemo11(() => {
5959
+ const all = allCells();
5960
+ const renderEntries = props.renderEntries;
5961
+ if (renderEntries === void 0 || all.length === 0) return all;
5962
+ const first = renderEntries[0];
5963
+ const last = renderEntries[renderEntries.length - 1];
5964
+ if (!first || !last) return [];
5965
+ const from = first.paneLocalStart;
5966
+ const to = last.paneLocalStart + last.paneLocalSize;
5967
+ const visible = all.filter((cell) => cell.start < to && cell.start + cell.size > from);
5968
+ return visible.length === all.length ? all : visible;
5969
+ });
5970
+ const levels = createMemo11(() => {
5971
+ const result = Array.from({ length: tree().depth }, () => []);
5972
+ for (const cell of cells()) {
5973
+ result[cell.level]?.push(cell);
5974
+ }
5975
+ return result.map((levelCells, level) => ({ level, cells: levelCells })).filter((entry) => entry.cells.length > 0);
5976
+ });
5977
+ return <div data-pane={props.pane} class="ssg-col-group-block" style={{ height: px(tree().depth * props.groupRowHeight) }}>
5978
+ <For6 each={levels()} keyed={(entry) => entry.level}>
5979
+ {(entry) => (
5980
+ // 段ごとに 1 行(3 ペインの同じ段は同じ行番号)。
5981
+ <div
5982
+ role="row"
5983
+ aria-rowindex={entry().level + 1}
5984
+ class="ssg-col-group-row"
5985
+ style={{ top: px(entry().level * props.groupRowHeight), height: px(props.groupRowHeight) }}
5986
+ >
5987
+ <For6 each={entry().cells} keyed={(cell) => cell.id}>
5988
+ {(cell) => {
5989
+ const group = createMemo11(() => cell().group);
5990
+ const definition = createMemo11(() => group().definition);
5991
+ const open = () => !group().collapsible || !(props.closedKeys?.has(group().key) ?? false);
5992
+ const align = () => definition().headerAlign ?? "left";
5993
+ const isSelected = () => props.isWholeGridSelected || props.selection.kind === "col" && cell().firstColIndex >= props.selection.startCol && cell().lastColIndex <= props.selection.endCol;
5994
+ const labelStyle = () => {
5995
+ const inset = props.stickyInset;
5996
+ if (inset === null || align() === "center") return void 0;
5997
+ return align() === "right" ? { position: "sticky", right: px(inset.right + 6) } : { position: "sticky", left: px(inset.left + 6) };
5998
+ };
5999
+ const title = () => group().title || group().key;
6000
+ const context = {
6001
+ get group() {
6002
+ return definition();
6003
+ },
6004
+ get open() {
6005
+ return open();
6006
+ },
6007
+ get collapsible() {
6008
+ return group().collapsible;
6009
+ },
6010
+ get width() {
6011
+ return cell().size;
6012
+ }
6013
+ };
6014
+ const toggleLabel = () => formatLocaleText7(open() ? texts().collapseColumnGroup : texts().expandColumnGroup, { group: title() });
6015
+ const resize = createMemo11(() => resolveResize(entries(), cell(), props.enableColumnResize));
6016
+ return <div
6017
+ role="columnheader"
6018
+ aria-colindex={cell().firstColIndex + 2}
6019
+ aria-colspan={cell().lastColIndex - cell().firstColIndex + 1}
6020
+ data-ssg-col-group={group().key}
6021
+ class={[
6022
+ "ssg-header-cell",
6023
+ "ssg-col-group-cell",
6024
+ {
6025
+ "ssg-header-cell--selected": isSelected(),
6026
+ "ssg-col-group-cell--align-center": align() === "center",
6027
+ "ssg-col-group-cell--align-right": align() === "right",
6028
+ "ssg-col-group-cell--closed": !open()
6029
+ },
6030
+ props.slots.headerCell?.className,
6031
+ definition().className
6032
+ ]}
6033
+ style={{
6034
+ ...props.slots.headerCell?.style,
6035
+ left: px(props.leadingWidth + cell().start),
6036
+ width: px(cell().size),
6037
+ "min-width": px(cell().size),
6038
+ height: px(props.groupRowHeight)
6039
+ }}
6040
+ onPointerDown={(event) => {
6041
+ if (definition().renderHeader && isFromRenderHeaderControl2(event.target, event.currentTarget, ".ssg-col-group-label")) {
6042
+ return;
6043
+ }
6044
+ props.onGroupPointerDown(cell().firstColIndex, cell().lastColIndex, event);
6045
+ }}
6046
+ >
6047
+ <div class="ssg-col-group-label" style={labelStyle()}>
6048
+ <span
6049
+ class={["ssg-col-group-title", { "ssg-col-group-title--custom": Boolean(definition().renderHeader) }]}
6050
+ data-ssg-tooltip={definition().renderHeader ? void 0 : title()}
6051
+ >
6052
+ {definition().renderHeader ? definition().renderHeader?.(context) : title()}
6053
+ </span>
6054
+ <Show12 when={group().collapsible}>
6055
+ <button
6056
+ type="button"
6057
+ tabindex={-1}
6058
+ aria-expanded={open() ? "true" : "false"}
6059
+ aria-label={toggleLabel()}
6060
+ data-ssg-tooltip={toggleLabel()}
6061
+ class={["ssg-icon-btn", "ssg-col-group-toggle", props.slots.iconButton?.className]}
6062
+ style={props.slots.iconButton?.style}
6063
+ onPointerDown={stopPointerDown}
6064
+ onClick={(event) => {
6065
+ event.stopPropagation();
6066
+ props.dispatch(gridActions2.setColumnGroupOpen(group().key, !open()));
6067
+ }}
6068
+ >
6069
+ <svg
6070
+ width="10"
6071
+ height="10"
6072
+ viewBox="0 0 16 16"
6073
+ fill="none"
6074
+ stroke="currentColor"
6075
+ stroke-width="2"
6076
+ aria-hidden="true"
6077
+ {...SVG_NOT_FOCUSABLE2}
6078
+ >
6079
+ <path
6080
+ d={open() ? "M10 3 5 8l5 5" : "M6 3l5 5-5 5"}
6081
+ stroke-linecap="round"
6082
+ stroke-linejoin="round"
6083
+ />
6084
+ </svg>
6085
+ </button>
6086
+ </Show12>
6087
+ <Show12 when={props.onGripPointerDown}>
6088
+ {(handler) => <span
6089
+ aria-hidden="true"
6090
+ class="ssg-header-grip ssg-col-group-grip"
6091
+ data-ssg-tooltip={formatLocaleText7(texts().dragColumnGroup, { group: title() })}
6092
+ onPointerDown={(event) => handler()(group().key, props.pane, event)}
6093
+ >
6094
+ <svg width="8" height="14" viewBox="0 0 8 14" fill="currentColor" aria-hidden="true" {...SVG_NOT_FOCUSABLE2}>
6095
+ <circle cx="2" cy="3" r="1" />
6096
+ <circle cx="6" cy="3" r="1" />
6097
+ <circle cx="2" cy="7" r="1" />
6098
+ <circle cx="6" cy="7" r="1" />
6099
+ <circle cx="2" cy="11" r="1" />
6100
+ <circle cx="6" cy="11" r="1" />
6101
+ </svg>
6102
+ </span>}
6103
+ </Show12>
6104
+ </div>
6105
+ <Show12 when={resize()}>
6106
+ {(value) => <div class="ssg-header-resize" onPointerDown={(event) => props.onResizePointerDown(value(), event)} />}
6107
+ </Show12>
6108
+ </div>;
6109
+ }}
6110
+ </For6>
6111
+ </div>
6112
+ )}
6113
+ </For6>
6114
+ </div>;
6115
+ }
6116
+
6117
+ // src/features/columnGroups.ts
6118
+ var columnGroupsFeature = {
6119
+ buildColumnGroupTree,
6120
+ warnUnknownColumnGroupKeys,
6121
+ resolveCollapsedColumnKeys,
6122
+ followColumnKeysAfterColumnGroupChange,
6123
+ placeUnpinnedColumnInGroup,
6124
+ resolveColumnMenuGroupToggles,
6125
+ resolveColumnGroupDistinctTitles,
6126
+ columnHeaderSpanRows,
6127
+ createColumnChooserDropClamp,
6128
+ resolveColumnDragItem,
6129
+ resolveColumnGroupDragItem,
6130
+ resolveColumnGroupDropPlacement,
6131
+ computeColumnBlockReorderedKeys,
6132
+ ColumnGroupHeader: GridColumnGroupHeader,
6133
+ localeText: DEFAULT_COLUMN_GROUPS_LOCALE_TEXT
6134
+ };
6135
+
5711
6136
  // src/features/columnMenu.ts
5712
6137
  import { DEFAULT_COLUMN_MENU_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
5713
6138
 
5714
6139
  // src/primitives/columnMenu.ts
5715
- import { createMemo as createMemo11 } from "solid-js";
6140
+ import { createMemo as createMemo12 } from "solid-js";
5716
6141
  import {
5717
6142
  createColumnMenuController
5718
6143
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/columnMenuController";
@@ -5724,16 +6149,16 @@ function createColumnMenu(inputs) {
5724
6149
  gridRootRef: inputs.gridRootRef
5725
6150
  }), "render", "columnMenu");
5726
6151
  const snapshot2 = createExternalStoreSignal(controller, "columnMenuStore");
5727
- const openedColumnKey = createMemo11(() => snapshot2().columnKey);
5728
- const openedColumn = createMemo11(() => {
6152
+ const openedColumnKey = createMemo12(() => snapshot2().columnKey);
6153
+ const openedColumn = createMemo12(() => {
5729
6154
  const key = openedColumnKey();
5730
6155
  return key === null ? null : inputs.visibleColumns().find((column) => column.key === key) ?? null;
5731
6156
  });
5732
6157
  return {
5733
6158
  openedColumnKey,
5734
6159
  openedColumn,
5735
- layout: createMemo11(() => snapshot2().layout),
5736
- isOpen: createMemo11(() => openedColumnKey() !== null),
6160
+ layout: createMemo12(() => snapshot2().layout),
6161
+ isOpen: createMemo12(() => openedColumnKey() !== null),
5737
6162
  panelRef: controller.panelRef,
5738
6163
  openFromButton: controller.openFromButton,
5739
6164
  openFromButtonClick: controller.openFromButtonClick,
@@ -5744,7 +6169,7 @@ function createColumnMenu(inputs) {
5744
6169
  }
5745
6170
 
5746
6171
  // src/view/ColumnMenuPopover.tsx
5747
- import { For as For6, Show as Show12, createEffect as createEffect5, createMemo as createMemo12, createSignal as createSignal10, createUniqueId as createUniqueId4, onCleanup as onCleanup9 } from "solid-js";
6172
+ import { For as For7, Show as Show13, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal10, createUniqueId as createUniqueId4, onCleanup as onCleanup9 } from "solid-js";
5748
6173
  import { Portal as Portal2 } from "@solidjs/web";
5749
6174
  var PINNED_ITEMS = [
5750
6175
  { value: void 0, label: "menuPinNone" },
@@ -5769,10 +6194,10 @@ function ColumnMenuPopover(props) {
5769
6194
  props.panelRef.current = null;
5770
6195
  }
5771
6196
  });
5772
- const layout = createMemo12(() => props.layout);
6197
+ const layout = createMemo13(() => props.layout);
5773
6198
  const [openSubmenu, setOpenSubmenu] = createSignal10(null);
5774
6199
  const setOpenSubmenuKey = (key) => setOpenSubmenu(key === null ? null : { columnKey: props.columnKey, key });
5775
- const isPinSubmenuOpen = createMemo12(() => {
6200
+ const isPinSubmenuOpen = createMemo13(() => {
5776
6201
  const current = openSubmenu();
5777
6202
  return current !== null && current.columnKey === props.columnKey && current.key === PIN_SUBMENU_KEY;
5778
6203
  });
@@ -5787,7 +6212,7 @@ function ColumnMenuPopover(props) {
5787
6212
  { name: "columnMenuScrollReset" }
5788
6213
  );
5789
6214
  createPortalTokens(panel, () => props.themeClassName, layout);
5790
- const submenuInline = createMemo12(() => layout().maxHeight !== void 0);
6215
+ const submenuInline = createMemo13(() => layout().maxHeight !== void 0);
5791
6216
  const [pinSubmenu, setPinSubmenu] = createSignal10();
5792
6217
  let pinSubmenuElement;
5793
6218
  createPortalTokens(
@@ -5847,7 +6272,7 @@ function ColumnMenuPopover(props) {
5847
6272
  props.slots?.menuItem?.className
5848
6273
  ];
5849
6274
  const itemStyle = () => props.slots?.menuItem?.style;
5850
- return <Show12 when={container}>
6275
+ return <Show13 when={container}>
5851
6276
  {(mount) => <Portal2 mount={mount()}>
5852
6277
  <div
5853
6278
  ref={(node) => {
@@ -5877,7 +6302,27 @@ function ColumnMenuPopover(props) {
5877
6302
  {props.title}
5878
6303
  </div>
5879
6304
 
5880
- <Show12 when={props.canFilter}>
6305
+ {
6306
+ /* 列のグループの開閉(1.6.0 の実アプリの点検 G5-02)。 */
6307
+ }
6308
+ <Show13 when={props.onToggleColumnGroup !== void 0 && (props.columnGroupToggles?.length ?? 0) > 0}>
6309
+ <For7 each={props.columnGroupToggles ?? []} keyed={(toggle) => toggle.key}>
6310
+ {(toggle) => <button
6311
+ type="button"
6312
+ role="menuitem"
6313
+ onPointerEnter={closeSubmenuOnHover}
6314
+ onClick={() => props.onToggleColumnGroup?.(toggle().key, !toggle().open)}
6315
+ class={itemClass()}
6316
+ style={itemStyle()}
6317
+ >
6318
+ <span class="ssg-menu-icon" />
6319
+ <span class="ssg-menu-label">{toggle().label}</span>
6320
+ </button>}
6321
+ </For7>
6322
+ <div role="separator" class="ssg-menu-separator" />
6323
+ </Show13>
6324
+
6325
+ <Show13 when={props.canFilter}>
5881
6326
  <button
5882
6327
  type="button"
5883
6328
  role="menuitem"
@@ -5890,9 +6335,9 @@ function ColumnMenuPopover(props) {
5890
6335
  <span class="ssg-menu-label">{texts().menuFilter}</span>
5891
6336
  </button>
5892
6337
  <div role="separator" class="ssg-menu-separator" />
5893
- </Show12>
6338
+ </Show13>
5894
6339
 
5895
- <Show12 when={props.canSort}>
6340
+ <Show13 when={props.canSort}>
5896
6341
  <SortItem
5897
6342
  direction="asc"
5898
6343
  sortDirection={props.sortDirection}
@@ -5911,7 +6356,7 @@ function ColumnMenuPopover(props) {
5911
6356
  class={itemClass()}
5912
6357
  style={itemStyle()}
5913
6358
  />
5914
- <Show12 when={props.onOpenSortManager}>
6359
+ <Show13 when={props.onOpenSortManager}>
5915
6360
  {(open) => <button
5916
6361
  type="button"
5917
6362
  role="menuitem"
@@ -5923,10 +6368,10 @@ function ColumnMenuPopover(props) {
5923
6368
  <span class="ssg-menu-icon" />
5924
6369
  <span class="ssg-menu-label">{texts().menuManageSort}</span>
5925
6370
  </button>}
5926
- </Show12>
5927
- </Show12>
6371
+ </Show13>
6372
+ </Show13>
5928
6373
 
5929
- <Show12 when={props.canManageFilters ? props.onOpenFilterManager : void 0}>
6374
+ <Show13 when={props.canManageFilters ? props.onOpenFilterManager : void 0}>
5930
6375
  {(open) => <button
5931
6376
  type="button"
5932
6377
  role="menuitem"
@@ -5938,16 +6383,16 @@ function ColumnMenuPopover(props) {
5938
6383
  <span class="ssg-menu-icon" />
5939
6384
  <span class="ssg-menu-label">{texts().menuManageFilters}</span>
5940
6385
  </button>}
5941
- </Show12>
6386
+ </Show13>
5942
6387
 
5943
6388
  {
5944
6389
  /* 区切りは、並び替えの項目かフィルターを管理…のどちらかが出ているとき。 */
5945
6390
  }
5946
- <Show12 when={props.canSort || props.canManageFilters && props.onOpenFilterManager !== void 0}>
6391
+ <Show13 when={props.canSort || props.canManageFilters && props.onOpenFilterManager !== void 0}>
5947
6392
  <div role="separator" class="ssg-menu-separator" />
5948
- </Show12>
6393
+ </Show13>
5949
6394
 
5950
- <Show12 when={props.onGroupByColumn}>
6395
+ <Show13 when={props.onGroupByColumn}>
5951
6396
  {(groupBy) => <button
5952
6397
  type="button"
5953
6398
  role="menuitem"
@@ -5959,8 +6404,8 @@ function ColumnMenuPopover(props) {
5959
6404
  <span class="ssg-menu-icon" />
5960
6405
  <span class="ssg-menu-label">{texts().menuGroupBy}</span>
5961
6406
  </button>}
5962
- </Show12>
5963
- <Show12 when={props.onUngroup}>
6407
+ </Show13>
6408
+ <Show13 when={props.onUngroup}>
5964
6409
  {(ungroup) => <button
5965
6410
  type="button"
5966
6411
  role="menuitem"
@@ -5972,10 +6417,10 @@ function ColumnMenuPopover(props) {
5972
6417
  <span class="ssg-menu-icon" />
5973
6418
  <span class="ssg-menu-label">{texts().menuUngroup}</span>
5974
6419
  </button>}
5975
- </Show12>
5976
- <Show12 when={props.onGroupByColumn !== void 0 || props.onUngroup !== void 0}>
6420
+ </Show13>
6421
+ <Show13 when={props.onGroupByColumn !== void 0 || props.onUngroup !== void 0}>
5977
6422
  <div role="separator" class="ssg-menu-separator" />
5978
- </Show12>
6423
+ </Show13>
5979
6424
 
5980
6425
  {
5981
6426
  /* 列の固定 ›(小メニューはこの行 = position: relative を基準に置く。パネルの子孫なので外側の押下の判定にも入る)。 */
@@ -6036,7 +6481,7 @@ function ColumnMenuPopover(props) {
6036
6481
  ›
6037
6482
  </span>
6038
6483
  </button>
6039
- <Show12 when={isPinSubmenuOpen()}>
6484
+ <Show13 when={isPinSubmenuOpen()}>
6040
6485
  <div
6041
6486
  ref={(node) => {
6042
6487
  pinSubmenuElement = node;
@@ -6055,7 +6500,7 @@ function ColumnMenuPopover(props) {
6055
6500
  pinButton?.focus();
6056
6501
  }}
6057
6502
  >
6058
- <For6 each={PINNED_ITEMS}>
6503
+ <For7 each={PINNED_ITEMS}>
6059
6504
  {(item) => {
6060
6505
  const isSelected = () => props.pinned === item.value;
6061
6506
  return <button
@@ -6079,17 +6524,17 @@ function ColumnMenuPopover(props) {
6079
6524
  <span class="ssg-menu-label">{texts()[item.label]}</span>
6080
6525
  </button>;
6081
6526
  }}
6082
- </For6>
6083
- <Show12 when={!props.canChangePinned}>
6527
+ </For7>
6528
+ <Show13 when={!props.canChangePinned}>
6084
6529
  <div id={pinNoteId} role="none" class="ssg-menu-note">
6085
6530
  {texts().menuPinUnavailable}
6086
6531
  </div>
6087
- </Show12>
6532
+ </Show13>
6088
6533
  </div>
6089
- </Show12>
6534
+ </Show13>
6090
6535
  </div>
6091
6536
 
6092
- <Show12 when={props.onAutosizeColumn && props.onAutosizeAllColumns}>
6537
+ <Show13 when={props.onAutosizeColumn && props.onAutosizeAllColumns}>
6093
6538
  <button
6094
6539
  type="button"
6095
6540
  role="menuitem"
@@ -6112,9 +6557,9 @@ function ColumnMenuPopover(props) {
6112
6557
  <span class="ssg-menu-icon" />
6113
6558
  <span class="ssg-menu-label">{texts().menuAutosizeAll}</span>
6114
6559
  </button>
6115
- </Show12>
6560
+ </Show13>
6116
6561
 
6117
- <Show12 when={props.onOpenColumnChooser}>
6562
+ <Show13 when={props.onOpenColumnChooser}>
6118
6563
  {(open) => <button
6119
6564
  type="button"
6120
6565
  role="menuitem"
@@ -6126,7 +6571,7 @@ function ColumnMenuPopover(props) {
6126
6571
  <span class="ssg-menu-icon" />
6127
6572
  <span class="ssg-menu-label">{texts().menuColumns}</span>
6128
6573
  </button>}
6129
- </Show12>
6574
+ </Show13>
6130
6575
 
6131
6576
  <button
6132
6577
  type="button"
@@ -6154,7 +6599,7 @@ function ColumnMenuPopover(props) {
6154
6599
  </div>
6155
6600
  </div>
6156
6601
  </Portal2>}
6157
- </Show12>;
6602
+ </Show13>;
6158
6603
  }
6159
6604
  function SortItem(props) {
6160
6605
  const active = () => props.sortDirection === props.direction;
@@ -6206,6 +6651,7 @@ function createColumnReorder(args) {
6206
6651
  );
6207
6652
  return {
6208
6653
  onColumnDragHandlePointerDown: controller.onColumnDragHandlePointerDown,
6654
+ onColumnGroupDragHandlePointerDown: controller.onColumnGroupDragHandlePointerDown,
6209
6655
  setIndicator: (pane, element) => {
6210
6656
  if (pane === "left") {
6211
6657
  leftIndicatorRef.current = element;
@@ -6232,9 +6678,9 @@ import {
6232
6678
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/conditionalFormat";
6233
6679
 
6234
6680
  // src/view/GridChip.tsx
6235
- import { Show as Show13 } from "solid-js";
6681
+ import { Show as Show14 } from "solid-js";
6236
6682
  import { resolveChipTone } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/conditionalFormat";
6237
- var SVG_NOT_FOCUSABLE2 = { focusable: "false" };
6683
+ var SVG_NOT_FOCUSABLE3 = { focusable: "false" };
6238
6684
  var ICON_PATHS = {
6239
6685
  neutral: () => <circle cx="6" cy="6" r="1.7" fill="currentColor" stroke="none" />,
6240
6686
  info: () => <>
@@ -6258,7 +6704,7 @@ function GridChip(props) {
6258
6704
  class={["ssg-chip", custom() ? "ssg-chip--custom" : `ssg-chip--${tone()}`]}
6259
6705
  style={custom() ? { "--ssg-cf-chip-color": props.spec.color } : void 0}
6260
6706
  >
6261
- <Show13 when={props.spec.icon !== false}>
6707
+ <Show14 when={props.spec.icon !== false}>
6262
6708
  <span class="ssg-chip-icon" aria-hidden="true">
6263
6709
  <svg
6264
6710
  viewBox="0 0 12 12"
@@ -6267,12 +6713,12 @@ function GridChip(props) {
6267
6713
  stroke-width="1.6"
6268
6714
  stroke-linecap="round"
6269
6715
  stroke-linejoin="round"
6270
- {...SVG_NOT_FOCUSABLE2}
6716
+ {...SVG_NOT_FOCUSABLE3}
6271
6717
  >
6272
6718
  {ICON_PATHS[tone()]()}
6273
6719
  </svg>
6274
6720
  </span>
6275
- </Show13>
6721
+ </Show14>
6276
6722
  <span class="ssg-chip-label">{props.children}</span>
6277
6723
  </span>;
6278
6724
  }
@@ -6294,7 +6740,7 @@ import {
6294
6740
  import { DEFAULT_CONTEXT_MENU_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
6295
6741
 
6296
6742
  // src/primitives/contextMenu.ts
6297
- import { createMemo as createMemo13 } from "solid-js";
6743
+ import { createMemo as createMemo14 } from "solid-js";
6298
6744
  import {
6299
6745
  createContextMenuController
6300
6746
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/contextMenuController";
@@ -6304,7 +6750,7 @@ function createCellContextMenu(inputs) {
6304
6750
  const snapshot2 = createExternalStoreSignal(controller, "contextMenuStore");
6305
6751
  return {
6306
6752
  snapshot: snapshot2,
6307
- isOpen: createMemo13(() => snapshot2().state !== null),
6753
+ isOpen: createMemo14(() => snapshot2().state !== null),
6308
6754
  open: controller.open,
6309
6755
  close: controller.close,
6310
6756
  panelRef: controller.panelRef
@@ -6312,7 +6758,7 @@ function createCellContextMenu(inputs) {
6312
6758
  }
6313
6759
 
6314
6760
  // src/view/CellContextMenuPopover.tsx
6315
- import { For as For7, Match as Match2, Show as Show14, Switch as Switch2, createMemo as createMemo14, createSignal as createSignal11, onCleanup as onCleanup10 } from "solid-js";
6761
+ import { For as For8, Match as Match2, Show as Show15, Switch as Switch2, createMemo as createMemo15, createSignal as createSignal11, onCleanup as onCleanup10 } from "solid-js";
6316
6762
  import { Portal as Portal3 } from "@solidjs/web";
6317
6763
  function CellContextMenuPopover(props) {
6318
6764
  const portal = useGridPortal();
@@ -6324,8 +6770,8 @@ function CellContextMenuPopover(props) {
6324
6770
  props.panelRef.current = null;
6325
6771
  }
6326
6772
  });
6327
- const layout = createMemo14(() => props.layout);
6328
- const element = <Show14 when={container}>
6773
+ const layout = createMemo15(() => props.layout);
6774
+ const element = <Show15 when={container}>
6329
6775
  {(mount) => <Portal3 mount={mount()}>
6330
6776
  <div
6331
6777
  ref={(node) => {
@@ -6351,7 +6797,7 @@ function CellContextMenuPopover(props) {
6351
6797
  ...layout().maxHeight !== void 0 ? { "max-height": px(layout().maxHeight ?? 0), "overflow-y": "auto" } : null
6352
6798
  }}
6353
6799
  >
6354
- <For7 each={props.items}>
6800
+ <For8 each={props.items}>
6355
6801
  {(item) => <Switch2
6356
6802
  fallback={
6357
6803
  // action(kind 省略 or 'action')。押すと onSelect の後に閉じる。disabled は button の disabled で押せない。
@@ -6383,10 +6829,10 @@ function CellContextMenuPopover(props) {
6383
6829
  {(custom) => <div role="none">{custom().render({ close: props.onRequestClose })}</div>}
6384
6830
  </Match2>
6385
6831
  </Switch2>}
6386
- </For7>
6832
+ </For8>
6387
6833
  </div>
6388
6834
  </Portal3>}
6389
- </Show14>;
6835
+ </Show15>;
6390
6836
  createPortalTokens(panel, () => props.themeClassName, layout);
6391
6837
  return element;
6392
6838
  }
@@ -6437,7 +6883,7 @@ var exportFeature = {
6437
6883
  import { DEFAULT_FILL_HANDLE_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
6438
6884
 
6439
6885
  // src/primitives/fillHandle.ts
6440
- import { createMemo as createMemo15 } from "solid-js";
6886
+ import { createMemo as createMemo16 } from "solid-js";
6441
6887
  import {
6442
6888
  createFillHandleController
6443
6889
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/fillHandleController";
@@ -6455,11 +6901,11 @@ import {
6455
6901
  import { physicalToLogicalScrollTop as physicalToLogicalScrollTop2 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/verticalGeometry";
6456
6902
  function createFillHandle(inputs) {
6457
6903
  const controller = createFillHandleController();
6458
- const options = createMemo15(() => {
6904
+ const options = createMemo16(() => {
6459
6905
  const fillHandle = inputs.fillHandle();
6460
6906
  return typeof fillHandle === "object" ? fillHandle : void 0;
6461
6907
  });
6462
- const enabled = createMemo15(
6908
+ const enabled = createMemo16(
6463
6909
  () => Boolean(inputs.fillHandle()) && !inputs.readOnly() && (inputs.isServerSide() ? inputs.applyServerSideCellEdits() !== void 0 : inputs.handleRowsChange() !== void 0)
6464
6910
  );
6465
6911
  connectController(controller, () => {
@@ -6497,17 +6943,17 @@ function createFillHandle(inputs) {
6497
6943
  };
6498
6944
  }, "render", "fillHandle");
6499
6945
  const snapshot2 = createExternalStoreSignal(controller, "fillHandleStore");
6500
- const rowMetrics = createMemo15(() => inputs.vertical().rowMetrics);
6501
- const windowFirstRow = createMemo15(() => inputs.vertical().windowFirstRow);
6502
- const windowLastRow = createMemo15(() => inputs.vertical().windowLastRow);
6503
- const detailActive = createMemo15(() => inputs.vertical().detailActive);
6504
- const detailExtras = createMemo15(() => inputs.vertical().detailExtras);
6505
- const verticalScaleFactor = createMemo15(() => inputs.vertical().verticalScaleFactor);
6506
- const paneLayout = createMemo15(inputs.paneLayout);
6507
- const viewportHeight = createMemo15(inputs.viewportHeight);
6508
- const scrollTop = createMemo15(inputs.scrollTop);
6509
- const headerHeight = createMemo15(inputs.headerHeight);
6510
- const corner = createMemo15(() => {
6946
+ const rowMetrics = createMemo16(() => inputs.vertical().rowMetrics);
6947
+ const windowFirstRow = createMemo16(() => inputs.vertical().windowFirstRow);
6948
+ const windowLastRow = createMemo16(() => inputs.vertical().windowLastRow);
6949
+ const detailActive = createMemo16(() => inputs.vertical().detailActive);
6950
+ const detailExtras = createMemo16(() => inputs.vertical().detailExtras);
6951
+ const verticalScaleFactor = createMemo16(() => inputs.vertical().verticalScaleFactor);
6952
+ const paneLayout = createMemo16(inputs.paneLayout);
6953
+ const viewportHeight = createMemo16(inputs.viewportHeight);
6954
+ const scrollTop = createMemo16(inputs.scrollTop);
6955
+ const headerHeight = createMemo16(inputs.headerHeight);
6956
+ const corner = createMemo16(() => {
6511
6957
  const ui = inputs.uiState();
6512
6958
  if (!enabled() || ui.editingCell || ui.dragState?.type === "selection") {
6513
6959
  return null;
@@ -6520,7 +6966,7 @@ function createFillHandle(inputs) {
6520
6966
  }
6521
6967
  return resolveFillCornerPlacement(source, paneLayout(), rowMetrics(), windowFirstRow(), windowLastRow());
6522
6968
  });
6523
- const previewSelection = createMemo15(() => {
6969
+ const previewSelection = createMemo16(() => {
6524
6970
  const current = snapshot2();
6525
6971
  if (current.status !== "dragging" || current.target === null) {
6526
6972
  return null;
@@ -6540,7 +6986,7 @@ function createFillHandle(inputs) {
6540
6986
  }
6541
6987
  };
6542
6988
  });
6543
- const previewGeometry = createMemo15(() => {
6989
+ const previewGeometry = createMemo16(() => {
6544
6990
  const selection = previewSelection();
6545
6991
  if (selection === null) {
6546
6992
  return null;
@@ -6573,7 +7019,7 @@ function createFillHandle(inputs) {
6573
7019
  }
6574
7020
  return geometry.band ? [{ left: extent.start, top: geometry.band.top, width: extent.width, height: geometry.band.height }] : [];
6575
7021
  };
6576
- const chip = createMemo15(() => {
7022
+ const chip = createMemo16(() => {
6577
7023
  const current = snapshot2();
6578
7024
  if (current.status !== "filled") {
6579
7025
  return null;
@@ -6596,7 +7042,7 @@ function createFillHandle(inputs) {
6596
7042
  controller,
6597
7043
  snapshot: snapshot2,
6598
7044
  // 真偽値が変わったときだけ知らせます(ルートの class の描き直しを、ボタンが消えただけでは起こさない)。
6599
- filling: createMemo15(() => snapshot2().status === "dragging"),
7045
+ filling: createMemo16(() => snapshot2().status === "dragging"),
6600
7046
  corner,
6601
7047
  previewRects,
6602
7048
  chip
@@ -6604,11 +7050,11 @@ function createFillHandle(inputs) {
6604
7050
  }
6605
7051
 
6606
7052
  // src/view/FillHandleLayer.tsx
6607
- import { For as For8, Show as Show15, createEffect as createEffect7, createMemo as createMemo16, createSignal as createSignal12, onCleanup as onCleanup11 } from "solid-js";
7053
+ import { For as For9, Show as Show16, createEffect as createEffect7, createMemo as createMemo17, createSignal as createSignal12, onCleanup as onCleanup11 } from "solid-js";
6608
7054
  import { Portal as Portal4 } from "@solidjs/web";
6609
- import { formatLocaleText as formatLocaleText7 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7055
+ import { formatLocaleText as formatLocaleText8 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
6610
7056
  import { getActiveElement } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/shadowDom";
6611
- var SVG_NOT_FOCUSABLE3 = { focusable: "false" };
7057
+ var SVG_NOT_FOCUSABLE4 = { focusable: "false" };
6612
7058
  function FillHandleLayer(props) {
6613
7059
  const corner = () => {
6614
7060
  const current = props.fill.corner();
@@ -6618,7 +7064,7 @@ function FillHandleLayer(props) {
6618
7064
  const current = props.fill.chip();
6619
7065
  return current?.pane === props.pane ? current.position : null;
6620
7066
  };
6621
- const filled = createMemo16(() => {
7067
+ const filled = createMemo17(() => {
6622
7068
  const snapshot2 = props.fill.snapshot();
6623
7069
  return snapshot2.status === "filled" ? snapshot2 : null;
6624
7070
  });
@@ -6626,7 +7072,7 @@ function FillHandleLayer(props) {
6626
7072
  {
6627
7073
  /* ドラッグ中の埋める範囲の点線。 */
6628
7074
  }
6629
- <For8 each={props.fill.previewRects(props.pane)} keyed={false}>
7075
+ <For9 each={props.fill.previewRects(props.pane)} keyed={false}>
6630
7076
  {(rect) => <div
6631
7077
  class="ssg-fill-preview"
6632
7078
  style={{
@@ -6638,11 +7084,11 @@ function FillHandleLayer(props) {
6638
7084
  }}
6639
7085
  data-ssg-fill-preview=""
6640
7086
  />}
6641
- </For8>
7087
+ </For9>
6642
7088
  {
6643
7089
  /* 選択範囲の右下の四角。 */
6644
7090
  }
6645
- <Show15 when={corner()}>
7091
+ <Show16 when={corner()}>
6646
7092
  {(current) => <div
6647
7093
  class="ssg-fill-handle"
6648
7094
  style={{
@@ -6654,12 +7100,12 @@ function FillHandleLayer(props) {
6654
7100
  aria-hidden="true"
6655
7101
  onPointerDown={(event) => props.fill.controller.handlePointerDown(event)}
6656
7102
  />}
6657
- </Show15>
7103
+ </Show16>
6658
7104
  {
6659
7105
  /* 埋めたあとのボタン(左上の位置)。 */
6660
7106
  }
6661
- <Show15 when={filled()}>
6662
- {(snapshot2) => <Show15 when={chip()}>
7107
+ <Show16 when={filled()}>
7108
+ {(snapshot2) => <Show16 when={chip()}>
6663
7109
  {(position) => <FillOptionsChip
6664
7110
  fill={props.fill}
6665
7111
  x={props.leadingWidth + position().x}
@@ -6667,8 +7113,8 @@ function FillHandleLayer(props) {
6667
7113
  kind={snapshot2().kind}
6668
7114
  menuOpen={snapshot2().menu !== null}
6669
7115
  />}
6670
- </Show15>}
6671
- </Show15>
7116
+ </Show16>}
7117
+ </Show16>
6672
7118
  </>;
6673
7119
  }
6674
7120
  function FillOptionsChip(props) {
@@ -6689,7 +7135,7 @@ function FillOptionsChip(props) {
6689
7135
  class={["ssg-fill-options", { "ssg-fill-options--open": props.menuOpen }]}
6690
7136
  style={{ position: "absolute", left: px(props.x), top: px(props.y) }}
6691
7137
  data-ssg-fill-options=""
6692
- aria-label={formatLocaleText7(texts().fillOptionsCurrent, {
7138
+ aria-label={formatLocaleText8(texts().fillOptionsCurrent, {
6693
7139
  kind: props.kind === "series" ? texts().fillSeries : texts().fillCopy
6694
7140
  })}
6695
7141
  aria-haspopup="menu"
@@ -6711,7 +7157,7 @@ function FillOptionsChip(props) {
6711
7157
  stroke-linecap="round"
6712
7158
  stroke-linejoin="round"
6713
7159
  aria-hidden="true"
6714
- {...SVG_NOT_FOCUSABLE3}
7160
+ {...SVG_NOT_FOCUSABLE4}
6715
7161
  >
6716
7162
  <rect x="2.5" y="2.5" width="7" height="7" rx="1" />
6717
7163
  <path d="M6 10.5h7.5M10 7.5l3.5 3-3.5 3" />
@@ -6755,7 +7201,7 @@ function FillOptionsMenu(props) {
6755
7201
  }
6756
7202
  event.stopPropagation();
6757
7203
  };
6758
- const element = <Show15 when={container}>
7204
+ const element = <Show16 when={container}>
6759
7205
  {(mount) => <Portal4 mount={mount()}>
6760
7206
  <div
6761
7207
  ref={(node) => {
@@ -6771,7 +7217,7 @@ function FillOptionsMenu(props) {
6771
7217
  onKeyDown={handleKeyDown}
6772
7218
  onContextMenu={(event) => event.preventDefault()}
6773
7219
  >
6774
- <For8 each={MENU_ITEMS}>
7220
+ <For9 each={MENU_ITEMS}>
6775
7221
  {(item) => {
6776
7222
  const disabled = () => item.kind === "series" && !props.seriesAvailable;
6777
7223
  const checked = () => item.kind === props.kind;
@@ -6790,10 +7236,10 @@ function FillOptionsMenu(props) {
6790
7236
  <span class="ssg-menu-label">{texts()[item.label]}</span>
6791
7237
  </button>;
6792
7238
  }}
6793
- </For8>
7239
+ </For9>
6794
7240
  </div>
6795
7241
  </Portal4>}
6796
- </Show15>;
7242
+ </Show16>;
6797
7243
  createPortalTokens(panel, () => props.themeClassName, () => null);
6798
7244
  return element;
6799
7245
  }
@@ -6805,10 +7251,10 @@ function FillTooltip(props) {
6805
7251
  subscribe: props.fill.controller.subscribePointer,
6806
7252
  getSnapshot: props.fill.controller.getPointerSnapshot
6807
7253
  }, "fillPointerStore");
6808
- const visible = createMemo16(() => pointer() !== null);
6809
- const container = createMemo16(() => visible() ? portal.container() : null);
7254
+ const visible = createMemo17(() => pointer() !== null);
7255
+ const container = createMemo17(() => visible() ? portal.container() : null);
6810
7256
  const [tooltip, setTooltip] = createSignal12();
6811
- const element = <Show15 when={container()}>
7257
+ const element = <Show16 when={container()}>
6812
7258
  {(mount) => <Portal4 mount={mount()}>
6813
7259
  <div
6814
7260
  ref={setTooltip}
@@ -6823,22 +7269,22 @@ function FillTooltip(props) {
6823
7269
  {props.text}
6824
7270
  </div>
6825
7271
  </Portal4>}
6826
- </Show15>;
7272
+ </Show16>;
6827
7273
  createPortalTokens(tooltip, () => props.themeClassName, () => null);
6828
7274
  return element;
6829
7275
  }
6830
7276
  function FillHandlePortals(props) {
6831
- const menu = createMemo16(() => {
7277
+ const menu = createMemo17(() => {
6832
7278
  const snapshot2 = props.fill.snapshot();
6833
7279
  return snapshot2.status === "filled" && snapshot2.menu !== null ? snapshot2 : null;
6834
7280
  });
6835
- const tooltipText = createMemo16(() => {
7281
+ const tooltipText = createMemo17(() => {
6836
7282
  const snapshot2 = props.fill.snapshot();
6837
7283
  return snapshot2.status === "dragging" ? snapshot2.previewText : null;
6838
7284
  });
6839
7285
  return <>
6840
- <Show15 when={menu()}>
6841
- {(snapshot2) => <Show15 when={snapshot2().menu}>
7286
+ <Show16 when={menu()}>
7287
+ {(snapshot2) => <Show16 when={snapshot2().menu}>
6842
7288
  {(layout) => <FillOptionsMenu
6843
7289
  fill={props.fill}
6844
7290
  layout={layout()}
@@ -6846,11 +7292,11 @@ function FillHandlePortals(props) {
6846
7292
  seriesAvailable={snapshot2().seriesAvailable}
6847
7293
  themeClassName={props.themeClassName}
6848
7294
  />}
6849
- </Show15>}
6850
- </Show15>
6851
- <Show15 when={tooltipText() !== null}>
7295
+ </Show16>}
7296
+ </Show16>
7297
+ <Show16 when={tooltipText() !== null}>
6852
7298
  <FillTooltip fill={props.fill} text={tooltipText() ?? ""} themeClassName={props.themeClassName} />
6853
- </Show15>
7299
+ </Show16>
6854
7300
  </>;
6855
7301
  }
6856
7302
 
@@ -6870,7 +7316,7 @@ import { resolveRelativeDateFilterKey as resolveRelativeDateFilterKey2 } from "@
6870
7316
  import { DEFAULT_FILTERING_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
6871
7317
 
6872
7318
  // src/primitives/filterOrder.ts
6873
- import { createMemo as createMemo17 } from "solid-js";
7319
+ import { createMemo as createMemo18 } from "solid-js";
6874
7320
  import {
6875
7321
  createGlobalFilteredOrderRunner,
6876
7322
  resolveSyncGlobalFilteredOrder,
@@ -6883,11 +7329,11 @@ import {
6883
7329
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/filtering";
6884
7330
  var sameGlobalFilterKey = (a, b) => a.rows === b.rows && a.baseOrder === b.baseOrder && a.columns === b.columns && a.needle === b.needle;
6885
7331
  function createFilterOrder(inputs) {
6886
- const visibleColumns = createMemo17(() => inputs.visibleColumns());
6887
- const globalFilterColumns = createMemo17(() => toGlobalFilterColumns(visibleColumns(), inputs.globalFilterMatch()));
6888
- const text = createMemo17(() => inputs.globalFilterText());
6889
- const needle = createMemo17(() => text().trim().toLowerCase());
6890
- const key = createMemo17(
7332
+ const visibleColumns = createMemo18(() => inputs.visibleColumns());
7333
+ const globalFilterColumns = createMemo18(() => toGlobalFilterColumns(visibleColumns(), inputs.globalFilterMatch()));
7334
+ const text = createMemo18(() => inputs.globalFilterText());
7335
+ const needle = createMemo18(() => text().trim().toLowerCase());
7336
+ const key = createMemo18(
6891
7337
  () => ({
6892
7338
  rows: inputs.rows(),
6893
7339
  baseOrder: inputs.baseOrder(),
@@ -6897,30 +7343,30 @@ function createFilterOrder(inputs) {
6897
7343
  { equals: sameGlobalFilterKey }
6898
7344
  );
6899
7345
  const enabled = () => inputs.globalFilterEnabled() && !inputs.manualFiltering();
6900
- const syncResult = createMemo17(() => resolveSyncGlobalFilteredOrder(key(), text(), enabled()));
7346
+ const syncResult = createMemo18(() => resolveSyncGlobalFilteredOrder(key(), text(), enabled()));
6901
7347
  const runner = createGlobalFilteredOrderRunner();
6902
7348
  connectController(runner, () => ({ ...key(), needsAsync: syncResult() === null }), "render", "globalFilter");
6903
7349
  const snapshot2 = createExternalStoreSignal(runner, "globalFilterStore");
6904
- const result = createMemo17(() => selectGlobalFilteredOrderResult(syncResult(), snapshot2(), key()));
6905
- const columnFilters = createMemo17(() => inputs.columnFilters());
6906
- const relativeDateFilterActive = createMemo17(
7350
+ const result = createMemo18(() => selectGlobalFilteredOrderResult(syncResult(), snapshot2(), key()));
7351
+ const columnFilters = createMemo18(() => inputs.columnFilters());
7352
+ const relativeDateFilterActive = createMemo18(
6907
7353
  () => inputs.isServerSide() ? inputs.columnFilterEnabled() && columnFiltersUseRelativeDate(columnFilters()) : !inputs.manualFiltering() && columnFiltersUseRelativeDate(columnFilters())
6908
7354
  );
6909
7355
  connectController(inputs.dateRollover, () => ({ active: relativeDateFilterActive() }), "render", "dateRollover");
6910
7356
  const relativeDateSnapshot = createExternalStoreSignal(inputs.dateRollover, "dateRolloverStore");
6911
- const relativeDateKey = createMemo17(
7357
+ const relativeDateKey = createMemo18(
6912
7358
  () => relativeDateFilterActive() ? resolveRelativeDateFilterKey(inputs.effectiveColumns(), columnFilters(), relativeDateSnapshot()) : ""
6913
7359
  );
6914
7360
  return {
6915
- globalFilteredOrder: createMemo17(() => result().order),
6916
- globalFilterStatus: createMemo17(() => result().status),
6917
- globalFilterProgress: createMemo17(() => result().progress),
7361
+ globalFilteredOrder: createMemo18(() => result().order),
7362
+ globalFilterStatus: createMemo18(() => result().status),
7363
+ globalFilterProgress: createMemo18(() => result().progress),
6918
7364
  relativeDateKey
6919
7365
  };
6920
7366
  }
6921
7367
 
6922
7368
  // src/primitives/filterPopover.ts
6923
- import { createMemo as createMemo18, createSignal as createSignal13, untrack as untrack14 } from "solid-js";
7369
+ import { createMemo as createMemo19, createSignal as createSignal13, untrack as untrack14 } from "solid-js";
6924
7370
  import {
6925
7371
  createFilterPopoverController,
6926
7372
  resolveOpenedFilterColumn
@@ -6958,15 +7404,15 @@ function createFilterPopover(inputs) {
6958
7404
  }
6959
7405
  return result.filterType;
6960
7406
  });
6961
- const groupColumns = createMemo18(() => inputs.groupColumns?.() ?? NO_GROUP_COLUMNS);
6962
- const popoverColumns = createMemo18(() => {
7407
+ const groupColumns = createMemo19(() => inputs.groupColumns?.() ?? NO_GROUP_COLUMNS);
7408
+ const popoverColumns = createMemo19(() => {
6963
7409
  const groups = groupColumns();
6964
7410
  return groups.length > 0 ? [...inputs.visibleColumns(), ...groups] : inputs.visibleColumns();
6965
7411
  });
6966
7412
  const resolveAnchorColumnKey = (columnKey) => untrack14(groupColumns).some((column) => column.key === columnKey) ? GROUP_AUTO_COLUMN_KEY : columnKey;
6967
7413
  const snapshot2 = createExternalStoreSignal(controller, "filterPopoverStore");
6968
- const state = createMemo18(() => snapshot2().state);
6969
- const layout = createMemo18(() => snapshot2().layout);
7414
+ const state = createMemo19(() => snapshot2().state);
7415
+ const layout = createMemo19(() => snapshot2().layout);
6970
7416
  const [panel, setPanel] = createSignal13(null);
6971
7417
  connectController(
6972
7418
  controller,
@@ -6986,9 +7432,9 @@ function createFilterPopover(inputs) {
6986
7432
  "effect",
6987
7433
  "filterPopover"
6988
7434
  );
6989
- const openedColumnKey = createMemo18(() => state()?.columnKey ?? null);
6990
- const openedFilterType = createMemo18(() => state()?.filterType ?? null);
6991
- const openedColumn = createMemo18(() => {
7435
+ const openedColumnKey = createMemo19(() => state()?.columnKey ?? null);
7436
+ const openedFilterType = createMemo19(() => state()?.filterType ?? null);
7437
+ const openedColumn = createMemo19(() => {
6992
7438
  openedColumnKey();
6993
7439
  openedFilterType();
6994
7440
  return resolveOpenedFilterColumn(popoverColumns(), untrack14(state));
@@ -6998,7 +7444,7 @@ function createFilterPopover(inputs) {
6998
7444
  layout,
6999
7445
  openedColumn,
7000
7446
  openedFilterType,
7001
- isOpen: createMemo18(() => state() !== null),
7447
+ isOpen: createMemo19(() => state() !== null),
7002
7448
  setPanel: (element) => {
7003
7449
  controller.panelRef.current = element;
7004
7450
  setPanel(element);
@@ -7016,13 +7462,13 @@ function createFilterPopover(inputs) {
7016
7462
  }
7017
7463
 
7018
7464
  // src/primitives/filterManagement.ts
7019
- import { createMemo as createMemo19, onCleanup as onCleanup12, untrack as untrack15 } from "solid-js";
7465
+ import { createMemo as createMemo20, onCleanup as onCleanup12, untrack as untrack15 } from "solid-js";
7020
7466
  import {
7021
7467
  createColumnFilterDescribeOptions,
7022
7468
  describeColumnFilterValue
7023
7469
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/filterSummary";
7024
7470
  import { isActiveColumnFilterValue as isActiveColumnFilterValue2 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/filtering";
7025
- import { formatLocaleText as formatLocaleText8 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7471
+ import { formatLocaleText as formatLocaleText9 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7026
7472
  import {
7027
7473
  computeSinglePaneColumnExtent as computeSinglePaneColumnExtent2
7028
7474
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/geometry";
@@ -7032,11 +7478,12 @@ import { isInsideDetailCardOf as isInsideDetailCardOf2 } from "@ishibashi0112/sp
7032
7478
  var NO_COLUMNS2 = [];
7033
7479
  var JUMP_FLASH_CLASS_NAME = "ssg-header-cell--jump-flash";
7034
7480
  function createFilterManagement(inputs) {
7035
- const groupColumns = createMemo19(() => inputs.groupColumns?.() ?? NO_COLUMNS2);
7036
- const groupColumnKeys = createMemo19(() => new Set(groupColumns().map((column) => column.key)));
7037
- const entries = createMemo19(() => {
7481
+ const groupColumns = createMemo20(() => inputs.groupColumns?.() ?? NO_COLUMNS2);
7482
+ const groupColumnKeys = createMemo20(() => new Set(groupColumns().map((column) => column.key)));
7483
+ const entries = createMemo20(() => {
7038
7484
  const columnFilters = inputs.columnFilters();
7039
7485
  const texts = inputs.localeTexts();
7486
+ const titles = inputs.columnTitles?.();
7040
7487
  const result = [];
7041
7488
  const pushEntry = (column, isHidden, isGrouped = false) => {
7042
7489
  const value = columnFilters[column.key];
@@ -7045,7 +7492,7 @@ function createFilterManagement(inputs) {
7045
7492
  }
7046
7493
  result.push({
7047
7494
  columnKey: column.key,
7048
- title: column.title || column.key,
7495
+ title: titles?.get(column.key) ?? (column.title || column.key),
7049
7496
  // select / set の値はラベルで、数値の条件は列の valueFormatter で出します(チップのバーと共有)。
7050
7497
  summaryText: describeColumnFilterValue(value, createColumnFilterDescribeOptions(column, texts)),
7051
7498
  isHidden,
@@ -7066,13 +7513,14 @@ function createFilterManagement(inputs) {
7066
7513
  }
7067
7514
  return result;
7068
7515
  });
7069
- const addableColumns = createMemo19(() => {
7516
+ const addableColumns = createMemo20(() => {
7070
7517
  const columnFilters = inputs.columnFilters();
7071
7518
  const texts = inputs.localeTexts();
7519
+ const titles = inputs.columnTitles?.();
7072
7520
  const grouped = groupColumnKeys();
7073
7521
  return [...inputs.visibleColumns(), ...groupColumns()].filter((column) => Boolean(column.filterType) && !isActiveColumnFilterValue2(columnFilters[column.key])).map((column) => ({
7074
7522
  key: column.key,
7075
- title: grouped.has(column.key) ? formatLocaleText8(texts.groupedColumnTitle, { column: column.title || column.key }) : column.title || column.key
7523
+ title: grouped.has(column.key) ? formatLocaleText9(texts.groupedColumnTitle, { column: column.title || column.key }) : titles?.get(column.key) ?? (column.title || column.key)
7076
7524
  }));
7077
7525
  });
7078
7526
  const pendingFrames = /* @__PURE__ */ new Set();
@@ -7156,7 +7604,7 @@ function createFilterManagement(inputs) {
7156
7604
  }
7157
7605
 
7158
7606
  // src/view/ColumnFilterPopoverHost.tsx
7159
- import { Show as Show16, createMemo as createMemo20, untrack as untrack16 } from "solid-js";
7607
+ import { Show as Show17, createMemo as createMemo21, untrack as untrack16 } from "solid-js";
7160
7608
  import {
7161
7609
  createFilterPopoverCommands,
7162
7610
  createFilterPopoverDerivedResolver
@@ -7183,17 +7631,17 @@ import {
7183
7631
  describeColumnFilterValue as describeColumnFilterValue2
7184
7632
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/filterSummary";
7185
7633
  import { normalizeDateFilterPresets } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/dateFilterPresets";
7186
- import { formatLocaleText as formatLocaleText9 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7634
+ import { formatLocaleText as formatLocaleText10 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7187
7635
  import { getCellValue as getCellValue4 } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/permissions";
7188
7636
  function ColumnFilterPopoverHost(props) {
7189
7637
  const filterPopover = props.filterPopover;
7190
7638
  const openedColumn = filterPopover.openedColumn;
7191
7639
  const openedType = filterPopover.openedFilterType;
7192
- const openedOptionsKey = createMemo20(() => {
7640
+ const openedOptionsKey = createMemo21(() => {
7193
7641
  const column = openedColumn();
7194
7642
  return column ? String(column.key) : null;
7195
7643
  });
7196
- const optionRowsHold = createMemo20((prev) => {
7644
+ const optionRowsHold = createMemo21((prev) => {
7197
7645
  const key = openedOptionsKey();
7198
7646
  const rows = props.rows;
7199
7647
  if (key === null) {
@@ -7204,9 +7652,9 @@ function ColumnFilterPopoverHost(props) {
7204
7652
  }
7205
7653
  return prev;
7206
7654
  });
7207
- const optionRows = createMemo20(() => optionRowsHold().rows);
7208
- const openedIsDateSet = createMemo20(() => openedType() === "dateSet");
7209
- const getOpenedColumnRawValueAt = createMemo20(() => {
7655
+ const optionRows = createMemo21(() => optionRowsHold().rows);
7656
+ const openedIsDateSet = createMemo21(() => openedType() === "dateSet");
7657
+ const getOpenedColumnRawValueAt = createMemo21(() => {
7210
7658
  const rows = optionRows();
7211
7659
  const column = openedColumn();
7212
7660
  const isDateSet = openedIsDateSet();
@@ -7218,7 +7666,7 @@ function ColumnFilterPopoverHost(props) {
7218
7666
  return isDateSet ? toDateSetKey(value) : value;
7219
7667
  };
7220
7668
  });
7221
- const usesAsyncOptions = createMemo20(() => {
7669
+ const usesAsyncOptions = createMemo21(() => {
7222
7670
  const column = openedColumn();
7223
7671
  return props.getFilterOptions != null && column != null && isSelectLikeFilterType(openedType()) && !(column.filterOptions && column.filterOptions.length > 0);
7224
7672
  });
@@ -7235,12 +7683,12 @@ function ColumnFilterPopoverHost(props) {
7235
7683
  };
7236
7684
  }, "render", "filterOptionsSource");
7237
7685
  const asyncSnapshot = createExternalStoreSignal(asyncSource, "filterOptionsStore");
7238
- const collectColumn = createMemo20(() => usesAsyncOptions() ? null : openedColumn());
7239
- const numeric = createMemo20(() => openedType() === "numberSet");
7240
- const syncResult = createMemo20(
7686
+ const collectColumn = createMemo21(() => usesAsyncOptions() ? null : openedColumn());
7687
+ const numeric = createMemo21(() => openedType() === "numberSet");
7688
+ const syncResult = createMemo21(
7241
7689
  () => resolveSyncSelectOptions(collectColumn(), optionRows().length, getOpenedColumnRawValueAt(), numeric())
7242
7690
  );
7243
- const sourceKey = createMemo20(() => {
7691
+ const sourceKey = createMemo21(() => {
7244
7692
  const column = collectColumn();
7245
7693
  return column === null ? void 0 : String(column.key);
7246
7694
  });
@@ -7253,14 +7701,14 @@ function ColumnFilterPopoverHost(props) {
7253
7701
  sourceKey: sourceKey()
7254
7702
  }), "render", "filterValueCollector");
7255
7703
  const collectorSnapshot = createExternalStoreSignal(collector, "filterValueStore");
7256
- const optionsResult = createMemo20(() => {
7704
+ const optionsResult = createMemo21(() => {
7257
7705
  if (usesAsyncOptions()) {
7258
7706
  return selectAsyncOptionsResult(asyncSnapshot(), openedColumn()?.key ?? null);
7259
7707
  }
7260
7708
  return syncResult() ?? selectCollectorResult(collectorSnapshot(), optionRows().length, getOpenedColumnRawValueAt(), sourceKey());
7261
7709
  });
7262
7710
  const resolveDerived = createFilterPopoverDerivedResolver();
7263
- const derived = createMemo20(
7711
+ const derived = createMemo21(
7264
7712
  () => resolveDerived({
7265
7713
  openedFilterColumn: openedColumn(),
7266
7714
  openedFilterType: openedType(),
@@ -7284,14 +7732,14 @@ function ColumnFilterPopoverHost(props) {
7284
7732
  filterTexts: props.localeTexts
7285
7733
  }), "render", "filterPopoverCommands");
7286
7734
  const texts = () => props.localeTexts;
7287
- const currentValueText = createMemo20(() => {
7735
+ const currentValueText = createMemo21(() => {
7288
7736
  const column = openedColumn();
7289
7737
  if (!column) {
7290
7738
  return texts().filterCurrentNone;
7291
7739
  }
7292
7740
  const rawValue = props.columnFilters[column.key];
7293
7741
  if (isSetColumnFilterValue(rawValue)) {
7294
- return formatLocaleText9(rawValue.mode === "exclude" ? texts().filterCurrentExcluded : texts().filterCurrentSelected, {
7742
+ return formatLocaleText10(rawValue.mode === "exclude" ? texts().filterCurrentExcluded : texts().filterCurrentSelected, {
7295
7743
  count: rawValue.values.length
7296
7744
  });
7297
7745
  }
@@ -7301,16 +7749,16 @@ function ColumnFilterPopoverHost(props) {
7301
7749
  const text = columnFilterValueToDraftText(rawValue);
7302
7750
  return text.trim() ? text : texts().filterCurrentNone;
7303
7751
  });
7304
- const datePresets = createMemo20(() => {
7752
+ const datePresets = createMemo21(() => {
7305
7753
  const column = openedColumn();
7306
7754
  return column ? normalizeDateFilterPresets(column.dateFilterPresets, props.localeTexts) : void 0;
7307
7755
  });
7308
- const comboSummaryText = createMemo20(() => {
7756
+ const comboSummaryText = createMemo21(() => {
7309
7757
  const column = openedColumn();
7310
7758
  const value = derived().openedSetFilterValue;
7311
7759
  return column && value && isActiveColumnFilterValue3(value) ? describeColumnFilterValue2(value, createColumnFilterDescribeOptions2(column, props.localeTexts)) : props.localeTexts.filterNone;
7312
7760
  });
7313
- const renderDateInput = createMemo20(() => {
7761
+ const renderDateInput = createMemo21(() => {
7314
7762
  const render = props.renderFilterDateInput;
7315
7763
  const column = openedColumn();
7316
7764
  if (!render || !column) {
@@ -7329,16 +7777,16 @@ function ColumnFilterPopoverHost(props) {
7329
7777
  columnKey
7330
7778
  });
7331
7779
  });
7332
- return <Show16 when={openedColumn()}>
7333
- {(column) => <Show16 when={filterPopover.layout()}>
7334
- {(layout) => <Show16 when={props.views()}>
7780
+ return <Show17 when={openedColumn()}>
7781
+ {(column) => <Show17 when={filterPopover.layout()}>
7782
+ {(layout) => <Show17 when={props.views()}>
7335
7783
  {(views) => {
7336
7784
  const ColumnFilterPopover = untrack16(views).ColumnFilterPopover;
7337
- return <Show16 when={column().key} keyed>
7785
+ return <Show17 when={column().key} keyed>
7338
7786
  {(columnKey) => <ColumnFilterPopover
7339
7787
  popoverSlot={props.popoverSlot}
7340
7788
  themeClassName={props.themeClassName}
7341
- title={column().title || columnKey}
7789
+ title={props.columnTitles?.get(columnKey) ?? (column().title || columnKey)}
7342
7790
  filterType={openedType() ?? "text"}
7343
7791
  isServerSide={props.isServerSide && !usesAsyncOptions()}
7344
7792
  draftValue={filterPopover.state()?.draftValue ?? ""}
@@ -7375,22 +7823,22 @@ function ColumnFilterPopoverHost(props) {
7375
7823
  onSetClear={commands.clearSetFilterPopoverValue}
7376
7824
  onSetReplaceSelection={commands.handleSetFilterReplaceSelection}
7377
7825
  />}
7378
- </Show16>;
7826
+ </Show17>;
7379
7827
  }}
7380
- </Show16>}
7381
- </Show16>}
7382
- </Show16>;
7828
+ </Show17>}
7829
+ </Show17>}
7830
+ </Show17>;
7383
7831
  }
7384
7832
 
7385
7833
  // src/view/GridFilterChipBar.tsx
7386
- import { For as For9, Show as Show17, createUniqueId as createUniqueId5 } from "solid-js";
7387
- import { formatLocaleText as formatLocaleText10 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7834
+ import { For as For10, Show as Show18, createUniqueId as createUniqueId5 } from "solid-js";
7835
+ import { formatLocaleText as formatLocaleText11 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7388
7836
  function GridFilterChipBar(props) {
7389
7837
  const texts = useFeatureLocaleText();
7390
7838
  const chipIdBase = createUniqueId5();
7391
- return <Show17 when={props.entries.length > 0}>
7839
+ return <Show18 when={props.entries.length > 0}>
7392
7840
  <div class={["ssg-filter-chip-bar", props.slot?.className]} style={props.slot?.style}>
7393
- <For9 each={props.entries} keyed={(entry) => entry.columnKey}>
7841
+ <For10 each={props.entries} keyed={(entry) => entry.columnKey}>
7394
7842
  {(entry, index) => <div class={entry().isHidden ? "ssg-filter-chip ssg-filter-chip--hidden" : "ssg-filter-chip"}>
7395
7843
  <button
7396
7844
  type="button"
@@ -7413,7 +7861,7 @@ function GridFilterChipBar(props) {
7413
7861
  class="ssg-filter-chip-clear"
7414
7862
  disabled={!props.canFilter}
7415
7863
  data-ssg-tooltip={texts().filterClear}
7416
- aria-label={formatLocaleText10(texts().filterClearFor, { column: entry().title })}
7864
+ aria-label={formatLocaleText11(texts().filterClearFor, { column: entry().title })}
7417
7865
  onClick={() => props.onClearFilter(entry().columnKey)}
7418
7866
  >
7419
7867
  ×
@@ -7422,10 +7870,10 @@ function GridFilterChipBar(props) {
7422
7870
  /* 名前の後半(操作の説明)。ボタンの中に置くと文字に混ざるので外に置きます。 */
7423
7871
  }
7424
7872
  <span id={`${chipIdBase}-${index()}-action`} hidden>
7425
- {formatLocaleText10(texts().filterEditFor, { column: entry().title })}
7873
+ {formatLocaleText11(texts().filterEditFor, { column: entry().title })}
7426
7874
  </span>
7427
7875
  </div>}
7428
- </For9>
7876
+ </For10>
7429
7877
  <button
7430
7878
  type="button"
7431
7879
  class="ssg-filter-chip-bar-clear-all"
@@ -7435,15 +7883,15 @@ function GridFilterChipBar(props) {
7435
7883
  {texts().clearAll}
7436
7884
  </button>
7437
7885
  </div>
7438
- </Show17>;
7886
+ </Show18>;
7439
7887
  }
7440
7888
 
7441
7889
  // src/view/lazyPopups.ts
7442
- import { createEffect as createEffect8, createMemo as createMemo21 } from "solid-js";
7890
+ import { createEffect as createEffect8, createMemo as createMemo22 } from "solid-js";
7443
7891
  import { createLazyModule } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/lazyModule";
7444
7892
  import { scheduleIdleTask } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/scheduler";
7445
7893
  var filterPopoverModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/ColumnFilterPopover-D7INPNVB.jsx"));
7446
- var toolPanelModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/toolPanelViews-HIQGRX3N.jsx"));
7894
+ var toolPanelModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/toolPanelViews-BRH5PCOI.jsx"));
7447
7895
  var preloadGridPopups = async () => {
7448
7896
  await Promise.all([filterPopoverModule.load(), toolPanelModule.load()]);
7449
7897
  };
@@ -7453,7 +7901,7 @@ var reportLoadError = (error) => {
7453
7901
  function createLazyModuleSignal(module, options, name) {
7454
7902
  const loaded = createExternalStoreSignal(module, `${name}Module`);
7455
7903
  createEffect8(
7456
- createMemo21(() => options.needed() && loaded() === null),
7904
+ createMemo22(() => options.needed() && loaded() === null),
7457
7905
  (shouldLoad) => {
7458
7906
  if (!shouldLoad) {
7459
7907
  return;
@@ -7472,7 +7920,7 @@ function createLazyModuleSignal(module, options, name) {
7472
7920
  { name: `${name}Load` }
7473
7921
  );
7474
7922
  createEffect8(
7475
- createMemo21(() => options.prefetch() && module.getSnapshot() === null),
7923
+ createMemo22(() => options.prefetch() && module.getSnapshot() === null),
7476
7924
  (shouldPrefetch) => {
7477
7925
  if (!shouldPrefetch) {
7478
7926
  return;
@@ -7643,14 +8091,14 @@ import { buildGroupTree, flattenGroupTree } from "@ishibashi0112/spreadsheet-gri
7643
8091
  import { DEFAULT_GROUPING_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
7644
8092
 
7645
8093
  // src/view/GridBodyGroupRow.tsx
7646
- import { For as For10, Show as Show18, createMemo as createMemo22 } from "solid-js";
8094
+ import { For as For11, Show as Show19, createMemo as createMemo23 } from "solid-js";
7647
8095
  import { GROUP_AUTO_COLUMN_KEY as GROUP_AUTO_COLUMN_KEY3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/grouping";
7648
8096
  import {
7649
8097
  formatTotalRowCellText,
7650
8098
  formatTotalRowNumber,
7651
8099
  resolveTotalRowCaption
7652
8100
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/totalRow";
7653
- import { formatLocaleText as formatLocaleText11 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8101
+ import { formatLocaleText as formatLocaleText12 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7654
8102
  var GROUP_INDENT_PX = 16;
7655
8103
  function GridBodyGroupRow(props) {
7656
8104
  const texts = useFeatureLocaleText();
@@ -7673,7 +8121,7 @@ function GridBodyGroupRow(props) {
7673
8121
  }}
7674
8122
  onDblClick={() => props.onGroupToggle(props.groupRow.groupKey)}
7675
8123
  >
7676
- <Show18 when={props.ownsRowHeader}>
8124
+ <Show19 when={props.ownsRowHeader}>
7677
8125
  <div
7678
8126
  role={rowHeaderIsCell() ? "rowheader" : void 0}
7679
8127
  aria-colindex={rowHeaderIsCell() ? 1 : void 0}
@@ -7698,13 +8146,13 @@ function GridBodyGroupRow(props) {
7698
8146
  >
7699
8147
  {props.showRowCheckbox ? null : props.rowIndex + 1}
7700
8148
  </div>
7701
- </Show18>
7702
- <For10 each={props.entries} keyed={(entry) => entry.column.key}>
8149
+ </Show19>
8150
+ <For11 each={props.entries} keyed={(entry) => entry.column.key}>
7703
8151
  {(entry) => {
7704
- const unbound = createMemo22(() => entry().column);
8152
+ const unbound = createMemo23(() => entry().column);
7705
8153
  const column = () => unbound();
7706
8154
  const isAutoGroupColumn = () => column().key === GROUP_AUTO_COLUMN_KEY3;
7707
- const aggregate = createMemo22(() => {
8155
+ const aggregate = createMemo23(() => {
7708
8156
  const current = column();
7709
8157
  if (isAutoGroupColumn() || !Object.prototype.hasOwnProperty.call(props.groupRow.aggregates, current.key)) {
7710
8158
  return null;
@@ -7741,19 +8189,19 @@ function GridBodyGroupRow(props) {
7741
8189
  "z-index": 1
7742
8190
  }}
7743
8191
  >
7744
- <Show18
8192
+ <Show19
7745
8193
  when={isAutoGroupColumn()}
7746
- fallback={<Show18 when={aggregate()}>
8194
+ fallback={<Show19 when={aggregate()}>
7747
8195
  {(shown) => <span
7748
8196
  class="ssg-group-value"
7749
8197
  data-ssg-tooltip-overflow={shown().text !== "" ? shown().caption !== void 0 ? `${shown().caption} ${shown().text}` : shown().text : void 0}
7750
8198
  >
7751
- <Show18 when={shown().caption !== void 0 && shown().text !== ""}>
8199
+ <Show19 when={shown().caption !== void 0 && shown().text !== ""}>
7752
8200
  <span class="ssg-group-caption">{shown().caption}</span>
7753
- </Show18>
8201
+ </Show19>
7754
8202
  {shown().text}
7755
8203
  </span>}
7756
- </Show18>}
8204
+ </Show19>}
7757
8205
  >
7758
8206
  <span
7759
8207
  aria-hidden="true"
@@ -7765,7 +8213,7 @@ function GridBodyGroupRow(props) {
7765
8213
  tabindex={-1}
7766
8214
  class="ssg-group-toggle"
7767
8215
  aria-expanded={props.isCollapsed ? "false" : "true"}
7768
- aria-label={formatLocaleText11(props.isCollapsed ? texts().expandGroup : texts().collapseGroup, {
8216
+ aria-label={formatLocaleText12(props.isCollapsed ? texts().expandGroup : texts().collapseGroup, {
7769
8217
  group: groupLabel()
7770
8218
  })}
7771
8219
  onClick={() => props.onGroupToggle(props.groupRow.groupKey)}
@@ -7775,12 +8223,12 @@ function GridBodyGroupRow(props) {
7775
8223
  </button>
7776
8224
  <span class="ssg-group-label">{groupLabel()}</span>
7777
8225
  <span class="ssg-group-count">
7778
- {formatLocaleText11(texts().groupRowCount, { count: formatTotalRowNumber(props.groupRow.leafCount) })}
8226
+ {formatLocaleText12(texts().groupRowCount, { count: formatTotalRowNumber(props.groupRow.leafCount) })}
7779
8227
  </span>
7780
- </Show18>
8228
+ </Show19>
7781
8229
  </div>;
7782
8230
  }}
7783
- </For10>
8231
+ </For11>
7784
8232
  </div>;
7785
8233
  }
7786
8234
 
@@ -7813,12 +8261,12 @@ import {
7813
8261
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/labelRows";
7814
8262
 
7815
8263
  // src/view/GridBodyLabelRow.tsx
7816
- import { Show as Show19, createMemo as createMemo23 } from "solid-js";
8264
+ import { Show as Show20, createMemo as createMemo24 } from "solid-js";
7817
8265
  var createLabelRowRenderContext = (labelRow, rowIndex, rowKey) => {
7818
- const row = createMemo23(() => labelRow().row);
7819
- const sourceRowIndex = createMemo23(() => labelRow().sourceIndex);
7820
- const label = createMemo23(() => labelRow().label);
7821
- const sectionRowCount = createMemo23(() => labelRow().sectionRowCount);
8266
+ const row = createMemo24(() => labelRow().row);
8267
+ const sourceRowIndex = createMemo24(() => labelRow().sourceIndex);
8268
+ const label = createMemo24(() => labelRow().label);
8269
+ const sectionRowCount = createMemo24(() => labelRow().sectionRowCount);
7822
8270
  return {
7823
8271
  get row() {
7824
8272
  return row();
@@ -7863,7 +8311,7 @@ function GridBodyLabelRow(props) {
7863
8311
  transform: `translateY(${props.top}px)`
7864
8312
  }}
7865
8313
  >
7866
- <Show19 when={props.ownsRowHeader}>
8314
+ <Show20 when={props.ownsRowHeader}>
7867
8315
  <div
7868
8316
  aria-hidden="true"
7869
8317
  class={["ssg-header-cell", "ssg-row-header-cell", "ssg-row-header-cell--label", props.slots.rowHeaderCell?.className]}
@@ -7874,8 +8322,8 @@ function GridBodyLabelRow(props) {
7874
8322
  height: px(props.rowHeight)
7875
8323
  }}
7876
8324
  />
7877
- </Show19>
7878
- <Show19 when={props.renderContent}>
8325
+ </Show20>
8326
+ <Show20 when={props.renderContent}>
7879
8327
  {(render) => <div
7880
8328
  role="rowheader"
7881
8329
  aria-colindex={1}
@@ -7889,24 +8337,24 @@ function GridBodyLabelRow(props) {
7889
8337
  {render()(ctx)}
7890
8338
  </div>
7891
8339
  </div>}
7892
- </Show19>
8340
+ </Show20>
7893
8341
  </div>;
7894
8342
  }
7895
8343
 
7896
8344
  // src/view/GridStickyLabelLayer.tsx
7897
- import { Show as Show20, createMemo as createMemo24, onSettled as onSettled8 } from "solid-js";
8345
+ import { Show as Show21, createMemo as createMemo25, onSettled as onSettled8 } from "solid-js";
7898
8346
  var FOCUSABLE_SELECTOR = 'a[href], button, input, select, textarea, [tabindex], [contenteditable="true"]';
7899
8347
  function GridStickyLabelLayer(props) {
7900
- return <Show20 when={props.entry}>
8348
+ return <Show21 when={props.entry}>
7901
8349
  {(entry) => <StickyLabel layer={props} entry={entry} />}
7902
- </Show20>;
8350
+ </Show21>;
7903
8351
  }
7904
8352
  function StickyLabel(props) {
7905
8353
  const layer = props.layer;
7906
- const labelRow = createMemo24(() => props.entry().labelRow);
7907
- const rowIndex = createMemo24(() => props.entry().rowIndex);
7908
- const rowKey = createMemo24(() => props.entry().rowKey);
7909
- const height = createMemo24(() => props.entry().height);
8354
+ const labelRow = createMemo25(() => props.entry().labelRow);
8355
+ const rowIndex = createMemo25(() => props.entry().rowIndex);
8356
+ const rowKey = createMemo25(() => props.entry().rowKey);
8357
+ const height = createMemo25(() => props.entry().height);
7910
8358
  const ctx = createLabelRowRenderContext(labelRow, rowIndex, rowKey);
7911
8359
  let element;
7912
8360
  onSettled8(() => {
@@ -7961,7 +8409,7 @@ function StickyLabel(props) {
7961
8409
  ...props.entry().pushOffset > 0 ? { transform: `translateY(${-props.entry().pushOffset}px)` } : null
7962
8410
  }}
7963
8411
  >
7964
- <Show20 when={layer.ownsRowHeader}>
8412
+ <Show21 when={layer.ownsRowHeader}>
7965
8413
  <div
7966
8414
  class={["ssg-header-cell", "ssg-row-header-cell", "ssg-row-header-cell--label", layer.slots.rowHeaderCell?.className]}
7967
8415
  style={{
@@ -7971,8 +8419,8 @@ function StickyLabel(props) {
7971
8419
  height: px(height())
7972
8420
  }}
7973
8421
  />
7974
- </Show20>
7975
- <Show20 when={layer.renderContent}>
8422
+ </Show21>
8423
+ <Show21 when={layer.renderContent}>
7976
8424
  {(render) => <div
7977
8425
  class="ssg-label-row-content-holder"
7978
8426
  style={{ left: px(layer.contentStickyLeft), width: px(layer.contentWidth), height: px(height()) }}
@@ -7981,12 +8429,12 @@ function StickyLabel(props) {
7981
8429
  class={["ssg-label-row-content", layer.slots.labelRowContent?.className]}
7982
8430
  style={layer.slots.labelRowContent?.style}
7983
8431
  >
7984
- <Show20 when={[rowKey(), render()]} keyed>
8432
+ <Show21 when={[rowKey(), render()]} keyed>
7985
8433
  {([, renderContent]) => renderContent(ctx)}
7986
- </Show20>
8434
+ </Show21>
7987
8435
  </div>
7988
8436
  </div>}
7989
- </Show20>
8437
+ </Show21>
7990
8438
  </div>
7991
8439
  </div>
7992
8440
  );
@@ -8009,7 +8457,7 @@ import { createSaveStatusController } from "@ishibashi0112/spreadsheet-grid-core
8009
8457
  import { DEFAULT_SERVER_SIDE_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
8010
8458
 
8011
8459
  // src/primitives/serverSide.ts
8012
- import { createMemo as createMemo25, untrack as untrack18 } from "solid-js";
8460
+ import { createMemo as createMemo26, untrack as untrack18 } from "solid-js";
8013
8461
  import {
8014
8462
  createServerSideRowModel
8015
8463
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/serverSideRowModel";
@@ -8046,38 +8494,38 @@ function createServerSide(args) {
8046
8494
  };
8047
8495
  const snapshot2 = createExternalStoreSignal(controller, "serverSideRowModelStore");
8048
8496
  return {
8049
- rowModel: createMemo25(() => snapshot2().rowModel),
8497
+ rowModel: createMemo26(() => snapshot2().rowModel),
8050
8498
  rowCount: () => snapshot2().rowCount,
8051
- loadError: createMemo25(() => snapshot2().loadError),
8052
- writeError: createMemo25(() => snapshot2().writeError),
8499
+ loadError: createMemo26(() => snapshot2().loadError),
8500
+ writeError: createMemo26(() => snapshot2().writeError),
8053
8501
  // 追加(1.5.0 / serverSideRefetch="keep"): 取り直しの間、前の行を見せているか。
8054
- refetching: createMemo25(() => snapshot2().refetching),
8502
+ refetching: createMemo26(() => snapshot2().refetching),
8055
8503
  isRowLoaded: controller.isRowLoaded,
8056
8504
  requestRange,
8057
8505
  refresh: controller.refresh,
8058
8506
  retryFailedBlocks: controller.retryFailedBlocks,
8059
8507
  // 書き戻し先(dataSource.updateRows)があるか。無い間はシェルがすべてのセルを編集できないようにする。
8060
- canUpdateRows: createMemo25(() => args().dataSource?.updateRows !== void 0),
8508
+ canUpdateRows: createMemo26(() => args().dataSource?.updateRows !== void 0),
8061
8509
  applyCellEdits: controller.applyCellEdits
8062
8510
  };
8063
8511
  }
8064
8512
 
8065
8513
  // src/view/GridServerSideErrorBars.tsx
8066
- import { Show as Show21, createSignal as createSignal15 } from "solid-js";
8067
- import { formatLocaleText as formatLocaleText12 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8514
+ import { Show as Show22, createSignal as createSignal15 } from "solid-js";
8515
+ import { formatLocaleText as formatLocaleText13 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8068
8516
  function GridServerSideErrorBars(props) {
8069
8517
  const [dismissedLoadError, setDismissedLoadError] = createSignal15(null);
8070
8518
  const [dismissedWriteError, setDismissedWriteError] = createSignal15(null);
8071
8519
  const texts = () => props.localeTexts;
8072
8520
  const shownLoadError = () => props.loadError !== null && props.loadError !== dismissedLoadError() ? props.loadError : null;
8073
8521
  const shownWriteError = () => props.writeError !== null && props.writeError !== dismissedWriteError() ? props.writeError : null;
8074
- return <Show21 when={shownLoadError() !== null || shownWriteError() !== null}>
8522
+ return <Show22 when={shownLoadError() !== null || shownWriteError() !== null}>
8075
8523
  <div class="ssg-ssrm-error-bars">
8076
- <Show21 when={shownLoadError()}>
8524
+ <Show22 when={shownLoadError()}>
8077
8525
  {(loadError) => <div class={["ssg-ssrm-error-bar", props.slot?.className]} style={props.slot?.style} role="alert">
8078
8526
  <span class="ssg-ssrm-error-bar-dot" aria-hidden="true" />
8079
8527
  <span class="ssg-ssrm-error-bar-msg">
8080
- {formatLocaleText12(texts().loadFailed, { count: loadError().failedBlockCount })}
8528
+ {formatLocaleText13(texts().loadFailed, { count: loadError().failedBlockCount })}
8081
8529
  </span>
8082
8530
  <button type="button" class="ssg-ssrm-error-bar-retry" onClick={() => props.onRetry()}>
8083
8531
  {texts().retry}
@@ -8091,12 +8539,12 @@ function GridServerSideErrorBars(props) {
8091
8539
  ×
8092
8540
  </button>
8093
8541
  </div>}
8094
- </Show21>
8095
- <Show21 when={shownWriteError()}>
8542
+ </Show22>
8543
+ <Show22 when={shownWriteError()}>
8096
8544
  {(writeError) => <div class={["ssg-ssrm-error-bar", props.slot?.className]} style={props.slot?.style} role="alert">
8097
8545
  <span class="ssg-ssrm-error-bar-dot" aria-hidden="true" />
8098
8546
  <span class="ssg-ssrm-error-bar-msg">
8099
- {formatLocaleText12(texts().saveFailed, { count: writeError().failedRowCount })}
8547
+ {formatLocaleText13(texts().saveFailed, { count: writeError().failedRowCount })}
8100
8548
  </span>
8101
8549
  <button
8102
8550
  type="button"
@@ -8107,13 +8555,13 @@ function GridServerSideErrorBars(props) {
8107
8555
  ×
8108
8556
  </button>
8109
8557
  </div>}
8110
- </Show21>
8558
+ </Show22>
8111
8559
  </div>
8112
- </Show21>;
8560
+ </Show22>;
8113
8561
  }
8114
8562
 
8115
8563
  // src/view/GridBodySkeletonRow.tsx
8116
- import { For as For11, Show as Show22 } from "solid-js";
8564
+ import { For as For12, Show as Show23 } from "solid-js";
8117
8565
  var SKELETON_BAR_WIDTHS = ["62%", "46%", "78%", "54%"];
8118
8566
  function GridBodySkeletonRow(props) {
8119
8567
  return <div
@@ -8130,7 +8578,7 @@ function GridBodySkeletonRow(props) {
8130
8578
  transform: `translateY(${props.top}px)`
8131
8579
  }}
8132
8580
  >
8133
- <Show22 when={props.ownsRowHeader}>
8581
+ <Show23 when={props.ownsRowHeader}>
8134
8582
  <div
8135
8583
  role="rowheader"
8136
8584
  aria-colindex={1}
@@ -8154,12 +8602,12 @@ function GridBodySkeletonRow(props) {
8154
8602
  height: px(props.rowHeight)
8155
8603
  }}
8156
8604
  >
8157
- <Show22 when={props.showRowCheckbox} fallback={props.rowIndex + 1}>
8605
+ <Show23 when={props.showRowCheckbox} fallback={props.rowIndex + 1}>
8158
8606
  <RowSelectionCheckbox slot={props.slots.checkbox} state="unchecked" disabled />
8159
- </Show22>
8607
+ </Show23>
8160
8608
  </div>
8161
- </Show22>
8162
- <For11 each={props.entries} keyed={(entry) => entry.logicalIndex}>
8609
+ </Show23>
8610
+ <For12 each={props.entries} keyed={(entry) => entry.logicalIndex}>
8163
8611
  {(entry) => {
8164
8612
  const cell = () => ({ row: props.rowIndex, col: entry().logicalIndex });
8165
8613
  return <div
@@ -8188,7 +8636,7 @@ function GridBodySkeletonRow(props) {
8188
8636
  />
8189
8637
  </div>;
8190
8638
  }}
8191
- </For11>
8639
+ </For12>
8192
8640
  </div>;
8193
8641
  }
8194
8642
 
@@ -8205,7 +8653,7 @@ var serverSideFeature = {
8205
8653
  import { createChangeHighlightController } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/changeHighlightController";
8206
8654
 
8207
8655
  // src/view/CopyRangeOverlay.tsx
8208
- import { Show as Show23 } from "solid-js";
8656
+ import { Show as Show24 } from "solid-js";
8209
8657
  var placement = (props, rect) => ({
8210
8658
  position: "absolute",
8211
8659
  left: px(props.leadingWidth + rect.left),
@@ -8214,18 +8662,18 @@ var placement = (props, rect) => ({
8214
8662
  height: px(rect.height)
8215
8663
  });
8216
8664
  function CopyRangeOverlay(props) {
8217
- return <Show23 when={props.rect}>
8665
+ return <Show24 when={props.rect}>
8218
8666
  {(rect) => <div
8219
8667
  class={["ssg-copy-range-overlay", props.slot?.className]}
8220
8668
  style={{ ...props.slot?.style, ...placement(props, rect()) }}
8221
8669
  data-ssg-copy-range=""
8222
8670
  />}
8223
- </Show23>;
8671
+ </Show24>;
8224
8672
  }
8225
8673
  function ColumnHoverOverlay(props) {
8226
- return <Show23 when={props.rect}>
8674
+ return <Show24 when={props.rect}>
8227
8675
  {(rect) => <div class="ssg-col-hover-overlay" style={placement(props, rect())} data-ssg-col-hover="" />}
8228
- </Show23>;
8676
+ </Show24>;
8229
8677
  }
8230
8678
 
8231
8679
  // src/features/motionExtras.ts
@@ -8239,11 +8687,11 @@ var motionExtrasFeature = {
8239
8687
  import { DEFAULT_PINNED_ROWS_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
8240
8688
 
8241
8689
  // src/view/GridPinnedRows.tsx
8242
- import { For as For12, Show as Show24, createMemo as createMemo26 } from "solid-js";
8690
+ import { For as For13, Show as Show25, createMemo as createMemo27 } from "solid-js";
8243
8691
  import { resolveSlotProps as resolveSlotProps3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/slotProps";
8244
8692
  import { isSyntheticColumnKey as isSyntheticColumnKey3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/detailRow";
8245
8693
  import { isCheckboxChecked as isCheckboxChecked2 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/checkboxEditor";
8246
- import { formatLocaleText as formatLocaleText13 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8694
+ import { formatLocaleText as formatLocaleText14 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8247
8695
  import { getCellValue as getCellValue5 } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/permissions";
8248
8696
  var noop4 = () => {
8249
8697
  };
@@ -8252,18 +8700,18 @@ function GridPinnedRows(props) {
8252
8700
  const texts = useFeatureLocaleText();
8253
8701
  const hidden = () => !props.ownsRowHeader && props.entries.length === 0;
8254
8702
  return <>
8255
- <Show24 when={props.bodyHeight > 0}>
8703
+ <Show25 when={props.bodyHeight > 0}>
8256
8704
  <div aria-hidden="true" style={{ height: px(props.bodyHeight) }} />
8257
- </Show24>
8705
+ </Show25>
8258
8706
  <div
8259
8707
  class={["ssg-pinned-rows", `ssg-pinned-rows--${props.position}`]}
8260
8708
  style={{ [props.position]: px(props.stickyOffset), height: px(props.rows.length * props.rowHeight) }}
8261
8709
  onPointerEnter={() => props.onPointerEnter()}
8262
8710
  >
8263
- <For12 each={props.rows} keyed={false}>
8711
+ <For13 each={props.rows} keyed={false}>
8264
8712
  {(row, index) => {
8265
8713
  const rowKey = () => props.rowKeyGetter(row(), index);
8266
- const rowSlot = createMemo26(
8714
+ const rowSlot = createMemo27(
8267
8715
  () => resolveSlotProps3(
8268
8716
  props.getRowClassName?.(row(), index, {
8269
8717
  row: row(),
@@ -8284,7 +8732,7 @@ function GridPinnedRows(props) {
8284
8732
  class={["ssg-pinned-row", rowSlot().className]}
8285
8733
  style={{ ...rowSlot().style, height: px(props.rowHeight), top: px(index * props.rowHeight) }}
8286
8734
  >
8287
- <Show24 when={props.ownsRowHeader}>
8735
+ <Show25 when={props.ownsRowHeader}>
8288
8736
  <div
8289
8737
  role="rowheader"
8290
8738
  aria-colindex={1}
@@ -8307,7 +8755,7 @@ function GridPinnedRows(props) {
8307
8755
  class="ssg-pinned-row-icon"
8308
8756
  viewBox="0 0 16 16"
8309
8757
  role="img"
8310
- aria-label={formatLocaleText13(
8758
+ aria-label={formatLocaleText14(
8311
8759
  props.position === "top" ? texts().pinnedTopRow : texts().pinnedBottomRow,
8312
8760
  { row: index + 1 }
8313
8761
  )}
@@ -8315,14 +8763,14 @@ function GridPinnedRows(props) {
8315
8763
  <path d={PIN_ICON_PATH} />
8316
8764
  </svg>
8317
8765
  </div>
8318
- </Show24>
8319
- <For12 each={props.entries} keyed={(entry) => entry.column.key}>
8766
+ </Show25>
8767
+ <For13 each={props.entries} keyed={(entry) => entry.column.key}>
8320
8768
  {(entry) => {
8321
- const unbound = createMemo26(() => entry().column);
8769
+ const unbound = createMemo27(() => entry().column);
8322
8770
  const column = () => unbound();
8323
- const value = createMemo26(() => getCellValue5(row(), unbound()));
8324
- const colIndex = createMemo26(() => entry().logicalIndex);
8325
- const ctx = createMemo26(
8771
+ const value = createMemo27(() => getCellValue5(row(), unbound()));
8772
+ const colIndex = createMemo27(() => entry().logicalIndex);
8773
+ const ctx = createMemo27(
8326
8774
  () => ({
8327
8775
  row: row(),
8328
8776
  rowIndex: index,
@@ -8338,19 +8786,19 @@ function GridPinnedRows(props) {
8338
8786
  pinned: props.position
8339
8787
  })
8340
8788
  );
8341
- const cellSlot = createMemo26(() => {
8789
+ const cellSlot = createMemo27(() => {
8342
8790
  const cellClassName = column().cellClassName;
8343
8791
  return resolveSlotProps3(
8344
8792
  typeof cellClassName === "function" ? cellClassName(ctx()) : cellClassName
8345
8793
  );
8346
8794
  });
8347
8795
  const rules = () => props.conditionalFormat ? column().conditionalFormat : void 0;
8348
- const dataBar = createMemo26(() => {
8796
+ const dataBar = createMemo27(() => {
8349
8797
  const feature = props.conditionalFormat;
8350
8798
  const format = rules()?.dataBar;
8351
8799
  return feature && format ? feature.resolveDataBar(format, value(), props.conditionalFormatStats.get(unbound().key)) : null;
8352
8800
  });
8353
- const scaleBackground = createMemo26(() => {
8801
+ const scaleBackground = createMemo27(() => {
8354
8802
  const feature = props.conditionalFormat;
8355
8803
  const format = rules()?.colorScale;
8356
8804
  return feature && format ? feature.resolveColorScaleBackground(format, value(), props.conditionalFormatStats.get(unbound().key)) : null;
@@ -8360,7 +8808,7 @@ function GridPinnedRows(props) {
8360
8808
  const format = rules()?.dataBar;
8361
8809
  return bar ? bar.negative ? format?.negativeColor : format?.color : void 0;
8362
8810
  };
8363
- const content = createMemo26(() => {
8811
+ const content = createMemo27(() => {
8364
8812
  const current = column();
8365
8813
  if (isSyntheticColumnKey3(current.key)) {
8366
8814
  return null;
@@ -8422,7 +8870,7 @@ function GridPinnedRows(props) {
8422
8870
  height: px(props.rowHeight)
8423
8871
  }}
8424
8872
  >
8425
- <Show24 when={dataBar()}>
8873
+ <Show25 when={dataBar()}>
8426
8874
  {(bar) => <span
8427
8875
  class={["ssg-cf-bar", { "ssg-cf-bar--negative": bar().negative }]}
8428
8876
  style={{
@@ -8432,14 +8880,14 @@ function GridPinnedRows(props) {
8432
8880
  }}
8433
8881
  aria-hidden="true"
8434
8882
  />}
8435
- </Show24>
8883
+ </Show25>
8436
8884
  {content()}
8437
8885
  </div>;
8438
8886
  }}
8439
- </For12>
8887
+ </For13>
8440
8888
  </div>;
8441
8889
  }}
8442
- </For12>
8890
+ </For13>
8443
8891
  </div>
8444
8892
  </>;
8445
8893
  }
@@ -8454,7 +8902,7 @@ var pinnedRowsFeature = {
8454
8902
  import { DEFAULT_ROW_DRAG_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
8455
8903
 
8456
8904
  // src/primitives/rowDrag.ts
8457
- import { createEffect as createEffect9, createMemo as createMemo27, untrack as untrack19 } from "solid-js";
8905
+ import { createEffect as createEffect9, createMemo as createMemo28, untrack as untrack19 } from "solid-js";
8458
8906
  import {
8459
8907
  createRowDragController
8460
8908
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/rowDragController";
@@ -8469,10 +8917,10 @@ function createRowDrag(inputs) {
8469
8917
  const leftIndicatorRef = { current: null };
8470
8918
  const centerIndicatorRef = { current: null };
8471
8919
  const rightIndicatorRef = { current: null };
8472
- const canDropAt = createMemo27(() => createRowDropCheck(inputs.canDropRow(), inputs.rows(), inputs.resolveRowKey()));
8920
+ const canDropAt = createMemo28(() => createRowDropCheck(inputs.canDropRow(), inputs.rows(), inputs.resolveRowKey()));
8473
8921
  const getRowDragLabel = (viewIndex) => resolveRowDragLabel(untrack19(inputs.rowModel), untrack19(inputs.visibleColumns), viewIndex, untrack19(inputs.dragRowLabel));
8474
8922
  const getDragRow = (viewIndex) => getDragRowToken(untrack19(inputs.rowModel), viewIndex);
8475
- const locateDragRow = createMemo27(() => {
8923
+ const locateDragRow = createMemo28(() => {
8476
8924
  const rowModel = inputs.rowModel();
8477
8925
  const hasRowKeys = inputs.hasRowKeys();
8478
8926
  return (token, hint) => locateDragRowToken(rowModel, hasRowKeys, token, hint);
@@ -8510,7 +8958,7 @@ function createRowDrag(inputs) {
8510
8958
  }
8511
8959
 
8512
8960
  // src/view/RowDragHandle.tsx
8513
- var SVG_NOT_FOCUSABLE4 = { focusable: "false" };
8961
+ var SVG_NOT_FOCUSABLE5 = { focusable: "false" };
8514
8962
  function RowDragHandle(props) {
8515
8963
  return <span
8516
8964
  class={["ssg-row-drag-handle", { "ssg-row-drag-handle--disabled": !props.operable }]}
@@ -8522,7 +8970,7 @@ function RowDragHandle(props) {
8522
8970
  }
8523
8971
  }}
8524
8972
  >
8525
- <svg width="8" height="14" viewBox="0 0 8 14" fill="currentColor" aria-hidden="true" {...SVG_NOT_FOCUSABLE4}>
8973
+ <svg width="8" height="14" viewBox="0 0 8 14" fill="currentColor" aria-hidden="true" {...SVG_NOT_FOCUSABLE5}>
8526
8974
  <circle cx="2" cy="3" r="1" />
8527
8975
  <circle cx="6" cy="3" r="1" />
8528
8976
  <circle cx="2" cy="7" r="1" />
@@ -8546,7 +8994,7 @@ import { resolveScrollHintOptions } from "@ishibashi0112/spreadsheet-grid-core/i
8546
8994
  import { DEFAULT_SCROLL_HINT_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
8547
8995
 
8548
8996
  // src/view/GridScrollHint.tsx
8549
- import { For as For13, Show as Show25, createMemo as createMemo28, createSignal as createSignal16, createEffect as createEffect10 } from "solid-js";
8997
+ import { For as For14, Show as Show26, createMemo as createMemo29, createSignal as createSignal16, createEffect as createEffect10 } from "solid-js";
8550
8998
  import { physicalToLogicalScrollTop as physicalToLogicalScrollTop3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/verticalGeometry";
8551
8999
  import { resolveDataRowNumber as resolveDataRowNumber3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/labelRows";
8552
9000
  import {
@@ -8555,7 +9003,7 @@ import {
8555
9003
  computeScrollHintTrackPointerScrollTop,
8556
9004
  resolveScrollHintDetail
8557
9005
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/scrollHint";
8558
- import { formatLocaleText as formatLocaleText14 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
9006
+ import { formatLocaleText as formatLocaleText15 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8559
9007
  var SCROLL_HINT_LINGER_MS = 1e3;
8560
9008
  var SCROLL_HINT_BUBBLE_GAP_PX = 8;
8561
9009
  var SCROLL_HINT_GUTTER_WIDTH_PX = 14;
@@ -8572,10 +9020,10 @@ function GridScrollHint(props) {
8572
9020
  let lingerTimer = null;
8573
9021
  let dragGrab = null;
8574
9022
  let gutter;
8575
- const scrollbar = createMemo28(() => props.options.scrollbar);
9023
+ const scrollbar = createMemo29(() => props.options.scrollbar);
8576
9024
  const trackTop = () => scrollbar() ? props.headerHeight : 0;
8577
9025
  const trackHeight = () => Math.max(scrollbar() ? props.viewportHeight - props.headerHeight : props.viewportHeight, 0);
8578
- const track = createMemo28(
9026
+ const track = createMemo29(
8579
9027
  () => computeScrollHintTrack({
8580
9028
  scrollTop: props.scrollTop,
8581
9029
  contentHeight: props.headerHeight + props.physicalBodyHeight,
@@ -8583,7 +9031,7 @@ function GridScrollHint(props) {
8583
9031
  trackHeight: trackHeight()
8584
9032
  })
8585
9033
  );
8586
- const shown = createMemo28(() => track() !== null && props.rowMetrics.rowCount > 0);
9034
+ const shown = createMemo29(() => track() !== null && props.rowMetrics.rowCount > 0);
8587
9035
  createEffect10(scrollbar, (customScrollbar) => {
8588
9036
  const element = props.scrollContainerRef.current;
8589
9037
  if (!element) {
@@ -8652,12 +9100,12 @@ function GridScrollHint(props) {
8652
9100
  );
8653
9101
  const rulerHeight = () => Math.max(props.viewportHeight - props.headerHeight, 0);
8654
9102
  const labelCount = () => props.labelViewIndexes?.length ?? 0;
8655
- const dataRowCount = createMemo28(() => Math.max(props.rowMetrics.rowCount - labelCount(), 0));
9103
+ const dataRowCount = createMemo29(() => Math.max(props.rowMetrics.rowCount - labelCount(), 0));
8656
9104
  const rowNumberOf = (viewIndex) => {
8657
9105
  const labels = props.labelViewIndexes;
8658
9106
  return labels && labels.length > 0 ? resolveDataRowNumber3(labels, viewIndex) : viewIndex + 1;
8659
9107
  };
8660
- const rulerTicks = createMemo28(
9108
+ const rulerTicks = createMemo29(
8661
9109
  () => props.options.ruler ? computeScrollHintRulerTicks({
8662
9110
  rowCount: dataRowCount(),
8663
9111
  rulerHeight: rulerHeight(),
@@ -8667,7 +9115,7 @@ function GridScrollHint(props) {
8667
9115
  const visible = () => props.options.trigger === "always" || scrollActive() || props.options.trigger === "hover" && hovered();
8668
9116
  const rulerVisible = () => visible() || trackPointerY() !== null;
8669
9117
  const rightInset = () => scrollbar() ? SCROLL_HINT_GUTTER_WIDTH_PX : scrollbarWidth();
8670
- const topRowIndex = createMemo28(() => {
9118
+ const topRowIndex = createMemo29(() => {
8671
9119
  const current = track();
8672
9120
  if (current === null) {
8673
9121
  return 0;
@@ -8682,8 +9130,8 @@ function GridScrollHint(props) {
8682
9130
  rowIndex,
8683
9131
  rowData: props.rowModel.getRow(rowIndex)
8684
9132
  });
8685
- const detail = createMemo28(() => detailOf(topRowIndex()));
8686
- const jumpPreview = createMemo28(() => {
9133
+ const detail = createMemo29(() => detailOf(topRowIndex()));
9134
+ const jumpPreview = createMemo29(() => {
8687
9135
  const pointerY = trackPointerY();
8688
9136
  const current = track();
8689
9137
  if (!props.options.ruler || pointerY === null || dragging() || current === null) {
@@ -8750,24 +9198,24 @@ function GridScrollHint(props) {
8750
9198
  setTrackPointerY(null);
8751
9199
  }
8752
9200
  };
8753
- return <Show25 when={shown()}>
9201
+ return <Show26 when={shown()}>
8754
9202
  <div class={["ssg-scroll-hint", props.slot?.className]} style={props.slot?.style} aria-hidden="true">
8755
- <Show25 when={props.options.ruler && rulerTicks().length > 0}>
9203
+ <Show26 when={props.options.ruler && rulerTicks().length > 0}>
8756
9204
  <div
8757
9205
  class={["ssg-scroll-hint-ruler", { "ssg-scroll-hint-ruler--visible": rulerVisible() }]}
8758
9206
  style={{ top: px(props.headerHeight), right: px(rightInset()) }}
8759
9207
  >
8760
- <For13 each={rulerTicks()} keyed={(tick) => tick.row}>
9208
+ <For14 each={rulerTicks()} keyed={(tick) => tick.row}>
8761
9209
  {(tick) => <div
8762
9210
  class="ssg-scroll-hint-ruler-tick"
8763
9211
  style={{ top: px(Math.min(Math.max(tick().y, 6), Math.max(rulerHeight() - 6, 6))) }}
8764
9212
  >
8765
9213
  <span class="ssg-scroll-hint-ruler-label">{tick().label}</span>
8766
9214
  </div>}
8767
- </For13>
9215
+ </For14>
8768
9216
  </div>
8769
- </Show25>
8770
- <Show25 when={jumpPreview()}>
9217
+ </Show26>
9218
+ <Show26 when={jumpPreview()}>
8771
9219
  {(preview) => <div class="ssg-scroll-hint-jumpline" style={{ top: px(preview().lineY), right: px(rightInset()) }}>
8772
9220
  <span
8773
9221
  class={[
@@ -8777,17 +9225,17 @@ function GridScrollHint(props) {
8777
9225
  }
8778
9226
  ]}
8779
9227
  >
8780
- {formatLocaleText14(texts().scrollHintJump, { row: rowNumberOf(preview().rowIndex).toLocaleString() })}
8781
- <Show25 when={preview().detail !== null}>
9228
+ {formatLocaleText15(texts().scrollHintJump, { row: rowNumberOf(preview().rowIndex).toLocaleString() })}
9229
+ <Show26 when={preview().detail !== null}>
8782
9230
  <span class="ssg-scroll-hint-jumpline-detail">
8783
9231
  {` ${texts().scrollHintJumpSeparator} `}
8784
9232
  {preview().detail}
8785
9233
  </span>
8786
- </Show25>
9234
+ </Show26>
8787
9235
  </span>
8788
9236
  </div>}
8789
- </Show25>
8790
- <Show25 when={props.options.bubble}>
9237
+ </Show26>
9238
+ <Show26 when={props.options.bubble}>
8791
9239
  <div
8792
9240
  class={["ssg-scroll-hint-bubble", { "ssg-scroll-hint-bubble--visible": visible() }]}
8793
9241
  style={{
@@ -8796,17 +9244,17 @@ function GridScrollHint(props) {
8796
9244
  }}
8797
9245
  >
8798
9246
  <span class="ssg-scroll-hint-bubble-main">
8799
- {formatLocaleText14(texts().scrollHintRow, { row: rowNumberOf(topRowIndex()).toLocaleString() })}
9247
+ {formatLocaleText15(texts().scrollHintRow, { row: rowNumberOf(topRowIndex()).toLocaleString() })}
8800
9248
  <span class="ssg-scroll-hint-bubble-total">
8801
9249
  {" "}/ {dataRowCount().toLocaleString()}
8802
9250
  </span>
8803
9251
  </span>
8804
- <Show25 when={detail() !== null}>
9252
+ <Show26 when={detail() !== null}>
8805
9253
  <span class="ssg-scroll-hint-bubble-detail">{detail()}</span>
8806
- </Show25>
9254
+ </Show26>
8807
9255
  </div>
8808
- </Show25>
8809
- <Show25 when={scrollbar()}>
9256
+ </Show26>
9257
+ <Show26 when={scrollbar()}>
8810
9258
  <div
8811
9259
  ref={(element) => {
8812
9260
  gutter = element;
@@ -8830,9 +9278,9 @@ function GridScrollHint(props) {
8830
9278
  style={{ top: px(track()?.thumbTop ?? 0), height: px(track()?.thumbHeight ?? 0) }}
8831
9279
  />
8832
9280
  </div>
8833
- </Show25>
9281
+ </Show26>
8834
9282
  </div>
8835
- </Show25>;
9283
+ </Show26>;
8836
9284
  }
8837
9285
 
8838
9286
  // src/features/scrollHint.ts
@@ -8842,11 +9290,319 @@ var scrollHintFeature = {
8842
9290
  localeText: DEFAULT_SCROLL_HINT_LOCALE_TEXT
8843
9291
  };
8844
9292
 
9293
+ // src/features/selectSearch.ts
9294
+ import { DEFAULT_SELECT_SEARCH_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
9295
+
9296
+ // src/editors/SearchSelectCellEditor.tsx
9297
+ import { For as For15, Show as Show27, createEffect as createEffect11, createMemo as createMemo30, createRenderEffect as createRenderEffect7, createSignal as createSignal17, createUniqueId as createUniqueId6, onCleanup as onCleanup13, onSettled as onSettled9, untrack as untrack20 } from "solid-js";
9298
+ import { Portal as Portal5 } from "@solidjs/web";
9299
+ import {
9300
+ computeSelectPopoverPlacement as computeSelectPopoverPlacement2,
9301
+ resolveSelectOptionRowHeight as resolveSelectOptionRowHeight2,
9302
+ SELECT_SEARCH_POPOVER_MIN_WIDTH,
9303
+ createPointerMoveFilter as createPointerMoveFilter2
9304
+ } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectEditorState";
9305
+ import { withAnchorVisibility as withAnchorVisibility2 } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/editorVisibleBounds";
9306
+ import { revealOverflowTitle as revealOverflowTitle2 } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/overflowTitle";
9307
+ import {
9308
+ resolveSelectListWindow,
9309
+ revealSelectListRow,
9310
+ splitSelectSearchText
9311
+ } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectSearch";
9312
+ import {
9313
+ createSearchSelectEditorController
9314
+ } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/searchSelectEditorController";
9315
+ import { isImeComposingKeyEvent as isImeComposingKeyEvent4 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
9316
+ function MatchedText(props) {
9317
+ const parts = createMemo30(() => splitSelectSearchText(props.text, props.range));
9318
+ return <For15 each={parts()} keyed={false}>
9319
+ {(part) => <Show27 when={part().match} fallback={part().text}>
9320
+ <mark class="ssg-select-editor-match">{part().text}</mark>
9321
+ </Show27>}
9322
+ </For15>;
9323
+ }
9324
+ function SearchSelectCellEditor(props) {
9325
+ const texts = useFeatureLocaleText();
9326
+ const portal = useGridPortal();
9327
+ const [input, setInput] = createSignal17();
9328
+ const [scroller, setScroller] = createSignal17();
9329
+ const [popover, setPopover] = createSignal17();
9330
+ createTopAlignedInput(input, () => props.alignTop ?? false, () => props.cellHeight ?? 0);
9331
+ const listId = createUniqueId6();
9332
+ const pointerMoved = createPointerMoveFilter2();
9333
+ const [error, setError] = createSignal17(null);
9334
+ const commitWithResult = (committed, direction, option, forwardText) => {
9335
+ const result = props.onCommit(committed, direction, option, forwardText);
9336
+ if (result && result.status === "rejected") {
9337
+ setError(result.message);
9338
+ }
9339
+ return result;
9340
+ };
9341
+ const controller = untrack20(
9342
+ () => createSearchSelectEditorController({
9343
+ options: props.options,
9344
+ value: props.value,
9345
+ initialText: props.initialText,
9346
+ displayText: props.displayText,
9347
+ allowFreeText: props.allowFreeText,
9348
+ load: props.load ? (query, signal) => props.load(query, signal) : void 0,
9349
+ onCommit: commitWithResult,
9350
+ onCancel: () => props.onCancel()
9351
+ })
9352
+ );
9353
+ const [snapshot2, setSnapshot] = createSignal17(controller.getSnapshot(), { name: "searchSelectSnapshot" });
9354
+ createEffect11(
9355
+ () => props.options,
9356
+ outsideGraphApply((options) => controller.setOptions(options)),
9357
+ { name: "searchSelectOptions" }
9358
+ );
9359
+ props.onRegisterFlush?.(untrack20(() => props.allowFreeText) ? controller.flush : null);
9360
+ const rowHeight = resolveSelectOptionRowHeight2();
9361
+ const [placement2, setPlacement] = createSignal17(null);
9362
+ const [scrollTop, setScrollTop] = createSignal17(0);
9363
+ const listRows = createMemo30(() => Math.max(snapshot2().results.length, 1));
9364
+ const viewportHeight = createMemo30(() => Math.min(listRows(), 8) * rowHeight);
9365
+ const measure = () => {
9366
+ const element = untrack20(input);
9367
+ if (!element) {
9368
+ return;
9369
+ }
9370
+ setPlacement(
9371
+ withAnchorVisibility2(
9372
+ element,
9373
+ computeSelectPopoverPlacement2(
9374
+ element.getBoundingClientRect(),
9375
+ untrack20(listRows),
9376
+ window.innerWidth,
9377
+ window.innerHeight,
9378
+ rowHeight,
9379
+ SELECT_SEARCH_POPOVER_MIN_WIDTH
9380
+ )
9381
+ )
9382
+ );
9383
+ };
9384
+ const reveal = (element, height) => {
9385
+ if (!element) {
9386
+ return;
9387
+ }
9388
+ const current = controller.getSnapshot().highlight;
9389
+ const next = current < 0 ? 0 : revealSelectListRow(current, element.scrollTop, height, rowHeight);
9390
+ if (next !== element.scrollTop) {
9391
+ element.scrollTop = next;
9392
+ }
9393
+ setScrollTop(next);
9394
+ };
9395
+ let disposed = false;
9396
+ onSettled9(() => {
9397
+ const element = untrack20(input);
9398
+ if (element) {
9399
+ element.focus();
9400
+ if (untrack20(() => props.initialText) === void 0) {
9401
+ element.select();
9402
+ } else {
9403
+ element.setSelectionRange(element.value.length, element.value.length);
9404
+ }
9405
+ }
9406
+ setSnapshot(controller.getSnapshot());
9407
+ const unsubscribe = controller.subscribe(() => setSnapshot(controller.getSnapshot()));
9408
+ const detach = controller.attach();
9409
+ measure();
9410
+ window.addEventListener("resize", measure);
9411
+ window.addEventListener("scroll", measure, true);
9412
+ return () => {
9413
+ window.removeEventListener("resize", measure);
9414
+ window.removeEventListener("scroll", measure, true);
9415
+ detach();
9416
+ unsubscribe();
9417
+ };
9418
+ });
9419
+ onCleanup13(() => {
9420
+ disposed = true;
9421
+ });
9422
+ let measuredKey;
9423
+ createEffect11(
9424
+ () => `${listRows()}:${props.cellTop ?? 0}:${props.cellLeft ?? 0}`,
9425
+ outsideGraphApply((key) => {
9426
+ const previous = measuredKey;
9427
+ measuredKey = key;
9428
+ if (previous !== void 0 && previous !== key) {
9429
+ measure();
9430
+ }
9431
+ }),
9432
+ { name: "searchSelectMeasure" }
9433
+ );
9434
+ createEffect11(
9435
+ () => [snapshot2().results, scroller(), viewportHeight()],
9436
+ outsideGraphApply(([, element, height]) => reveal(element, height)),
9437
+ { name: "searchSelectReveal" }
9438
+ );
9439
+ const handleKeyDown = (event) => {
9440
+ if (isImeComposingKeyEvent4(event)) {
9441
+ return;
9442
+ }
9443
+ const before = controller.getSnapshot().highlight;
9444
+ if (controller.keyDown(toEditorKeyEvent(event), props.enterMove) && controller.getSnapshot().highlight !== before) {
9445
+ setError(null);
9446
+ reveal(untrack20(scroller), untrack20(viewportHeight));
9447
+ }
9448
+ };
9449
+ const results = () => snapshot2().results;
9450
+ const status = () => snapshot2().status;
9451
+ const visible = createMemo30(() => {
9452
+ const list = results();
9453
+ const window_ = resolveSelectListWindow(scrollTop(), viewportHeight(), rowHeight, list.length);
9454
+ return list.slice(window_.start, window_.end).map((result, offset) => ({ result, index: window_.start + offset }));
9455
+ });
9456
+ const listShown = () => placement2() !== null && results().length > 0;
9457
+ const activeId = () => {
9458
+ const { highlight } = snapshot2();
9459
+ return listShown() && highlight >= 0 && results()[highlight] ? `${listId}-${highlight}` : void 0;
9460
+ };
9461
+ const freeTextOnly = () => props.allowFreeText === true && status() === "ready" && snapshot2().filtered && results().length === 0;
9462
+ const mount = () => placement2() !== null && !freeTextOnly() ? portal.container() : null;
9463
+ const initialText = untrack20(() => snapshot2().text);
9464
+ const view = <>
9465
+ <input
9466
+ ref={setInput}
9467
+ type="text"
9468
+ value={initialText}
9469
+ onInput={(event) => {
9470
+ setError(null);
9471
+ controller.input(event.currentTarget.value, event.isComposing);
9472
+ }}
9473
+ onCompositionEnd={(event) => controller.input(event.currentTarget.value, false)}
9474
+ onKeyDown={handleKeyDown}
9475
+ onBlur={() => {
9476
+ if (!disposed) {
9477
+ controller.blur();
9478
+ }
9479
+ }}
9480
+ role="combobox"
9481
+ aria-autocomplete="list"
9482
+ aria-label={props.ariaLabel}
9483
+ aria-expanded={listShown() ? "true" : "false"}
9484
+ aria-controls={listShown() ? listId : void 0}
9485
+ aria-activedescendant={activeId()}
9486
+ aria-invalid={error() !== null ? "true" : void 0}
9487
+ autocomplete="off"
9488
+ spellcheck="false"
9489
+ class={[
9490
+ "ssg-cell-editor-input",
9491
+ "ssg-cell-editor-input--search",
9492
+ { "ssg-cell-editor-input--invalid": error() !== null }
9493
+ ]}
9494
+ style={props.align ? { "text-align": props.align } : void 0}
9495
+ />
9496
+ <CellEditorError message={error()} />
9497
+ <Show27 when={mount()}>
9498
+ {(container) => <Portal5 mount={container()}>
9499
+ <div
9500
+ ref={setPopover}
9501
+ class={[
9502
+ "ssg-select-editor-popover",
9503
+ "ssg-select-editor-popover--search",
9504
+ { "ssg-select-editor-popover--loading": status() === "loading" && results().length > 0 },
9505
+ props.themeClassName,
9506
+ props.popoverSlot?.className
9507
+ ]}
9508
+ style={{
9509
+ ...props.popoverSlot?.style,
9510
+ left: px(placement2()?.left ?? 0),
9511
+ top: px(placement2()?.top ?? 0),
9512
+ width: px(placement2()?.width ?? 0),
9513
+ "max-height": px(placement2()?.maxHeight ?? 0),
9514
+ visibility: placement2()?.hidden ? "hidden" : void 0
9515
+ }}
9516
+ onPointerDown={(event) => event.preventDefault()}
9517
+ >
9518
+ <Show27 when={status() === "error"}>
9519
+ <div class="ssg-select-editor-empty ssg-select-editor-error" role="alert">
9520
+ <span class="ssg-select-editor-error-text" title={snapshot2().errorMessage ?? void 0}>
9521
+ {texts().selectSearchFailed}
9522
+ </span>
9523
+ <button type="button" class="ssg-select-editor-retry" tabindex={-1} onClick={() => controller.retry()}>
9524
+ {texts().retry}
9525
+ </button>
9526
+ </div>
9527
+ </Show27>
9528
+ <Show27 when={status() !== "error" && results().length === 0}>
9529
+ <div class="ssg-select-editor-empty" role="status">
9530
+ {status() === "loading" ? texts().selectSearchLoading : snapshot2().filtered ? texts().selectSearchNoMatch : texts().noOptions}
9531
+ </div>
9532
+ </Show27>
9533
+ <Show27 when={results().length > 0}>
9534
+ <div
9535
+ ref={setScroller}
9536
+ role="listbox"
9537
+ id={listId}
9538
+ aria-label={props.ariaLabel}
9539
+ aria-busy={status() === "loading" ? "true" : void 0}
9540
+ class="ssg-select-editor-scroller"
9541
+ style={{ height: px(viewportHeight()) }}
9542
+ onScroll={(event) => setScrollTop(event.currentTarget.scrollTop)}
9543
+ >
9544
+ <div class="ssg-select-editor-rows" role="presentation" style={{ height: px(results().length * rowHeight) }}>
9545
+ <For15 each={visible()} keyed={false}>
9546
+ {(item) => <div
9547
+ id={`${listId}-${item().index}`}
9548
+ role="option"
9549
+ aria-selected={item().index === snapshot2().highlight ? "true" : "false"}
9550
+ aria-setsize={results().length}
9551
+ aria-posinset={item().index + 1}
9552
+ class={[
9553
+ "ssg-select-editor-option",
9554
+ { "ssg-select-editor-option--highlighted": item().index === snapshot2().highlight }
9555
+ ]}
9556
+ style={{ top: px(item().index * rowHeight) }}
9557
+ onClick={() => controller.choose(untrack20(item).index)}
9558
+ onPointerEnter={(event) => revealOverflowTitle2(event.currentTarget)}
9559
+ onPointerMove={(event) => {
9560
+ if (pointerMoved(event)) {
9561
+ controller.hover(untrack20(item).index);
9562
+ }
9563
+ }}
9564
+ >
9565
+ <span class="ssg-select-editor-option-label">
9566
+ <MatchedText text={item().result.option.label} range={item().result.labelMatch} />
9567
+ </span>
9568
+ <Show27 when={item().result.option.description}>
9569
+ {(description) => <span class="ssg-select-editor-option-description">
9570
+ <MatchedText text={description()} range={item().result.descriptionMatch} />
9571
+ </span>}
9572
+ </Show27>
9573
+ </div>}
9574
+ </For15>
9575
+ </div>
9576
+ </div>
9577
+ </Show27>
9578
+ </div>
9579
+ </Portal5>}
9580
+ </Show27>
9581
+ </>;
9582
+ createPortalTokens(popover, () => props.themeClassName, placement2);
9583
+ createRenderEffect7(
9584
+ () => [input(), snapshot2().text],
9585
+ ([element, text]) => {
9586
+ if (element && element.value !== text) {
9587
+ element.value = text;
9588
+ }
9589
+ },
9590
+ { name: "searchSelectInputText" }
9591
+ );
9592
+ return view;
9593
+ }
9594
+
9595
+ // src/features/selectSearch.ts
9596
+ var selectSearchFeature = {
9597
+ SearchSelectCellEditor,
9598
+ localeText: DEFAULT_SELECT_SEARCH_LOCALE_TEXT
9599
+ };
9600
+
8845
9601
  // src/features/selectionAggregates.ts
8846
9602
  import { DEFAULT_AGGREGATES_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
8847
9603
 
8848
9604
  // src/primitives/selectionAggregates.ts
8849
- import { createMemo as createMemo29 } from "solid-js";
9605
+ import { createMemo as createMemo31 } from "solid-js";
8850
9606
  import {
8851
9607
  createSelectionAggregatesRunner,
8852
9608
  resolveSyncSelectionAggregates,
@@ -8858,15 +9614,15 @@ import {
8858
9614
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectionAggregates";
8859
9615
  function createSelectionAggregates(args) {
8860
9616
  const stabilizeTarget = createSelectionAggregateTargetStabilizer();
8861
- const target = createMemo29(() => {
9617
+ const target = createMemo31(() => {
8862
9618
  const current = args();
8863
9619
  return stabilizeTarget(
8864
9620
  current.enabled ? resolveSelectionAggregateTarget(current.selection, current.viewRowCount, current.orderedColumns) : null
8865
9621
  );
8866
9622
  });
8867
- const rowModel = createMemo29(() => args().rowModel);
8868
- const key = createMemo29(() => ({ rowModel: rowModel(), target: target() }));
8869
- const syncResult = createMemo29(() => resolveSyncSelectionAggregates(key()));
9623
+ const rowModel = createMemo31(() => args().rowModel);
9624
+ const key = createMemo31(() => ({ rowModel: rowModel(), target: target() }));
9625
+ const syncResult = createMemo31(() => resolveSyncSelectionAggregates(key()));
8870
9626
  const runner = createSelectionAggregatesRunner();
8871
9627
  connectController(
8872
9628
  runner,
@@ -8875,16 +9631,16 @@ function createSelectionAggregates(args) {
8875
9631
  "selectionAggregates"
8876
9632
  );
8877
9633
  const snapshot2 = createExternalStoreSignal(runner, "selectionAggregatesStore");
8878
- return createMemo29(() => selectSelectionAggregatesResult(syncResult(), snapshot2(), key()));
9634
+ return createMemo31(() => selectSelectionAggregatesResult(syncResult(), snapshot2(), key()));
8879
9635
  }
8880
9636
 
8881
9637
  // src/view/GridSelectionAggregates.tsx
8882
- import { For as For14, Show as Show26, createMemo as createMemo30 } from "solid-js";
9638
+ import { For as For16, Show as Show28, createMemo as createMemo32 } from "solid-js";
8883
9639
  import { formatSelectionAggregateNumber } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectionAggregates";
8884
- import { formatLocaleText as formatLocaleText15 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
9640
+ import { formatLocaleText as formatLocaleText16 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8885
9641
  function GridSelectionAggregates(props) {
8886
9642
  const texts = useFeatureLocaleText();
8887
- const chips = createMemo30(() => {
9643
+ const chips = createMemo32(() => {
8888
9644
  const aggregates = props.aggregates;
8889
9645
  if (!aggregates) {
8890
9646
  return null;
@@ -8894,7 +9650,7 @@ function GridSelectionAggregates(props) {
8894
9650
  return [
8895
9651
  {
8896
9652
  key: "computing",
8897
- text: formatLocaleText15(localeTexts.aggregateComputing, { percent: Math.floor(aggregates.progress * 100) })
9653
+ text: formatLocaleText16(localeTexts.aggregateComputing, { percent: Math.floor(aggregates.progress * 100) })
8898
9654
  }
8899
9655
  ];
8900
9656
  }
@@ -8917,12 +9673,12 @@ function GridSelectionAggregates(props) {
8917
9673
  }
8918
9674
  return list;
8919
9675
  });
8920
- return <Show26 when={chips()}>
9676
+ return <Show28 when={chips()}>
8921
9677
  {(list) => <div class={["ssg-bar-aggregates", { "ssg-bar-aggregates--trailing": props.trailing }]}>
8922
9678
  <div class="ssg-bar-aggregates-inner" title={list().map((chip) => chip.text).join(" ")}>
8923
9679
  <div class="ssg-bar-aggregates-list">
8924
9680
  <span class="ssg-bar-aggregates-fit" aria-hidden="true" />
8925
- <For14 each={list()} keyed={(chip) => chip.key}>
9681
+ <For16 each={list()} keyed={(chip) => chip.key}>
8926
9682
  {(chip, index) => <span
8927
9683
  class={[
8928
9684
  "ssg-bar-chip",
@@ -8933,16 +9689,16 @@ function GridSelectionAggregates(props) {
8933
9689
  ]}
8934
9690
  style={{ order: String(-index()) }}
8935
9691
  >
8936
- <Show26 when={chip().label !== void 0} fallback={chip().text}>
9692
+ <Show28 when={chip().label !== void 0} fallback={chip().text}>
8937
9693
  {chip().label}
8938
9694
  <b class="ssg-bar-aggregate-value">{chip().value}</b>
8939
- </Show26>
9695
+ </Show28>
8940
9696
  </span>}
8941
- </For14>
9697
+ </For16>
8942
9698
  </div>
8943
9699
  </div>
8944
9700
  </div>}
8945
- </Show26>;
9701
+ </Show28>;
8946
9702
  }
8947
9703
 
8948
9704
  // src/features/selectionAggregates.ts
@@ -8953,7 +9709,7 @@ var selectionAggregatesFeature = {
8953
9709
  };
8954
9710
 
8955
9711
  // src/primitives/toolPanel.ts
8956
- import { createMemo as createMemo31 } from "solid-js";
9712
+ import { createMemo as createMemo33 } from "solid-js";
8957
9713
  import {
8958
9714
  createToolPanelController,
8959
9715
  resolveActiveToolPanelTab,
@@ -8972,7 +9728,7 @@ function createToolPanel(inputs) {
8972
9728
  onSuppressedEscape: inputs.onSuppressedEscape
8973
9729
  }), "render", "toolPanel");
8974
9730
  const snapshot2 = createExternalStoreSignal(controller, "toolPanelStore");
8975
- const availableTabs = createMemo31(
9731
+ const availableTabs = createMemo33(
8976
9732
  () => resolveAvailableToolPanelTabs({
8977
9733
  canUseFilterTab: inputs.canUseFilterTab(),
8978
9734
  canUseColumnsTab: inputs.canUseColumnsTab(),
@@ -8981,10 +9737,10 @@ function createToolPanel(inputs) {
8981
9737
  { equals: sameTabs }
8982
9738
  );
8983
9739
  return {
8984
- activeTab: createMemo31(() => resolveActiveToolPanelTab(snapshot2().requestedTab, availableTabs())),
9740
+ activeTab: createMemo33(() => resolveActiveToolPanelTab(snapshot2().requestedTab, availableTabs())),
8985
9741
  availableTabs,
8986
- layout: createMemo31(() => snapshot2().layout),
8987
- flashTick: createMemo31(() => snapshot2().flashTick),
9742
+ layout: createMemo33(() => snapshot2().layout),
9743
+ flashTick: createMemo33(() => snapshot2().flashTick),
8988
9744
  panelRef: controller.panelRef,
8989
9745
  open: controller.open,
8990
9746
  close: controller.close,
@@ -9008,7 +9764,7 @@ import {
9008
9764
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/totalRow";
9009
9765
 
9010
9766
  // src/view/GridTotalRow.tsx
9011
- import { For as For15, Show as Show27, createMemo as createMemo32 } from "solid-js";
9767
+ import { For as For17, Show as Show29, createMemo as createMemo34 } from "solid-js";
9012
9768
  import {
9013
9769
  formatTotalRowCellText as formatTotalRowCellText2,
9014
9770
  resolveTotalRowCaption as resolveTotalRowCaption2
@@ -9035,7 +9791,7 @@ function GridTotalRow(props) {
9035
9791
  ...props.stickyBottom > 0 ? { bottom: px(props.stickyBottom) } : null
9036
9792
  }}
9037
9793
  >
9038
- <Show27 when={props.ownsRowHeader}>
9794
+ <Show29 when={props.ownsRowHeader}>
9039
9795
  <div
9040
9796
  role={rowHeaderIsCell() ? "rowheader" : void 0}
9041
9797
  aria-colindex={rowHeaderIsCell() ? 1 : void 0}
@@ -9050,13 +9806,13 @@ function GridTotalRow(props) {
9050
9806
  >
9051
9807
  {rowHeaderText() === "" ? null : rowHeaderText()}
9052
9808
  </div>
9053
- </Show27>
9054
- <For15 each={props.entries} keyed={(entry) => entry.column.key}>
9809
+ </Show29>
9810
+ <For17 each={props.entries} keyed={(entry) => entry.column.key}>
9055
9811
  {(entry) => {
9056
- const unbound = createMemo32(() => entry().column);
9812
+ const unbound = createMemo34(() => entry().column);
9057
9813
  const cell = () => props.cells.get(unbound().key);
9058
9814
  const isLabelCell = () => unbound().key === props.labelColumnKey;
9059
- const content = createMemo32(() => {
9815
+ const content = createMemo34(() => {
9060
9816
  const total = cell();
9061
9817
  if (total) {
9062
9818
  const column = unbound();
@@ -9108,7 +9864,7 @@ function GridTotalRow(props) {
9108
9864
  {content()}
9109
9865
  </div>;
9110
9866
  }}
9111
- </For15>
9867
+ </For17>
9112
9868
  </div>
9113
9869
  </>;
9114
9870
  }
@@ -9129,11 +9885,13 @@ var fullGridFeatures = {
9129
9885
  conditionalFormat: conditionalFormatFeature,
9130
9886
  totalRow: totalRowFeature,
9131
9887
  pinnedRows: pinnedRowsFeature,
9888
+ columnGroups: columnGroupsFeature,
9132
9889
  selectionAggregates: selectionAggregatesFeature,
9133
9890
  scrollHint: scrollHintFeature,
9134
9891
  motionExtras: motionExtrasFeature,
9135
9892
  find: findFeature,
9136
9893
  imeDirectInput: imeDirectInputFeature,
9894
+ selectSearch: selectSearchFeature,
9137
9895
  columnAutosize: columnAutosizeFeature,
9138
9896
  columnReorder: columnReorderFeature,
9139
9897
  rowDrag: rowDragFeature,
@@ -9170,6 +9928,7 @@ export {
9170
9928
  SpreadsheetGrid,
9171
9929
  autoHeightFeature,
9172
9930
  columnAutosizeFeature,
9931
+ columnGroupsFeature,
9173
9932
  columnMenuFeature,
9174
9933
  columnReorderFeature,
9175
9934
  conditionalFormatFeature,
@@ -9190,6 +9949,7 @@ export {
9190
9949
  restoreColumnsFromState,
9191
9950
  rowDragFeature,
9192
9951
  scrollHintFeature,
9952
+ selectSearchFeature,
9193
9953
  selectionAggregatesFeature,
9194
9954
  serverSideFeature,
9195
9955
  standardFeatures,