@ishibashi0112/spreadsheet-grid-solid 1.5.1 → 1.6.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
  }
@@ -2431,6 +2441,7 @@ var FEATURE_PROPS = {
2431
2441
  { prop: "pinnedTopRows", isUsed: (props) => (props.pinnedTopRows?.length ?? 0) > 0 },
2432
2442
  { prop: "pinnedBottomRows", isUsed: (props) => (props.pinnedBottomRows?.length ?? 0) > 0 }
2433
2443
  ],
2444
+ columnGroups: [{ prop: "columnGroups", isUsed: (props) => (props.columnGroups?.length ?? 0) > 0 }],
2434
2445
  columnAutosize: [
2435
2446
  {
2436
2447
  prop: "autoSizeColumns",
@@ -2806,12 +2817,22 @@ function GridShellBody(props, features, mountGate, mode) {
2806
2817
  );
2807
2818
  const pinnedTopCount = () => pinnedTop()?.length ?? 0;
2808
2819
  const pinnedBottomCount = () => pinnedBottom()?.length ?? 0;
2809
- const headerHeight = createMemo10(() => columnHeaderHeight() + pinnedTopCount() * rowHeight());
2820
+ const columnGroupsFeature2 = features.columnGroups;
2821
+ const columnKeys = createMemo10(() => props.columns.map((column) => column.key), {
2822
+ equals: (a, b) => a.length === b.length && a.every((key, index) => key === b[index])
2823
+ });
2824
+ const columnGroupTree = createMemo10(
2825
+ () => columnGroupsFeature2 && props.columnGroups ? columnGroupsFeature2.buildColumnGroupTree(props.columnGroups, new Set(columnKeys())) : null
2826
+ );
2827
+ const columnGroupDepth = () => columnGroupTree()?.depth ?? 0;
2828
+ const columnGroupRowHeight = () => Math.max(0, props.columnGroupHeaderHeight ?? columnHeaderHeight());
2829
+ const columnGroupHeight = () => columnGroupDepth() * columnGroupRowHeight();
2830
+ const headerHeight = createMemo10(() => columnGroupHeight() + columnHeaderHeight() + pinnedTopCount() * rowHeight());
2810
2831
  const footerHeight = createMemo10(() => totalRowHeight() + pinnedBottomCount() * rowHeight());
2811
2832
  const pinnedBelowTotal = createMemo10(
2812
2833
  () => props.pinnedBottomRowsPlacement === "belowTotal" && pinnedBottom() !== null && totalRowEnabled()
2813
2834
  );
2814
- const stickyTopHeight = () => pinnedTopCount() > 0 ? headerHeight() : 0;
2835
+ const stickyTopHeight = () => pinnedTopCount() > 0 || columnGroupHeight() > 0 ? headerHeight() : 0;
2815
2836
  const engine = createGridEngine({
2816
2837
  features,
2817
2838
  initialState: untrack13(() => props.initialState),
@@ -2852,7 +2873,34 @@ function GridShellBody(props, features, mountGate, mode) {
2852
2873
  const shell = gridRootRef.current;
2853
2874
  return registerPopupContainer([shell, shell?.closest(".ssg-root")], getPopupContainer);
2854
2875
  });
2855
- const columnResolution = createMemo10(() => engine.resolveColumns(columnInputs()));
2876
+ const closedColumnGroupKeys = createMemo10(() => ui().closedColumnGroupKeys);
2877
+ const collapseColumns = createMemo10(() => {
2878
+ const tree = columnGroupTree();
2879
+ const closed = closedColumnGroupKeys();
2880
+ return columnGroupsFeature2 && tree && tree.hasCollapsible ? { resolve: (displayColumns) => columnGroupsFeature2.resolveCollapsedColumnKeys(tree, closed, displayColumns) } : null;
2881
+ });
2882
+ const columnGroupFollow = createMemo10(() => {
2883
+ const tree = columnGroupTree();
2884
+ return columnGroupsFeature2 && tree && tree.hasCollapsible ? {
2885
+ collapseFor: (closedKeys) => (displayColumns) => columnGroupsFeature2.resolveCollapsedColumnKeys(tree, closedKeys, displayColumns),
2886
+ remap: (state, prevKeys, nextKeys) => columnGroupsFeature2.followColumnKeysAfterColumnGroupChange(tree, state, prevKeys, nextKeys)
2887
+ } : null;
2888
+ });
2889
+ const columnTitles = createMemo10(() => {
2890
+ const tree = columnGroupTree();
2891
+ return columnGroupsFeature2 && tree ? columnGroupsFeature2.resolveColumnGroupDistinctTitles(tree, columns()) : null;
2892
+ });
2893
+ const placeUnpinnedColumn = createMemo10(() => {
2894
+ const tree = columnGroupTree();
2895
+ return columnGroupsFeature2 && tree ? (nextColumns, columnKey) => columnGroupsFeature2.placeUnpinnedColumnInGroup(tree, nextColumns, columnKey) : null;
2896
+ });
2897
+ const columnResolution = createMemo10(
2898
+ () => engine.resolveColumns({
2899
+ ...columnInputs(),
2900
+ collapseColumns: collapseColumns()?.resolve ?? null,
2901
+ columnGroupFollow: columnGroupFollow()
2902
+ })
2903
+ );
2856
2904
  const visibleColumns = () => columnResolution().visibleColumns;
2857
2905
  const orderedColumns = () => columnResolution().orderedColumns;
2858
2906
  const rowGroupingActive = () => columnResolution().rowGroupingActive;
@@ -2879,6 +2927,15 @@ function GridShellBody(props, features, mountGate, mode) {
2879
2927
  }),
2880
2928
  { name: "reconcileColumnWidths" }
2881
2929
  );
2930
+ if (columnGroupsFeature2) {
2931
+ createEffect4(
2932
+ () => [props.columnGroups, columns()],
2933
+ ([definitions, next]) => {
2934
+ columnGroupsFeature2.warnUnknownColumnGroupKeys(definitions, next);
2935
+ },
2936
+ { name: "warnUnknownColumnGroupKeys" }
2937
+ );
2938
+ }
2882
2939
  const labelRowFeature2 = features.labelRow;
2883
2940
  const labelIsLabelRow = createMemo10(() => props.labelRow?.isLabelRow);
2884
2941
  const labelGetLabel = createMemo10(() => props.labelRow?.getLabel);
@@ -4242,7 +4299,9 @@ function GridShellBody(props, features, mountGate, mode) {
4242
4299
  closeColumnMenu: columnMenu?.close ?? noop3,
4243
4300
  openToolPanel,
4244
4301
  openColumnFilterPopover: filterPopover?.open ?? noop3,
4245
- runAutosize: columnAutosize?.runAutosize
4302
+ runAutosize: columnAutosize?.runAutosize,
4303
+ // 列メニューで固定を外した列を同じグループの中央の列の隣へ置く(1.6.0 の実アプリの点検 G3-04。React 版と同じ)。
4304
+ placeUnpinnedColumn: placeUnpinnedColumn()
4246
4305
  }), "render", "columnCommands");
4247
4306
  const filterManagement = features.filtering?.createFilterManagement({
4248
4307
  columns,
@@ -4257,7 +4316,8 @@ function GridShellBody(props, features, mountGate, mode) {
4257
4316
  rightPaneTotalWidth: () => paneResolution().rightPaneTotalWidth,
4258
4317
  openColumnFilterPopover: filterPopover?.open ?? noop3,
4259
4318
  groupColumns: activeGroupColumns,
4260
- localeTexts
4319
+ localeTexts,
4320
+ columnTitles
4261
4321
  });
4262
4322
  const columnChooserItems = createMemo10(
4263
4323
  () => columns().map((column) => ({
@@ -4266,11 +4326,17 @@ function GridShellBody(props, features, mountGate, mode) {
4266
4326
  visible: column.visible !== false,
4267
4327
  pane: getColumnPane(column),
4268
4328
  // グループ化している間のグループ元の列は表示を切り替えられない印(React 版の DF-22)。
4269
- grouped: rowGroupingActive() && column.rowGroup === true ? true : void 0
4329
+ grouped: rowGroupingActive() && column.rowGroup === true ? true : void 0,
4330
+ // 列のグループ(1.6.0。パネルはグループごとにまとめて出す)。
4331
+ groups: columnGroupTree()?.pathByColumn.get(column.key)?.map((group) => ({ key: group.key, title: group.title || group.key }))
4270
4332
  }))
4271
4333
  );
4334
+ const clampColumnChooserDrop = createMemo10(() => {
4335
+ const tree = columnGroupTree();
4336
+ return tree && columnGroupsFeature2 ? columnGroupsFeature2.createColumnChooserDropClamp(tree, columns()) : void 0;
4337
+ });
4272
4338
  const sortManagerColumns = createMemo10(
4273
- () => [...visibleColumns(), ...activeGroupColumns()].filter((column) => !isSyntheticColumnKey2(column.key)).map((column) => ({ key: column.key, title: column.title || column.key }))
4339
+ () => [...visibleColumns(), ...activeGroupColumns()].filter((column) => !isSyntheticColumnKey2(column.key)).map((column) => ({ key: column.key, title: columnTitles()?.get(column.key) ?? (column.title || column.key) }))
4274
4340
  );
4275
4341
  const showGlobalFilterRow = () => globalFilterEnabled() && globalFilterText().trim().length > 0;
4276
4342
  const toolPanelTabs = createMemo10(
@@ -4292,6 +4358,10 @@ function GridShellBody(props, features, mountGate, mode) {
4292
4358
  const columnMenuGroupingAvailable = createMemo10(
4293
4359
  () => groupingFeature2 !== void 0 && !isServerSide() && !labelRowEnabled() && props.onColumnsChange !== void 0 && columns().some((column) => column.rowGroup !== void 0)
4294
4360
  );
4361
+ const columnGroupDragSupport = createMemo10(() => {
4362
+ const tree = columnGroupTree();
4363
+ return columnGroupsFeature2 && tree ? { ...columnGroupsFeature2, tree } : null;
4364
+ });
4295
4365
  const columnReorder = features.columnReorder?.createColumnReorder(() => ({
4296
4366
  enabled: Boolean(props.onColumnsChange),
4297
4367
  columns: columns(),
@@ -4305,11 +4375,16 @@ function GridShellBody(props, features, mountGate, mode) {
4305
4375
  rightLeadingWidth: paneResolution().rightLeadingWidth,
4306
4376
  applyColumnOrderAndPin: columnCommands.applyColumnOrderAndPin,
4307
4377
  ghostSlot: slots().dragGhost,
4308
- motion: resolvedMotion() === "off" ? "ghost" : props.columnDragMotion ?? "ghost"
4378
+ motion: resolvedMotion() === "off" ? "ghost" : props.columnDragMotion ?? "ghost",
4379
+ // 列のグループ(1.6.0): 列はグループの中でだけ動かし、グループの見出しの掴み手でグループごと動かす。
4380
+ columnGroups: columnGroupDragSupport()
4309
4381
  }));
4310
4382
  const columnDragHandler = createMemo10(
4311
4383
  () => columnReorder && props.onColumnsChange ? columnReorder.onColumnDragHandlePointerDown : void 0
4312
4384
  );
4385
+ const columnGroupDragHandler = createMemo10(
4386
+ () => columnReorder && props.onColumnsChange ? columnReorder.onColumnGroupDragHandlePointerDown : void 0
4387
+ );
4313
4388
  const renderColumnDropIndicator = (pane) => columnReorder ? <div
4314
4389
  ref={(element) => columnReorder.setIndicator(pane, element)}
4315
4390
  class="ssg-col-drop-indicator"
@@ -4487,6 +4562,8 @@ function GridShellBody(props, features, mountGate, mode) {
4487
4562
  focusGrid: () => gridRootRef.current?.focus({ preventScroll: true }),
4488
4563
  beforeDetailRowsCollapse: detailRows.returnFocusFromCards,
4489
4564
  startEditCell: tryStartEditCell,
4565
+ // 列のグループ(1.6.0): setColumnGroupOpen / getState の closedColumnGroups / エクスポートの段。
4566
+ columnGroupTree: columnGroupTree(),
4490
4567
  headerHeight: headerHeight(),
4491
4568
  verticalScaleFactor: vertical().verticalScaleFactor,
4492
4569
  leftPaneTotalWidth: paneResolution().leftPaneTotalWidth,
@@ -4559,6 +4636,9 @@ function GridShellBody(props, features, mountGate, mode) {
4559
4636
  columns: columns(),
4560
4637
  collapsedGroupKeys: ui().collapsedGroupKeys,
4561
4638
  includeGroupingInState: props.includeGroupingInState ?? false,
4639
+ // 閉じている列のグループ(開閉できるグループがあるときだけ状態に入る)。
4640
+ closedColumnGroupKeys: ui().closedColumnGroupKeys,
4641
+ columnGroupTree: columnGroupTree(),
4562
4642
  onStateChange: inOwnTick(props.onStateChange),
4563
4643
  onFiltersChange: inOwnTick(props.onFiltersChange),
4564
4644
  onSortChange: inOwnTick(props.onSortChange)
@@ -4566,6 +4646,16 @@ function GridShellBody(props, features, mountGate, mode) {
4566
4646
  "effect",
4567
4647
  "stateChangeNotifier"
4568
4648
  );
4649
+ connectController(
4650
+ engine.columnGroupOpenNotifier,
4651
+ () => ({
4652
+ closedColumnGroupKeys: ui().closedColumnGroupKeys,
4653
+ columnGroupTree: columnGroupTree(),
4654
+ onColumnGroupOpenChange: inOwnTick(props.onColumnGroupOpenChange)
4655
+ }),
4656
+ "effect",
4657
+ "columnGroupOpenNotifier"
4658
+ );
4569
4659
  onGridMounted(() => {
4570
4660
  const element = gridRootRef.current;
4571
4661
  if (!element) {
@@ -4604,8 +4694,16 @@ function GridShellBody(props, features, mountGate, mode) {
4604
4694
  selection: ui().selection
4605
4695
  }));
4606
4696
  const derivedSummary = createMemo10(() => {
4697
+ const titles = columnTitles();
4698
+ const base = titles ? {
4699
+ ...slotContextBase(),
4700
+ columns: slotContextBase().columns.map((column) => {
4701
+ const title = titles.get(column.key);
4702
+ return title === void 0 ? column : { ...column, title };
4703
+ })
4704
+ } : slotContextBase();
4607
4705
  const summary = buildGridDerivedSummary(
4608
- filteringAvailable ? slotContextBase() : { ...slotContextBase(), globalFilterText: "", columnFilterValues: NO_COLUMN_FILTERS },
4706
+ filteringAvailable ? base : { ...base, globalFilterText: "", columnFilterValues: NO_COLUMN_FILTERS },
4609
4707
  // 件数はグループ行 / ラベル行を除くデータ行の数(slotContext.filteredRows と同じ)。分母(総データ行数)はラベル行を除く
4610
4708
  // (ラベル行が無ければ rows の数)。サーバーサイドは rows が空なので、サーバーが返した今の条件での件数(React 版と同じ)。
4611
4709
  leafRowCount(),
@@ -4933,6 +5031,15 @@ function GridShellBody(props, features, mountGate, mode) {
4933
5031
  "z-index": 2,
4934
5032
  ...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
5033
  });
5034
+ const ColumnGroupHeader = columnGroupsFeature2?.ColumnGroupHeader;
5035
+ const columnGroupStickyInset = createMemo10(() => ({
5036
+ left: paneResolution().leftPaneTotalWidth + paneResolution().centerLeadingWidth,
5037
+ right: paneResolution().rightPaneTotalWidth
5038
+ }));
5039
+ const getColumnHeaderSpanRows = (columnKey) => {
5040
+ const tree = columnGroupTree();
5041
+ return tree && columnGroupsFeature2 ? columnGroupsFeature2.columnHeaderSpanRows(tree, columnKey) : 0;
5042
+ };
4936
5043
  const renderPane = (pane, width, leadingWidth, ownsRowHeader, entries) => {
4937
5044
  const bodyHeight = () => headerHeight() + vertical().physicalBodyHeight;
4938
5045
  const activeRect = () => placementRectInPane(activeCellPlacement(), pane);
@@ -4947,11 +5054,11 @@ function GridShellBody(props, features, mountGate, mode) {
4947
5054
  rowHeaderWidth={rowHeaderWidth()}
4948
5055
  rows={pinnedRows()}
4949
5056
  rowHeight={rowHeight()}
4950
- stickyOffset={position === "top" ? columnHeaderHeight() : pinnedBelowTotal() ? 0 : totalRowHeight()}
5057
+ stickyOffset={position === "top" ? columnGroupHeight() + columnHeaderHeight() : pinnedBelowTotal() ? 0 : totalRowHeight()}
4951
5058
  bodyHeight={position === "top" || pinnedBelowTotal() ? 0 : vertical().physicalBodyHeight}
4952
5059
  entries={entries()}
4953
5060
  rowKeyGetter={resolvedRowKeyGetter()}
4954
- ariaRowIndexStart={position === "top" ? 2 : viewRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 1 : 0)}
5061
+ ariaRowIndexStart={(position === "top" ? 2 : viewRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 1 : 0)) + columnGroupDepth()}
4955
5062
  getRowClassName={props.getRowClassName}
4956
5063
  showCellOverflowTooltip={props.showCellOverflowTooltip ?? false}
4957
5064
  conditionalFormat={conditionalFormatFeature2}
@@ -4973,7 +5080,7 @@ function GridShellBody(props, features, mountGate, mode) {
4973
5080
  cells={totalRowCells()}
4974
5081
  label={totalRowLabel()}
4975
5082
  labelColumnKey={totalRowLabelColumnKey()}
4976
- ariaRowIndex={viewRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 0 : pinnedBottomCount())}
5083
+ ariaRowIndex={viewRowCount() + 2 + pinnedTopCount() + (pinnedBelowTotal() ? 0 : pinnedBottomCount()) + columnGroupDepth()}
4977
5084
  renderCell={totalRowOptions()?.renderCell}
4978
5085
  rowClassName={totalRowSlot().className}
4979
5086
  rowStyle={totalRowSlot().style}
@@ -4991,11 +5098,38 @@ function GridShellBody(props, features, mountGate, mode) {
4991
5098
  height: px(bodyHeight() + footerHeight())
4992
5099
  }}
4993
5100
  >
5101
+ {
5102
+ /* 列のグループの段(1.6.0。列見出しの行の前の sticky の器)。 */
5103
+ }
5104
+ {ColumnGroupHeader ? <Show11 when={columnGroupTree()}>
5105
+ {(tree) => <ColumnGroupHeader
5106
+ pane={pane}
5107
+ tree={tree()}
5108
+ groupRowHeight={columnGroupRowHeight()}
5109
+ leadingWidth={leadingWidth()}
5110
+ entries={paneLayout()[pane].entries}
5111
+ renderEntries={pane === "center" ? centerRenderEntries() : void 0}
5112
+ closedKeys={ui().closedColumnGroupKeys}
5113
+ selection={selectionSnapshot()}
5114
+ isWholeGridSelected={isWholeGridSelected()}
5115
+ stickyInset={pane === "center" ? columnGroupStickyInset() : null}
5116
+ enableColumnResize={enableColumnResize()}
5117
+ slots={slots()}
5118
+ dispatch={dispatch}
5119
+ onGroupPointerDown={pointer.handleColumnGroupHeaderPointerDown}
5120
+ onResizePointerDown={columnCommands.handleColumnGroupResizePointerDown}
5121
+ onGripPointerDown={columnGroupDragHandler()}
5122
+ />}
5123
+ </Show11> : null}
4994
5124
  <GridHeaderRow
4995
5125
  pane={pane}
4996
5126
  ownsRowHeader={ownsRowHeader()}
4997
5127
  leadingWidth={leadingWidth()}
4998
5128
  headerHeight={columnHeaderHeight()}
5129
+ stickyTop={columnGroupTree() ? columnGroupHeight() : void 0}
5130
+ ariaRowIndex={columnGroupTree() ? columnGroupDepth() + 1 : void 0}
5131
+ groupRowHeight={columnGroupTree() ? columnGroupRowHeight() : void 0}
5132
+ getHeaderSpanRows={columnGroupTree() ? getColumnHeaderSpanRows : void 0}
4999
5133
  rowHeaderWidth={rowHeaderWidth()}
5000
5134
  slots={slots()}
5001
5135
  isCornerHovered={view().isCornerHovered}
@@ -5143,7 +5277,7 @@ function GridShellBody(props, features, mountGate, mode) {
5143
5277
  rows={bodyRows()}
5144
5278
  entries={entries()}
5145
5279
  rowModel={rowModel()}
5146
- ariaRowOffset={pinnedTopCount()}
5280
+ ariaRowOffset={pinnedTopCount() + columnGroupDepth()}
5147
5281
  activeCell={ui().activeCell}
5148
5282
  editingCell={ui().editingCell}
5149
5283
  selection={selectionSnapshot()}
@@ -5309,7 +5443,7 @@ function GridShellBody(props, features, mountGate, mode) {
5309
5443
  }}
5310
5444
  role="grid"
5311
5445
  aria-label={props.ariaLabel}
5312
- aria-rowcount={viewRowCount() + 1 + pinnedTopCount() + pinnedBottomCount() + (totalRowEnabled() ? 1 : 0)}
5446
+ aria-rowcount={viewRowCount() + 1 + pinnedTopCount() + pinnedBottomCount() + (totalRowEnabled() ? 1 : 0) + columnGroupDepth()}
5313
5447
  aria-colcount={orderedColumns().length + 1}
5314
5448
  aria-multiselectable={enableRangeSelection() ? "true" : void 0}
5315
5449
  aria-readonly={readOnly() ? "true" : void 0}
@@ -5534,6 +5668,21 @@ function GridShellBody(props, features, mountGate, mode) {
5534
5668
  ) ? () => columnCommands.handleColumnMenuGroupBy(column().key) : void 0
5535
5669
  }
5536
5670
  onUngroup={columnMenuGroupingAvailable() && rowGroupingActive() ? columnCommands.handleColumnMenuUngroup : void 0}
5671
+ columnGroupToggles={(() => {
5672
+ const tree = columnGroupTree();
5673
+ return columnGroupsFeature2 && tree ? columnGroupsFeature2.resolveColumnMenuGroupToggles(tree, ui().closedColumnGroupKeys, column().key).map((toggle) => ({
5674
+ key: toggle.key,
5675
+ open: toggle.open,
5676
+ label: formatLocaleText6(
5677
+ toggle.open ? localeTexts().collapseColumnGroup : localeTexts().expandColumnGroup,
5678
+ { group: toggle.title }
5679
+ )
5680
+ })) : void 0;
5681
+ })()}
5682
+ onToggleColumnGroup={(groupKey, open) => {
5683
+ columnMenu.close();
5684
+ dispatch(gridActions.setColumnGroupOpen(groupKey, open));
5685
+ }}
5537
5686
  onRequestClose={columnMenu.close}
5538
5687
  />}
5539
5688
  </Show11>}
@@ -5554,6 +5703,7 @@ function GridShellBody(props, features, mountGate, mode) {
5554
5703
  popoverSlot={slots().popover}
5555
5704
  themeClassName={portalClassName()}
5556
5705
  localeTexts={localeTexts()}
5706
+ columnTitles={columnTitles()}
5557
5707
  /> : null}
5558
5708
  {
5559
5709
  /* ツールパネル(グリッドの外のポップアップ。開いている間だけ描く)。タブを切り替えると中身を作り直す(タブの中の検索の
@@ -5596,6 +5746,8 @@ function GridShellBody(props, features, mountGate, mode) {
5596
5746
  items={columnChooserItems()}
5597
5747
  canToggle={props.onColumnsChange !== void 0}
5598
5748
  onToggleColumnVisibility={columnCommands.handleColumnChooserToggleVisibility}
5749
+ onToggleColumnsVisibility={columnCommands.handleColumnChooserToggleColumnsVisibility}
5750
+ clampDropIndex={clampColumnChooserDrop()}
5599
5751
  onShowAllColumns={columnCommands.handleColumnChooserShowAll}
5600
5752
  onHideAllColumns={columnCommands.handleColumnChooserHideAll}
5601
5753
  onResetColumns={columnCommands.handleColumnChooserReset}
@@ -5708,11 +5860,234 @@ var columnAutosizeFeature = {
5708
5860
  createColumnAutosize
5709
5861
  };
5710
5862
 
5863
+ // src/features/columnGroups.ts
5864
+ import {
5865
+ buildColumnGroupTree,
5866
+ columnHeaderSpanRows,
5867
+ computeColumnBlockReorderedKeys,
5868
+ createColumnChooserDropClamp,
5869
+ followColumnKeysAfterColumnGroupChange,
5870
+ placeUnpinnedColumnInGroup,
5871
+ resolveColumnMenuGroupToggles,
5872
+ resolveColumnGroupDistinctTitles,
5873
+ resolveCollapsedColumnKeys,
5874
+ resolveColumnDragItem,
5875
+ resolveColumnGroupDragItem,
5876
+ resolveColumnGroupDropPlacement,
5877
+ warnUnknownColumnGroupKeys
5878
+ } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/columnGroups";
5879
+ import { DEFAULT_COLUMN_GROUPS_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
5880
+
5881
+ // src/view/GridColumnGroupHeader.tsx
5882
+ import { For as For6, Show as Show12, createMemo as createMemo11 } from "solid-js";
5883
+ import {
5884
+ createColumnGroupResize,
5885
+ resolveColumnGroupCells
5886
+ } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/columnGroups";
5887
+ import { gridActions as gridActions2 } from "@ishibashi0112/spreadsheet-grid-core/internal/model/gridActions";
5888
+ import { formatLocaleText as formatLocaleText7 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
5889
+ import { isFromRenderHeaderControl as isFromRenderHeaderControl2 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
5890
+ var SVG_NOT_FOCUSABLE2 = { focusable: "false" };
5891
+ var stopPointerDown = (event) => {
5892
+ event.stopPropagation();
5893
+ if (event.pointerType === "mouse") event.preventDefault();
5894
+ };
5895
+ var resolveResize = (entries, cell, enableColumnResize) => createColumnGroupResize(
5896
+ entries.slice(cell.startIndex, cell.endIndex + 1).filter((entry) => entry.column.resizable ?? enableColumnResize).map((entry) => ({
5897
+ key: entry.column.key,
5898
+ startWidth: entry.paneLocalSize,
5899
+ minWidth: entry.column.minWidth ?? 60,
5900
+ maxWidth: entry.column.maxWidth ?? Number.POSITIVE_INFINITY
5901
+ }))
5902
+ );
5903
+ function GridColumnGroupHeader(props) {
5904
+ const texts = useFeatureLocaleText();
5905
+ const tree = createMemo11(() => props.tree);
5906
+ const entries = createMemo11(() => props.entries);
5907
+ const allCells = createMemo11(() => resolveColumnGroupCells(tree(), entries()));
5908
+ const cells = createMemo11(() => {
5909
+ const all = allCells();
5910
+ const renderEntries = props.renderEntries;
5911
+ if (renderEntries === void 0 || all.length === 0) return all;
5912
+ const first = renderEntries[0];
5913
+ const last = renderEntries[renderEntries.length - 1];
5914
+ if (!first || !last) return [];
5915
+ const from = first.paneLocalStart;
5916
+ const to = last.paneLocalStart + last.paneLocalSize;
5917
+ const visible = all.filter((cell) => cell.start < to && cell.start + cell.size > from);
5918
+ return visible.length === all.length ? all : visible;
5919
+ });
5920
+ const levels = createMemo11(() => {
5921
+ const result = Array.from({ length: tree().depth }, () => []);
5922
+ for (const cell of cells()) {
5923
+ result[cell.level]?.push(cell);
5924
+ }
5925
+ return result.map((levelCells, level) => ({ level, cells: levelCells })).filter((entry) => entry.cells.length > 0);
5926
+ });
5927
+ return <div data-pane={props.pane} class="ssg-col-group-block" style={{ height: px(tree().depth * props.groupRowHeight) }}>
5928
+ <For6 each={levels()} keyed={(entry) => entry.level}>
5929
+ {(entry) => (
5930
+ // 段ごとに 1 行(3 ペインの同じ段は同じ行番号)。
5931
+ <div
5932
+ role="row"
5933
+ aria-rowindex={entry().level + 1}
5934
+ class="ssg-col-group-row"
5935
+ style={{ top: px(entry().level * props.groupRowHeight), height: px(props.groupRowHeight) }}
5936
+ >
5937
+ <For6 each={entry().cells} keyed={(cell) => cell.id}>
5938
+ {(cell) => {
5939
+ const group = createMemo11(() => cell().group);
5940
+ const definition = createMemo11(() => group().definition);
5941
+ const open = () => !group().collapsible || !(props.closedKeys?.has(group().key) ?? false);
5942
+ const align = () => definition().headerAlign ?? "left";
5943
+ const isSelected = () => props.isWholeGridSelected || props.selection.kind === "col" && cell().firstColIndex >= props.selection.startCol && cell().lastColIndex <= props.selection.endCol;
5944
+ const labelStyle = () => {
5945
+ const inset = props.stickyInset;
5946
+ if (inset === null || align() === "center") return void 0;
5947
+ return align() === "right" ? { position: "sticky", right: px(inset.right + 6) } : { position: "sticky", left: px(inset.left + 6) };
5948
+ };
5949
+ const title = () => group().title || group().key;
5950
+ const context = {
5951
+ get group() {
5952
+ return definition();
5953
+ },
5954
+ get open() {
5955
+ return open();
5956
+ },
5957
+ get collapsible() {
5958
+ return group().collapsible;
5959
+ },
5960
+ get width() {
5961
+ return cell().size;
5962
+ }
5963
+ };
5964
+ const toggleLabel = () => formatLocaleText7(open() ? texts().collapseColumnGroup : texts().expandColumnGroup, { group: title() });
5965
+ const resize = createMemo11(() => resolveResize(entries(), cell(), props.enableColumnResize));
5966
+ return <div
5967
+ role="columnheader"
5968
+ aria-colindex={cell().firstColIndex + 2}
5969
+ aria-colspan={cell().lastColIndex - cell().firstColIndex + 1}
5970
+ data-ssg-col-group={group().key}
5971
+ class={[
5972
+ "ssg-header-cell",
5973
+ "ssg-col-group-cell",
5974
+ {
5975
+ "ssg-header-cell--selected": isSelected(),
5976
+ "ssg-col-group-cell--align-center": align() === "center",
5977
+ "ssg-col-group-cell--align-right": align() === "right",
5978
+ "ssg-col-group-cell--closed": !open()
5979
+ },
5980
+ props.slots.headerCell?.className,
5981
+ definition().className
5982
+ ]}
5983
+ style={{
5984
+ ...props.slots.headerCell?.style,
5985
+ left: px(props.leadingWidth + cell().start),
5986
+ width: px(cell().size),
5987
+ "min-width": px(cell().size),
5988
+ height: px(props.groupRowHeight)
5989
+ }}
5990
+ onPointerDown={(event) => {
5991
+ if (definition().renderHeader && isFromRenderHeaderControl2(event.target, event.currentTarget, ".ssg-col-group-label")) {
5992
+ return;
5993
+ }
5994
+ props.onGroupPointerDown(cell().firstColIndex, cell().lastColIndex, event);
5995
+ }}
5996
+ >
5997
+ <div class="ssg-col-group-label" style={labelStyle()}>
5998
+ <span
5999
+ class={["ssg-col-group-title", { "ssg-col-group-title--custom": Boolean(definition().renderHeader) }]}
6000
+ data-ssg-tooltip={definition().renderHeader ? void 0 : title()}
6001
+ >
6002
+ {definition().renderHeader ? definition().renderHeader?.(context) : title()}
6003
+ </span>
6004
+ <Show12 when={group().collapsible}>
6005
+ <button
6006
+ type="button"
6007
+ tabindex={-1}
6008
+ aria-expanded={open() ? "true" : "false"}
6009
+ aria-label={toggleLabel()}
6010
+ data-ssg-tooltip={toggleLabel()}
6011
+ class={["ssg-icon-btn", "ssg-col-group-toggle", props.slots.iconButton?.className]}
6012
+ style={props.slots.iconButton?.style}
6013
+ onPointerDown={stopPointerDown}
6014
+ onClick={(event) => {
6015
+ event.stopPropagation();
6016
+ props.dispatch(gridActions2.setColumnGroupOpen(group().key, !open()));
6017
+ }}
6018
+ >
6019
+ <svg
6020
+ width="10"
6021
+ height="10"
6022
+ viewBox="0 0 16 16"
6023
+ fill="none"
6024
+ stroke="currentColor"
6025
+ stroke-width="2"
6026
+ aria-hidden="true"
6027
+ {...SVG_NOT_FOCUSABLE2}
6028
+ >
6029
+ <path
6030
+ d={open() ? "M10 3 5 8l5 5" : "M6 3l5 5-5 5"}
6031
+ stroke-linecap="round"
6032
+ stroke-linejoin="round"
6033
+ />
6034
+ </svg>
6035
+ </button>
6036
+ </Show12>
6037
+ <Show12 when={props.onGripPointerDown}>
6038
+ {(handler) => <span
6039
+ aria-hidden="true"
6040
+ class="ssg-header-grip ssg-col-group-grip"
6041
+ data-ssg-tooltip={formatLocaleText7(texts().dragColumnGroup, { group: title() })}
6042
+ onPointerDown={(event) => handler()(group().key, props.pane, event)}
6043
+ >
6044
+ <svg width="8" height="14" viewBox="0 0 8 14" fill="currentColor" aria-hidden="true" {...SVG_NOT_FOCUSABLE2}>
6045
+ <circle cx="2" cy="3" r="1" />
6046
+ <circle cx="6" cy="3" r="1" />
6047
+ <circle cx="2" cy="7" r="1" />
6048
+ <circle cx="6" cy="7" r="1" />
6049
+ <circle cx="2" cy="11" r="1" />
6050
+ <circle cx="6" cy="11" r="1" />
6051
+ </svg>
6052
+ </span>}
6053
+ </Show12>
6054
+ </div>
6055
+ <Show12 when={resize()}>
6056
+ {(value) => <div class="ssg-header-resize" onPointerDown={(event) => props.onResizePointerDown(value(), event)} />}
6057
+ </Show12>
6058
+ </div>;
6059
+ }}
6060
+ </For6>
6061
+ </div>
6062
+ )}
6063
+ </For6>
6064
+ </div>;
6065
+ }
6066
+
6067
+ // src/features/columnGroups.ts
6068
+ var columnGroupsFeature = {
6069
+ buildColumnGroupTree,
6070
+ warnUnknownColumnGroupKeys,
6071
+ resolveCollapsedColumnKeys,
6072
+ followColumnKeysAfterColumnGroupChange,
6073
+ placeUnpinnedColumnInGroup,
6074
+ resolveColumnMenuGroupToggles,
6075
+ resolveColumnGroupDistinctTitles,
6076
+ columnHeaderSpanRows,
6077
+ createColumnChooserDropClamp,
6078
+ resolveColumnDragItem,
6079
+ resolveColumnGroupDragItem,
6080
+ resolveColumnGroupDropPlacement,
6081
+ computeColumnBlockReorderedKeys,
6082
+ ColumnGroupHeader: GridColumnGroupHeader,
6083
+ localeText: DEFAULT_COLUMN_GROUPS_LOCALE_TEXT
6084
+ };
6085
+
5711
6086
  // src/features/columnMenu.ts
5712
6087
  import { DEFAULT_COLUMN_MENU_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
5713
6088
 
5714
6089
  // src/primitives/columnMenu.ts
5715
- import { createMemo as createMemo11 } from "solid-js";
6090
+ import { createMemo as createMemo12 } from "solid-js";
5716
6091
  import {
5717
6092
  createColumnMenuController
5718
6093
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/columnMenuController";
@@ -5724,16 +6099,16 @@ function createColumnMenu(inputs) {
5724
6099
  gridRootRef: inputs.gridRootRef
5725
6100
  }), "render", "columnMenu");
5726
6101
  const snapshot2 = createExternalStoreSignal(controller, "columnMenuStore");
5727
- const openedColumnKey = createMemo11(() => snapshot2().columnKey);
5728
- const openedColumn = createMemo11(() => {
6102
+ const openedColumnKey = createMemo12(() => snapshot2().columnKey);
6103
+ const openedColumn = createMemo12(() => {
5729
6104
  const key = openedColumnKey();
5730
6105
  return key === null ? null : inputs.visibleColumns().find((column) => column.key === key) ?? null;
5731
6106
  });
5732
6107
  return {
5733
6108
  openedColumnKey,
5734
6109
  openedColumn,
5735
- layout: createMemo11(() => snapshot2().layout),
5736
- isOpen: createMemo11(() => openedColumnKey() !== null),
6110
+ layout: createMemo12(() => snapshot2().layout),
6111
+ isOpen: createMemo12(() => openedColumnKey() !== null),
5737
6112
  panelRef: controller.panelRef,
5738
6113
  openFromButton: controller.openFromButton,
5739
6114
  openFromButtonClick: controller.openFromButtonClick,
@@ -5744,7 +6119,7 @@ function createColumnMenu(inputs) {
5744
6119
  }
5745
6120
 
5746
6121
  // 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";
6122
+ 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
6123
  import { Portal as Portal2 } from "@solidjs/web";
5749
6124
  var PINNED_ITEMS = [
5750
6125
  { value: void 0, label: "menuPinNone" },
@@ -5769,10 +6144,10 @@ function ColumnMenuPopover(props) {
5769
6144
  props.panelRef.current = null;
5770
6145
  }
5771
6146
  });
5772
- const layout = createMemo12(() => props.layout);
6147
+ const layout = createMemo13(() => props.layout);
5773
6148
  const [openSubmenu, setOpenSubmenu] = createSignal10(null);
5774
6149
  const setOpenSubmenuKey = (key) => setOpenSubmenu(key === null ? null : { columnKey: props.columnKey, key });
5775
- const isPinSubmenuOpen = createMemo12(() => {
6150
+ const isPinSubmenuOpen = createMemo13(() => {
5776
6151
  const current = openSubmenu();
5777
6152
  return current !== null && current.columnKey === props.columnKey && current.key === PIN_SUBMENU_KEY;
5778
6153
  });
@@ -5787,7 +6162,7 @@ function ColumnMenuPopover(props) {
5787
6162
  { name: "columnMenuScrollReset" }
5788
6163
  );
5789
6164
  createPortalTokens(panel, () => props.themeClassName, layout);
5790
- const submenuInline = createMemo12(() => layout().maxHeight !== void 0);
6165
+ const submenuInline = createMemo13(() => layout().maxHeight !== void 0);
5791
6166
  const [pinSubmenu, setPinSubmenu] = createSignal10();
5792
6167
  let pinSubmenuElement;
5793
6168
  createPortalTokens(
@@ -5847,7 +6222,7 @@ function ColumnMenuPopover(props) {
5847
6222
  props.slots?.menuItem?.className
5848
6223
  ];
5849
6224
  const itemStyle = () => props.slots?.menuItem?.style;
5850
- return <Show12 when={container}>
6225
+ return <Show13 when={container}>
5851
6226
  {(mount) => <Portal2 mount={mount()}>
5852
6227
  <div
5853
6228
  ref={(node) => {
@@ -5877,7 +6252,27 @@ function ColumnMenuPopover(props) {
5877
6252
  {props.title}
5878
6253
  </div>
5879
6254
 
5880
- <Show12 when={props.canFilter}>
6255
+ {
6256
+ /* 列のグループの開閉(1.6.0 の実アプリの点検 G5-02)。 */
6257
+ }
6258
+ <Show13 when={props.onToggleColumnGroup !== void 0 && (props.columnGroupToggles?.length ?? 0) > 0}>
6259
+ <For7 each={props.columnGroupToggles ?? []} keyed={(toggle) => toggle.key}>
6260
+ {(toggle) => <button
6261
+ type="button"
6262
+ role="menuitem"
6263
+ onPointerEnter={closeSubmenuOnHover}
6264
+ onClick={() => props.onToggleColumnGroup?.(toggle().key, !toggle().open)}
6265
+ class={itemClass()}
6266
+ style={itemStyle()}
6267
+ >
6268
+ <span class="ssg-menu-icon" />
6269
+ <span class="ssg-menu-label">{toggle().label}</span>
6270
+ </button>}
6271
+ </For7>
6272
+ <div role="separator" class="ssg-menu-separator" />
6273
+ </Show13>
6274
+
6275
+ <Show13 when={props.canFilter}>
5881
6276
  <button
5882
6277
  type="button"
5883
6278
  role="menuitem"
@@ -5890,9 +6285,9 @@ function ColumnMenuPopover(props) {
5890
6285
  <span class="ssg-menu-label">{texts().menuFilter}</span>
5891
6286
  </button>
5892
6287
  <div role="separator" class="ssg-menu-separator" />
5893
- </Show12>
6288
+ </Show13>
5894
6289
 
5895
- <Show12 when={props.canSort}>
6290
+ <Show13 when={props.canSort}>
5896
6291
  <SortItem
5897
6292
  direction="asc"
5898
6293
  sortDirection={props.sortDirection}
@@ -5911,7 +6306,7 @@ function ColumnMenuPopover(props) {
5911
6306
  class={itemClass()}
5912
6307
  style={itemStyle()}
5913
6308
  />
5914
- <Show12 when={props.onOpenSortManager}>
6309
+ <Show13 when={props.onOpenSortManager}>
5915
6310
  {(open) => <button
5916
6311
  type="button"
5917
6312
  role="menuitem"
@@ -5923,10 +6318,10 @@ function ColumnMenuPopover(props) {
5923
6318
  <span class="ssg-menu-icon" />
5924
6319
  <span class="ssg-menu-label">{texts().menuManageSort}</span>
5925
6320
  </button>}
5926
- </Show12>
5927
- </Show12>
6321
+ </Show13>
6322
+ </Show13>
5928
6323
 
5929
- <Show12 when={props.canManageFilters ? props.onOpenFilterManager : void 0}>
6324
+ <Show13 when={props.canManageFilters ? props.onOpenFilterManager : void 0}>
5930
6325
  {(open) => <button
5931
6326
  type="button"
5932
6327
  role="menuitem"
@@ -5938,16 +6333,16 @@ function ColumnMenuPopover(props) {
5938
6333
  <span class="ssg-menu-icon" />
5939
6334
  <span class="ssg-menu-label">{texts().menuManageFilters}</span>
5940
6335
  </button>}
5941
- </Show12>
6336
+ </Show13>
5942
6337
 
5943
6338
  {
5944
6339
  /* 区切りは、並び替えの項目かフィルターを管理…のどちらかが出ているとき。 */
5945
6340
  }
5946
- <Show12 when={props.canSort || props.canManageFilters && props.onOpenFilterManager !== void 0}>
6341
+ <Show13 when={props.canSort || props.canManageFilters && props.onOpenFilterManager !== void 0}>
5947
6342
  <div role="separator" class="ssg-menu-separator" />
5948
- </Show12>
6343
+ </Show13>
5949
6344
 
5950
- <Show12 when={props.onGroupByColumn}>
6345
+ <Show13 when={props.onGroupByColumn}>
5951
6346
  {(groupBy) => <button
5952
6347
  type="button"
5953
6348
  role="menuitem"
@@ -5959,8 +6354,8 @@ function ColumnMenuPopover(props) {
5959
6354
  <span class="ssg-menu-icon" />
5960
6355
  <span class="ssg-menu-label">{texts().menuGroupBy}</span>
5961
6356
  </button>}
5962
- </Show12>
5963
- <Show12 when={props.onUngroup}>
6357
+ </Show13>
6358
+ <Show13 when={props.onUngroup}>
5964
6359
  {(ungroup) => <button
5965
6360
  type="button"
5966
6361
  role="menuitem"
@@ -5972,10 +6367,10 @@ function ColumnMenuPopover(props) {
5972
6367
  <span class="ssg-menu-icon" />
5973
6368
  <span class="ssg-menu-label">{texts().menuUngroup}</span>
5974
6369
  </button>}
5975
- </Show12>
5976
- <Show12 when={props.onGroupByColumn !== void 0 || props.onUngroup !== void 0}>
6370
+ </Show13>
6371
+ <Show13 when={props.onGroupByColumn !== void 0 || props.onUngroup !== void 0}>
5977
6372
  <div role="separator" class="ssg-menu-separator" />
5978
- </Show12>
6373
+ </Show13>
5979
6374
 
5980
6375
  {
5981
6376
  /* 列の固定 ›(小メニューはこの行 = position: relative を基準に置く。パネルの子孫なので外側の押下の判定にも入る)。 */
@@ -6036,7 +6431,7 @@ function ColumnMenuPopover(props) {
6036
6431
  ›
6037
6432
  </span>
6038
6433
  </button>
6039
- <Show12 when={isPinSubmenuOpen()}>
6434
+ <Show13 when={isPinSubmenuOpen()}>
6040
6435
  <div
6041
6436
  ref={(node) => {
6042
6437
  pinSubmenuElement = node;
@@ -6055,7 +6450,7 @@ function ColumnMenuPopover(props) {
6055
6450
  pinButton?.focus();
6056
6451
  }}
6057
6452
  >
6058
- <For6 each={PINNED_ITEMS}>
6453
+ <For7 each={PINNED_ITEMS}>
6059
6454
  {(item) => {
6060
6455
  const isSelected = () => props.pinned === item.value;
6061
6456
  return <button
@@ -6079,17 +6474,17 @@ function ColumnMenuPopover(props) {
6079
6474
  <span class="ssg-menu-label">{texts()[item.label]}</span>
6080
6475
  </button>;
6081
6476
  }}
6082
- </For6>
6083
- <Show12 when={!props.canChangePinned}>
6477
+ </For7>
6478
+ <Show13 when={!props.canChangePinned}>
6084
6479
  <div id={pinNoteId} role="none" class="ssg-menu-note">
6085
6480
  {texts().menuPinUnavailable}
6086
6481
  </div>
6087
- </Show12>
6482
+ </Show13>
6088
6483
  </div>
6089
- </Show12>
6484
+ </Show13>
6090
6485
  </div>
6091
6486
 
6092
- <Show12 when={props.onAutosizeColumn && props.onAutosizeAllColumns}>
6487
+ <Show13 when={props.onAutosizeColumn && props.onAutosizeAllColumns}>
6093
6488
  <button
6094
6489
  type="button"
6095
6490
  role="menuitem"
@@ -6112,9 +6507,9 @@ function ColumnMenuPopover(props) {
6112
6507
  <span class="ssg-menu-icon" />
6113
6508
  <span class="ssg-menu-label">{texts().menuAutosizeAll}</span>
6114
6509
  </button>
6115
- </Show12>
6510
+ </Show13>
6116
6511
 
6117
- <Show12 when={props.onOpenColumnChooser}>
6512
+ <Show13 when={props.onOpenColumnChooser}>
6118
6513
  {(open) => <button
6119
6514
  type="button"
6120
6515
  role="menuitem"
@@ -6126,7 +6521,7 @@ function ColumnMenuPopover(props) {
6126
6521
  <span class="ssg-menu-icon" />
6127
6522
  <span class="ssg-menu-label">{texts().menuColumns}</span>
6128
6523
  </button>}
6129
- </Show12>
6524
+ </Show13>
6130
6525
 
6131
6526
  <button
6132
6527
  type="button"
@@ -6154,7 +6549,7 @@ function ColumnMenuPopover(props) {
6154
6549
  </div>
6155
6550
  </div>
6156
6551
  </Portal2>}
6157
- </Show12>;
6552
+ </Show13>;
6158
6553
  }
6159
6554
  function SortItem(props) {
6160
6555
  const active = () => props.sortDirection === props.direction;
@@ -6206,6 +6601,7 @@ function createColumnReorder(args) {
6206
6601
  );
6207
6602
  return {
6208
6603
  onColumnDragHandlePointerDown: controller.onColumnDragHandlePointerDown,
6604
+ onColumnGroupDragHandlePointerDown: controller.onColumnGroupDragHandlePointerDown,
6209
6605
  setIndicator: (pane, element) => {
6210
6606
  if (pane === "left") {
6211
6607
  leftIndicatorRef.current = element;
@@ -6232,9 +6628,9 @@ import {
6232
6628
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/conditionalFormat";
6233
6629
 
6234
6630
  // src/view/GridChip.tsx
6235
- import { Show as Show13 } from "solid-js";
6631
+ import { Show as Show14 } from "solid-js";
6236
6632
  import { resolveChipTone } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/conditionalFormat";
6237
- var SVG_NOT_FOCUSABLE2 = { focusable: "false" };
6633
+ var SVG_NOT_FOCUSABLE3 = { focusable: "false" };
6238
6634
  var ICON_PATHS = {
6239
6635
  neutral: () => <circle cx="6" cy="6" r="1.7" fill="currentColor" stroke="none" />,
6240
6636
  info: () => <>
@@ -6258,7 +6654,7 @@ function GridChip(props) {
6258
6654
  class={["ssg-chip", custom() ? "ssg-chip--custom" : `ssg-chip--${tone()}`]}
6259
6655
  style={custom() ? { "--ssg-cf-chip-color": props.spec.color } : void 0}
6260
6656
  >
6261
- <Show13 when={props.spec.icon !== false}>
6657
+ <Show14 when={props.spec.icon !== false}>
6262
6658
  <span class="ssg-chip-icon" aria-hidden="true">
6263
6659
  <svg
6264
6660
  viewBox="0 0 12 12"
@@ -6267,12 +6663,12 @@ function GridChip(props) {
6267
6663
  stroke-width="1.6"
6268
6664
  stroke-linecap="round"
6269
6665
  stroke-linejoin="round"
6270
- {...SVG_NOT_FOCUSABLE2}
6666
+ {...SVG_NOT_FOCUSABLE3}
6271
6667
  >
6272
6668
  {ICON_PATHS[tone()]()}
6273
6669
  </svg>
6274
6670
  </span>
6275
- </Show13>
6671
+ </Show14>
6276
6672
  <span class="ssg-chip-label">{props.children}</span>
6277
6673
  </span>;
6278
6674
  }
@@ -6294,7 +6690,7 @@ import {
6294
6690
  import { DEFAULT_CONTEXT_MENU_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
6295
6691
 
6296
6692
  // src/primitives/contextMenu.ts
6297
- import { createMemo as createMemo13 } from "solid-js";
6693
+ import { createMemo as createMemo14 } from "solid-js";
6298
6694
  import {
6299
6695
  createContextMenuController
6300
6696
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/contextMenuController";
@@ -6304,7 +6700,7 @@ function createCellContextMenu(inputs) {
6304
6700
  const snapshot2 = createExternalStoreSignal(controller, "contextMenuStore");
6305
6701
  return {
6306
6702
  snapshot: snapshot2,
6307
- isOpen: createMemo13(() => snapshot2().state !== null),
6703
+ isOpen: createMemo14(() => snapshot2().state !== null),
6308
6704
  open: controller.open,
6309
6705
  close: controller.close,
6310
6706
  panelRef: controller.panelRef
@@ -6312,7 +6708,7 @@ function createCellContextMenu(inputs) {
6312
6708
  }
6313
6709
 
6314
6710
  // 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";
6711
+ 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
6712
  import { Portal as Portal3 } from "@solidjs/web";
6317
6713
  function CellContextMenuPopover(props) {
6318
6714
  const portal = useGridPortal();
@@ -6324,8 +6720,8 @@ function CellContextMenuPopover(props) {
6324
6720
  props.panelRef.current = null;
6325
6721
  }
6326
6722
  });
6327
- const layout = createMemo14(() => props.layout);
6328
- const element = <Show14 when={container}>
6723
+ const layout = createMemo15(() => props.layout);
6724
+ const element = <Show15 when={container}>
6329
6725
  {(mount) => <Portal3 mount={mount()}>
6330
6726
  <div
6331
6727
  ref={(node) => {
@@ -6351,7 +6747,7 @@ function CellContextMenuPopover(props) {
6351
6747
  ...layout().maxHeight !== void 0 ? { "max-height": px(layout().maxHeight ?? 0), "overflow-y": "auto" } : null
6352
6748
  }}
6353
6749
  >
6354
- <For7 each={props.items}>
6750
+ <For8 each={props.items}>
6355
6751
  {(item) => <Switch2
6356
6752
  fallback={
6357
6753
  // action(kind 省略 or 'action')。押すと onSelect の後に閉じる。disabled は button の disabled で押せない。
@@ -6383,10 +6779,10 @@ function CellContextMenuPopover(props) {
6383
6779
  {(custom) => <div role="none">{custom().render({ close: props.onRequestClose })}</div>}
6384
6780
  </Match2>
6385
6781
  </Switch2>}
6386
- </For7>
6782
+ </For8>
6387
6783
  </div>
6388
6784
  </Portal3>}
6389
- </Show14>;
6785
+ </Show15>;
6390
6786
  createPortalTokens(panel, () => props.themeClassName, layout);
6391
6787
  return element;
6392
6788
  }
@@ -6437,7 +6833,7 @@ var exportFeature = {
6437
6833
  import { DEFAULT_FILL_HANDLE_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
6438
6834
 
6439
6835
  // src/primitives/fillHandle.ts
6440
- import { createMemo as createMemo15 } from "solid-js";
6836
+ import { createMemo as createMemo16 } from "solid-js";
6441
6837
  import {
6442
6838
  createFillHandleController
6443
6839
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/fillHandleController";
@@ -6455,11 +6851,11 @@ import {
6455
6851
  import { physicalToLogicalScrollTop as physicalToLogicalScrollTop2 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/verticalGeometry";
6456
6852
  function createFillHandle(inputs) {
6457
6853
  const controller = createFillHandleController();
6458
- const options = createMemo15(() => {
6854
+ const options = createMemo16(() => {
6459
6855
  const fillHandle = inputs.fillHandle();
6460
6856
  return typeof fillHandle === "object" ? fillHandle : void 0;
6461
6857
  });
6462
- const enabled = createMemo15(
6858
+ const enabled = createMemo16(
6463
6859
  () => Boolean(inputs.fillHandle()) && !inputs.readOnly() && (inputs.isServerSide() ? inputs.applyServerSideCellEdits() !== void 0 : inputs.handleRowsChange() !== void 0)
6464
6860
  );
6465
6861
  connectController(controller, () => {
@@ -6497,17 +6893,17 @@ function createFillHandle(inputs) {
6497
6893
  };
6498
6894
  }, "render", "fillHandle");
6499
6895
  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(() => {
6896
+ const rowMetrics = createMemo16(() => inputs.vertical().rowMetrics);
6897
+ const windowFirstRow = createMemo16(() => inputs.vertical().windowFirstRow);
6898
+ const windowLastRow = createMemo16(() => inputs.vertical().windowLastRow);
6899
+ const detailActive = createMemo16(() => inputs.vertical().detailActive);
6900
+ const detailExtras = createMemo16(() => inputs.vertical().detailExtras);
6901
+ const verticalScaleFactor = createMemo16(() => inputs.vertical().verticalScaleFactor);
6902
+ const paneLayout = createMemo16(inputs.paneLayout);
6903
+ const viewportHeight = createMemo16(inputs.viewportHeight);
6904
+ const scrollTop = createMemo16(inputs.scrollTop);
6905
+ const headerHeight = createMemo16(inputs.headerHeight);
6906
+ const corner = createMemo16(() => {
6511
6907
  const ui = inputs.uiState();
6512
6908
  if (!enabled() || ui.editingCell || ui.dragState?.type === "selection") {
6513
6909
  return null;
@@ -6520,7 +6916,7 @@ function createFillHandle(inputs) {
6520
6916
  }
6521
6917
  return resolveFillCornerPlacement(source, paneLayout(), rowMetrics(), windowFirstRow(), windowLastRow());
6522
6918
  });
6523
- const previewSelection = createMemo15(() => {
6919
+ const previewSelection = createMemo16(() => {
6524
6920
  const current = snapshot2();
6525
6921
  if (current.status !== "dragging" || current.target === null) {
6526
6922
  return null;
@@ -6540,7 +6936,7 @@ function createFillHandle(inputs) {
6540
6936
  }
6541
6937
  };
6542
6938
  });
6543
- const previewGeometry = createMemo15(() => {
6939
+ const previewGeometry = createMemo16(() => {
6544
6940
  const selection = previewSelection();
6545
6941
  if (selection === null) {
6546
6942
  return null;
@@ -6573,7 +6969,7 @@ function createFillHandle(inputs) {
6573
6969
  }
6574
6970
  return geometry.band ? [{ left: extent.start, top: geometry.band.top, width: extent.width, height: geometry.band.height }] : [];
6575
6971
  };
6576
- const chip = createMemo15(() => {
6972
+ const chip = createMemo16(() => {
6577
6973
  const current = snapshot2();
6578
6974
  if (current.status !== "filled") {
6579
6975
  return null;
@@ -6596,7 +6992,7 @@ function createFillHandle(inputs) {
6596
6992
  controller,
6597
6993
  snapshot: snapshot2,
6598
6994
  // 真偽値が変わったときだけ知らせます(ルートの class の描き直しを、ボタンが消えただけでは起こさない)。
6599
- filling: createMemo15(() => snapshot2().status === "dragging"),
6995
+ filling: createMemo16(() => snapshot2().status === "dragging"),
6600
6996
  corner,
6601
6997
  previewRects,
6602
6998
  chip
@@ -6604,11 +7000,11 @@ function createFillHandle(inputs) {
6604
7000
  }
6605
7001
 
6606
7002
  // 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";
7003
+ import { For as For9, Show as Show16, createEffect as createEffect7, createMemo as createMemo17, createSignal as createSignal12, onCleanup as onCleanup11 } from "solid-js";
6608
7004
  import { Portal as Portal4 } from "@solidjs/web";
6609
- import { formatLocaleText as formatLocaleText7 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7005
+ import { formatLocaleText as formatLocaleText8 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
6610
7006
  import { getActiveElement } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/shadowDom";
6611
- var SVG_NOT_FOCUSABLE3 = { focusable: "false" };
7007
+ var SVG_NOT_FOCUSABLE4 = { focusable: "false" };
6612
7008
  function FillHandleLayer(props) {
6613
7009
  const corner = () => {
6614
7010
  const current = props.fill.corner();
@@ -6618,7 +7014,7 @@ function FillHandleLayer(props) {
6618
7014
  const current = props.fill.chip();
6619
7015
  return current?.pane === props.pane ? current.position : null;
6620
7016
  };
6621
- const filled = createMemo16(() => {
7017
+ const filled = createMemo17(() => {
6622
7018
  const snapshot2 = props.fill.snapshot();
6623
7019
  return snapshot2.status === "filled" ? snapshot2 : null;
6624
7020
  });
@@ -6626,7 +7022,7 @@ function FillHandleLayer(props) {
6626
7022
  {
6627
7023
  /* ドラッグ中の埋める範囲の点線。 */
6628
7024
  }
6629
- <For8 each={props.fill.previewRects(props.pane)} keyed={false}>
7025
+ <For9 each={props.fill.previewRects(props.pane)} keyed={false}>
6630
7026
  {(rect) => <div
6631
7027
  class="ssg-fill-preview"
6632
7028
  style={{
@@ -6638,11 +7034,11 @@ function FillHandleLayer(props) {
6638
7034
  }}
6639
7035
  data-ssg-fill-preview=""
6640
7036
  />}
6641
- </For8>
7037
+ </For9>
6642
7038
  {
6643
7039
  /* 選択範囲の右下の四角。 */
6644
7040
  }
6645
- <Show15 when={corner()}>
7041
+ <Show16 when={corner()}>
6646
7042
  {(current) => <div
6647
7043
  class="ssg-fill-handle"
6648
7044
  style={{
@@ -6654,12 +7050,12 @@ function FillHandleLayer(props) {
6654
7050
  aria-hidden="true"
6655
7051
  onPointerDown={(event) => props.fill.controller.handlePointerDown(event)}
6656
7052
  />}
6657
- </Show15>
7053
+ </Show16>
6658
7054
  {
6659
7055
  /* 埋めたあとのボタン(左上の位置)。 */
6660
7056
  }
6661
- <Show15 when={filled()}>
6662
- {(snapshot2) => <Show15 when={chip()}>
7057
+ <Show16 when={filled()}>
7058
+ {(snapshot2) => <Show16 when={chip()}>
6663
7059
  {(position) => <FillOptionsChip
6664
7060
  fill={props.fill}
6665
7061
  x={props.leadingWidth + position().x}
@@ -6667,8 +7063,8 @@ function FillHandleLayer(props) {
6667
7063
  kind={snapshot2().kind}
6668
7064
  menuOpen={snapshot2().menu !== null}
6669
7065
  />}
6670
- </Show15>}
6671
- </Show15>
7066
+ </Show16>}
7067
+ </Show16>
6672
7068
  </>;
6673
7069
  }
6674
7070
  function FillOptionsChip(props) {
@@ -6689,7 +7085,7 @@ function FillOptionsChip(props) {
6689
7085
  class={["ssg-fill-options", { "ssg-fill-options--open": props.menuOpen }]}
6690
7086
  style={{ position: "absolute", left: px(props.x), top: px(props.y) }}
6691
7087
  data-ssg-fill-options=""
6692
- aria-label={formatLocaleText7(texts().fillOptionsCurrent, {
7088
+ aria-label={formatLocaleText8(texts().fillOptionsCurrent, {
6693
7089
  kind: props.kind === "series" ? texts().fillSeries : texts().fillCopy
6694
7090
  })}
6695
7091
  aria-haspopup="menu"
@@ -6711,7 +7107,7 @@ function FillOptionsChip(props) {
6711
7107
  stroke-linecap="round"
6712
7108
  stroke-linejoin="round"
6713
7109
  aria-hidden="true"
6714
- {...SVG_NOT_FOCUSABLE3}
7110
+ {...SVG_NOT_FOCUSABLE4}
6715
7111
  >
6716
7112
  <rect x="2.5" y="2.5" width="7" height="7" rx="1" />
6717
7113
  <path d="M6 10.5h7.5M10 7.5l3.5 3-3.5 3" />
@@ -6755,7 +7151,7 @@ function FillOptionsMenu(props) {
6755
7151
  }
6756
7152
  event.stopPropagation();
6757
7153
  };
6758
- const element = <Show15 when={container}>
7154
+ const element = <Show16 when={container}>
6759
7155
  {(mount) => <Portal4 mount={mount()}>
6760
7156
  <div
6761
7157
  ref={(node) => {
@@ -6771,7 +7167,7 @@ function FillOptionsMenu(props) {
6771
7167
  onKeyDown={handleKeyDown}
6772
7168
  onContextMenu={(event) => event.preventDefault()}
6773
7169
  >
6774
- <For8 each={MENU_ITEMS}>
7170
+ <For9 each={MENU_ITEMS}>
6775
7171
  {(item) => {
6776
7172
  const disabled = () => item.kind === "series" && !props.seriesAvailable;
6777
7173
  const checked = () => item.kind === props.kind;
@@ -6790,10 +7186,10 @@ function FillOptionsMenu(props) {
6790
7186
  <span class="ssg-menu-label">{texts()[item.label]}</span>
6791
7187
  </button>;
6792
7188
  }}
6793
- </For8>
7189
+ </For9>
6794
7190
  </div>
6795
7191
  </Portal4>}
6796
- </Show15>;
7192
+ </Show16>;
6797
7193
  createPortalTokens(panel, () => props.themeClassName, () => null);
6798
7194
  return element;
6799
7195
  }
@@ -6805,10 +7201,10 @@ function FillTooltip(props) {
6805
7201
  subscribe: props.fill.controller.subscribePointer,
6806
7202
  getSnapshot: props.fill.controller.getPointerSnapshot
6807
7203
  }, "fillPointerStore");
6808
- const visible = createMemo16(() => pointer() !== null);
6809
- const container = createMemo16(() => visible() ? portal.container() : null);
7204
+ const visible = createMemo17(() => pointer() !== null);
7205
+ const container = createMemo17(() => visible() ? portal.container() : null);
6810
7206
  const [tooltip, setTooltip] = createSignal12();
6811
- const element = <Show15 when={container()}>
7207
+ const element = <Show16 when={container()}>
6812
7208
  {(mount) => <Portal4 mount={mount()}>
6813
7209
  <div
6814
7210
  ref={setTooltip}
@@ -6823,22 +7219,22 @@ function FillTooltip(props) {
6823
7219
  {props.text}
6824
7220
  </div>
6825
7221
  </Portal4>}
6826
- </Show15>;
7222
+ </Show16>;
6827
7223
  createPortalTokens(tooltip, () => props.themeClassName, () => null);
6828
7224
  return element;
6829
7225
  }
6830
7226
  function FillHandlePortals(props) {
6831
- const menu = createMemo16(() => {
7227
+ const menu = createMemo17(() => {
6832
7228
  const snapshot2 = props.fill.snapshot();
6833
7229
  return snapshot2.status === "filled" && snapshot2.menu !== null ? snapshot2 : null;
6834
7230
  });
6835
- const tooltipText = createMemo16(() => {
7231
+ const tooltipText = createMemo17(() => {
6836
7232
  const snapshot2 = props.fill.snapshot();
6837
7233
  return snapshot2.status === "dragging" ? snapshot2.previewText : null;
6838
7234
  });
6839
7235
  return <>
6840
- <Show15 when={menu()}>
6841
- {(snapshot2) => <Show15 when={snapshot2().menu}>
7236
+ <Show16 when={menu()}>
7237
+ {(snapshot2) => <Show16 when={snapshot2().menu}>
6842
7238
  {(layout) => <FillOptionsMenu
6843
7239
  fill={props.fill}
6844
7240
  layout={layout()}
@@ -6846,11 +7242,11 @@ function FillHandlePortals(props) {
6846
7242
  seriesAvailable={snapshot2().seriesAvailable}
6847
7243
  themeClassName={props.themeClassName}
6848
7244
  />}
6849
- </Show15>}
6850
- </Show15>
6851
- <Show15 when={tooltipText() !== null}>
7245
+ </Show16>}
7246
+ </Show16>
7247
+ <Show16 when={tooltipText() !== null}>
6852
7248
  <FillTooltip fill={props.fill} text={tooltipText() ?? ""} themeClassName={props.themeClassName} />
6853
- </Show15>
7249
+ </Show16>
6854
7250
  </>;
6855
7251
  }
6856
7252
 
@@ -6870,7 +7266,7 @@ import { resolveRelativeDateFilterKey as resolveRelativeDateFilterKey2 } from "@
6870
7266
  import { DEFAULT_FILTERING_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
6871
7267
 
6872
7268
  // src/primitives/filterOrder.ts
6873
- import { createMemo as createMemo17 } from "solid-js";
7269
+ import { createMemo as createMemo18 } from "solid-js";
6874
7270
  import {
6875
7271
  createGlobalFilteredOrderRunner,
6876
7272
  resolveSyncGlobalFilteredOrder,
@@ -6883,11 +7279,11 @@ import {
6883
7279
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/filtering";
6884
7280
  var sameGlobalFilterKey = (a, b) => a.rows === b.rows && a.baseOrder === b.baseOrder && a.columns === b.columns && a.needle === b.needle;
6885
7281
  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(
7282
+ const visibleColumns = createMemo18(() => inputs.visibleColumns());
7283
+ const globalFilterColumns = createMemo18(() => toGlobalFilterColumns(visibleColumns(), inputs.globalFilterMatch()));
7284
+ const text = createMemo18(() => inputs.globalFilterText());
7285
+ const needle = createMemo18(() => text().trim().toLowerCase());
7286
+ const key = createMemo18(
6891
7287
  () => ({
6892
7288
  rows: inputs.rows(),
6893
7289
  baseOrder: inputs.baseOrder(),
@@ -6897,30 +7293,30 @@ function createFilterOrder(inputs) {
6897
7293
  { equals: sameGlobalFilterKey }
6898
7294
  );
6899
7295
  const enabled = () => inputs.globalFilterEnabled() && !inputs.manualFiltering();
6900
- const syncResult = createMemo17(() => resolveSyncGlobalFilteredOrder(key(), text(), enabled()));
7296
+ const syncResult = createMemo18(() => resolveSyncGlobalFilteredOrder(key(), text(), enabled()));
6901
7297
  const runner = createGlobalFilteredOrderRunner();
6902
7298
  connectController(runner, () => ({ ...key(), needsAsync: syncResult() === null }), "render", "globalFilter");
6903
7299
  const snapshot2 = createExternalStoreSignal(runner, "globalFilterStore");
6904
- const result = createMemo17(() => selectGlobalFilteredOrderResult(syncResult(), snapshot2(), key()));
6905
- const columnFilters = createMemo17(() => inputs.columnFilters());
6906
- const relativeDateFilterActive = createMemo17(
7300
+ const result = createMemo18(() => selectGlobalFilteredOrderResult(syncResult(), snapshot2(), key()));
7301
+ const columnFilters = createMemo18(() => inputs.columnFilters());
7302
+ const relativeDateFilterActive = createMemo18(
6907
7303
  () => inputs.isServerSide() ? inputs.columnFilterEnabled() && columnFiltersUseRelativeDate(columnFilters()) : !inputs.manualFiltering() && columnFiltersUseRelativeDate(columnFilters())
6908
7304
  );
6909
7305
  connectController(inputs.dateRollover, () => ({ active: relativeDateFilterActive() }), "render", "dateRollover");
6910
7306
  const relativeDateSnapshot = createExternalStoreSignal(inputs.dateRollover, "dateRolloverStore");
6911
- const relativeDateKey = createMemo17(
7307
+ const relativeDateKey = createMemo18(
6912
7308
  () => relativeDateFilterActive() ? resolveRelativeDateFilterKey(inputs.effectiveColumns(), columnFilters(), relativeDateSnapshot()) : ""
6913
7309
  );
6914
7310
  return {
6915
- globalFilteredOrder: createMemo17(() => result().order),
6916
- globalFilterStatus: createMemo17(() => result().status),
6917
- globalFilterProgress: createMemo17(() => result().progress),
7311
+ globalFilteredOrder: createMemo18(() => result().order),
7312
+ globalFilterStatus: createMemo18(() => result().status),
7313
+ globalFilterProgress: createMemo18(() => result().progress),
6918
7314
  relativeDateKey
6919
7315
  };
6920
7316
  }
6921
7317
 
6922
7318
  // src/primitives/filterPopover.ts
6923
- import { createMemo as createMemo18, createSignal as createSignal13, untrack as untrack14 } from "solid-js";
7319
+ import { createMemo as createMemo19, createSignal as createSignal13, untrack as untrack14 } from "solid-js";
6924
7320
  import {
6925
7321
  createFilterPopoverController,
6926
7322
  resolveOpenedFilterColumn
@@ -6958,15 +7354,15 @@ function createFilterPopover(inputs) {
6958
7354
  }
6959
7355
  return result.filterType;
6960
7356
  });
6961
- const groupColumns = createMemo18(() => inputs.groupColumns?.() ?? NO_GROUP_COLUMNS);
6962
- const popoverColumns = createMemo18(() => {
7357
+ const groupColumns = createMemo19(() => inputs.groupColumns?.() ?? NO_GROUP_COLUMNS);
7358
+ const popoverColumns = createMemo19(() => {
6963
7359
  const groups = groupColumns();
6964
7360
  return groups.length > 0 ? [...inputs.visibleColumns(), ...groups] : inputs.visibleColumns();
6965
7361
  });
6966
7362
  const resolveAnchorColumnKey = (columnKey) => untrack14(groupColumns).some((column) => column.key === columnKey) ? GROUP_AUTO_COLUMN_KEY : columnKey;
6967
7363
  const snapshot2 = createExternalStoreSignal(controller, "filterPopoverStore");
6968
- const state = createMemo18(() => snapshot2().state);
6969
- const layout = createMemo18(() => snapshot2().layout);
7364
+ const state = createMemo19(() => snapshot2().state);
7365
+ const layout = createMemo19(() => snapshot2().layout);
6970
7366
  const [panel, setPanel] = createSignal13(null);
6971
7367
  connectController(
6972
7368
  controller,
@@ -6986,9 +7382,9 @@ function createFilterPopover(inputs) {
6986
7382
  "effect",
6987
7383
  "filterPopover"
6988
7384
  );
6989
- const openedColumnKey = createMemo18(() => state()?.columnKey ?? null);
6990
- const openedFilterType = createMemo18(() => state()?.filterType ?? null);
6991
- const openedColumn = createMemo18(() => {
7385
+ const openedColumnKey = createMemo19(() => state()?.columnKey ?? null);
7386
+ const openedFilterType = createMemo19(() => state()?.filterType ?? null);
7387
+ const openedColumn = createMemo19(() => {
6992
7388
  openedColumnKey();
6993
7389
  openedFilterType();
6994
7390
  return resolveOpenedFilterColumn(popoverColumns(), untrack14(state));
@@ -6998,7 +7394,7 @@ function createFilterPopover(inputs) {
6998
7394
  layout,
6999
7395
  openedColumn,
7000
7396
  openedFilterType,
7001
- isOpen: createMemo18(() => state() !== null),
7397
+ isOpen: createMemo19(() => state() !== null),
7002
7398
  setPanel: (element) => {
7003
7399
  controller.panelRef.current = element;
7004
7400
  setPanel(element);
@@ -7016,13 +7412,13 @@ function createFilterPopover(inputs) {
7016
7412
  }
7017
7413
 
7018
7414
  // src/primitives/filterManagement.ts
7019
- import { createMemo as createMemo19, onCleanup as onCleanup12, untrack as untrack15 } from "solid-js";
7415
+ import { createMemo as createMemo20, onCleanup as onCleanup12, untrack as untrack15 } from "solid-js";
7020
7416
  import {
7021
7417
  createColumnFilterDescribeOptions,
7022
7418
  describeColumnFilterValue
7023
7419
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/filterSummary";
7024
7420
  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";
7421
+ import { formatLocaleText as formatLocaleText9 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7026
7422
  import {
7027
7423
  computeSinglePaneColumnExtent as computeSinglePaneColumnExtent2
7028
7424
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/geometry";
@@ -7032,11 +7428,12 @@ import { isInsideDetailCardOf as isInsideDetailCardOf2 } from "@ishibashi0112/sp
7032
7428
  var NO_COLUMNS2 = [];
7033
7429
  var JUMP_FLASH_CLASS_NAME = "ssg-header-cell--jump-flash";
7034
7430
  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(() => {
7431
+ const groupColumns = createMemo20(() => inputs.groupColumns?.() ?? NO_COLUMNS2);
7432
+ const groupColumnKeys = createMemo20(() => new Set(groupColumns().map((column) => column.key)));
7433
+ const entries = createMemo20(() => {
7038
7434
  const columnFilters = inputs.columnFilters();
7039
7435
  const texts = inputs.localeTexts();
7436
+ const titles = inputs.columnTitles?.();
7040
7437
  const result = [];
7041
7438
  const pushEntry = (column, isHidden, isGrouped = false) => {
7042
7439
  const value = columnFilters[column.key];
@@ -7045,7 +7442,7 @@ function createFilterManagement(inputs) {
7045
7442
  }
7046
7443
  result.push({
7047
7444
  columnKey: column.key,
7048
- title: column.title || column.key,
7445
+ title: titles?.get(column.key) ?? (column.title || column.key),
7049
7446
  // select / set の値はラベルで、数値の条件は列の valueFormatter で出します(チップのバーと共有)。
7050
7447
  summaryText: describeColumnFilterValue(value, createColumnFilterDescribeOptions(column, texts)),
7051
7448
  isHidden,
@@ -7066,13 +7463,14 @@ function createFilterManagement(inputs) {
7066
7463
  }
7067
7464
  return result;
7068
7465
  });
7069
- const addableColumns = createMemo19(() => {
7466
+ const addableColumns = createMemo20(() => {
7070
7467
  const columnFilters = inputs.columnFilters();
7071
7468
  const texts = inputs.localeTexts();
7469
+ const titles = inputs.columnTitles?.();
7072
7470
  const grouped = groupColumnKeys();
7073
7471
  return [...inputs.visibleColumns(), ...groupColumns()].filter((column) => Boolean(column.filterType) && !isActiveColumnFilterValue2(columnFilters[column.key])).map((column) => ({
7074
7472
  key: column.key,
7075
- title: grouped.has(column.key) ? formatLocaleText8(texts.groupedColumnTitle, { column: column.title || column.key }) : column.title || column.key
7473
+ title: grouped.has(column.key) ? formatLocaleText9(texts.groupedColumnTitle, { column: column.title || column.key }) : titles?.get(column.key) ?? (column.title || column.key)
7076
7474
  }));
7077
7475
  });
7078
7476
  const pendingFrames = /* @__PURE__ */ new Set();
@@ -7156,7 +7554,7 @@ function createFilterManagement(inputs) {
7156
7554
  }
7157
7555
 
7158
7556
  // src/view/ColumnFilterPopoverHost.tsx
7159
- import { Show as Show16, createMemo as createMemo20, untrack as untrack16 } from "solid-js";
7557
+ import { Show as Show17, createMemo as createMemo21, untrack as untrack16 } from "solid-js";
7160
7558
  import {
7161
7559
  createFilterPopoverCommands,
7162
7560
  createFilterPopoverDerivedResolver
@@ -7183,17 +7581,17 @@ import {
7183
7581
  describeColumnFilterValue as describeColumnFilterValue2
7184
7582
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/filterSummary";
7185
7583
  import { normalizeDateFilterPresets } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/dateFilterPresets";
7186
- import { formatLocaleText as formatLocaleText9 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7584
+ import { formatLocaleText as formatLocaleText10 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7187
7585
  import { getCellValue as getCellValue4 } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/permissions";
7188
7586
  function ColumnFilterPopoverHost(props) {
7189
7587
  const filterPopover = props.filterPopover;
7190
7588
  const openedColumn = filterPopover.openedColumn;
7191
7589
  const openedType = filterPopover.openedFilterType;
7192
- const openedOptionsKey = createMemo20(() => {
7590
+ const openedOptionsKey = createMemo21(() => {
7193
7591
  const column = openedColumn();
7194
7592
  return column ? String(column.key) : null;
7195
7593
  });
7196
- const optionRowsHold = createMemo20((prev) => {
7594
+ const optionRowsHold = createMemo21((prev) => {
7197
7595
  const key = openedOptionsKey();
7198
7596
  const rows = props.rows;
7199
7597
  if (key === null) {
@@ -7204,9 +7602,9 @@ function ColumnFilterPopoverHost(props) {
7204
7602
  }
7205
7603
  return prev;
7206
7604
  });
7207
- const optionRows = createMemo20(() => optionRowsHold().rows);
7208
- const openedIsDateSet = createMemo20(() => openedType() === "dateSet");
7209
- const getOpenedColumnRawValueAt = createMemo20(() => {
7605
+ const optionRows = createMemo21(() => optionRowsHold().rows);
7606
+ const openedIsDateSet = createMemo21(() => openedType() === "dateSet");
7607
+ const getOpenedColumnRawValueAt = createMemo21(() => {
7210
7608
  const rows = optionRows();
7211
7609
  const column = openedColumn();
7212
7610
  const isDateSet = openedIsDateSet();
@@ -7218,7 +7616,7 @@ function ColumnFilterPopoverHost(props) {
7218
7616
  return isDateSet ? toDateSetKey(value) : value;
7219
7617
  };
7220
7618
  });
7221
- const usesAsyncOptions = createMemo20(() => {
7619
+ const usesAsyncOptions = createMemo21(() => {
7222
7620
  const column = openedColumn();
7223
7621
  return props.getFilterOptions != null && column != null && isSelectLikeFilterType(openedType()) && !(column.filterOptions && column.filterOptions.length > 0);
7224
7622
  });
@@ -7235,12 +7633,12 @@ function ColumnFilterPopoverHost(props) {
7235
7633
  };
7236
7634
  }, "render", "filterOptionsSource");
7237
7635
  const asyncSnapshot = createExternalStoreSignal(asyncSource, "filterOptionsStore");
7238
- const collectColumn = createMemo20(() => usesAsyncOptions() ? null : openedColumn());
7239
- const numeric = createMemo20(() => openedType() === "numberSet");
7240
- const syncResult = createMemo20(
7636
+ const collectColumn = createMemo21(() => usesAsyncOptions() ? null : openedColumn());
7637
+ const numeric = createMemo21(() => openedType() === "numberSet");
7638
+ const syncResult = createMemo21(
7241
7639
  () => resolveSyncSelectOptions(collectColumn(), optionRows().length, getOpenedColumnRawValueAt(), numeric())
7242
7640
  );
7243
- const sourceKey = createMemo20(() => {
7641
+ const sourceKey = createMemo21(() => {
7244
7642
  const column = collectColumn();
7245
7643
  return column === null ? void 0 : String(column.key);
7246
7644
  });
@@ -7253,14 +7651,14 @@ function ColumnFilterPopoverHost(props) {
7253
7651
  sourceKey: sourceKey()
7254
7652
  }), "render", "filterValueCollector");
7255
7653
  const collectorSnapshot = createExternalStoreSignal(collector, "filterValueStore");
7256
- const optionsResult = createMemo20(() => {
7654
+ const optionsResult = createMemo21(() => {
7257
7655
  if (usesAsyncOptions()) {
7258
7656
  return selectAsyncOptionsResult(asyncSnapshot(), openedColumn()?.key ?? null);
7259
7657
  }
7260
7658
  return syncResult() ?? selectCollectorResult(collectorSnapshot(), optionRows().length, getOpenedColumnRawValueAt(), sourceKey());
7261
7659
  });
7262
7660
  const resolveDerived = createFilterPopoverDerivedResolver();
7263
- const derived = createMemo20(
7661
+ const derived = createMemo21(
7264
7662
  () => resolveDerived({
7265
7663
  openedFilterColumn: openedColumn(),
7266
7664
  openedFilterType: openedType(),
@@ -7284,14 +7682,14 @@ function ColumnFilterPopoverHost(props) {
7284
7682
  filterTexts: props.localeTexts
7285
7683
  }), "render", "filterPopoverCommands");
7286
7684
  const texts = () => props.localeTexts;
7287
- const currentValueText = createMemo20(() => {
7685
+ const currentValueText = createMemo21(() => {
7288
7686
  const column = openedColumn();
7289
7687
  if (!column) {
7290
7688
  return texts().filterCurrentNone;
7291
7689
  }
7292
7690
  const rawValue = props.columnFilters[column.key];
7293
7691
  if (isSetColumnFilterValue(rawValue)) {
7294
- return formatLocaleText9(rawValue.mode === "exclude" ? texts().filterCurrentExcluded : texts().filterCurrentSelected, {
7692
+ return formatLocaleText10(rawValue.mode === "exclude" ? texts().filterCurrentExcluded : texts().filterCurrentSelected, {
7295
7693
  count: rawValue.values.length
7296
7694
  });
7297
7695
  }
@@ -7301,16 +7699,16 @@ function ColumnFilterPopoverHost(props) {
7301
7699
  const text = columnFilterValueToDraftText(rawValue);
7302
7700
  return text.trim() ? text : texts().filterCurrentNone;
7303
7701
  });
7304
- const datePresets = createMemo20(() => {
7702
+ const datePresets = createMemo21(() => {
7305
7703
  const column = openedColumn();
7306
7704
  return column ? normalizeDateFilterPresets(column.dateFilterPresets, props.localeTexts) : void 0;
7307
7705
  });
7308
- const comboSummaryText = createMemo20(() => {
7706
+ const comboSummaryText = createMemo21(() => {
7309
7707
  const column = openedColumn();
7310
7708
  const value = derived().openedSetFilterValue;
7311
7709
  return column && value && isActiveColumnFilterValue3(value) ? describeColumnFilterValue2(value, createColumnFilterDescribeOptions2(column, props.localeTexts)) : props.localeTexts.filterNone;
7312
7710
  });
7313
- const renderDateInput = createMemo20(() => {
7711
+ const renderDateInput = createMemo21(() => {
7314
7712
  const render = props.renderFilterDateInput;
7315
7713
  const column = openedColumn();
7316
7714
  if (!render || !column) {
@@ -7329,16 +7727,16 @@ function ColumnFilterPopoverHost(props) {
7329
7727
  columnKey
7330
7728
  });
7331
7729
  });
7332
- return <Show16 when={openedColumn()}>
7333
- {(column) => <Show16 when={filterPopover.layout()}>
7334
- {(layout) => <Show16 when={props.views()}>
7730
+ return <Show17 when={openedColumn()}>
7731
+ {(column) => <Show17 when={filterPopover.layout()}>
7732
+ {(layout) => <Show17 when={props.views()}>
7335
7733
  {(views) => {
7336
7734
  const ColumnFilterPopover = untrack16(views).ColumnFilterPopover;
7337
- return <Show16 when={column().key} keyed>
7735
+ return <Show17 when={column().key} keyed>
7338
7736
  {(columnKey) => <ColumnFilterPopover
7339
7737
  popoverSlot={props.popoverSlot}
7340
7738
  themeClassName={props.themeClassName}
7341
- title={column().title || columnKey}
7739
+ title={props.columnTitles?.get(columnKey) ?? (column().title || columnKey)}
7342
7740
  filterType={openedType() ?? "text"}
7343
7741
  isServerSide={props.isServerSide && !usesAsyncOptions()}
7344
7742
  draftValue={filterPopover.state()?.draftValue ?? ""}
@@ -7375,22 +7773,22 @@ function ColumnFilterPopoverHost(props) {
7375
7773
  onSetClear={commands.clearSetFilterPopoverValue}
7376
7774
  onSetReplaceSelection={commands.handleSetFilterReplaceSelection}
7377
7775
  />}
7378
- </Show16>;
7776
+ </Show17>;
7379
7777
  }}
7380
- </Show16>}
7381
- </Show16>}
7382
- </Show16>;
7778
+ </Show17>}
7779
+ </Show17>}
7780
+ </Show17>;
7383
7781
  }
7384
7782
 
7385
7783
  // 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";
7784
+ import { For as For10, Show as Show18, createUniqueId as createUniqueId5 } from "solid-js";
7785
+ import { formatLocaleText as formatLocaleText11 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7388
7786
  function GridFilterChipBar(props) {
7389
7787
  const texts = useFeatureLocaleText();
7390
7788
  const chipIdBase = createUniqueId5();
7391
- return <Show17 when={props.entries.length > 0}>
7789
+ return <Show18 when={props.entries.length > 0}>
7392
7790
  <div class={["ssg-filter-chip-bar", props.slot?.className]} style={props.slot?.style}>
7393
- <For9 each={props.entries} keyed={(entry) => entry.columnKey}>
7791
+ <For10 each={props.entries} keyed={(entry) => entry.columnKey}>
7394
7792
  {(entry, index) => <div class={entry().isHidden ? "ssg-filter-chip ssg-filter-chip--hidden" : "ssg-filter-chip"}>
7395
7793
  <button
7396
7794
  type="button"
@@ -7413,7 +7811,7 @@ function GridFilterChipBar(props) {
7413
7811
  class="ssg-filter-chip-clear"
7414
7812
  disabled={!props.canFilter}
7415
7813
  data-ssg-tooltip={texts().filterClear}
7416
- aria-label={formatLocaleText10(texts().filterClearFor, { column: entry().title })}
7814
+ aria-label={formatLocaleText11(texts().filterClearFor, { column: entry().title })}
7417
7815
  onClick={() => props.onClearFilter(entry().columnKey)}
7418
7816
  >
7419
7817
  ×
@@ -7422,10 +7820,10 @@ function GridFilterChipBar(props) {
7422
7820
  /* 名前の後半(操作の説明)。ボタンの中に置くと文字に混ざるので外に置きます。 */
7423
7821
  }
7424
7822
  <span id={`${chipIdBase}-${index()}-action`} hidden>
7425
- {formatLocaleText10(texts().filterEditFor, { column: entry().title })}
7823
+ {formatLocaleText11(texts().filterEditFor, { column: entry().title })}
7426
7824
  </span>
7427
7825
  </div>}
7428
- </For9>
7826
+ </For10>
7429
7827
  <button
7430
7828
  type="button"
7431
7829
  class="ssg-filter-chip-bar-clear-all"
@@ -7435,15 +7833,15 @@ function GridFilterChipBar(props) {
7435
7833
  {texts().clearAll}
7436
7834
  </button>
7437
7835
  </div>
7438
- </Show17>;
7836
+ </Show18>;
7439
7837
  }
7440
7838
 
7441
7839
  // src/view/lazyPopups.ts
7442
- import { createEffect as createEffect8, createMemo as createMemo21 } from "solid-js";
7840
+ import { createEffect as createEffect8, createMemo as createMemo22 } from "solid-js";
7443
7841
  import { createLazyModule } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/lazyModule";
7444
7842
  import { scheduleIdleTask } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/scheduler";
7445
7843
  var filterPopoverModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/ColumnFilterPopover-D7INPNVB.jsx"));
7446
- var toolPanelModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/toolPanelViews-HIQGRX3N.jsx"));
7844
+ var toolPanelModule = /* @__PURE__ */ createLazyModule(() => import("./chunks/toolPanelViews-BRH5PCOI.jsx"));
7447
7845
  var preloadGridPopups = async () => {
7448
7846
  await Promise.all([filterPopoverModule.load(), toolPanelModule.load()]);
7449
7847
  };
@@ -7453,7 +7851,7 @@ var reportLoadError = (error) => {
7453
7851
  function createLazyModuleSignal(module, options, name) {
7454
7852
  const loaded = createExternalStoreSignal(module, `${name}Module`);
7455
7853
  createEffect8(
7456
- createMemo21(() => options.needed() && loaded() === null),
7854
+ createMemo22(() => options.needed() && loaded() === null),
7457
7855
  (shouldLoad) => {
7458
7856
  if (!shouldLoad) {
7459
7857
  return;
@@ -7472,7 +7870,7 @@ function createLazyModuleSignal(module, options, name) {
7472
7870
  { name: `${name}Load` }
7473
7871
  );
7474
7872
  createEffect8(
7475
- createMemo21(() => options.prefetch() && module.getSnapshot() === null),
7873
+ createMemo22(() => options.prefetch() && module.getSnapshot() === null),
7476
7874
  (shouldPrefetch) => {
7477
7875
  if (!shouldPrefetch) {
7478
7876
  return;
@@ -7643,14 +8041,14 @@ import { buildGroupTree, flattenGroupTree } from "@ishibashi0112/spreadsheet-gri
7643
8041
  import { DEFAULT_GROUPING_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
7644
8042
 
7645
8043
  // src/view/GridBodyGroupRow.tsx
7646
- import { For as For10, Show as Show18, createMemo as createMemo22 } from "solid-js";
8044
+ import { For as For11, Show as Show19, createMemo as createMemo23 } from "solid-js";
7647
8045
  import { GROUP_AUTO_COLUMN_KEY as GROUP_AUTO_COLUMN_KEY3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/grouping";
7648
8046
  import {
7649
8047
  formatTotalRowCellText,
7650
8048
  formatTotalRowNumber,
7651
8049
  resolveTotalRowCaption
7652
8050
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/totalRow";
7653
- import { formatLocaleText as formatLocaleText11 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8051
+ import { formatLocaleText as formatLocaleText12 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
7654
8052
  var GROUP_INDENT_PX = 16;
7655
8053
  function GridBodyGroupRow(props) {
7656
8054
  const texts = useFeatureLocaleText();
@@ -7673,7 +8071,7 @@ function GridBodyGroupRow(props) {
7673
8071
  }}
7674
8072
  onDblClick={() => props.onGroupToggle(props.groupRow.groupKey)}
7675
8073
  >
7676
- <Show18 when={props.ownsRowHeader}>
8074
+ <Show19 when={props.ownsRowHeader}>
7677
8075
  <div
7678
8076
  role={rowHeaderIsCell() ? "rowheader" : void 0}
7679
8077
  aria-colindex={rowHeaderIsCell() ? 1 : void 0}
@@ -7698,13 +8096,13 @@ function GridBodyGroupRow(props) {
7698
8096
  >
7699
8097
  {props.showRowCheckbox ? null : props.rowIndex + 1}
7700
8098
  </div>
7701
- </Show18>
7702
- <For10 each={props.entries} keyed={(entry) => entry.column.key}>
8099
+ </Show19>
8100
+ <For11 each={props.entries} keyed={(entry) => entry.column.key}>
7703
8101
  {(entry) => {
7704
- const unbound = createMemo22(() => entry().column);
8102
+ const unbound = createMemo23(() => entry().column);
7705
8103
  const column = () => unbound();
7706
8104
  const isAutoGroupColumn = () => column().key === GROUP_AUTO_COLUMN_KEY3;
7707
- const aggregate = createMemo22(() => {
8105
+ const aggregate = createMemo23(() => {
7708
8106
  const current = column();
7709
8107
  if (isAutoGroupColumn() || !Object.prototype.hasOwnProperty.call(props.groupRow.aggregates, current.key)) {
7710
8108
  return null;
@@ -7741,19 +8139,19 @@ function GridBodyGroupRow(props) {
7741
8139
  "z-index": 1
7742
8140
  }}
7743
8141
  >
7744
- <Show18
8142
+ <Show19
7745
8143
  when={isAutoGroupColumn()}
7746
- fallback={<Show18 when={aggregate()}>
8144
+ fallback={<Show19 when={aggregate()}>
7747
8145
  {(shown) => <span
7748
8146
  class="ssg-group-value"
7749
8147
  data-ssg-tooltip-overflow={shown().text !== "" ? shown().caption !== void 0 ? `${shown().caption} ${shown().text}` : shown().text : void 0}
7750
8148
  >
7751
- <Show18 when={shown().caption !== void 0 && shown().text !== ""}>
8149
+ <Show19 when={shown().caption !== void 0 && shown().text !== ""}>
7752
8150
  <span class="ssg-group-caption">{shown().caption}</span>
7753
- </Show18>
8151
+ </Show19>
7754
8152
  {shown().text}
7755
8153
  </span>}
7756
- </Show18>}
8154
+ </Show19>}
7757
8155
  >
7758
8156
  <span
7759
8157
  aria-hidden="true"
@@ -7765,7 +8163,7 @@ function GridBodyGroupRow(props) {
7765
8163
  tabindex={-1}
7766
8164
  class="ssg-group-toggle"
7767
8165
  aria-expanded={props.isCollapsed ? "false" : "true"}
7768
- aria-label={formatLocaleText11(props.isCollapsed ? texts().expandGroup : texts().collapseGroup, {
8166
+ aria-label={formatLocaleText12(props.isCollapsed ? texts().expandGroup : texts().collapseGroup, {
7769
8167
  group: groupLabel()
7770
8168
  })}
7771
8169
  onClick={() => props.onGroupToggle(props.groupRow.groupKey)}
@@ -7775,12 +8173,12 @@ function GridBodyGroupRow(props) {
7775
8173
  </button>
7776
8174
  <span class="ssg-group-label">{groupLabel()}</span>
7777
8175
  <span class="ssg-group-count">
7778
- {formatLocaleText11(texts().groupRowCount, { count: formatTotalRowNumber(props.groupRow.leafCount) })}
8176
+ {formatLocaleText12(texts().groupRowCount, { count: formatTotalRowNumber(props.groupRow.leafCount) })}
7779
8177
  </span>
7780
- </Show18>
8178
+ </Show19>
7781
8179
  </div>;
7782
8180
  }}
7783
- </For10>
8181
+ </For11>
7784
8182
  </div>;
7785
8183
  }
7786
8184
 
@@ -7813,12 +8211,12 @@ import {
7813
8211
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/labelRows";
7814
8212
 
7815
8213
  // src/view/GridBodyLabelRow.tsx
7816
- import { Show as Show19, createMemo as createMemo23 } from "solid-js";
8214
+ import { Show as Show20, createMemo as createMemo24 } from "solid-js";
7817
8215
  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);
8216
+ const row = createMemo24(() => labelRow().row);
8217
+ const sourceRowIndex = createMemo24(() => labelRow().sourceIndex);
8218
+ const label = createMemo24(() => labelRow().label);
8219
+ const sectionRowCount = createMemo24(() => labelRow().sectionRowCount);
7822
8220
  return {
7823
8221
  get row() {
7824
8222
  return row();
@@ -7863,7 +8261,7 @@ function GridBodyLabelRow(props) {
7863
8261
  transform: `translateY(${props.top}px)`
7864
8262
  }}
7865
8263
  >
7866
- <Show19 when={props.ownsRowHeader}>
8264
+ <Show20 when={props.ownsRowHeader}>
7867
8265
  <div
7868
8266
  aria-hidden="true"
7869
8267
  class={["ssg-header-cell", "ssg-row-header-cell", "ssg-row-header-cell--label", props.slots.rowHeaderCell?.className]}
@@ -7874,8 +8272,8 @@ function GridBodyLabelRow(props) {
7874
8272
  height: px(props.rowHeight)
7875
8273
  }}
7876
8274
  />
7877
- </Show19>
7878
- <Show19 when={props.renderContent}>
8275
+ </Show20>
8276
+ <Show20 when={props.renderContent}>
7879
8277
  {(render) => <div
7880
8278
  role="rowheader"
7881
8279
  aria-colindex={1}
@@ -7889,24 +8287,24 @@ function GridBodyLabelRow(props) {
7889
8287
  {render()(ctx)}
7890
8288
  </div>
7891
8289
  </div>}
7892
- </Show19>
8290
+ </Show20>
7893
8291
  </div>;
7894
8292
  }
7895
8293
 
7896
8294
  // src/view/GridStickyLabelLayer.tsx
7897
- import { Show as Show20, createMemo as createMemo24, onSettled as onSettled8 } from "solid-js";
8295
+ import { Show as Show21, createMemo as createMemo25, onSettled as onSettled8 } from "solid-js";
7898
8296
  var FOCUSABLE_SELECTOR = 'a[href], button, input, select, textarea, [tabindex], [contenteditable="true"]';
7899
8297
  function GridStickyLabelLayer(props) {
7900
- return <Show20 when={props.entry}>
8298
+ return <Show21 when={props.entry}>
7901
8299
  {(entry) => <StickyLabel layer={props} entry={entry} />}
7902
- </Show20>;
8300
+ </Show21>;
7903
8301
  }
7904
8302
  function StickyLabel(props) {
7905
8303
  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);
8304
+ const labelRow = createMemo25(() => props.entry().labelRow);
8305
+ const rowIndex = createMemo25(() => props.entry().rowIndex);
8306
+ const rowKey = createMemo25(() => props.entry().rowKey);
8307
+ const height = createMemo25(() => props.entry().height);
7910
8308
  const ctx = createLabelRowRenderContext(labelRow, rowIndex, rowKey);
7911
8309
  let element;
7912
8310
  onSettled8(() => {
@@ -7961,7 +8359,7 @@ function StickyLabel(props) {
7961
8359
  ...props.entry().pushOffset > 0 ? { transform: `translateY(${-props.entry().pushOffset}px)` } : null
7962
8360
  }}
7963
8361
  >
7964
- <Show20 when={layer.ownsRowHeader}>
8362
+ <Show21 when={layer.ownsRowHeader}>
7965
8363
  <div
7966
8364
  class={["ssg-header-cell", "ssg-row-header-cell", "ssg-row-header-cell--label", layer.slots.rowHeaderCell?.className]}
7967
8365
  style={{
@@ -7971,8 +8369,8 @@ function StickyLabel(props) {
7971
8369
  height: px(height())
7972
8370
  }}
7973
8371
  />
7974
- </Show20>
7975
- <Show20 when={layer.renderContent}>
8372
+ </Show21>
8373
+ <Show21 when={layer.renderContent}>
7976
8374
  {(render) => <div
7977
8375
  class="ssg-label-row-content-holder"
7978
8376
  style={{ left: px(layer.contentStickyLeft), width: px(layer.contentWidth), height: px(height()) }}
@@ -7981,12 +8379,12 @@ function StickyLabel(props) {
7981
8379
  class={["ssg-label-row-content", layer.slots.labelRowContent?.className]}
7982
8380
  style={layer.slots.labelRowContent?.style}
7983
8381
  >
7984
- <Show20 when={[rowKey(), render()]} keyed>
8382
+ <Show21 when={[rowKey(), render()]} keyed>
7985
8383
  {([, renderContent]) => renderContent(ctx)}
7986
- </Show20>
8384
+ </Show21>
7987
8385
  </div>
7988
8386
  </div>}
7989
- </Show20>
8387
+ </Show21>
7990
8388
  </div>
7991
8389
  </div>
7992
8390
  );
@@ -8009,7 +8407,7 @@ import { createSaveStatusController } from "@ishibashi0112/spreadsheet-grid-core
8009
8407
  import { DEFAULT_SERVER_SIDE_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
8010
8408
 
8011
8409
  // src/primitives/serverSide.ts
8012
- import { createMemo as createMemo25, untrack as untrack18 } from "solid-js";
8410
+ import { createMemo as createMemo26, untrack as untrack18 } from "solid-js";
8013
8411
  import {
8014
8412
  createServerSideRowModel
8015
8413
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/serverSideRowModel";
@@ -8046,38 +8444,38 @@ function createServerSide(args) {
8046
8444
  };
8047
8445
  const snapshot2 = createExternalStoreSignal(controller, "serverSideRowModelStore");
8048
8446
  return {
8049
- rowModel: createMemo25(() => snapshot2().rowModel),
8447
+ rowModel: createMemo26(() => snapshot2().rowModel),
8050
8448
  rowCount: () => snapshot2().rowCount,
8051
- loadError: createMemo25(() => snapshot2().loadError),
8052
- writeError: createMemo25(() => snapshot2().writeError),
8449
+ loadError: createMemo26(() => snapshot2().loadError),
8450
+ writeError: createMemo26(() => snapshot2().writeError),
8053
8451
  // 追加(1.5.0 / serverSideRefetch="keep"): 取り直しの間、前の行を見せているか。
8054
- refetching: createMemo25(() => snapshot2().refetching),
8452
+ refetching: createMemo26(() => snapshot2().refetching),
8055
8453
  isRowLoaded: controller.isRowLoaded,
8056
8454
  requestRange,
8057
8455
  refresh: controller.refresh,
8058
8456
  retryFailedBlocks: controller.retryFailedBlocks,
8059
8457
  // 書き戻し先(dataSource.updateRows)があるか。無い間はシェルがすべてのセルを編集できないようにする。
8060
- canUpdateRows: createMemo25(() => args().dataSource?.updateRows !== void 0),
8458
+ canUpdateRows: createMemo26(() => args().dataSource?.updateRows !== void 0),
8061
8459
  applyCellEdits: controller.applyCellEdits
8062
8460
  };
8063
8461
  }
8064
8462
 
8065
8463
  // 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";
8464
+ import { Show as Show22, createSignal as createSignal15 } from "solid-js";
8465
+ import { formatLocaleText as formatLocaleText13 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8068
8466
  function GridServerSideErrorBars(props) {
8069
8467
  const [dismissedLoadError, setDismissedLoadError] = createSignal15(null);
8070
8468
  const [dismissedWriteError, setDismissedWriteError] = createSignal15(null);
8071
8469
  const texts = () => props.localeTexts;
8072
8470
  const shownLoadError = () => props.loadError !== null && props.loadError !== dismissedLoadError() ? props.loadError : null;
8073
8471
  const shownWriteError = () => props.writeError !== null && props.writeError !== dismissedWriteError() ? props.writeError : null;
8074
- return <Show21 when={shownLoadError() !== null || shownWriteError() !== null}>
8472
+ return <Show22 when={shownLoadError() !== null || shownWriteError() !== null}>
8075
8473
  <div class="ssg-ssrm-error-bars">
8076
- <Show21 when={shownLoadError()}>
8474
+ <Show22 when={shownLoadError()}>
8077
8475
  {(loadError) => <div class={["ssg-ssrm-error-bar", props.slot?.className]} style={props.slot?.style} role="alert">
8078
8476
  <span class="ssg-ssrm-error-bar-dot" aria-hidden="true" />
8079
8477
  <span class="ssg-ssrm-error-bar-msg">
8080
- {formatLocaleText12(texts().loadFailed, { count: loadError().failedBlockCount })}
8478
+ {formatLocaleText13(texts().loadFailed, { count: loadError().failedBlockCount })}
8081
8479
  </span>
8082
8480
  <button type="button" class="ssg-ssrm-error-bar-retry" onClick={() => props.onRetry()}>
8083
8481
  {texts().retry}
@@ -8091,12 +8489,12 @@ function GridServerSideErrorBars(props) {
8091
8489
  ×
8092
8490
  </button>
8093
8491
  </div>}
8094
- </Show21>
8095
- <Show21 when={shownWriteError()}>
8492
+ </Show22>
8493
+ <Show22 when={shownWriteError()}>
8096
8494
  {(writeError) => <div class={["ssg-ssrm-error-bar", props.slot?.className]} style={props.slot?.style} role="alert">
8097
8495
  <span class="ssg-ssrm-error-bar-dot" aria-hidden="true" />
8098
8496
  <span class="ssg-ssrm-error-bar-msg">
8099
- {formatLocaleText12(texts().saveFailed, { count: writeError().failedRowCount })}
8497
+ {formatLocaleText13(texts().saveFailed, { count: writeError().failedRowCount })}
8100
8498
  </span>
8101
8499
  <button
8102
8500
  type="button"
@@ -8107,13 +8505,13 @@ function GridServerSideErrorBars(props) {
8107
8505
  ×
8108
8506
  </button>
8109
8507
  </div>}
8110
- </Show21>
8508
+ </Show22>
8111
8509
  </div>
8112
- </Show21>;
8510
+ </Show22>;
8113
8511
  }
8114
8512
 
8115
8513
  // src/view/GridBodySkeletonRow.tsx
8116
- import { For as For11, Show as Show22 } from "solid-js";
8514
+ import { For as For12, Show as Show23 } from "solid-js";
8117
8515
  var SKELETON_BAR_WIDTHS = ["62%", "46%", "78%", "54%"];
8118
8516
  function GridBodySkeletonRow(props) {
8119
8517
  return <div
@@ -8130,7 +8528,7 @@ function GridBodySkeletonRow(props) {
8130
8528
  transform: `translateY(${props.top}px)`
8131
8529
  }}
8132
8530
  >
8133
- <Show22 when={props.ownsRowHeader}>
8531
+ <Show23 when={props.ownsRowHeader}>
8134
8532
  <div
8135
8533
  role="rowheader"
8136
8534
  aria-colindex={1}
@@ -8154,12 +8552,12 @@ function GridBodySkeletonRow(props) {
8154
8552
  height: px(props.rowHeight)
8155
8553
  }}
8156
8554
  >
8157
- <Show22 when={props.showRowCheckbox} fallback={props.rowIndex + 1}>
8555
+ <Show23 when={props.showRowCheckbox} fallback={props.rowIndex + 1}>
8158
8556
  <RowSelectionCheckbox slot={props.slots.checkbox} state="unchecked" disabled />
8159
- </Show22>
8557
+ </Show23>
8160
8558
  </div>
8161
- </Show22>
8162
- <For11 each={props.entries} keyed={(entry) => entry.logicalIndex}>
8559
+ </Show23>
8560
+ <For12 each={props.entries} keyed={(entry) => entry.logicalIndex}>
8163
8561
  {(entry) => {
8164
8562
  const cell = () => ({ row: props.rowIndex, col: entry().logicalIndex });
8165
8563
  return <div
@@ -8188,7 +8586,7 @@ function GridBodySkeletonRow(props) {
8188
8586
  />
8189
8587
  </div>;
8190
8588
  }}
8191
- </For11>
8589
+ </For12>
8192
8590
  </div>;
8193
8591
  }
8194
8592
 
@@ -8205,7 +8603,7 @@ var serverSideFeature = {
8205
8603
  import { createChangeHighlightController } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/changeHighlightController";
8206
8604
 
8207
8605
  // src/view/CopyRangeOverlay.tsx
8208
- import { Show as Show23 } from "solid-js";
8606
+ import { Show as Show24 } from "solid-js";
8209
8607
  var placement = (props, rect) => ({
8210
8608
  position: "absolute",
8211
8609
  left: px(props.leadingWidth + rect.left),
@@ -8214,18 +8612,18 @@ var placement = (props, rect) => ({
8214
8612
  height: px(rect.height)
8215
8613
  });
8216
8614
  function CopyRangeOverlay(props) {
8217
- return <Show23 when={props.rect}>
8615
+ return <Show24 when={props.rect}>
8218
8616
  {(rect) => <div
8219
8617
  class={["ssg-copy-range-overlay", props.slot?.className]}
8220
8618
  style={{ ...props.slot?.style, ...placement(props, rect()) }}
8221
8619
  data-ssg-copy-range=""
8222
8620
  />}
8223
- </Show23>;
8621
+ </Show24>;
8224
8622
  }
8225
8623
  function ColumnHoverOverlay(props) {
8226
- return <Show23 when={props.rect}>
8624
+ return <Show24 when={props.rect}>
8227
8625
  {(rect) => <div class="ssg-col-hover-overlay" style={placement(props, rect())} data-ssg-col-hover="" />}
8228
- </Show23>;
8626
+ </Show24>;
8229
8627
  }
8230
8628
 
8231
8629
  // src/features/motionExtras.ts
@@ -8239,11 +8637,11 @@ var motionExtrasFeature = {
8239
8637
  import { DEFAULT_PINNED_ROWS_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
8240
8638
 
8241
8639
  // src/view/GridPinnedRows.tsx
8242
- import { For as For12, Show as Show24, createMemo as createMemo26 } from "solid-js";
8640
+ import { For as For13, Show as Show25, createMemo as createMemo27 } from "solid-js";
8243
8641
  import { resolveSlotProps as resolveSlotProps3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/slotProps";
8244
8642
  import { isSyntheticColumnKey as isSyntheticColumnKey3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/detailRow";
8245
8643
  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";
8644
+ import { formatLocaleText as formatLocaleText14 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8247
8645
  import { getCellValue as getCellValue5 } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/permissions";
8248
8646
  var noop4 = () => {
8249
8647
  };
@@ -8252,18 +8650,18 @@ function GridPinnedRows(props) {
8252
8650
  const texts = useFeatureLocaleText();
8253
8651
  const hidden = () => !props.ownsRowHeader && props.entries.length === 0;
8254
8652
  return <>
8255
- <Show24 when={props.bodyHeight > 0}>
8653
+ <Show25 when={props.bodyHeight > 0}>
8256
8654
  <div aria-hidden="true" style={{ height: px(props.bodyHeight) }} />
8257
- </Show24>
8655
+ </Show25>
8258
8656
  <div
8259
8657
  class={["ssg-pinned-rows", `ssg-pinned-rows--${props.position}`]}
8260
8658
  style={{ [props.position]: px(props.stickyOffset), height: px(props.rows.length * props.rowHeight) }}
8261
8659
  onPointerEnter={() => props.onPointerEnter()}
8262
8660
  >
8263
- <For12 each={props.rows} keyed={false}>
8661
+ <For13 each={props.rows} keyed={false}>
8264
8662
  {(row, index) => {
8265
8663
  const rowKey = () => props.rowKeyGetter(row(), index);
8266
- const rowSlot = createMemo26(
8664
+ const rowSlot = createMemo27(
8267
8665
  () => resolveSlotProps3(
8268
8666
  props.getRowClassName?.(row(), index, {
8269
8667
  row: row(),
@@ -8284,7 +8682,7 @@ function GridPinnedRows(props) {
8284
8682
  class={["ssg-pinned-row", rowSlot().className]}
8285
8683
  style={{ ...rowSlot().style, height: px(props.rowHeight), top: px(index * props.rowHeight) }}
8286
8684
  >
8287
- <Show24 when={props.ownsRowHeader}>
8685
+ <Show25 when={props.ownsRowHeader}>
8288
8686
  <div
8289
8687
  role="rowheader"
8290
8688
  aria-colindex={1}
@@ -8307,7 +8705,7 @@ function GridPinnedRows(props) {
8307
8705
  class="ssg-pinned-row-icon"
8308
8706
  viewBox="0 0 16 16"
8309
8707
  role="img"
8310
- aria-label={formatLocaleText13(
8708
+ aria-label={formatLocaleText14(
8311
8709
  props.position === "top" ? texts().pinnedTopRow : texts().pinnedBottomRow,
8312
8710
  { row: index + 1 }
8313
8711
  )}
@@ -8315,14 +8713,14 @@ function GridPinnedRows(props) {
8315
8713
  <path d={PIN_ICON_PATH} />
8316
8714
  </svg>
8317
8715
  </div>
8318
- </Show24>
8319
- <For12 each={props.entries} keyed={(entry) => entry.column.key}>
8716
+ </Show25>
8717
+ <For13 each={props.entries} keyed={(entry) => entry.column.key}>
8320
8718
  {(entry) => {
8321
- const unbound = createMemo26(() => entry().column);
8719
+ const unbound = createMemo27(() => entry().column);
8322
8720
  const column = () => unbound();
8323
- const value = createMemo26(() => getCellValue5(row(), unbound()));
8324
- const colIndex = createMemo26(() => entry().logicalIndex);
8325
- const ctx = createMemo26(
8721
+ const value = createMemo27(() => getCellValue5(row(), unbound()));
8722
+ const colIndex = createMemo27(() => entry().logicalIndex);
8723
+ const ctx = createMemo27(
8326
8724
  () => ({
8327
8725
  row: row(),
8328
8726
  rowIndex: index,
@@ -8338,19 +8736,19 @@ function GridPinnedRows(props) {
8338
8736
  pinned: props.position
8339
8737
  })
8340
8738
  );
8341
- const cellSlot = createMemo26(() => {
8739
+ const cellSlot = createMemo27(() => {
8342
8740
  const cellClassName = column().cellClassName;
8343
8741
  return resolveSlotProps3(
8344
8742
  typeof cellClassName === "function" ? cellClassName(ctx()) : cellClassName
8345
8743
  );
8346
8744
  });
8347
8745
  const rules = () => props.conditionalFormat ? column().conditionalFormat : void 0;
8348
- const dataBar = createMemo26(() => {
8746
+ const dataBar = createMemo27(() => {
8349
8747
  const feature = props.conditionalFormat;
8350
8748
  const format = rules()?.dataBar;
8351
8749
  return feature && format ? feature.resolveDataBar(format, value(), props.conditionalFormatStats.get(unbound().key)) : null;
8352
8750
  });
8353
- const scaleBackground = createMemo26(() => {
8751
+ const scaleBackground = createMemo27(() => {
8354
8752
  const feature = props.conditionalFormat;
8355
8753
  const format = rules()?.colorScale;
8356
8754
  return feature && format ? feature.resolveColorScaleBackground(format, value(), props.conditionalFormatStats.get(unbound().key)) : null;
@@ -8360,7 +8758,7 @@ function GridPinnedRows(props) {
8360
8758
  const format = rules()?.dataBar;
8361
8759
  return bar ? bar.negative ? format?.negativeColor : format?.color : void 0;
8362
8760
  };
8363
- const content = createMemo26(() => {
8761
+ const content = createMemo27(() => {
8364
8762
  const current = column();
8365
8763
  if (isSyntheticColumnKey3(current.key)) {
8366
8764
  return null;
@@ -8422,7 +8820,7 @@ function GridPinnedRows(props) {
8422
8820
  height: px(props.rowHeight)
8423
8821
  }}
8424
8822
  >
8425
- <Show24 when={dataBar()}>
8823
+ <Show25 when={dataBar()}>
8426
8824
  {(bar) => <span
8427
8825
  class={["ssg-cf-bar", { "ssg-cf-bar--negative": bar().negative }]}
8428
8826
  style={{
@@ -8432,14 +8830,14 @@ function GridPinnedRows(props) {
8432
8830
  }}
8433
8831
  aria-hidden="true"
8434
8832
  />}
8435
- </Show24>
8833
+ </Show25>
8436
8834
  {content()}
8437
8835
  </div>;
8438
8836
  }}
8439
- </For12>
8837
+ </For13>
8440
8838
  </div>;
8441
8839
  }}
8442
- </For12>
8840
+ </For13>
8443
8841
  </div>
8444
8842
  </>;
8445
8843
  }
@@ -8454,7 +8852,7 @@ var pinnedRowsFeature = {
8454
8852
  import { DEFAULT_ROW_DRAG_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
8455
8853
 
8456
8854
  // src/primitives/rowDrag.ts
8457
- import { createEffect as createEffect9, createMemo as createMemo27, untrack as untrack19 } from "solid-js";
8855
+ import { createEffect as createEffect9, createMemo as createMemo28, untrack as untrack19 } from "solid-js";
8458
8856
  import {
8459
8857
  createRowDragController
8460
8858
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/rowDragController";
@@ -8469,10 +8867,10 @@ function createRowDrag(inputs) {
8469
8867
  const leftIndicatorRef = { current: null };
8470
8868
  const centerIndicatorRef = { current: null };
8471
8869
  const rightIndicatorRef = { current: null };
8472
- const canDropAt = createMemo27(() => createRowDropCheck(inputs.canDropRow(), inputs.rows(), inputs.resolveRowKey()));
8870
+ const canDropAt = createMemo28(() => createRowDropCheck(inputs.canDropRow(), inputs.rows(), inputs.resolveRowKey()));
8473
8871
  const getRowDragLabel = (viewIndex) => resolveRowDragLabel(untrack19(inputs.rowModel), untrack19(inputs.visibleColumns), viewIndex, untrack19(inputs.dragRowLabel));
8474
8872
  const getDragRow = (viewIndex) => getDragRowToken(untrack19(inputs.rowModel), viewIndex);
8475
- const locateDragRow = createMemo27(() => {
8873
+ const locateDragRow = createMemo28(() => {
8476
8874
  const rowModel = inputs.rowModel();
8477
8875
  const hasRowKeys = inputs.hasRowKeys();
8478
8876
  return (token, hint) => locateDragRowToken(rowModel, hasRowKeys, token, hint);
@@ -8510,7 +8908,7 @@ function createRowDrag(inputs) {
8510
8908
  }
8511
8909
 
8512
8910
  // src/view/RowDragHandle.tsx
8513
- var SVG_NOT_FOCUSABLE4 = { focusable: "false" };
8911
+ var SVG_NOT_FOCUSABLE5 = { focusable: "false" };
8514
8912
  function RowDragHandle(props) {
8515
8913
  return <span
8516
8914
  class={["ssg-row-drag-handle", { "ssg-row-drag-handle--disabled": !props.operable }]}
@@ -8522,7 +8920,7 @@ function RowDragHandle(props) {
8522
8920
  }
8523
8921
  }}
8524
8922
  >
8525
- <svg width="8" height="14" viewBox="0 0 8 14" fill="currentColor" aria-hidden="true" {...SVG_NOT_FOCUSABLE4}>
8923
+ <svg width="8" height="14" viewBox="0 0 8 14" fill="currentColor" aria-hidden="true" {...SVG_NOT_FOCUSABLE5}>
8526
8924
  <circle cx="2" cy="3" r="1" />
8527
8925
  <circle cx="6" cy="3" r="1" />
8528
8926
  <circle cx="2" cy="7" r="1" />
@@ -8546,7 +8944,7 @@ import { resolveScrollHintOptions } from "@ishibashi0112/spreadsheet-grid-core/i
8546
8944
  import { DEFAULT_SCROLL_HINT_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
8547
8945
 
8548
8946
  // src/view/GridScrollHint.tsx
8549
- import { For as For13, Show as Show25, createMemo as createMemo28, createSignal as createSignal16, createEffect as createEffect10 } from "solid-js";
8947
+ import { For as For14, Show as Show26, createMemo as createMemo29, createSignal as createSignal16, createEffect as createEffect10 } from "solid-js";
8550
8948
  import { physicalToLogicalScrollTop as physicalToLogicalScrollTop3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/verticalGeometry";
8551
8949
  import { resolveDataRowNumber as resolveDataRowNumber3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/labelRows";
8552
8950
  import {
@@ -8555,7 +8953,7 @@ import {
8555
8953
  computeScrollHintTrackPointerScrollTop,
8556
8954
  resolveScrollHintDetail
8557
8955
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/scrollHint";
8558
- import { formatLocaleText as formatLocaleText14 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8956
+ import { formatLocaleText as formatLocaleText15 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8559
8957
  var SCROLL_HINT_LINGER_MS = 1e3;
8560
8958
  var SCROLL_HINT_BUBBLE_GAP_PX = 8;
8561
8959
  var SCROLL_HINT_GUTTER_WIDTH_PX = 14;
@@ -8572,10 +8970,10 @@ function GridScrollHint(props) {
8572
8970
  let lingerTimer = null;
8573
8971
  let dragGrab = null;
8574
8972
  let gutter;
8575
- const scrollbar = createMemo28(() => props.options.scrollbar);
8973
+ const scrollbar = createMemo29(() => props.options.scrollbar);
8576
8974
  const trackTop = () => scrollbar() ? props.headerHeight : 0;
8577
8975
  const trackHeight = () => Math.max(scrollbar() ? props.viewportHeight - props.headerHeight : props.viewportHeight, 0);
8578
- const track = createMemo28(
8976
+ const track = createMemo29(
8579
8977
  () => computeScrollHintTrack({
8580
8978
  scrollTop: props.scrollTop,
8581
8979
  contentHeight: props.headerHeight + props.physicalBodyHeight,
@@ -8583,7 +8981,7 @@ function GridScrollHint(props) {
8583
8981
  trackHeight: trackHeight()
8584
8982
  })
8585
8983
  );
8586
- const shown = createMemo28(() => track() !== null && props.rowMetrics.rowCount > 0);
8984
+ const shown = createMemo29(() => track() !== null && props.rowMetrics.rowCount > 0);
8587
8985
  createEffect10(scrollbar, (customScrollbar) => {
8588
8986
  const element = props.scrollContainerRef.current;
8589
8987
  if (!element) {
@@ -8652,12 +9050,12 @@ function GridScrollHint(props) {
8652
9050
  );
8653
9051
  const rulerHeight = () => Math.max(props.viewportHeight - props.headerHeight, 0);
8654
9052
  const labelCount = () => props.labelViewIndexes?.length ?? 0;
8655
- const dataRowCount = createMemo28(() => Math.max(props.rowMetrics.rowCount - labelCount(), 0));
9053
+ const dataRowCount = createMemo29(() => Math.max(props.rowMetrics.rowCount - labelCount(), 0));
8656
9054
  const rowNumberOf = (viewIndex) => {
8657
9055
  const labels = props.labelViewIndexes;
8658
9056
  return labels && labels.length > 0 ? resolveDataRowNumber3(labels, viewIndex) : viewIndex + 1;
8659
9057
  };
8660
- const rulerTicks = createMemo28(
9058
+ const rulerTicks = createMemo29(
8661
9059
  () => props.options.ruler ? computeScrollHintRulerTicks({
8662
9060
  rowCount: dataRowCount(),
8663
9061
  rulerHeight: rulerHeight(),
@@ -8667,7 +9065,7 @@ function GridScrollHint(props) {
8667
9065
  const visible = () => props.options.trigger === "always" || scrollActive() || props.options.trigger === "hover" && hovered();
8668
9066
  const rulerVisible = () => visible() || trackPointerY() !== null;
8669
9067
  const rightInset = () => scrollbar() ? SCROLL_HINT_GUTTER_WIDTH_PX : scrollbarWidth();
8670
- const topRowIndex = createMemo28(() => {
9068
+ const topRowIndex = createMemo29(() => {
8671
9069
  const current = track();
8672
9070
  if (current === null) {
8673
9071
  return 0;
@@ -8682,8 +9080,8 @@ function GridScrollHint(props) {
8682
9080
  rowIndex,
8683
9081
  rowData: props.rowModel.getRow(rowIndex)
8684
9082
  });
8685
- const detail = createMemo28(() => detailOf(topRowIndex()));
8686
- const jumpPreview = createMemo28(() => {
9083
+ const detail = createMemo29(() => detailOf(topRowIndex()));
9084
+ const jumpPreview = createMemo29(() => {
8687
9085
  const pointerY = trackPointerY();
8688
9086
  const current = track();
8689
9087
  if (!props.options.ruler || pointerY === null || dragging() || current === null) {
@@ -8750,24 +9148,24 @@ function GridScrollHint(props) {
8750
9148
  setTrackPointerY(null);
8751
9149
  }
8752
9150
  };
8753
- return <Show25 when={shown()}>
9151
+ return <Show26 when={shown()}>
8754
9152
  <div class={["ssg-scroll-hint", props.slot?.className]} style={props.slot?.style} aria-hidden="true">
8755
- <Show25 when={props.options.ruler && rulerTicks().length > 0}>
9153
+ <Show26 when={props.options.ruler && rulerTicks().length > 0}>
8756
9154
  <div
8757
9155
  class={["ssg-scroll-hint-ruler", { "ssg-scroll-hint-ruler--visible": rulerVisible() }]}
8758
9156
  style={{ top: px(props.headerHeight), right: px(rightInset()) }}
8759
9157
  >
8760
- <For13 each={rulerTicks()} keyed={(tick) => tick.row}>
9158
+ <For14 each={rulerTicks()} keyed={(tick) => tick.row}>
8761
9159
  {(tick) => <div
8762
9160
  class="ssg-scroll-hint-ruler-tick"
8763
9161
  style={{ top: px(Math.min(Math.max(tick().y, 6), Math.max(rulerHeight() - 6, 6))) }}
8764
9162
  >
8765
9163
  <span class="ssg-scroll-hint-ruler-label">{tick().label}</span>
8766
9164
  </div>}
8767
- </For13>
9165
+ </For14>
8768
9166
  </div>
8769
- </Show25>
8770
- <Show25 when={jumpPreview()}>
9167
+ </Show26>
9168
+ <Show26 when={jumpPreview()}>
8771
9169
  {(preview) => <div class="ssg-scroll-hint-jumpline" style={{ top: px(preview().lineY), right: px(rightInset()) }}>
8772
9170
  <span
8773
9171
  class={[
@@ -8777,17 +9175,17 @@ function GridScrollHint(props) {
8777
9175
  }
8778
9176
  ]}
8779
9177
  >
8780
- {formatLocaleText14(texts().scrollHintJump, { row: rowNumberOf(preview().rowIndex).toLocaleString() })}
8781
- <Show25 when={preview().detail !== null}>
9178
+ {formatLocaleText15(texts().scrollHintJump, { row: rowNumberOf(preview().rowIndex).toLocaleString() })}
9179
+ <Show26 when={preview().detail !== null}>
8782
9180
  <span class="ssg-scroll-hint-jumpline-detail">
8783
9181
  {` ${texts().scrollHintJumpSeparator} `}
8784
9182
  {preview().detail}
8785
9183
  </span>
8786
- </Show25>
9184
+ </Show26>
8787
9185
  </span>
8788
9186
  </div>}
8789
- </Show25>
8790
- <Show25 when={props.options.bubble}>
9187
+ </Show26>
9188
+ <Show26 when={props.options.bubble}>
8791
9189
  <div
8792
9190
  class={["ssg-scroll-hint-bubble", { "ssg-scroll-hint-bubble--visible": visible() }]}
8793
9191
  style={{
@@ -8796,17 +9194,17 @@ function GridScrollHint(props) {
8796
9194
  }}
8797
9195
  >
8798
9196
  <span class="ssg-scroll-hint-bubble-main">
8799
- {formatLocaleText14(texts().scrollHintRow, { row: rowNumberOf(topRowIndex()).toLocaleString() })}
9197
+ {formatLocaleText15(texts().scrollHintRow, { row: rowNumberOf(topRowIndex()).toLocaleString() })}
8800
9198
  <span class="ssg-scroll-hint-bubble-total">
8801
9199
  {" "}/ {dataRowCount().toLocaleString()}
8802
9200
  </span>
8803
9201
  </span>
8804
- <Show25 when={detail() !== null}>
9202
+ <Show26 when={detail() !== null}>
8805
9203
  <span class="ssg-scroll-hint-bubble-detail">{detail()}</span>
8806
- </Show25>
9204
+ </Show26>
8807
9205
  </div>
8808
- </Show25>
8809
- <Show25 when={scrollbar()}>
9206
+ </Show26>
9207
+ <Show26 when={scrollbar()}>
8810
9208
  <div
8811
9209
  ref={(element) => {
8812
9210
  gutter = element;
@@ -8830,9 +9228,9 @@ function GridScrollHint(props) {
8830
9228
  style={{ top: px(track()?.thumbTop ?? 0), height: px(track()?.thumbHeight ?? 0) }}
8831
9229
  />
8832
9230
  </div>
8833
- </Show25>
9231
+ </Show26>
8834
9232
  </div>
8835
- </Show25>;
9233
+ </Show26>;
8836
9234
  }
8837
9235
 
8838
9236
  // src/features/scrollHint.ts
@@ -8846,7 +9244,7 @@ var scrollHintFeature = {
8846
9244
  import { DEFAULT_AGGREGATES_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
8847
9245
 
8848
9246
  // src/primitives/selectionAggregates.ts
8849
- import { createMemo as createMemo29 } from "solid-js";
9247
+ import { createMemo as createMemo30 } from "solid-js";
8850
9248
  import {
8851
9249
  createSelectionAggregatesRunner,
8852
9250
  resolveSyncSelectionAggregates,
@@ -8858,15 +9256,15 @@ import {
8858
9256
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectionAggregates";
8859
9257
  function createSelectionAggregates(args) {
8860
9258
  const stabilizeTarget = createSelectionAggregateTargetStabilizer();
8861
- const target = createMemo29(() => {
9259
+ const target = createMemo30(() => {
8862
9260
  const current = args();
8863
9261
  return stabilizeTarget(
8864
9262
  current.enabled ? resolveSelectionAggregateTarget(current.selection, current.viewRowCount, current.orderedColumns) : null
8865
9263
  );
8866
9264
  });
8867
- const rowModel = createMemo29(() => args().rowModel);
8868
- const key = createMemo29(() => ({ rowModel: rowModel(), target: target() }));
8869
- const syncResult = createMemo29(() => resolveSyncSelectionAggregates(key()));
9265
+ const rowModel = createMemo30(() => args().rowModel);
9266
+ const key = createMemo30(() => ({ rowModel: rowModel(), target: target() }));
9267
+ const syncResult = createMemo30(() => resolveSyncSelectionAggregates(key()));
8870
9268
  const runner = createSelectionAggregatesRunner();
8871
9269
  connectController(
8872
9270
  runner,
@@ -8875,16 +9273,16 @@ function createSelectionAggregates(args) {
8875
9273
  "selectionAggregates"
8876
9274
  );
8877
9275
  const snapshot2 = createExternalStoreSignal(runner, "selectionAggregatesStore");
8878
- return createMemo29(() => selectSelectionAggregatesResult(syncResult(), snapshot2(), key()));
9276
+ return createMemo30(() => selectSelectionAggregatesResult(syncResult(), snapshot2(), key()));
8879
9277
  }
8880
9278
 
8881
9279
  // src/view/GridSelectionAggregates.tsx
8882
- import { For as For14, Show as Show26, createMemo as createMemo30 } from "solid-js";
9280
+ import { For as For15, Show as Show27, createMemo as createMemo31 } from "solid-js";
8883
9281
  import { formatSelectionAggregateNumber } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectionAggregates";
8884
- import { formatLocaleText as formatLocaleText15 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
9282
+ import { formatLocaleText as formatLocaleText16 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8885
9283
  function GridSelectionAggregates(props) {
8886
9284
  const texts = useFeatureLocaleText();
8887
- const chips = createMemo30(() => {
9285
+ const chips = createMemo31(() => {
8888
9286
  const aggregates = props.aggregates;
8889
9287
  if (!aggregates) {
8890
9288
  return null;
@@ -8894,7 +9292,7 @@ function GridSelectionAggregates(props) {
8894
9292
  return [
8895
9293
  {
8896
9294
  key: "computing",
8897
- text: formatLocaleText15(localeTexts.aggregateComputing, { percent: Math.floor(aggregates.progress * 100) })
9295
+ text: formatLocaleText16(localeTexts.aggregateComputing, { percent: Math.floor(aggregates.progress * 100) })
8898
9296
  }
8899
9297
  ];
8900
9298
  }
@@ -8917,12 +9315,12 @@ function GridSelectionAggregates(props) {
8917
9315
  }
8918
9316
  return list;
8919
9317
  });
8920
- return <Show26 when={chips()}>
9318
+ return <Show27 when={chips()}>
8921
9319
  {(list) => <div class={["ssg-bar-aggregates", { "ssg-bar-aggregates--trailing": props.trailing }]}>
8922
9320
  <div class="ssg-bar-aggregates-inner" title={list().map((chip) => chip.text).join(" ")}>
8923
9321
  <div class="ssg-bar-aggregates-list">
8924
9322
  <span class="ssg-bar-aggregates-fit" aria-hidden="true" />
8925
- <For14 each={list()} keyed={(chip) => chip.key}>
9323
+ <For15 each={list()} keyed={(chip) => chip.key}>
8926
9324
  {(chip, index) => <span
8927
9325
  class={[
8928
9326
  "ssg-bar-chip",
@@ -8933,16 +9331,16 @@ function GridSelectionAggregates(props) {
8933
9331
  ]}
8934
9332
  style={{ order: String(-index()) }}
8935
9333
  >
8936
- <Show26 when={chip().label !== void 0} fallback={chip().text}>
9334
+ <Show27 when={chip().label !== void 0} fallback={chip().text}>
8937
9335
  {chip().label}
8938
9336
  <b class="ssg-bar-aggregate-value">{chip().value}</b>
8939
- </Show26>
9337
+ </Show27>
8940
9338
  </span>}
8941
- </For14>
9339
+ </For15>
8942
9340
  </div>
8943
9341
  </div>
8944
9342
  </div>}
8945
- </Show26>;
9343
+ </Show27>;
8946
9344
  }
8947
9345
 
8948
9346
  // src/features/selectionAggregates.ts
@@ -8953,7 +9351,7 @@ var selectionAggregatesFeature = {
8953
9351
  };
8954
9352
 
8955
9353
  // src/primitives/toolPanel.ts
8956
- import { createMemo as createMemo31 } from "solid-js";
9354
+ import { createMemo as createMemo32 } from "solid-js";
8957
9355
  import {
8958
9356
  createToolPanelController,
8959
9357
  resolveActiveToolPanelTab,
@@ -8972,7 +9370,7 @@ function createToolPanel(inputs) {
8972
9370
  onSuppressedEscape: inputs.onSuppressedEscape
8973
9371
  }), "render", "toolPanel");
8974
9372
  const snapshot2 = createExternalStoreSignal(controller, "toolPanelStore");
8975
- const availableTabs = createMemo31(
9373
+ const availableTabs = createMemo32(
8976
9374
  () => resolveAvailableToolPanelTabs({
8977
9375
  canUseFilterTab: inputs.canUseFilterTab(),
8978
9376
  canUseColumnsTab: inputs.canUseColumnsTab(),
@@ -8981,10 +9379,10 @@ function createToolPanel(inputs) {
8981
9379
  { equals: sameTabs }
8982
9380
  );
8983
9381
  return {
8984
- activeTab: createMemo31(() => resolveActiveToolPanelTab(snapshot2().requestedTab, availableTabs())),
9382
+ activeTab: createMemo32(() => resolveActiveToolPanelTab(snapshot2().requestedTab, availableTabs())),
8985
9383
  availableTabs,
8986
- layout: createMemo31(() => snapshot2().layout),
8987
- flashTick: createMemo31(() => snapshot2().flashTick),
9384
+ layout: createMemo32(() => snapshot2().layout),
9385
+ flashTick: createMemo32(() => snapshot2().flashTick),
8988
9386
  panelRef: controller.panelRef,
8989
9387
  open: controller.open,
8990
9388
  close: controller.close,
@@ -9008,7 +9406,7 @@ import {
9008
9406
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/totalRow";
9009
9407
 
9010
9408
  // src/view/GridTotalRow.tsx
9011
- import { For as For15, Show as Show27, createMemo as createMemo32 } from "solid-js";
9409
+ import { For as For16, Show as Show28, createMemo as createMemo33 } from "solid-js";
9012
9410
  import {
9013
9411
  formatTotalRowCellText as formatTotalRowCellText2,
9014
9412
  resolveTotalRowCaption as resolveTotalRowCaption2
@@ -9035,7 +9433,7 @@ function GridTotalRow(props) {
9035
9433
  ...props.stickyBottom > 0 ? { bottom: px(props.stickyBottom) } : null
9036
9434
  }}
9037
9435
  >
9038
- <Show27 when={props.ownsRowHeader}>
9436
+ <Show28 when={props.ownsRowHeader}>
9039
9437
  <div
9040
9438
  role={rowHeaderIsCell() ? "rowheader" : void 0}
9041
9439
  aria-colindex={rowHeaderIsCell() ? 1 : void 0}
@@ -9050,13 +9448,13 @@ function GridTotalRow(props) {
9050
9448
  >
9051
9449
  {rowHeaderText() === "" ? null : rowHeaderText()}
9052
9450
  </div>
9053
- </Show27>
9054
- <For15 each={props.entries} keyed={(entry) => entry.column.key}>
9451
+ </Show28>
9452
+ <For16 each={props.entries} keyed={(entry) => entry.column.key}>
9055
9453
  {(entry) => {
9056
- const unbound = createMemo32(() => entry().column);
9454
+ const unbound = createMemo33(() => entry().column);
9057
9455
  const cell = () => props.cells.get(unbound().key);
9058
9456
  const isLabelCell = () => unbound().key === props.labelColumnKey;
9059
- const content = createMemo32(() => {
9457
+ const content = createMemo33(() => {
9060
9458
  const total = cell();
9061
9459
  if (total) {
9062
9460
  const column = unbound();
@@ -9108,7 +9506,7 @@ function GridTotalRow(props) {
9108
9506
  {content()}
9109
9507
  </div>;
9110
9508
  }}
9111
- </For15>
9509
+ </For16>
9112
9510
  </div>
9113
9511
  </>;
9114
9512
  }
@@ -9129,6 +9527,7 @@ var fullGridFeatures = {
9129
9527
  conditionalFormat: conditionalFormatFeature,
9130
9528
  totalRow: totalRowFeature,
9131
9529
  pinnedRows: pinnedRowsFeature,
9530
+ columnGroups: columnGroupsFeature,
9132
9531
  selectionAggregates: selectionAggregatesFeature,
9133
9532
  scrollHint: scrollHintFeature,
9134
9533
  motionExtras: motionExtrasFeature,
@@ -9170,6 +9569,7 @@ export {
9170
9569
  SpreadsheetGrid,
9171
9570
  autoHeightFeature,
9172
9571
  columnAutosizeFeature,
9572
+ columnGroupsFeature,
9173
9573
  columnMenuFeature,
9174
9574
  columnReorderFeature,
9175
9575
  conditionalFormatFeature,