@ishibashi0112/spreadsheet-grid-solid 1.11.0 → 1.12.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.
@@ -51,8 +51,10 @@ import { ROW_DRAG_HANDLE_COLUMN_KEY as ROW_DRAG_HANDLE_COLUMN_KEY2, moveArrayIte
51
51
  import {
52
52
  resolveSelectionBand,
53
53
  resolveSelectionBandSegments,
54
- resolveSelectionExtents
54
+ resolveSelectionExtents,
55
+ resolveRowRunsPaneRects
55
56
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectionOverlayGeometry";
57
+ import { findScopeRowRuns } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/findController";
56
58
  import {
57
59
  isActiveCellRendered,
58
60
  placementRectInPane,
@@ -2741,6 +2743,15 @@ var createChangeEffect = (compute, effect) => {
2741
2743
  };
2742
2744
  var FEATURE_PROPS = {
2743
2745
  find: [{ prop: "find", isUsed: (props) => props.find !== void 0 && props.find !== false }],
2746
+ // 追加(1.12.0 / 検索と置換): find={{ replace: true }}(機能が無いと検索だけ。React 版と同じ)。
2747
+ findReplace: [
2748
+ {
2749
+ prop: "find.replace",
2750
+ isUsed: (props) => typeof props.find === "object" && props.find !== null && props.find.replace === true
2751
+ }
2752
+ ],
2753
+ // 追加(1.12.0 / 書式つきのコピー): copyFormat="rich"(機能が無いと TSV だけ)。
2754
+ richCopy: [{ prop: "copyFormat", isUsed: (props) => props.copyFormat === "rich" }],
2744
2755
  fillHandle: [{ prop: "fillHandle", isUsed: (props) => Boolean(props.fillHandle) }],
2745
2756
  // 列の並べ替えは onColumnsChange で有効になる(リサイズ等と共通の prop なので、それでは警告しない)。
2746
2757
  columnReorder: [{ prop: "columnDragMotion", isUsed: (props) => props.columnDragMotion !== void 0 }],
@@ -3000,6 +3011,16 @@ function createShellDevWarningsInDev(args) {
3000
3011
  );
3001
3012
  }
3002
3013
  });
3014
+ const findReplaceWarned = /* @__PURE__ */ new Set();
3015
+ createChangeEffect(args.findReplaceOnServerSide, (onServerSide) => {
3016
+ if (onServerSide) {
3017
+ warnOncePerGrid(
3018
+ findReplaceWarned,
3019
+ "findReplaceServerSide",
3020
+ "[SpreadsheetGrid] find \u306E replace \u306F serverSide(dataSource)\u3067\u306F\u4F7F\u3048\u307E\u305B\u3093(\u691C\u7D22\u3060\u3051\u3092\u51FA\u3057\u307E\u3059)\u3002\n[SpreadsheetGrid] find.replace does not work with serverSide (dataSource). Only find is shown."
3021
+ );
3022
+ }
3023
+ });
3003
3024
  const newRowWarned = /* @__PURE__ */ new Set();
3004
3025
  createChangeEffect(
3005
3026
  () => {
@@ -3642,6 +3663,8 @@ function GridShellBody(props, features, mountGate, mode) {
3642
3663
  globalFilterText,
3643
3664
  columnFilterCount: () => Object.keys(columnFilters()).length,
3644
3665
  trackChangesUnavailable: () => !isTrackChangesOn(props.trackChanges) || features.changeTracking === void 0 ? null : isServerSide() ? "serverSide" : props.rowKeyGetter === void 0 ? "rowKeyGetter" : props.onRowsChange == null ? "onRowsChange" : null,
3666
+ // 追加(1.12.0 / 検索と置換): 置換を serverSide で使った(機能があるときだけ。React 版と同じ条件と文言)。
3667
+ findReplaceOnServerSide: () => typeof props.find === "object" && props.find !== null && props.find.replace === true && features.find !== void 0 && features.findReplace !== void 0 && isServerSide(),
3645
3668
  // 追加(1.10.0 / 入力行): 入力行が出ない理由(機能があり newRow を指定したときだけ。React 版と同じ条件と文言)。
3646
3669
  newRowUnavailable: () => {
3647
3670
  if (!newRowGiven() || newRowParts === void 0) {
@@ -4597,6 +4620,13 @@ function GridShellBody(props, features, mountGate, mode) {
4597
4620
  onPasteSkipped: inOwnTick(props.onPasteSkipped),
4598
4621
  localeTexts: localeTexts(),
4599
4622
  pasteFillsSelection: props.pasteFillsSelection,
4623
+ // 追加(1.12.0 / copyHeaders・書式つきコピー): 見出しの行・列のグループの段・text/html の表(機能 richCopy)・色を読む要素・
4624
+ // カラースケールの min / max(条件付き書式の機能があるときだけ。React 版と同じ)。
4625
+ copyHeaders: props.copyHeaders,
4626
+ columnGroupTree: columnGroupTree(),
4627
+ richCopy: props.copyFormat === "rich" ? features.richCopy : void 0,
4628
+ getCopyColorHost: () => gridRootRef.current,
4629
+ getConditionalFormatStats: features.conditionalFormat ? () => untrack13(conditionalFormatStats) : void 0,
4600
4630
  onRowsChange: handleRowsChange(),
4601
4631
  onColumnsChange: inOwnTick(props.onColumnsChange),
4602
4632
  applyServerSideCellEdits: applyServerSideCellEdits(),
@@ -4642,6 +4672,9 @@ function GridShellBody(props, features, mountGate, mode) {
4642
4672
  const findOptions = createMemo10(() => typeof props.find === "object" ? props.find : null);
4643
4673
  const findShortcut = createMemo10(() => findEnabled() && (findOptions()?.shortcut ?? true));
4644
4674
  const findSnapshot = createExternalStoreSignal(engine.find, "findStore");
4675
+ const findReplaceFeature2 = features.findReplace;
4676
+ const findReplaceWanted = createMemo10(() => findEnabled() && findOptions()?.replace === true && findReplaceFeature2 !== void 0);
4677
+ const findReplaceSnapshot = createExternalStoreSignal(engine.findReplace, "findReplaceStore");
4645
4678
  const FindBar = findFeature2?.FindBar;
4646
4679
  const findIndex = createMemo10(() => findSnapshot().index);
4647
4680
  const findCurrentIndex = createMemo10(() => findSnapshot().currentIndex);
@@ -4667,6 +4700,8 @@ function GridShellBody(props, features, mountGate, mode) {
4667
4700
  toViewRow: findToViewRow(),
4668
4701
  // 追加(1.11.0 / 複数選択): 複数選択のセルの文字の区切り(チップの印と同じ位置。React 版と同じ)。
4669
4702
  multiSelectSeparator: localeTexts().multiSelectSeparator,
4703
+ // 追加(1.12.0 / 検索と置換): 「選んだ範囲だけ」の範囲(件数・印・↑↓ も範囲の中だけ。React 版と同じ)。
4704
+ scope: findReplaceSnapshot().scope,
4670
4705
  // カレントのヒットへ: クリックと同じ 1 セルの選択 + 見える位置へのスクロール(命令的 API と同じ経路)。
4671
4706
  // 変更(1.9.0 の点検 T3-02 / T6-09): 打っている途中の移動('query')で開いた親は、次の文字の移動で閉じ直す(React 版と同じ)。
4672
4707
  onNavigate: (rowIndex, colIndex, cause) => {
@@ -4682,11 +4717,61 @@ function GridShellBody(props, features, mountGate, mode) {
4682
4717
  onChange: inOwnTick(props.onFindChange)
4683
4718
  };
4684
4719
  }, "render", "find");
4685
- const openFindFromShortcut = () => engine.find.open();
4720
+ const findReplaceEnabled = createMemo10(
4721
+ () => findReplaceWanted() && !isServerSide() && !editLocked() && props.onRowsChange != null
4722
+ );
4723
+ connectController(engine.findReplace, () => {
4724
+ const treeRowModel = findTreeRowModel();
4725
+ const state = ui();
4726
+ return {
4727
+ enabled: findReplaceEnabled(),
4728
+ find: engine.find,
4729
+ rows: rows(),
4730
+ rowModel: treeRowModel ?? rowModel(),
4731
+ columns: orderedColumns(),
4732
+ caseSensitive: findOptions()?.caseSensitive ?? false,
4733
+ conditionalFormat: conditionalFormatFeature2 !== void 0,
4734
+ multiSelectSeparator: localeTexts().multiSelectSeparator,
4735
+ validationTexts: localeTexts(),
4736
+ toViewRow: findToViewRow(),
4737
+ readOnly: editLocked(),
4738
+ canEditCell: canEditCell(),
4739
+ // 履歴付きの onRowsChange(元に戻すが 1 回・変更の追跡の印も付く)。
4740
+ commitRows: (nextRows) => handleRowsChange()?.(nextRows),
4741
+ getSelection: () => store.getState().selection,
4742
+ viewRowCount: viewRowCount(),
4743
+ viewSignature: [state.sort, state.filters, state.collapsedGroupKeys, orderedColumnKeys()]
4744
+ };
4745
+ }, "render", "findReplace");
4746
+ const openFindFromShortcut = () => {
4747
+ if (findReplaceEnabled()) {
4748
+ engine.findReplace.open(false);
4749
+ return;
4750
+ }
4751
+ engine.find.open();
4752
+ };
4753
+ const openFindReplaceFromShortcut = () => engine.findReplace.open(true);
4686
4754
  const closeFindAndRefocus = () => {
4687
4755
  engine.find.close();
4688
4756
  gridRootRef.current?.focus({ preventScroll: true });
4689
4757
  };
4758
+ const findScopeRects = createMemo10(() => {
4759
+ const scope = findSnapshot().open ? findReplaceSnapshot().scope : null;
4760
+ if (scope === null) {
4761
+ return null;
4762
+ }
4763
+ const v = vertical();
4764
+ return resolveRowRunsPaneRects(findScopeRowRuns(scope), scope.startCol, scope.endCol, {
4765
+ paneLayout: paneLayout(),
4766
+ viewRowCount: viewRowCount(),
4767
+ windowFirstRow: v.windowFirstRow,
4768
+ windowLastRow: v.windowLastRow,
4769
+ rowMetrics: v.rowMetrics,
4770
+ detailActive: v.detailActive,
4771
+ detailExtras: v.detailExtras
4772
+ });
4773
+ });
4774
+ const findScopeRectsForPane = (pane) => findScopeRects()?.[pane] ?? [];
4690
4775
  const filterPopover = features.filtering?.createFilterPopover({
4691
4776
  visibleColumns,
4692
4777
  columnFilters,
@@ -4900,6 +4985,8 @@ function GridShellBody(props, features, mountGate, mode) {
4900
4985
  onTabPastNewRowDraft: newRowActive() ? engine.newRow.commitFromLastColumn : void 0,
4901
4986
  onShortcutKeyDown: excelShortcutCommandsEnabled() ? engine.excelShortcuts.handleKeyDown : void 0,
4902
4987
  openFind: findShortcut() ? openFindFromShortcut : void 0,
4988
+ // 追加(1.12.0 / 検索と置換): Ctrl+H で置換の段も開く(置換が使えて shortcut が true のときだけ横取り)。
4989
+ openFindReplace: findShortcut() && findReplaceEnabled() ? openFindReplaceFromShortcut : void 0,
4903
4990
  handleCellDoubleClick: tryStartEditCell,
4904
4991
  isWholeGridSelected: isWholeGridSelected(),
4905
4992
  selectEntireGrid,
@@ -5374,7 +5461,18 @@ function GridShellBody(props, features, mountGate, mode) {
5374
5461
  activeToolPanelTab: toolPanel?.activeTab() ?? null,
5375
5462
  openToolPanel,
5376
5463
  closeToolPanel: toolPanel?.close ?? noop3,
5377
- find: { open: engine.find.open, close: engine.find.close, next: engine.find.next, prev: engine.find.prev },
5464
+ find: {
5465
+ open: engine.find.open,
5466
+ close: engine.find.close,
5467
+ next: engine.find.next,
5468
+ prev: engine.find.prev,
5469
+ // 追加(1.12.0 / 検索と置換): openFind({ replace: true }) / replaceNext / replaceAll の委譲先(置換が使えるときだけ)。
5470
+ replace: findReplaceEnabled() ? {
5471
+ open: engine.findReplace.open,
5472
+ replaceCurrent: engine.findReplace.replaceCurrent,
5473
+ replaceAll: engine.findReplace.replaceAll
5474
+ } : void 0
5475
+ },
5378
5476
  undoRows: history.undo,
5379
5477
  redoRows: history.redo,
5380
5478
  canUndoRows: history.canUndo,
@@ -6111,6 +6209,20 @@ function GridShellBody(props, features, mountGate, mode) {
6111
6209
  transform: vertical().bodyLayerTransform
6112
6210
  }}
6113
6211
  >
6212
+ {
6213
+ /* 追加(1.12.0 / 検索と置換): 「選んだ範囲だけ」の範囲の色(選択の枠より下。React 版と同じ)。 */
6214
+ }
6215
+ {findReplaceFeature2 ? (() => {
6216
+ const { FindScopeOverlay } = findReplaceFeature2;
6217
+ return <For5 each={findScopeRectsForPane(pane)} keyed={false}>
6218
+ {(rect) => <FindScopeOverlay
6219
+ rect={rect()}
6220
+ headerHeight={headerHeight()}
6221
+ leadingWidth={leadingWidth()}
6222
+ baseOffset={vertical().overlayBaseOffset}
6223
+ />}
6224
+ </For5>;
6225
+ })() : null}
6114
6226
  <For5 each={selectionRectsForPane(pane)} keyed={false}>
6115
6227
  {(rect) => <Overlay
6116
6228
  class="ssg-selection-overlay"
@@ -6511,6 +6623,18 @@ function GridShellBody(props, features, mountGate, mode) {
6511
6623
  onPrev={engine.find.prev}
6512
6624
  onClose={closeFindAndRefocus}
6513
6625
  slot={slots().findBar}
6626
+ replaceParts={findReplaceEnabled() ? findReplaceFeature2 : void 0}
6627
+ replaceSnapshot={findReplaceSnapshot()}
6628
+ onReplaceToggle={() => engine.findReplace.setExpanded(!engine.findReplace.getSnapshot().expanded)}
6629
+ onReplacementChange={engine.findReplace.setReplacement}
6630
+ onReplace={() => {
6631
+ engine.findReplace.replaceCurrent();
6632
+ }}
6633
+ onReplaceAll={() => {
6634
+ void engine.findReplace.replaceAll();
6635
+ }}
6636
+ onScopeChange={engine.findReplace.setScopeEnabled}
6637
+ onReplaceShortcut={() => engine.findReplace.setExpanded(true)}
6514
6638
  />}
6515
6639
  </Show12>
6516
6640
  {
@@ -8844,7 +8968,7 @@ import { splitTextByFindRanges } from "@ishibashi0112/spreadsheet-grid-core/inte
8844
8968
  import { DEFAULT_FIND_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
8845
8969
 
8846
8970
  // src/view/GridFindBar.tsx
8847
- import { createRenderEffect as createRenderEffect6, createSignal as createSignal14, onSettled as onSettled7, untrack as untrack17 } from "solid-js";
8971
+ import { Show as Show20, createEffect as createEffect9, createRenderEffect as createRenderEffect6, createSignal as createSignal14, onSettled as onSettled7, untrack as untrack17 } from "solid-js";
8848
8972
  import { isImeComposingKeyEvent as isImeComposingKeyEvent3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
8849
8973
  function GridFindBar(props) {
8850
8974
  const texts = useFeatureLocaleText();
@@ -8855,6 +8979,20 @@ function GridFindBar(props) {
8855
8979
  element?.focus();
8856
8980
  element?.select();
8857
8981
  });
8982
+ let lastFocusRequest = untrack17(() => props.snapshot.focusRequest);
8983
+ createEffect9(
8984
+ () => props.snapshot.focusRequest,
8985
+ (request) => {
8986
+ if (request === lastFocusRequest) {
8987
+ return;
8988
+ }
8989
+ lastFocusRequest = request;
8990
+ const element = untrack17(input);
8991
+ element?.focus();
8992
+ element?.select();
8993
+ },
8994
+ { name: "findBarFocusRequest" }
8995
+ );
8858
8996
  createRenderEffect6(
8859
8997
  () => [input(), props.snapshot.query],
8860
8998
  ([element, query]) => {
@@ -8899,17 +9037,17 @@ function GridFindBar(props) {
8899
9037
  } else if (event.key === "Escape") {
8900
9038
  event.preventDefault();
8901
9039
  props.onClose();
9040
+ } else if (props.replaceParts && event.ctrlKey && !event.metaKey && !event.altKey && event.key.toLowerCase() === "h") {
9041
+ event.preventDefault();
9042
+ props.onReplaceShortcut?.();
8902
9043
  }
8903
9044
  event.stopPropagation();
8904
9045
  };
8905
- return <div
8906
- class={["ssg-find-bar", props.slot?.className]}
8907
- style={{ ...props.slot?.style, top: px(props.headerHeight + 6) }}
8908
- role="search"
8909
- aria-label={texts().findLabel}
8910
- onPointerDown={(event) => event.stopPropagation()}
8911
- data-ssg-find-bar=""
8912
- >
9046
+ const main = (parts) => <>
9047
+ {parts ? (() => {
9048
+ const Toggle = parts.FindReplaceToggle;
9049
+ return <Toggle expanded={props.replaceSnapshot?.expanded ?? false} onToggle={() => props.onReplaceToggle?.()} />;
9050
+ })() : null}
8913
9051
  <span class="ssg-find-bar-icon" aria-hidden="true">
8914
9052
  <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round">
8915
9053
  <circle cx="11" cy="11" r="7" />
@@ -8964,6 +9102,45 @@ function GridFindBar(props) {
8964
9102
  >
8965
9103
  ×
8966
9104
  </button>
9105
+ </>;
9106
+ return <div
9107
+ class={["ssg-find-bar", { "ssg-find-bar--replace": props.replaceParts !== void 0 }, props.slot?.className]}
9108
+ style={{ ...props.slot?.style, top: px(props.headerHeight + 6) }}
9109
+ role="search"
9110
+ aria-label={texts().findLabel}
9111
+ onPointerDown={(event) => event.stopPropagation()}
9112
+ onKeyDown={(event) => {
9113
+ if (event.key === "Escape" && !isImeComposingKeyEvent3(event)) {
9114
+ event.preventDefault();
9115
+ event.stopPropagation();
9116
+ props.onClose();
9117
+ } else if (props.replaceParts && event.ctrlKey && !event.metaKey && !event.altKey && event.key.toLowerCase() === "h") {
9118
+ event.preventDefault();
9119
+ event.stopPropagation();
9120
+ props.onReplaceShortcut?.();
9121
+ }
9122
+ }}
9123
+ data-ssg-find-bar=""
9124
+ >
9125
+ <Show20 when={props.replaceParts} fallback={main()}>
9126
+ {(parts) => <>
9127
+ <div class="ssg-find-bar-row">{main(parts())}</div>
9128
+ <Show20 when={props.replaceSnapshot?.expanded === true && props.replaceSnapshot}>
9129
+ {(snapshot2) => {
9130
+ const Section = untrack17(parts).FindReplaceSection;
9131
+ return <Section
9132
+ snapshot={snapshot2()}
9133
+ matchCount={count()}
9134
+ onReplacementChange={(text) => props.onReplacementChange?.(text)}
9135
+ onReplace={() => props.onReplace?.()}
9136
+ onReplaceAll={() => props.onReplaceAll?.()}
9137
+ onScopeChange={(enabled) => props.onScopeChange?.(enabled)}
9138
+ onClose={() => props.onClose()}
9139
+ />;
9140
+ }}
9141
+ </Show20>
9142
+ </>}
9143
+ </Show20>
8967
9144
  </div>;
8968
9145
  }
8969
9146
 
@@ -8975,19 +9152,218 @@ var findFeature = {
8975
9152
  localeText: DEFAULT_FIND_LOCALE_TEXT
8976
9153
  };
8977
9154
 
9155
+ // src/features/findReplace.ts
9156
+ import { createFindReplaceController } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/findReplaceController";
9157
+ import { DEFAULT_FIND_REPLACE_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
9158
+
9159
+ // src/view/GridFindReplace.tsx
9160
+ import { Show as Show21, createRenderEffect as createRenderEffect7, createSignal as createSignal15, untrack as untrack18 } from "solid-js";
9161
+ import { formatLocaleText as formatLocaleText12 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
9162
+ import { isImeComposingKeyEvent as isImeComposingKeyEvent4 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
9163
+ var describeFindReplaceNotice = (notice, texts) => {
9164
+ if (notice.kind === "cellSkipped") {
9165
+ switch (notice.reason) {
9166
+ case "unsupported":
9167
+ return texts.findReplaceCellUnsupported;
9168
+ case "notOption":
9169
+ return texts.findReplaceCellNotOption;
9170
+ case "invalid":
9171
+ return formatLocaleText12(texts.findReplaceCellInvalid, { message: notice.message ?? "" });
9172
+ case "unchanged":
9173
+ return texts.findReplaceCellUnchanged;
9174
+ default:
9175
+ return texts.findReplaceCellSkipped;
9176
+ }
9177
+ }
9178
+ if (notice.kind === "scopeNeedsRange") {
9179
+ return texts.findInSelectionNeedsRange;
9180
+ }
9181
+ if (notice.kind === "interrupted") {
9182
+ return texts.findReplaceInterrupted;
9183
+ }
9184
+ if (notice.replaced === 0 && notice.skipped === 0) {
9185
+ return texts.findReplaceNothing;
9186
+ }
9187
+ return notice.skipped > 0 ? formatLocaleText12(texts.findReplacedSkipped, { replaced: notice.replaced, skipped: notice.skipped }) : formatLocaleText12(texts.findReplaced, { replaced: notice.replaced });
9188
+ };
9189
+ function GridFindReplaceToggle(props) {
9190
+ const texts = useFeatureLocaleText();
9191
+ return <button
9192
+ type="button"
9193
+ class="ssg-find-bar-btn ssg-find-bar-toggle"
9194
+ aria-expanded={props.expanded ? "true" : "false"}
9195
+ aria-label={props.expanded ? texts().findReplaceHide : texts().findReplaceShow}
9196
+ data-ssg-tooltip={texts().findReplaceToggleHint}
9197
+ onClick={() => props.onToggle()}
9198
+ >
9199
+ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
9200
+ <polyline points="9 6 15 12 9 18" />
9201
+ </svg>
9202
+ </button>;
9203
+ }
9204
+ function GridFindReplaceSection(props) {
9205
+ const texts = useFeatureLocaleText();
9206
+ const [input, setInput] = createSignal15();
9207
+ const initialReplacement = untrack18(() => props.snapshot.replacement);
9208
+ createRenderEffect7(
9209
+ () => [input(), props.snapshot.replacement],
9210
+ ([element, replacement]) => {
9211
+ if (element && element.value !== replacement) {
9212
+ element.value = replacement;
9213
+ }
9214
+ },
9215
+ { name: "findReplaceInput" }
9216
+ );
9217
+ const handleKeyDown = (event) => {
9218
+ if (isImeComposingKeyEvent4(event)) {
9219
+ return;
9220
+ }
9221
+ if (event.key === "Enter") {
9222
+ event.preventDefault();
9223
+ if (!props.snapshot.running && props.matchCount > 0) {
9224
+ props.onReplace();
9225
+ }
9226
+ } else if (event.key === "Escape") {
9227
+ event.preventDefault();
9228
+ props.onClose();
9229
+ } else if (event.ctrlKey && !event.metaKey && !event.altKey && event.key.toLowerCase() === "h") {
9230
+ event.preventDefault();
9231
+ }
9232
+ event.stopPropagation();
9233
+ };
9234
+ const message = () => {
9235
+ const snapshot2 = props.snapshot;
9236
+ if (snapshot2.running) {
9237
+ return texts().findReplacing;
9238
+ }
9239
+ return snapshot2.notice ? describeFindReplaceNotice(snapshot2.notice, texts()) : "";
9240
+ };
9241
+ const disabled = () => props.snapshot.running || props.matchCount === 0;
9242
+ return <>
9243
+ <div class="ssg-find-bar-row">
9244
+ <span class="ssg-find-bar-indent" aria-hidden="true" />
9245
+ <input
9246
+ ref={setInput}
9247
+ class="ssg-find-bar-input"
9248
+ type="text"
9249
+ value={initialReplacement}
9250
+ placeholder={texts().findReplacePlaceholder}
9251
+ aria-label={texts().findReplaceInput}
9252
+ onInput={(event) => props.onReplacementChange(event.currentTarget.value)}
9253
+ onKeyDown={handleKeyDown}
9254
+ />
9255
+ {
9256
+ /* 使えないときは disabled ではなく aria-disabled(押したボタンのフォーカスを body へ落とさない。React 版と同じ)。 */
9257
+ }
9258
+ <button
9259
+ type="button"
9260
+ class="ssg-find-bar-text-btn"
9261
+ onClick={() => {
9262
+ if (!props.snapshot.running) {
9263
+ props.onReplace();
9264
+ }
9265
+ }}
9266
+ aria-disabled={disabled() ? "true" : void 0}
9267
+ data-ssg-tooltip={texts().findReplaceHint}
9268
+ >
9269
+ {texts().findReplace}
9270
+ </button>
9271
+ <button
9272
+ type="button"
9273
+ class="ssg-find-bar-text-btn"
9274
+ onClick={() => {
9275
+ if (props.snapshot.running) {
9276
+ return;
9277
+ }
9278
+ if (props.matchCount === 0) {
9279
+ props.onReplace();
9280
+ } else {
9281
+ props.onReplaceAll();
9282
+ }
9283
+ }}
9284
+ aria-disabled={disabled() ? "true" : void 0}
9285
+ >
9286
+ {texts().findReplaceAll}
9287
+ </button>
9288
+ </div>
9289
+ <div class="ssg-find-bar-options">
9290
+ <label class="ssg-find-bar-check">
9291
+ <input
9292
+ type="checkbox"
9293
+ checked={props.snapshot.scope !== null}
9294
+ onChange={(event) => {
9295
+ const target = event.currentTarget;
9296
+ const wanted = target.checked;
9297
+ target.checked = !wanted;
9298
+ props.onScopeChange(wanted);
9299
+ }}
9300
+ />
9301
+ {texts().findInSelection}
9302
+ </label>
9303
+ </div>
9304
+ {
9305
+ /* 知らせのたびに文の要素を作り直します(同じ文が続いても読み上げに届く。React 版と同じ)。 */
9306
+ }
9307
+ <div class={["ssg-find-bar-message", { "ssg-find-bar-message--empty": message().length === 0 }]} aria-live="polite">
9308
+ <Show21 when={props.snapshot.noticeId + 1} keyed>
9309
+ {(noticeKey) => {
9310
+ void noticeKey;
9311
+ return <span>{message()}</span>;
9312
+ }}
9313
+ </Show21>
9314
+ </div>
9315
+ </>;
9316
+ }
9317
+ function GridFindScopeOverlay(props) {
9318
+ return <Show21 when={props.rect}>
9319
+ {(rect) => <div
9320
+ class="ssg-find-scope-overlay"
9321
+ style={{
9322
+ position: "absolute",
9323
+ left: px(props.leadingWidth + rect().left),
9324
+ top: px(props.headerHeight + rect().top - props.baseOffset),
9325
+ width: px(rect().width),
9326
+ height: px(rect().height)
9327
+ }}
9328
+ data-ssg-find-scope=""
9329
+ />}
9330
+ </Show21>;
9331
+ }
9332
+
9333
+ // src/features/findReplace.ts
9334
+ var findReplaceFeature = {
9335
+ createFindReplaceController,
9336
+ FindReplaceToggle: GridFindReplaceToggle,
9337
+ FindReplaceSection: GridFindReplaceSection,
9338
+ FindScopeOverlay: GridFindScopeOverlay,
9339
+ localeText: DEFAULT_FIND_REPLACE_LOCALE_TEXT
9340
+ };
9341
+
9342
+ // src/features/richCopy.ts
9343
+ import {
9344
+ buildClipboardHtml,
9345
+ createClipboardColorResolver,
9346
+ writeRichToClipboard
9347
+ } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/clipboardHtml";
9348
+ var richCopyFeature = {
9349
+ buildClipboardHtml,
9350
+ createClipboardColorResolver,
9351
+ writeRichToClipboard
9352
+ };
9353
+
8978
9354
  // src/features/grouping.ts
8979
9355
  import { buildGroupTree, flattenGroupTree } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/grouping";
8980
9356
  import { DEFAULT_GROUPING_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
8981
9357
 
8982
9358
  // src/view/GridBodyGroupRow.tsx
8983
- import { For as For11, Show as Show20, createMemo as createMemo23 } from "solid-js";
9359
+ import { For as For11, Show as Show22, createMemo as createMemo23 } from "solid-js";
8984
9360
  import { GROUP_AUTO_COLUMN_KEY as GROUP_AUTO_COLUMN_KEY3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/grouping";
8985
9361
  import {
8986
9362
  formatTotalRowCellText,
8987
9363
  formatTotalRowNumber,
8988
9364
  resolveTotalRowCaption
8989
9365
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/totalRow";
8990
- import { formatLocaleText as formatLocaleText12 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
9366
+ import { formatLocaleText as formatLocaleText13 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
8991
9367
  var GROUP_INDENT_PX = 16;
8992
9368
  function GridBodyGroupRow(props) {
8993
9369
  const texts = useFeatureLocaleText();
@@ -9010,7 +9386,7 @@ function GridBodyGroupRow(props) {
9010
9386
  }}
9011
9387
  onDblClick={() => props.onGroupToggle(props.groupRow.groupKey)}
9012
9388
  >
9013
- <Show20 when={props.ownsRowHeader}>
9389
+ <Show22 when={props.ownsRowHeader}>
9014
9390
  <div
9015
9391
  role={rowHeaderIsCell() ? "rowheader" : void 0}
9016
9392
  aria-colindex={rowHeaderIsCell() ? 1 : void 0}
@@ -9035,7 +9411,7 @@ function GridBodyGroupRow(props) {
9035
9411
  >
9036
9412
  {props.showRowCheckbox ? null : props.rowIndex + 1}
9037
9413
  </div>
9038
- </Show20>
9414
+ </Show22>
9039
9415
  <For11 each={props.entries} keyed={(entry) => entry.column.key}>
9040
9416
  {(entry) => {
9041
9417
  const unbound = createMemo23(() => entry().column);
@@ -9078,19 +9454,19 @@ function GridBodyGroupRow(props) {
9078
9454
  "z-index": 1
9079
9455
  }}
9080
9456
  >
9081
- <Show20
9457
+ <Show22
9082
9458
  when={isAutoGroupColumn()}
9083
- fallback={<Show20 when={aggregate()}>
9459
+ fallback={<Show22 when={aggregate()}>
9084
9460
  {(shown) => <span
9085
9461
  class="ssg-group-value"
9086
9462
  data-ssg-tooltip-overflow={shown().text !== "" ? shown().caption !== void 0 ? `${shown().caption} ${shown().text}` : shown().text : void 0}
9087
9463
  >
9088
- <Show20 when={shown().caption !== void 0 && shown().text !== ""}>
9464
+ <Show22 when={shown().caption !== void 0 && shown().text !== ""}>
9089
9465
  <span class="ssg-group-caption">{shown().caption}</span>
9090
- </Show20>
9466
+ </Show22>
9091
9467
  {shown().text}
9092
9468
  </span>}
9093
- </Show20>}
9469
+ </Show22>}
9094
9470
  >
9095
9471
  <span
9096
9472
  aria-hidden="true"
@@ -9102,7 +9478,7 @@ function GridBodyGroupRow(props) {
9102
9478
  tabindex={-1}
9103
9479
  class="ssg-group-toggle"
9104
9480
  aria-expanded={props.isCollapsed ? "false" : "true"}
9105
- aria-label={formatLocaleText12(props.isCollapsed ? texts().expandGroup : texts().collapseGroup, {
9481
+ aria-label={formatLocaleText13(props.isCollapsed ? texts().expandGroup : texts().collapseGroup, {
9106
9482
  group: groupLabel()
9107
9483
  })}
9108
9484
  onClick={() => props.onGroupToggle(props.groupRow.groupKey)}
@@ -9112,9 +9488,9 @@ function GridBodyGroupRow(props) {
9112
9488
  </button>
9113
9489
  <span class="ssg-group-label">{groupLabel()}</span>
9114
9490
  <span class="ssg-group-count">
9115
- {formatLocaleText12(texts().groupRowCount, { count: formatTotalRowNumber(props.groupRow.leafCount) })}
9491
+ {formatLocaleText13(texts().groupRowCount, { count: formatTotalRowNumber(props.groupRow.leafCount) })}
9116
9492
  </span>
9117
- </Show20>
9493
+ </Show22>
9118
9494
  </div>;
9119
9495
  }}
9120
9496
  </For11>
@@ -9150,7 +9526,7 @@ import {
9150
9526
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/labelRows";
9151
9527
 
9152
9528
  // src/view/GridBodyLabelRow.tsx
9153
- import { Show as Show21, createMemo as createMemo24 } from "solid-js";
9529
+ import { Show as Show23, createMemo as createMemo24 } from "solid-js";
9154
9530
  var createLabelRowRenderContext = (labelRow, rowIndex, rowKey) => {
9155
9531
  const row = createMemo24(() => labelRow().row);
9156
9532
  const sourceRowIndex = createMemo24(() => labelRow().sourceIndex);
@@ -9200,7 +9576,7 @@ function GridBodyLabelRow(props) {
9200
9576
  transform: `translateY(${props.top}px)`
9201
9577
  }}
9202
9578
  >
9203
- <Show21 when={props.ownsRowHeader}>
9579
+ <Show23 when={props.ownsRowHeader}>
9204
9580
  <div
9205
9581
  aria-hidden="true"
9206
9582
  class={["ssg-header-cell", "ssg-row-header-cell", "ssg-row-header-cell--label", props.slots.rowHeaderCell?.className]}
@@ -9211,8 +9587,8 @@ function GridBodyLabelRow(props) {
9211
9587
  height: px(props.rowHeight)
9212
9588
  }}
9213
9589
  />
9214
- </Show21>
9215
- <Show21 when={props.renderContent}>
9590
+ </Show23>
9591
+ <Show23 when={props.renderContent}>
9216
9592
  {(render) => <div
9217
9593
  role="rowheader"
9218
9594
  aria-colindex={1}
@@ -9226,17 +9602,17 @@ function GridBodyLabelRow(props) {
9226
9602
  {render()(ctx)}
9227
9603
  </div>
9228
9604
  </div>}
9229
- </Show21>
9605
+ </Show23>
9230
9606
  </div>;
9231
9607
  }
9232
9608
 
9233
9609
  // src/view/GridStickyLabelLayer.tsx
9234
- import { Show as Show22, createMemo as createMemo25, onSettled as onSettled8 } from "solid-js";
9610
+ import { Show as Show24, createMemo as createMemo25, onSettled as onSettled8 } from "solid-js";
9235
9611
  var FOCUSABLE_SELECTOR = 'a[href], button, input, select, textarea, [tabindex], [contenteditable="true"]';
9236
9612
  function GridStickyLabelLayer(props) {
9237
- return <Show22 when={props.entry}>
9613
+ return <Show24 when={props.entry}>
9238
9614
  {(entry) => <StickyLabel layer={props} entry={entry} />}
9239
- </Show22>;
9615
+ </Show24>;
9240
9616
  }
9241
9617
  function StickyLabel(props) {
9242
9618
  const layer = props.layer;
@@ -9298,7 +9674,7 @@ function StickyLabel(props) {
9298
9674
  ...props.entry().pushOffset > 0 ? { transform: `translateY(${-props.entry().pushOffset}px)` } : null
9299
9675
  }}
9300
9676
  >
9301
- <Show22 when={layer.ownsRowHeader}>
9677
+ <Show24 when={layer.ownsRowHeader}>
9302
9678
  <div
9303
9679
  class={["ssg-header-cell", "ssg-row-header-cell", "ssg-row-header-cell--label", layer.slots.rowHeaderCell?.className]}
9304
9680
  style={{
@@ -9308,8 +9684,8 @@ function StickyLabel(props) {
9308
9684
  height: px(height())
9309
9685
  }}
9310
9686
  />
9311
- </Show22>
9312
- <Show22 when={layer.renderContent}>
9687
+ </Show24>
9688
+ <Show24 when={layer.renderContent}>
9313
9689
  {(render) => <div
9314
9690
  class="ssg-label-row-content-holder"
9315
9691
  style={{ left: px(layer.contentStickyLeft), width: px(layer.contentWidth), height: px(height()) }}
@@ -9318,12 +9694,12 @@ function StickyLabel(props) {
9318
9694
  class={["ssg-label-row-content", layer.slots.labelRowContent?.className]}
9319
9695
  style={layer.slots.labelRowContent?.style}
9320
9696
  >
9321
- <Show22 when={[rowKey(), render()]} keyed>
9697
+ <Show24 when={[rowKey(), render()]} keyed>
9322
9698
  {([, renderContent]) => renderContent(ctx)}
9323
- </Show22>
9699
+ </Show24>
9324
9700
  </div>
9325
9701
  </div>}
9326
- </Show22>
9702
+ </Show24>
9327
9703
  </div>
9328
9704
  </div>
9329
9705
  );
@@ -9346,12 +9722,12 @@ import { createSaveStatusController } from "@ishibashi0112/spreadsheet-grid-core
9346
9722
  import { DEFAULT_SERVER_SIDE_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
9347
9723
 
9348
9724
  // src/primitives/serverSide.ts
9349
- import { createMemo as createMemo26, untrack as untrack18 } from "solid-js";
9725
+ import { createMemo as createMemo26, untrack as untrack19 } from "solid-js";
9350
9726
  import {
9351
9727
  createServerSideRowModel
9352
9728
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/serverSideRowModel";
9353
9729
  function createServerSide(args) {
9354
- const controller = createServerSideRowModel(untrack18(args));
9730
+ const controller = createServerSideRowModel(untrack19(args));
9355
9731
  let updated = false;
9356
9732
  let pendingRange = null;
9357
9733
  connectController(
@@ -9400,21 +9776,21 @@ function createServerSide(args) {
9400
9776
  }
9401
9777
 
9402
9778
  // src/view/GridServerSideErrorBars.tsx
9403
- import { Show as Show23, createSignal as createSignal15 } from "solid-js";
9404
- import { formatLocaleText as formatLocaleText13 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
9779
+ import { Show as Show25, createSignal as createSignal16 } from "solid-js";
9780
+ import { formatLocaleText as formatLocaleText14 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
9405
9781
  function GridServerSideErrorBars(props) {
9406
- const [dismissedLoadError, setDismissedLoadError] = createSignal15(null);
9407
- const [dismissedWriteError, setDismissedWriteError] = createSignal15(null);
9782
+ const [dismissedLoadError, setDismissedLoadError] = createSignal16(null);
9783
+ const [dismissedWriteError, setDismissedWriteError] = createSignal16(null);
9408
9784
  const texts = () => props.localeTexts;
9409
9785
  const shownLoadError = () => props.loadError !== null && props.loadError !== dismissedLoadError() ? props.loadError : null;
9410
9786
  const shownWriteError = () => props.writeError !== null && props.writeError !== dismissedWriteError() ? props.writeError : null;
9411
- return <Show23 when={shownLoadError() !== null || shownWriteError() !== null}>
9787
+ return <Show25 when={shownLoadError() !== null || shownWriteError() !== null}>
9412
9788
  <div class="ssg-ssrm-error-bars">
9413
- <Show23 when={shownLoadError()}>
9789
+ <Show25 when={shownLoadError()}>
9414
9790
  {(loadError) => <div class={["ssg-ssrm-error-bar", props.slot?.className]} style={props.slot?.style} role="alert">
9415
9791
  <span class="ssg-ssrm-error-bar-dot" aria-hidden="true" />
9416
9792
  <span class="ssg-ssrm-error-bar-msg">
9417
- {formatLocaleText13(texts().loadFailed, { count: loadError().failedBlockCount })}
9793
+ {formatLocaleText14(texts().loadFailed, { count: loadError().failedBlockCount })}
9418
9794
  </span>
9419
9795
  <button type="button" class="ssg-ssrm-error-bar-retry" onClick={() => props.onRetry()}>
9420
9796
  {texts().retry}
@@ -9428,12 +9804,12 @@ function GridServerSideErrorBars(props) {
9428
9804
  ×
9429
9805
  </button>
9430
9806
  </div>}
9431
- </Show23>
9432
- <Show23 when={shownWriteError()}>
9807
+ </Show25>
9808
+ <Show25 when={shownWriteError()}>
9433
9809
  {(writeError) => <div class={["ssg-ssrm-error-bar", props.slot?.className]} style={props.slot?.style} role="alert">
9434
9810
  <span class="ssg-ssrm-error-bar-dot" aria-hidden="true" />
9435
9811
  <span class="ssg-ssrm-error-bar-msg">
9436
- {formatLocaleText13(texts().saveFailed, { count: writeError().failedRowCount })}
9812
+ {formatLocaleText14(texts().saveFailed, { count: writeError().failedRowCount })}
9437
9813
  </span>
9438
9814
  <button
9439
9815
  type="button"
@@ -9444,13 +9820,13 @@ function GridServerSideErrorBars(props) {
9444
9820
  ×
9445
9821
  </button>
9446
9822
  </div>}
9447
- </Show23>
9823
+ </Show25>
9448
9824
  </div>
9449
- </Show23>;
9825
+ </Show25>;
9450
9826
  }
9451
9827
 
9452
9828
  // src/view/GridBodySkeletonRow.tsx
9453
- import { For as For12, Show as Show24 } from "solid-js";
9829
+ import { For as For12, Show as Show26 } from "solid-js";
9454
9830
  var SKELETON_BAR_WIDTHS = ["62%", "46%", "78%", "54%"];
9455
9831
  function GridBodySkeletonRow(props) {
9456
9832
  return <div
@@ -9467,7 +9843,7 @@ function GridBodySkeletonRow(props) {
9467
9843
  transform: `translateY(${props.top}px)`
9468
9844
  }}
9469
9845
  >
9470
- <Show24 when={props.ownsRowHeader}>
9846
+ <Show26 when={props.ownsRowHeader}>
9471
9847
  <div
9472
9848
  role="rowheader"
9473
9849
  aria-colindex={1}
@@ -9491,11 +9867,11 @@ function GridBodySkeletonRow(props) {
9491
9867
  height: px(props.rowHeight)
9492
9868
  }}
9493
9869
  >
9494
- <Show24 when={props.showRowCheckbox} fallback={props.rowIndex + 1}>
9870
+ <Show26 when={props.showRowCheckbox} fallback={props.rowIndex + 1}>
9495
9871
  <RowSelectionCheckbox slot={props.slots.checkbox} state="unchecked" disabled />
9496
- </Show24>
9872
+ </Show26>
9497
9873
  </div>
9498
- </Show24>
9874
+ </Show26>
9499
9875
  <For12 each={props.entries} keyed={(entry) => entry.logicalIndex}>
9500
9876
  {(entry) => {
9501
9877
  const cell = () => ({ row: props.rowIndex, col: entry().logicalIndex });
@@ -9550,12 +9926,12 @@ var motionExtrasFeature = {
9550
9926
  import { DEFAULT_PINNED_ROWS_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
9551
9927
 
9552
9928
  // src/view/GridPinnedRows.tsx
9553
- import { For as For13, Show as Show25, createMemo as createMemo27 } from "solid-js";
9929
+ import { For as For13, Show as Show27, createMemo as createMemo27 } from "solid-js";
9554
9930
  import { resolveSlotProps as resolveSlotProps3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/slotProps";
9555
9931
  import { isSyntheticColumnKey as isSyntheticColumnKey4 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/detailRow";
9556
9932
  import { isCheckboxChecked as isCheckboxChecked2 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/checkboxEditor";
9557
9933
  import { resolveColumnEditor as resolveColumnEditor2 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/columnEditor";
9558
- import { formatLocaleText as formatLocaleText14 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
9934
+ import { formatLocaleText as formatLocaleText15 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
9559
9935
  import { getCellValue as getCellValue5 } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/permissions";
9560
9936
  import { formatCellText as formatCellText2 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/cellText";
9561
9937
  var noop4 = () => {
@@ -9566,9 +9942,9 @@ function GridPinnedRows(props) {
9566
9942
  const texts = useFeatureLocaleText();
9567
9943
  const hidden = () => !props.ownsRowHeader && props.entries.length === 0;
9568
9944
  return <>
9569
- <Show25 when={props.bodyHeight > 0}>
9945
+ <Show27 when={props.bodyHeight > 0}>
9570
9946
  <div aria-hidden="true" style={{ height: px(props.bodyHeight) }} />
9571
- </Show25>
9947
+ </Show27>
9572
9948
  <div
9573
9949
  class={["ssg-pinned-rows", `ssg-pinned-rows--${props.position}`]}
9574
9950
  style={{ [props.position]: px(props.stickyOffset), height: px(props.rows.length * props.rowHeight) }}
@@ -9598,7 +9974,7 @@ function GridPinnedRows(props) {
9598
9974
  class={["ssg-pinned-row", rowSlot().className]}
9599
9975
  style={{ ...rowSlot().style, height: px(props.rowHeight), top: px(index * props.rowHeight) }}
9600
9976
  >
9601
- <Show25 when={props.ownsRowHeader}>
9977
+ <Show27 when={props.ownsRowHeader}>
9602
9978
  <div
9603
9979
  role="rowheader"
9604
9980
  aria-colindex={1}
@@ -9621,7 +9997,7 @@ function GridPinnedRows(props) {
9621
9997
  class="ssg-pinned-row-icon"
9622
9998
  viewBox="0 0 16 16"
9623
9999
  role="img"
9624
- aria-label={formatLocaleText14(
10000
+ aria-label={formatLocaleText15(
9625
10001
  props.position === "top" ? texts().pinnedTopRow : texts().pinnedBottomRow,
9626
10002
  { row: index + 1 }
9627
10003
  )}
@@ -9629,7 +10005,7 @@ function GridPinnedRows(props) {
9629
10005
  <path d={PIN_ICON_PATH} />
9630
10006
  </svg>
9631
10007
  </div>
9632
- </Show25>
10008
+ </Show27>
9633
10009
  <For13 each={props.entries} keyed={(entry) => entry.column.key}>
9634
10010
  {(entry) => {
9635
10011
  const unbound = createMemo27(() => entry().column);
@@ -9746,7 +10122,7 @@ function GridPinnedRows(props) {
9746
10122
  height: px(props.rowHeight)
9747
10123
  }}
9748
10124
  >
9749
- <Show25 when={dataBar()}>
10125
+ <Show27 when={dataBar()}>
9750
10126
  {(bar) => <span
9751
10127
  class={["ssg-cf-bar", { "ssg-cf-bar--negative": bar().negative }]}
9752
10128
  style={{
@@ -9756,7 +10132,7 @@ function GridPinnedRows(props) {
9756
10132
  }}
9757
10133
  aria-hidden="true"
9758
10134
  />}
9759
- </Show25>
10135
+ </Show27>
9760
10136
  {content()}
9761
10137
  </div>;
9762
10138
  }}
@@ -9778,7 +10154,7 @@ var pinnedRowsFeature = {
9778
10154
  import { DEFAULT_ROW_DRAG_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
9779
10155
 
9780
10156
  // src/primitives/rowDrag.ts
9781
- import { createEffect as createEffect9, createMemo as createMemo28, untrack as untrack19 } from "solid-js";
10157
+ import { createEffect as createEffect10, createMemo as createMemo28, untrack as untrack20 } from "solid-js";
9782
10158
  import {
9783
10159
  createRowDragController
9784
10160
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/rowDragController";
@@ -9794,8 +10170,8 @@ function createRowDrag(inputs) {
9794
10170
  const centerIndicatorRef = { current: null };
9795
10171
  const rightIndicatorRef = { current: null };
9796
10172
  const canDropAt = createMemo28(() => createRowDropCheck(inputs.canDropRow(), inputs.rows(), inputs.resolveRowKey()));
9797
- const getRowDragLabel = (viewIndex) => resolveRowDragLabel(untrack19(inputs.rowModel), untrack19(inputs.visibleColumns), viewIndex, untrack19(inputs.dragRowLabel));
9798
- const getDragRow = (viewIndex) => getDragRowToken(untrack19(inputs.rowModel), viewIndex);
10173
+ const getRowDragLabel = (viewIndex) => resolveRowDragLabel(untrack20(inputs.rowModel), untrack20(inputs.visibleColumns), viewIndex, untrack20(inputs.dragRowLabel));
10174
+ const getDragRow = (viewIndex) => getDragRowToken(untrack20(inputs.rowModel), viewIndex);
9799
10175
  const locateDragRow = createMemo28(() => {
9800
10176
  const rowModel = inputs.rowModel();
9801
10177
  const hasRowKeys = inputs.hasRowKeys();
@@ -9818,7 +10194,7 @@ function createRowDrag(inputs) {
9818
10194
  "effect",
9819
10195
  "rowDrag"
9820
10196
  );
9821
- createEffect9(inputs.rowModel, () => {
10197
+ createEffect10(inputs.rowModel, () => {
9822
10198
  controller.applyReorderSettle();
9823
10199
  }, { name: "rowDragSettle" });
9824
10200
  return {
@@ -9872,7 +10248,7 @@ import { resolveScrollHintOptions } from "@ishibashi0112/spreadsheet-grid-core/i
9872
10248
  import { DEFAULT_SCROLL_HINT_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
9873
10249
 
9874
10250
  // src/view/GridScrollHint.tsx
9875
- import { For as For14, Show as Show26, createMemo as createMemo29, createSignal as createSignal16, createEffect as createEffect10 } from "solid-js";
10251
+ import { For as For14, Show as Show28, createMemo as createMemo29, createSignal as createSignal17, createEffect as createEffect11 } from "solid-js";
9876
10252
  import { physicalToLogicalScrollTop as physicalToLogicalScrollTop3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/verticalGeometry";
9877
10253
  import { resolveDataRowNumber as resolveDataRowNumber3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/labelRows";
9878
10254
  import {
@@ -9881,7 +10257,7 @@ import {
9881
10257
  computeScrollHintTrackPointerScrollTop,
9882
10258
  resolveScrollHintDetail
9883
10259
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/scrollHint";
9884
- import { formatLocaleText as formatLocaleText15 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
10260
+ import { formatLocaleText as formatLocaleText16 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
9885
10261
  var SCROLL_HINT_LINGER_MS = 1e3;
9886
10262
  var SCROLL_HINT_BUBBLE_GAP_PX = 8;
9887
10263
  var SCROLL_HINT_GUTTER_WIDTH_PX = 14;
@@ -9890,11 +10266,11 @@ var SCROLL_HINT_OVERLAY_TRACK_ZONE_PX = 8;
9890
10266
  var SCROLL_HINT_JUMP_LABEL_FLIP_PX = 28;
9891
10267
  function GridScrollHint(props) {
9892
10268
  const texts = useFeatureLocaleText();
9893
- const [scrollActive, setScrollActive] = createSignal16(false);
9894
- const [hovered, setHovered] = createSignal16(false);
9895
- const [scrollbarWidth, setScrollbarWidth] = createSignal16(0);
9896
- const [trackPointerY, setTrackPointerY] = createSignal16(null);
9897
- const [dragging, setDragging] = createSignal16(false);
10269
+ const [scrollActive, setScrollActive] = createSignal17(false);
10270
+ const [hovered, setHovered] = createSignal17(false);
10271
+ const [scrollbarWidth, setScrollbarWidth] = createSignal17(0);
10272
+ const [trackPointerY, setTrackPointerY] = createSignal17(null);
10273
+ const [dragging, setDragging] = createSignal17(false);
9898
10274
  let lingerTimer = null;
9899
10275
  let dragGrab = null;
9900
10276
  let gutter;
@@ -9910,7 +10286,7 @@ function GridScrollHint(props) {
9910
10286
  })
9911
10287
  );
9912
10288
  const shown = createMemo29(() => track() !== null && props.rowMetrics.rowCount > 0);
9913
- createEffect10(scrollbar, (customScrollbar) => {
10289
+ createEffect11(scrollbar, (customScrollbar) => {
9914
10290
  const element = props.scrollContainerRef.current;
9915
10291
  if (!element) {
9916
10292
  return void 0;
@@ -9959,7 +10335,7 @@ function GridScrollHint(props) {
9959
10335
  }
9960
10336
  };
9961
10337
  }, { name: "scrollHintListeners" });
9962
- createEffect10(
10338
+ createEffect11(
9963
10339
  () => scrollbar() && shown(),
9964
10340
  (on) => {
9965
10341
  const element = props.scrollContainerRef.current;
@@ -10076,9 +10452,9 @@ function GridScrollHint(props) {
10076
10452
  setTrackPointerY(null);
10077
10453
  }
10078
10454
  };
10079
- return <Show26 when={shown()}>
10455
+ return <Show28 when={shown()}>
10080
10456
  <div class={["ssg-scroll-hint", props.slot?.className]} style={props.slot?.style} aria-hidden="true">
10081
- <Show26 when={props.options.ruler && rulerTicks().length > 0}>
10457
+ <Show28 when={props.options.ruler && rulerTicks().length > 0}>
10082
10458
  <div
10083
10459
  class={["ssg-scroll-hint-ruler", { "ssg-scroll-hint-ruler--visible": rulerVisible() }]}
10084
10460
  style={{ top: px(props.headerHeight), right: px(rightInset()) }}
@@ -10092,8 +10468,8 @@ function GridScrollHint(props) {
10092
10468
  </div>}
10093
10469
  </For14>
10094
10470
  </div>
10095
- </Show26>
10096
- <Show26 when={jumpPreview()}>
10471
+ </Show28>
10472
+ <Show28 when={jumpPreview()}>
10097
10473
  {(preview) => <div class="ssg-scroll-hint-jumpline" style={{ top: px(preview().lineY), right: px(rightInset()) }}>
10098
10474
  <span
10099
10475
  class={[
@@ -10103,17 +10479,17 @@ function GridScrollHint(props) {
10103
10479
  }
10104
10480
  ]}
10105
10481
  >
10106
- {formatLocaleText15(texts().scrollHintJump, { row: rowNumberOf(preview().rowIndex).toLocaleString() })}
10107
- <Show26 when={preview().detail !== null}>
10482
+ {formatLocaleText16(texts().scrollHintJump, { row: rowNumberOf(preview().rowIndex).toLocaleString() })}
10483
+ <Show28 when={preview().detail !== null}>
10108
10484
  <span class="ssg-scroll-hint-jumpline-detail">
10109
10485
  {` ${texts().scrollHintJumpSeparator} `}
10110
10486
  {preview().detail}
10111
10487
  </span>
10112
- </Show26>
10488
+ </Show28>
10113
10489
  </span>
10114
10490
  </div>}
10115
- </Show26>
10116
- <Show26 when={props.options.bubble}>
10491
+ </Show28>
10492
+ <Show28 when={props.options.bubble}>
10117
10493
  <div
10118
10494
  class={["ssg-scroll-hint-bubble", { "ssg-scroll-hint-bubble--visible": visible() }]}
10119
10495
  style={{
@@ -10122,17 +10498,17 @@ function GridScrollHint(props) {
10122
10498
  }}
10123
10499
  >
10124
10500
  <span class="ssg-scroll-hint-bubble-main">
10125
- {formatLocaleText15(texts().scrollHintRow, { row: rowNumberOf(topRowIndex()).toLocaleString() })}
10501
+ {formatLocaleText16(texts().scrollHintRow, { row: rowNumberOf(topRowIndex()).toLocaleString() })}
10126
10502
  <span class="ssg-scroll-hint-bubble-total">
10127
10503
  {" "}/ {dataRowCount().toLocaleString()}
10128
10504
  </span>
10129
10505
  </span>
10130
- <Show26 when={detail() !== null}>
10506
+ <Show28 when={detail() !== null}>
10131
10507
  <span class="ssg-scroll-hint-bubble-detail">{detail()}</span>
10132
- </Show26>
10508
+ </Show28>
10133
10509
  </div>
10134
- </Show26>
10135
- <Show26 when={scrollbar()}>
10510
+ </Show28>
10511
+ <Show28 when={scrollbar()}>
10136
10512
  <div
10137
10513
  ref={(element) => {
10138
10514
  gutter = element;
@@ -10156,9 +10532,9 @@ function GridScrollHint(props) {
10156
10532
  style={{ top: px(track()?.thumbTop ?? 0), height: px(track()?.thumbHeight ?? 0) }}
10157
10533
  />
10158
10534
  </div>
10159
- </Show26>
10535
+ </Show28>
10160
10536
  </div>
10161
- </Show26>;
10537
+ </Show28>;
10162
10538
  }
10163
10539
 
10164
10540
  // src/features/scrollHint.ts
@@ -10172,7 +10548,7 @@ var scrollHintFeature = {
10172
10548
  import { DEFAULT_SELECT_SEARCH_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
10173
10549
 
10174
10550
  // src/editors/SearchSelectCellEditor.tsx
10175
- import { For as For15, Show as Show27, createEffect as createEffect11, createMemo as createMemo30, createRenderEffect as createRenderEffect7, createSignal as createSignal17, createUniqueId as createUniqueId6, onCleanup as onCleanup13, onSettled as onSettled9, untrack as untrack20 } from "solid-js";
10551
+ import { For as For15, Show as Show29, createEffect as createEffect12, createMemo as createMemo30, createRenderEffect as createRenderEffect8, createSignal as createSignal18, createUniqueId as createUniqueId6, onCleanup as onCleanup13, onSettled as onSettled9, untrack as untrack21 } from "solid-js";
10176
10552
  import { Portal as Portal5 } from "@solidjs/web";
10177
10553
  import {
10178
10554
  computeSelectPopoverPlacement as computeSelectPopoverPlacement2,
@@ -10190,26 +10566,26 @@ import {
10190
10566
  import {
10191
10567
  createSearchSelectEditorController
10192
10568
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/searchSelectEditorController";
10193
- import { isImeComposingKeyEvent as isImeComposingKeyEvent4 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
10569
+ import { isImeComposingKeyEvent as isImeComposingKeyEvent5 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
10194
10570
  import { isCommitToSelectionKey as isCommitToSelectionKey2 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/editorKeys";
10195
10571
  function MatchedText(props) {
10196
10572
  const parts = createMemo30(() => splitSelectSearchText(props.text, props.range));
10197
10573
  return <For15 each={parts()} keyed={false}>
10198
- {(part) => <Show27 when={part().match} fallback={part().text}>
10574
+ {(part) => <Show29 when={part().match} fallback={part().text}>
10199
10575
  <mark class="ssg-select-editor-match">{part().text}</mark>
10200
- </Show27>}
10576
+ </Show29>}
10201
10577
  </For15>;
10202
10578
  }
10203
10579
  function SearchSelectCellEditor(props) {
10204
10580
  const texts = useFeatureLocaleText();
10205
10581
  const portal = useGridPortal();
10206
- const [input, setInput] = createSignal17();
10207
- const [scroller, setScroller] = createSignal17();
10208
- const [popover, setPopover] = createSignal17();
10582
+ const [input, setInput] = createSignal18();
10583
+ const [scroller, setScroller] = createSignal18();
10584
+ const [popover, setPopover] = createSignal18();
10209
10585
  createTopAlignedInput(input, () => props.alignTop ?? false, () => props.cellHeight ?? 0);
10210
10586
  const listId = createUniqueId6();
10211
10587
  const pointerMoved = createPointerMoveFilter2();
10212
- const [error, setError] = createSignal17(null);
10588
+ const [error, setError] = createSignal18(null);
10213
10589
  let commitToSelectionPending = false;
10214
10590
  const commitWithResult = (committed, direction, option, forwardText) => {
10215
10591
  const toSelection = commitToSelectionPending ? props.onCommitToSelection : void 0;
@@ -10220,7 +10596,7 @@ function SearchSelectCellEditor(props) {
10220
10596
  }
10221
10597
  return result;
10222
10598
  };
10223
- const controller = untrack20(
10599
+ const controller = untrack21(
10224
10600
  () => createSearchSelectEditorController({
10225
10601
  options: props.options,
10226
10602
  value: props.value,
@@ -10232,20 +10608,20 @@ function SearchSelectCellEditor(props) {
10232
10608
  onCancel: () => props.onCancel()
10233
10609
  })
10234
10610
  );
10235
- const [snapshot2, setSnapshot] = createSignal17(controller.getSnapshot(), { name: "searchSelectSnapshot" });
10236
- createEffect11(
10611
+ const [snapshot2, setSnapshot] = createSignal18(controller.getSnapshot(), { name: "searchSelectSnapshot" });
10612
+ createEffect12(
10237
10613
  () => props.options,
10238
10614
  outsideGraphApply((options) => controller.setOptions(options)),
10239
10615
  { name: "searchSelectOptions" }
10240
10616
  );
10241
- props.onRegisterFlush?.(untrack20(() => props.allowFreeText) ? controller.flush : null);
10617
+ props.onRegisterFlush?.(untrack21(() => props.allowFreeText) ? controller.flush : null);
10242
10618
  const rowHeight = resolveSelectOptionRowHeight2();
10243
- const [placement2, setPlacement] = createSignal17(null);
10244
- const [scrollTop, setScrollTop] = createSignal17(0);
10619
+ const [placement2, setPlacement] = createSignal18(null);
10620
+ const [scrollTop, setScrollTop] = createSignal18(0);
10245
10621
  const listRows = createMemo30(() => Math.max(snapshot2().results.length, 1));
10246
10622
  const viewportHeight = createMemo30(() => Math.min(listRows(), 8) * rowHeight);
10247
10623
  const measure = () => {
10248
- const element = untrack20(input);
10624
+ const element = untrack21(input);
10249
10625
  if (!element) {
10250
10626
  return;
10251
10627
  }
@@ -10254,7 +10630,7 @@ function SearchSelectCellEditor(props) {
10254
10630
  element,
10255
10631
  computeSelectPopoverPlacement2(
10256
10632
  element.getBoundingClientRect(),
10257
- untrack20(listRows),
10633
+ untrack21(listRows),
10258
10634
  window.innerWidth,
10259
10635
  window.innerHeight,
10260
10636
  rowHeight,
@@ -10276,10 +10652,10 @@ function SearchSelectCellEditor(props) {
10276
10652
  };
10277
10653
  let disposed = false;
10278
10654
  onSettled9(() => {
10279
- const element = untrack20(input);
10655
+ const element = untrack21(input);
10280
10656
  if (element) {
10281
10657
  element.focus();
10282
- if (untrack20(() => props.initialText) === void 0) {
10658
+ if (untrack21(() => props.initialText) === void 0) {
10283
10659
  element.select();
10284
10660
  } else {
10285
10661
  element.setSelectionRange(element.value.length, element.value.length);
@@ -10302,7 +10678,7 @@ function SearchSelectCellEditor(props) {
10302
10678
  disposed = true;
10303
10679
  });
10304
10680
  let measuredKey;
10305
- createEffect11(
10681
+ createEffect12(
10306
10682
  () => `${listRows()}:${props.cellTop ?? 0}:${props.cellLeft ?? 0}`,
10307
10683
  outsideGraphApply((key) => {
10308
10684
  const previous = measuredKey;
@@ -10313,13 +10689,13 @@ function SearchSelectCellEditor(props) {
10313
10689
  }),
10314
10690
  { name: "searchSelectMeasure" }
10315
10691
  );
10316
- createEffect11(
10692
+ createEffect12(
10317
10693
  () => [snapshot2().results, scroller(), viewportHeight()],
10318
10694
  outsideGraphApply(([, element, height]) => reveal(element, height)),
10319
10695
  { name: "searchSelectReveal" }
10320
10696
  );
10321
10697
  const handleKeyDown = (event) => {
10322
- if (isImeComposingKeyEvent4(event)) {
10698
+ if (isImeComposingKeyEvent5(event)) {
10323
10699
  return;
10324
10700
  }
10325
10701
  const before = controller.getSnapshot().highlight;
@@ -10330,7 +10706,7 @@ function SearchSelectCellEditor(props) {
10330
10706
  }
10331
10707
  if (controller.keyDown(toEditorKeyEvent(event), props.enterMove) && controller.getSnapshot().highlight !== before) {
10332
10708
  setError(null);
10333
- reveal(untrack20(scroller), untrack20(viewportHeight));
10709
+ reveal(untrack21(scroller), untrack21(viewportHeight));
10334
10710
  }
10335
10711
  };
10336
10712
  const results = () => snapshot2().results;
@@ -10347,7 +10723,7 @@ function SearchSelectCellEditor(props) {
10347
10723
  };
10348
10724
  const freeTextOnly = () => props.allowFreeText === true && status() === "ready" && snapshot2().filtered && results().length === 0;
10349
10725
  const mount = () => placement2() !== null && !freeTextOnly() ? portal.container() : null;
10350
- const initialText = untrack20(() => snapshot2().text);
10726
+ const initialText = untrack21(() => snapshot2().text);
10351
10727
  const view = <>
10352
10728
  <input
10353
10729
  ref={setInput}
@@ -10381,7 +10757,7 @@ function SearchSelectCellEditor(props) {
10381
10757
  style={props.align ? { "text-align": props.align } : void 0}
10382
10758
  />
10383
10759
  <CellEditorError message={error()} />
10384
- <Show27 when={mount()}>
10760
+ <Show29 when={mount()}>
10385
10761
  {(container) => <Portal5 mount={container()}>
10386
10762
  <div
10387
10763
  ref={setPopover}
@@ -10402,7 +10778,7 @@ function SearchSelectCellEditor(props) {
10402
10778
  }}
10403
10779
  onPointerDown={(event) => event.preventDefault()}
10404
10780
  >
10405
- <Show27 when={status() === "error"}>
10781
+ <Show29 when={status() === "error"}>
10406
10782
  <div class="ssg-select-editor-empty ssg-select-editor-error" role="alert">
10407
10783
  <span class="ssg-select-editor-error-text" title={snapshot2().errorMessage ?? void 0}>
10408
10784
  {texts().selectSearchFailed}
@@ -10411,13 +10787,13 @@ function SearchSelectCellEditor(props) {
10411
10787
  {texts().retry}
10412
10788
  </button>
10413
10789
  </div>
10414
- </Show27>
10415
- <Show27 when={status() !== "error" && results().length === 0}>
10790
+ </Show29>
10791
+ <Show29 when={status() !== "error" && results().length === 0}>
10416
10792
  <div class="ssg-select-editor-empty" role="status">
10417
10793
  {status() === "loading" ? texts().selectSearchLoading : snapshot2().filtered ? texts().selectSearchNoMatch : texts().noOptions}
10418
10794
  </div>
10419
- </Show27>
10420
- <Show27 when={results().length > 0}>
10795
+ </Show29>
10796
+ <Show29 when={results().length > 0}>
10421
10797
  <div
10422
10798
  ref={setScroller}
10423
10799
  role="listbox"
@@ -10441,33 +10817,33 @@ function SearchSelectCellEditor(props) {
10441
10817
  { "ssg-select-editor-option--highlighted": item().index === snapshot2().highlight }
10442
10818
  ]}
10443
10819
  style={{ top: px(item().index * rowHeight) }}
10444
- onClick={() => controller.choose(untrack20(item).index)}
10820
+ onClick={() => controller.choose(untrack21(item).index)}
10445
10821
  onPointerEnter={(event) => revealOverflowTitle2(event.currentTarget)}
10446
10822
  onPointerMove={(event) => {
10447
10823
  if (pointerMoved(event)) {
10448
- controller.hover(untrack20(item).index);
10824
+ controller.hover(untrack21(item).index);
10449
10825
  }
10450
10826
  }}
10451
10827
  >
10452
10828
  <span class="ssg-select-editor-option-label">
10453
10829
  <MatchedText text={item().result.option.label} range={item().result.labelMatch} />
10454
10830
  </span>
10455
- <Show27 when={item().result.option.description}>
10831
+ <Show29 when={item().result.option.description}>
10456
10832
  {(description) => <span class="ssg-select-editor-option-description">
10457
10833
  <MatchedText text={description()} range={item().result.descriptionMatch} />
10458
10834
  </span>}
10459
- </Show27>
10835
+ </Show29>
10460
10836
  </div>}
10461
10837
  </For15>
10462
10838
  </div>
10463
10839
  </div>
10464
- </Show27>
10840
+ </Show29>
10465
10841
  </div>
10466
10842
  </Portal5>}
10467
- </Show27>
10843
+ </Show29>
10468
10844
  </>;
10469
10845
  createPortalTokens(popover, () => props.themeClassName, placement2);
10470
- createRenderEffect7(
10846
+ createRenderEffect8(
10471
10847
  () => [input(), snapshot2().text],
10472
10848
  ([element, text]) => {
10473
10849
  if (element && element.value !== text) {
@@ -10489,11 +10865,11 @@ var selectSearchFeature = {
10489
10865
  import { DEFAULT_DATE_TIME_EDITORS_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
10490
10866
 
10491
10867
  // src/editors/DateTimeCellEditor.tsx
10492
- import { For as For16, Show as Show28, createEffect as createEffect12, createMemo as createMemo31, createRenderEffect as createRenderEffect8, createSignal as createSignal18, createUniqueId as createUniqueId7, onCleanup as onCleanup14, onSettled as onSettled10, untrack as untrack21 } from "solid-js";
10868
+ import { For as For16, Show as Show30, createEffect as createEffect13, createMemo as createMemo31, createRenderEffect as createRenderEffect9, createSignal as createSignal19, createUniqueId as createUniqueId7, onCleanup as onCleanup14, onSettled as onSettled10, untrack as untrack22 } from "solid-js";
10493
10869
  import { Portal as Portal6 } from "@solidjs/web";
10494
10870
  import { handleEditorKeyDown as handleEditorKeyDown4 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/editorKeys";
10495
- import { formatLocaleText as formatLocaleText16 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
10496
- import { isImeComposingKeyEvent as isImeComposingKeyEvent5 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
10871
+ import { formatLocaleText as formatLocaleText17 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
10872
+ import { isImeComposingKeyEvent as isImeComposingKeyEvent6 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
10497
10873
  import { toDateInputValue as toDateInputValue2 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/editorValues";
10498
10874
  import { toDateTimeValue, toTimeValue } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/dateTimeValues";
10499
10875
  import {
@@ -10519,15 +10895,15 @@ import {
10519
10895
  } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/dateTimeEditorController";
10520
10896
  var TIME_LIST_MIN_WIDTH = 96;
10521
10897
  function DateTimeCellEditor(props) {
10522
- const kind = untrack21(() => props.editor.type);
10523
- const defaultTime = resolveDefaultTime(untrack21(() => props.editor.type === "datetime" ? props.editor.defaultTime : void 0));
10524
- const typedText = untrack21(() => resolveDateTimeTypedText(kind, props.initialValue, props.value, defaultTime));
10898
+ const kind = untrack22(() => props.editor.type);
10899
+ const defaultTime = resolveDefaultTime(untrack22(() => props.editor.type === "datetime" ? props.editor.defaultTime : void 0));
10900
+ const typedText = untrack22(() => resolveDateTimeTypedText(kind, props.initialValue, props.value, defaultTime));
10525
10901
  if (typedText === void 0 && isCoarsePointer()) {
10526
10902
  if (kind === "date") {
10527
10903
  return <DateCellEditor
10528
10904
  ariaLabel={props.ariaLabel}
10529
10905
  enterMove={props.enterMove}
10530
- initialValue={toDateInputValue2(untrack21(() => props.value))}
10906
+ initialValue={toDateInputValue2(untrack22(() => props.value))}
10531
10907
  onCommit={(value, direction) => props.onCommit(value, direction)}
10532
10908
  onCancel={() => props.onCancel()}
10533
10909
  onCommitToSelection={props.onCommitToSelection}
@@ -10542,22 +10918,22 @@ function DateTimeCellEditor(props) {
10542
10918
  return <TypedDateTimeEditor {...props} kind={kind} defaultTime={defaultTime} typedText={typedText} />;
10543
10919
  }
10544
10920
  function NativeDateTimeEditor(props) {
10545
- const [input, setInput] = createSignal18();
10546
- const [error, setError] = createSignal18(null);
10921
+ const [input, setInput] = createSignal19();
10922
+ const [error, setError] = createSignal19(null);
10547
10923
  createTopAlignedInput(input, () => props.alignTop ?? false, () => props.cellHeight ?? 0);
10548
- const kind = untrack21(() => props.kind);
10549
- const startValue = untrack21(
10924
+ const kind = untrack22(() => props.kind);
10925
+ const startValue = untrack22(
10550
10926
  () => kind === "time" ? toTimeValue(props.value) : toDateTimeValue(props.value, props.defaultTime)
10551
10927
  );
10552
- const step = resolveTimeStep(untrack21(() => props.editor.type === "date" ? void 0 : props.editor.step));
10928
+ const step = resolveTimeStep(untrack22(() => props.editor.type === "date" ? void 0 : props.editor.step));
10553
10929
  let edited = false;
10554
- const resolveValue = (current) => edited ? current : untrack21(() => props.value);
10930
+ const resolveValue = (current) => edited ? current : untrack22(() => props.value);
10555
10931
  let disposed = false;
10556
10932
  onCleanup14(() => {
10557
10933
  disposed = true;
10558
10934
  });
10559
10935
  props.onRegisterFlush?.(() => {
10560
- untrack21(() => {
10936
+ untrack22(() => {
10561
10937
  const element = input();
10562
10938
  if (element && edited) {
10563
10939
  props.onCommit(element.value);
@@ -10565,7 +10941,7 @@ function NativeDateTimeEditor(props) {
10565
10941
  });
10566
10942
  });
10567
10943
  onSettled10(() => {
10568
- untrack21(input)?.focus();
10944
+ untrack22(input)?.focus();
10569
10945
  });
10570
10946
  return <>
10571
10947
  <input
@@ -10607,13 +10983,13 @@ var samePlacement = (a, b) => a === b || a !== null && b !== null && a.left ===
10607
10983
  function TypedDateTimeEditor(props) {
10608
10984
  const texts = useFeatureLocaleText();
10609
10985
  const portal = useGridPortal();
10610
- const kind = untrack21(() => props.kind);
10611
- const editor = untrack21(() => props.editor);
10612
- const typedText = untrack21(() => props.typedText);
10986
+ const kind = untrack22(() => props.kind);
10987
+ const editor = untrack22(() => props.editor);
10988
+ const typedText = untrack22(() => props.typedText);
10613
10989
  const invalidMessage = () => kind === "date" ? texts().enterDate : kind === "time" ? texts().enterTime : texts().enterDateTime;
10614
- const [input, setInput] = createSignal18();
10615
- const [popover, setPopover] = createSignal18();
10616
- const [scroller, setScroller] = createSignal18();
10990
+ const [input, setInput] = createSignal19();
10991
+ const [popover, setPopover] = createSignal19();
10992
+ const [scroller, setScroller] = createSignal19();
10617
10993
  createTopAlignedInput(input, () => props.alignTop ?? false, () => props.cellHeight ?? 0);
10618
10994
  const popupId = createUniqueId7();
10619
10995
  const handlers = {
@@ -10630,7 +11006,7 @@ function TypedDateTimeEditor(props) {
10630
11006
  return texts().enterTime;
10631
11007
  }
10632
11008
  };
10633
- const controller = untrack21(
11009
+ const controller = untrack22(
10634
11010
  () => createDateTimeEditorController({
10635
11011
  kind,
10636
11012
  value: props.value,
@@ -10644,7 +11020,7 @@ function TypedDateTimeEditor(props) {
10644
11020
  })
10645
11021
  );
10646
11022
  controller.setHandlers(handlers);
10647
- const [snapshot2, setSnapshot] = createSignal18(controller.getSnapshot(), { name: "dateTimeEditorSnapshot" });
11023
+ const [snapshot2, setSnapshot] = createSignal19(controller.getSnapshot(), { name: "dateTimeEditorSnapshot" });
10648
11024
  onCleanup14(controller.subscribe(() => setSnapshot(controller.getSnapshot())));
10649
11025
  props.onRegisterFlush?.(controller.flush);
10650
11026
  const hasCalendar = kind !== "time";
@@ -10660,10 +11036,10 @@ function TypedDateTimeEditor(props) {
10660
11036
  const rowHeight = resolveSelectOptionRowHeight3();
10661
11037
  const listCount = controller.timeList.length;
10662
11038
  const viewportHeight = Math.min(listCount, 8) * rowHeight;
10663
- const [placement2, setPlacement] = createSignal18(null);
10664
- const [scrollTop, setScrollTop] = createSignal18(0);
11039
+ const [placement2, setPlacement] = createSignal19(null);
11040
+ const [scrollTop, setScrollTop] = createSignal19(0);
10665
11041
  const measure = () => {
10666
- const anchor = untrack21(input);
11042
+ const anchor = untrack22(input);
10667
11043
  if (!anchor) {
10668
11044
  return;
10669
11045
  }
@@ -10675,7 +11051,7 @@ function TypedDateTimeEditor(props) {
10675
11051
  computeSelectPopoverPlacement3(rect, listCount, window.innerWidth, window.innerHeight, rowHeight, TIME_LIST_MIN_WIDTH)
10676
11052
  );
10677
11053
  } else {
10678
- const element = untrack21(popover);
11054
+ const element = untrack22(popover);
10679
11055
  if (!element) {
10680
11056
  return;
10681
11057
  }
@@ -10684,7 +11060,7 @@ function TypedDateTimeEditor(props) {
10684
11060
  placeDateTimePopup(rect, { width: element.offsetWidth, height: element.offsetHeight }, window.innerWidth, window.innerHeight)
10685
11061
  );
10686
11062
  }
10687
- if (!samePlacement(untrack21(placement2), next)) {
11063
+ if (!samePlacement(untrack22(placement2), next)) {
10688
11064
  setPlacement(next);
10689
11065
  }
10690
11066
  };
@@ -10693,7 +11069,7 @@ function TypedDateTimeEditor(props) {
10693
11069
  disposed = true;
10694
11070
  });
10695
11071
  onSettled10(() => {
10696
- const element = untrack21(input);
11072
+ const element = untrack22(input);
10697
11073
  if (element) {
10698
11074
  element.focus();
10699
11075
  if (typedText === void 0) {
@@ -10712,7 +11088,7 @@ function TypedDateTimeEditor(props) {
10712
11088
  window.removeEventListener("scroll", measure, true);
10713
11089
  };
10714
11090
  });
10715
- createEffect12(
11091
+ createEffect13(
10716
11092
  () => [popover(), snapshot2(), popupReady(), props.cellTop ?? 0, props.cellLeft ?? 0],
10717
11093
  outsideGraphApply(([element, , ready]) => {
10718
11094
  if (popupWanted && ready && (hasList || element)) {
@@ -10723,7 +11099,7 @@ function TypedDateTimeEditor(props) {
10723
11099
  );
10724
11100
  const opened = () => placement2() !== null;
10725
11101
  let lastAnchor = null;
10726
- createEffect12(
11102
+ createEffect13(
10727
11103
  () => [scroller(), opened(), snapshot2().listAnchor],
10728
11104
  outsideGraphApply(([element, isOpened, anchor]) => {
10729
11105
  if (!hasList || !isOpened || !element) {
@@ -10742,14 +11118,14 @@ function TypedDateTimeEditor(props) {
10742
11118
  }),
10743
11119
  { name: "dateTimeEditorRevealTime" }
10744
11120
  );
10745
- const focusInsideEditor = (next) => next instanceof Node && (untrack21(input)?.contains(next) === true || untrack21(popover)?.contains(next) === true);
11121
+ const focusInsideEditor = (next) => next instanceof Node && (untrack22(input)?.contains(next) === true || untrack22(popover)?.contains(next) === true);
10746
11122
  const handleBlur = (event) => {
10747
11123
  if (!disposed && !focusInsideEditor(event.relatedTarget)) {
10748
11124
  controller.blur();
10749
11125
  }
10750
11126
  };
10751
11127
  const handleKeyDown = (event, target) => {
10752
- if (isImeComposingKeyEvent5(event)) {
11128
+ if (isImeComposingKeyEvent6(event)) {
10753
11129
  return;
10754
11130
  }
10755
11131
  if (target === "time") {
@@ -10765,18 +11141,18 @@ function TypedDateTimeEditor(props) {
10765
11141
  };
10766
11142
  const highlight = () => snapshot2().listHighlight;
10767
11143
  const activeId = () => hasList && opened() && highlight() >= 0 ? `${popupId}-${highlight()}` : void 0;
10768
- const label = () => formatLocaleText16(hasList ? texts().timeEditorList : texts().dateEditorCalendar, { column: props.columnTitle });
11144
+ const label = () => formatLocaleText17(hasList ? texts().timeEditorList : texts().dateEditorCalendar, { column: props.columnTitle });
10769
11145
  const visible = createMemo31(() => {
10770
11146
  const window_ = resolveSelectListWindow2(scrollTop(), viewportHeight, rowHeight, listCount);
10771
11147
  return controller.timeList.slice(window_.start, window_.end).map((time, offset) => ({ time, index: window_.start + offset }));
10772
11148
  });
10773
11149
  const mount = () => popupWanted && popupReady() ? portal.container() : null;
10774
- const startText = untrack21(() => snapshot2().text);
10775
- const noticeNode = () => <Show28 when={notice() !== null}>
11150
+ const startText = untrack22(() => snapshot2().text);
11151
+ const noticeNode = () => <Show30 when={notice() !== null}>
10776
11152
  <div class="ssg-date-editor-notice" role="alert">
10777
11153
  {notice()}
10778
11154
  </div>
10779
- </Show28>;
11155
+ </Show30>;
10780
11156
  const view = <>
10781
11157
  <input
10782
11158
  ref={setInput}
@@ -10804,7 +11180,7 @@ function TypedDateTimeEditor(props) {
10804
11180
  style={props.align ? { "text-align": props.align } : void 0}
10805
11181
  />
10806
11182
  <CellEditorError message={noticeInPopup() ? null : notice()} />
10807
- <Show28 when={mount()}>
11183
+ <Show30 when={mount()}>
10808
11184
  {(container) => <Portal6 mount={container()}>
10809
11185
  <div
10810
11186
  ref={setPopover}
@@ -10832,9 +11208,9 @@ function TypedDateTimeEditor(props) {
10832
11208
  }
10833
11209
  }}
10834
11210
  >
10835
- <Show28
11211
+ <Show30
10836
11212
  when={hasCalendar ? calendarViews() : null}
10837
- fallback={<Show28 when={hasList}>
11213
+ fallback={<Show30 when={hasList}>
10838
11214
  {noticeNode()}
10839
11215
  <div
10840
11216
  ref={setScroller}
@@ -10858,17 +11234,17 @@ function TypedDateTimeEditor(props) {
10858
11234
  { "ssg-select-editor-option--highlighted": item().index === highlight() }
10859
11235
  ]}
10860
11236
  style={{ top: px(item().index * rowHeight) }}
10861
- onClick={() => controller.chooseTime(untrack21(item).index)}
11237
+ onClick={() => controller.chooseTime(untrack22(item).index)}
10862
11238
  >
10863
11239
  {item().time}
10864
11240
  </div>}
10865
11241
  </For16>
10866
11242
  </div>
10867
11243
  </div>
10868
- </Show28>}
11244
+ </Show30>}
10869
11245
  >
10870
11246
  {(views) => {
10871
- const Calendar = untrack21(views).DateEditorCalendar;
11247
+ const Calendar = untrack22(views).DateEditorCalendar;
10872
11248
  return <Calendar
10873
11249
  controller={controller}
10874
11250
  snapshot={snapshot2()}
@@ -10879,13 +11255,13 @@ function TypedDateTimeEditor(props) {
10879
11255
  notice={noticeNode()}
10880
11256
  />;
10881
11257
  }}
10882
- </Show28>
11258
+ </Show30>
10883
11259
  </div>
10884
11260
  </Portal6>}
10885
- </Show28>
11261
+ </Show30>
10886
11262
  </>;
10887
11263
  createPortalTokens(popover, () => props.themeClassName, placement2);
10888
- createRenderEffect8(
11264
+ createRenderEffect9(
10889
11265
  () => [input(), snapshot2().text],
10890
11266
  ([element, text]) => {
10891
11267
  if (element && element.value !== text) {
@@ -10895,13 +11271,13 @@ function TypedDateTimeEditor(props) {
10895
11271
  { name: "dateTimeEditorInputText" }
10896
11272
  );
10897
11273
  const timeSelection = createMemo31(() => snapshot2().timeSelection);
10898
- createRenderEffect8(
11274
+ createRenderEffect9(
10899
11275
  () => [input(), timeSelection()],
10900
11276
  ([element, timeSelection2]) => {
10901
11277
  if (!element || timeSelection2 === 0) {
10902
11278
  return;
10903
11279
  }
10904
- const text = untrack21(() => snapshot2().text);
11280
+ const text = untrack22(() => snapshot2().text);
10905
11281
  if (element.value !== text) {
10906
11282
  element.value = text;
10907
11283
  }
@@ -10929,7 +11305,7 @@ import {
10929
11305
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/multiSelect";
10930
11306
 
10931
11307
  // src/editors/MultiSelectCellEditor.tsx
10932
- import { For as For17, Show as Show29, createEffect as createEffect13, createMemo as createMemo32, createRenderEffect as createRenderEffect9, createSignal as createSignal19, createUniqueId as createUniqueId8, onCleanup as onCleanup15, onSettled as onSettled11, untrack as untrack22 } from "solid-js";
11308
+ import { For as For17, Show as Show31, createEffect as createEffect14, createMemo as createMemo32, createRenderEffect as createRenderEffect10, createSignal as createSignal20, createUniqueId as createUniqueId8, onCleanup as onCleanup15, onSettled as onSettled11, untrack as untrack23 } from "solid-js";
10933
11309
  import { Portal as Portal7 } from "@solidjs/web";
10934
11310
  import {
10935
11311
  computeSelectPopoverPlacement as computeSelectPopoverPlacement4,
@@ -10946,14 +11322,14 @@ import {
10946
11322
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectSearch";
10947
11323
  import { createMultiSelectEditorController } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/multiSelectEditorController";
10948
11324
  import { MULTI_SELECT_VISIBLE_ROWS } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/multiSelect";
10949
- import { isImeComposingKeyEvent as isImeComposingKeyEvent6 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
11325
+ import { isImeComposingKeyEvent as isImeComposingKeyEvent7 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
10950
11326
  import { isCommitToSelectionKey as isCommitToSelectionKey3 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/editorKeys";
10951
11327
  function MatchedText2(props) {
10952
11328
  const parts = createMemo32(() => splitSelectSearchText2(props.text, props.range));
10953
11329
  return <For17 each={parts()} keyed={false}>
10954
- {(part) => <Show29 when={part().match} fallback={part().text}>
11330
+ {(part) => <Show31 when={part().match} fallback={part().text}>
10955
11331
  <mark class="ssg-select-editor-match">{part().text}</mark>
10956
- </Show29>}
11332
+ </Show31>}
10957
11333
  </For17>;
10958
11334
  }
10959
11335
  var SVG_NOT_FOCUSABLE6 = { focusable: "false" };
@@ -10973,14 +11349,14 @@ function CheckIcon() {
10973
11349
  function MultiSelectCellEditor(props) {
10974
11350
  const texts = useFeatureLocaleText();
10975
11351
  const portal = useGridPortal();
10976
- const [box, setBox] = createSignal19();
10977
- const [input, setInput] = createSignal19();
10978
- const [scroller, setScroller] = createSignal19();
10979
- const [popover, setPopover] = createSignal19();
11352
+ const [box, setBox] = createSignal20();
11353
+ const [input, setInput] = createSignal20();
11354
+ const [scroller, setScroller] = createSignal20();
11355
+ const [popover, setPopover] = createSignal20();
10980
11356
  const listId = createUniqueId8();
10981
11357
  const pointerMoved = createPointerMoveFilter3();
10982
- const [error, setError] = createSignal19(null);
10983
- const search = untrack22(() => props.search);
11358
+ const [error, setError] = createSignal20(null);
11359
+ const search = untrack23(() => props.search);
10984
11360
  const hint = () => search ? texts().multiSelectSearchHint : texts().multiSelectHint;
10985
11361
  const commitWithResult = (committed, direction) => {
10986
11362
  const result = props.onCommit(committed, direction);
@@ -10989,7 +11365,7 @@ function MultiSelectCellEditor(props) {
10989
11365
  }
10990
11366
  return result;
10991
11367
  };
10992
- const controller = untrack22(
11368
+ const controller = untrack23(
10993
11369
  () => createMultiSelectEditorController({
10994
11370
  options: props.options,
10995
11371
  value: props.value,
@@ -11000,21 +11376,21 @@ function MultiSelectCellEditor(props) {
11000
11376
  onCancel: () => props.onCancel()
11001
11377
  })
11002
11378
  );
11003
- const [snapshot2, setSnapshot] = createSignal19(controller.getSnapshot(), { name: "multiSelectSnapshot" });
11004
- createEffect13(
11379
+ const [snapshot2, setSnapshot] = createSignal20(controller.getSnapshot(), { name: "multiSelectSnapshot" });
11380
+ createEffect14(
11005
11381
  () => props.options,
11006
11382
  outsideGraphApply((options) => controller.setOptions(options)),
11007
11383
  { name: "multiSelectOptions" }
11008
11384
  );
11009
11385
  props.onRegisterFlush?.(controller.flush);
11010
11386
  const rowHeight = resolveSelectOptionRowHeight4();
11011
- const [placement2, setPlacement] = createSignal19(null);
11012
- const [scrollTop, setScrollTop] = createSignal19(0);
11387
+ const [placement2, setPlacement] = createSignal20(null);
11388
+ const [scrollTop, setScrollTop] = createSignal20(0);
11013
11389
  const listRows = createMemo32(() => Math.max(snapshot2().results.length, 1));
11014
11390
  const visibleRows = createMemo32(() => Math.min(listRows(), MULTI_SELECT_VISIBLE_ROWS));
11015
11391
  const viewportHeight = createMemo32(() => visibleRows() * rowHeight);
11016
11392
  const measure = () => {
11017
- const element = untrack22(box);
11393
+ const element = untrack23(box);
11018
11394
  if (!element) {
11019
11395
  return;
11020
11396
  }
@@ -11023,7 +11399,7 @@ function MultiSelectCellEditor(props) {
11023
11399
  element,
11024
11400
  computeSelectPopoverPlacement4(
11025
11401
  element.getBoundingClientRect(),
11026
- untrack22(visibleRows) + 1,
11402
+ untrack23(visibleRows) + 1,
11027
11403
  window.innerWidth,
11028
11404
  window.innerHeight,
11029
11405
  rowHeight,
@@ -11045,7 +11421,7 @@ function MultiSelectCellEditor(props) {
11045
11421
  };
11046
11422
  let disposed = false;
11047
11423
  onSettled11(() => {
11048
- const element = search ? untrack22(input) : untrack22(box);
11424
+ const element = search ? untrack23(input) : untrack23(box);
11049
11425
  if (element) {
11050
11426
  element.focus();
11051
11427
  if (element instanceof HTMLInputElement) {
@@ -11069,7 +11445,7 @@ function MultiSelectCellEditor(props) {
11069
11445
  disposed = true;
11070
11446
  });
11071
11447
  let measuredKey;
11072
- createEffect13(
11448
+ createEffect14(
11073
11449
  () => `${visibleRows()}:${props.cellTop ?? 0}:${props.cellLeft ?? 0}`,
11074
11450
  outsideGraphApply((key) => {
11075
11451
  const previous = measuredKey;
@@ -11080,13 +11456,13 @@ function MultiSelectCellEditor(props) {
11080
11456
  }),
11081
11457
  { name: "multiSelectMeasure" }
11082
11458
  );
11083
- createEffect13(
11459
+ createEffect14(
11084
11460
  () => [snapshot2().results, scroller(), viewportHeight()],
11085
11461
  outsideGraphApply(([, element, height]) => reveal(element, height)),
11086
11462
  { name: "multiSelectReveal" }
11087
11463
  );
11088
11464
  const handleKeyDown = (event) => {
11089
- if (isImeComposingKeyEvent6(event)) {
11465
+ if (isImeComposingKeyEvent7(event)) {
11090
11466
  return;
11091
11467
  }
11092
11468
  if (props.onCommitToSelection !== void 0 && isCommitToSelectionKey3(event)) {
@@ -11104,7 +11480,7 @@ function MultiSelectCellEditor(props) {
11104
11480
  setError(null);
11105
11481
  }
11106
11482
  if (after.highlight !== before.highlight) {
11107
- reveal(untrack22(scroller), untrack22(viewportHeight));
11483
+ reveal(untrack23(scroller), untrack23(viewportHeight));
11108
11484
  }
11109
11485
  }
11110
11486
  };
@@ -11126,7 +11502,7 @@ function MultiSelectCellEditor(props) {
11126
11502
  return listShown() && highlight >= 0 && results()[highlight] ? `${listId}-${highlight}` : void 0;
11127
11503
  };
11128
11504
  const mount = () => placement2() !== null ? portal.container() : null;
11129
- const initialText = untrack22(() => snapshot2().text);
11505
+ const initialText = untrack23(() => snapshot2().text);
11130
11506
  const justify = () => props.align === "right" ? "flex-end" : props.align === "center" ? "center" : void 0;
11131
11507
  const view = <>
11132
11508
  <div
@@ -11151,7 +11527,7 @@ function MultiSelectCellEditor(props) {
11151
11527
  onKeyDown={search ? void 0 : handleKeyDown}
11152
11528
  onBlur={search ? void 0 : handleBlur}
11153
11529
  onPointerDown={(event) => {
11154
- const field2 = untrack22(input);
11530
+ const field2 = untrack23(input);
11155
11531
  if (search && event.target !== field2) {
11156
11532
  event.preventDefault();
11157
11533
  field2?.focus();
@@ -11170,7 +11546,7 @@ function MultiSelectCellEditor(props) {
11170
11546
  onPointerDown={(event) => event.preventDefault()}
11171
11547
  onClick={() => {
11172
11548
  setError(null);
11173
- controller.remove(untrack22(chip).value);
11549
+ controller.remove(untrack23(chip).value);
11174
11550
  }}
11175
11551
  >
11176
11552
  ×
@@ -11178,7 +11554,7 @@ function MultiSelectCellEditor(props) {
11178
11554
  </span>}
11179
11555
  </For17>
11180
11556
  </span>
11181
- <Show29 when={search}>
11557
+ <Show31 when={search}>
11182
11558
  <input
11183
11559
  ref={setInput}
11184
11560
  type="text"
@@ -11198,14 +11574,14 @@ function MultiSelectCellEditor(props) {
11198
11574
  spellcheck="false"
11199
11575
  class="ssg-multi-select-editor-search"
11200
11576
  />
11201
- </Show29>
11577
+ </Show31>
11202
11578
  </div>
11203
11579
  {
11204
11580
  /* 変更(1.11.0 / レビュー EB-4): 一覧を出している間は、検査で拒まれた知らせを一覧の下(操作の説明の所)に出します
11205
11581
  (セルの下の吹き出しは一覧に隠れていた)。一覧が隠れているときだけ吹き出し。React 版と同じ。 */
11206
11582
  }
11207
11583
  <CellEditorError message={mount() !== null && placement2()?.hidden !== true ? null : error()} />
11208
- <Show29 when={mount()}>
11584
+ <Show31 when={mount()}>
11209
11585
  {(container) => <Portal7 mount={container()}>
11210
11586
  <div
11211
11587
  ref={setPopover}
@@ -11227,7 +11603,7 @@ function MultiSelectCellEditor(props) {
11227
11603
  }}
11228
11604
  onPointerDown={(event) => event.preventDefault()}
11229
11605
  >
11230
- <Show29 when={status() === "error"}>
11606
+ <Show31 when={status() === "error"}>
11231
11607
  <div class="ssg-select-editor-empty ssg-select-editor-error" role="alert">
11232
11608
  <span class="ssg-select-editor-error-text" title={snapshot2().errorMessage ?? void 0}>
11233
11609
  {texts().multiSelectFailed}
@@ -11236,13 +11612,13 @@ function MultiSelectCellEditor(props) {
11236
11612
  {texts().retry}
11237
11613
  </button>
11238
11614
  </div>
11239
- </Show29>
11240
- <Show29 when={status() !== "error" && results().length === 0}>
11615
+ </Show31>
11616
+ <Show31 when={status() !== "error" && results().length === 0}>
11241
11617
  <div class="ssg-select-editor-empty" role="status">
11242
11618
  {status() === "loading" ? texts().multiSelectLoading : snapshot2().filtered ? texts().multiSelectNoMatch : texts().noOptions}
11243
11619
  </div>
11244
- </Show29>
11245
- <Show29 when={results().length > 0}>
11620
+ </Show31>
11621
+ <Show31 when={results().length > 0}>
11246
11622
  <div
11247
11623
  ref={setScroller}
11248
11624
  role="listbox"
@@ -11274,52 +11650,52 @@ function MultiSelectCellEditor(props) {
11274
11650
  style={{ top: px(item().index * rowHeight) }}
11275
11651
  onClick={() => {
11276
11652
  setError(null);
11277
- controller.toggle(untrack22(item).index);
11653
+ controller.toggle(untrack23(item).index);
11278
11654
  }}
11279
11655
  onPointerEnter={(event) => revealOverflowTitle3(event.currentTarget)}
11280
11656
  onPointerMove={(event) => {
11281
11657
  if (pointerMoved(event)) {
11282
- controller.hover(untrack22(item).index);
11658
+ controller.hover(untrack23(item).index);
11283
11659
  }
11284
11660
  }}
11285
11661
  >
11286
11662
  <span class="ssg-multi-select-check" aria-hidden="true">
11287
- <Show29 when={checked()}>
11663
+ <Show31 when={checked()}>
11288
11664
  <CheckIcon />
11289
- </Show29>
11665
+ </Show31>
11290
11666
  </span>
11291
11667
  <span class="ssg-select-editor-option-label">
11292
11668
  <MatchedText2 text={item().result.option.label} range={item().result.labelMatch} />
11293
11669
  </span>
11294
- <Show29 when={item().result.option.description}>
11670
+ <Show31 when={item().result.option.description}>
11295
11671
  {(description) => <span class="ssg-select-editor-option-description">
11296
11672
  <MatchedText2 text={description()} range={item().result.descriptionMatch} />
11297
11673
  </span>}
11298
- </Show29>
11674
+ </Show31>
11299
11675
  </div>;
11300
11676
  }}
11301
11677
  </For17>
11302
11678
  </div>
11303
11679
  </div>
11304
- </Show29>
11305
- <Show29
11680
+ </Show31>
11681
+ <Show31
11306
11682
  when={error() === null}
11307
11683
  fallback={<div class="ssg-multi-select-hint ssg-multi-select-hint--error" role="alert" style={{ "min-height": px(rowHeight) }}>
11308
11684
  {error()}
11309
11685
  </div>}
11310
11686
  >
11311
- <Show29 when={hint() !== ""}>
11687
+ <Show31 when={hint() !== ""}>
11312
11688
  <div class="ssg-multi-select-hint" aria-hidden="true" style={{ "min-height": px(rowHeight) }}>
11313
11689
  {hint()}
11314
11690
  </div>
11315
- </Show29>
11316
- </Show29>
11691
+ </Show31>
11692
+ </Show31>
11317
11693
  </div>
11318
11694
  </Portal7>}
11319
- </Show29>
11695
+ </Show31>
11320
11696
  </>;
11321
11697
  createPortalTokens(popover, () => props.themeClassName, placement2);
11322
- createRenderEffect9(
11698
+ createRenderEffect10(
11323
11699
  () => [input(), snapshot2().text],
11324
11700
  ([element, text]) => {
11325
11701
  if (element && element.value !== text) {
@@ -11332,9 +11708,9 @@ function MultiSelectCellEditor(props) {
11332
11708
  }
11333
11709
 
11334
11710
  // src/view/GridMultiSelectChips.tsx
11335
- import { For as For18, Show as Show30 } from "solid-js";
11711
+ import { For as For18, Show as Show32 } from "solid-js";
11336
11712
  function GridMultiSelectChips(props) {
11337
- return <Show30 when={props.labels.length > 0}>
11713
+ return <Show32 when={props.labels.length > 0}>
11338
11714
  <span class="ssg-multi-select-chips" data-ssg-tooltip-overflow={props.labels.join(props.separator)}>
11339
11715
  <For18 each={props.labels} keyed={false}>
11340
11716
  {(label, index) => <span class="ssg-multi-select-chip">
@@ -11342,7 +11718,7 @@ function GridMultiSelectChips(props) {
11342
11718
  </span>}
11343
11719
  </For18>
11344
11720
  </span>
11345
- </Show30>;
11721
+ </Show32>;
11346
11722
  }
11347
11723
 
11348
11724
  // src/features/multiSelect.ts
@@ -11398,8 +11774,8 @@ import { createTreeStage } from "@ishibashi0112/spreadsheet-grid-core/internal/e
11398
11774
  import { DEFAULT_TREE_DATA_LOCALE_TEXT } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
11399
11775
 
11400
11776
  // src/view/GridTreeCell.tsx
11401
- import { createMemo as createMemo33, Show as Show31 } from "solid-js";
11402
- import { formatLocaleText as formatLocaleText17 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
11777
+ import { createMemo as createMemo33, Show as Show33 } from "solid-js";
11778
+ import { formatLocaleText as formatLocaleText18 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
11403
11779
  import {
11404
11780
  formatTotalRowCellText as formatTotalRowCellText2,
11405
11781
  resolveTotalRowCaption as resolveTotalRowCaption2
@@ -11408,19 +11784,19 @@ function GridTreeCellPrefix(props) {
11408
11784
  const texts = useFeatureLocaleText();
11409
11785
  const label = createMemo33(() => {
11410
11786
  const name = props.rowLabel.trim();
11411
- return formatLocaleText17(props.open ? texts().collapseTreeRow : texts().expandTreeRow, {
11412
- row: name !== "" ? name : formatLocaleText17(texts().treeRowNumber, { row: props.rowNumber })
11787
+ return formatLocaleText18(props.open ? texts().collapseTreeRow : texts().expandTreeRow, {
11788
+ row: name !== "" ? name : formatLocaleText18(texts().treeRowNumber, { row: props.rowNumber })
11413
11789
  });
11414
11790
  });
11415
11791
  return <>
11416
- <Show31 when={props.level > 0}>
11792
+ <Show33 when={props.level > 0}>
11417
11793
  <span
11418
11794
  aria-hidden="true"
11419
11795
  class="ssg-tree-indent"
11420
11796
  style={{ width: `calc(var(--ssg-tree-indent) * ${props.level})` }}
11421
11797
  />
11422
- </Show31>
11423
- <Show31 when={props.hasChildren} fallback={<span aria-hidden="true" class="ssg-tree-spacer" />}>
11798
+ </Show33>
11799
+ <Show33 when={props.hasChildren} fallback={<span aria-hidden="true" class="ssg-tree-spacer" />}>
11424
11800
  <button
11425
11801
  type="button"
11426
11802
  tabindex={-1}
@@ -11441,7 +11817,7 @@ function GridTreeCellPrefix(props) {
11441
11817
  >
11442
11818
  {props.open ? "\u25BE" : "\u25B8"}
11443
11819
  </button>
11444
- </Show31>
11820
+ </Show33>
11445
11821
  </>;
11446
11822
  }
11447
11823
  function GridTreeAggregateValue(props) {
@@ -11452,17 +11828,17 @@ function GridTreeAggregateValue(props) {
11452
11828
  const text = formatTotalRowCellText2(column, { value: props.value, kind });
11453
11829
  return text === "" ? null : { text, caption: resolveTotalRowCaption2(kind, texts()) };
11454
11830
  });
11455
- return <Show31 when={shown()}>
11831
+ return <Show33 when={shown()}>
11456
11832
  {(current) => <span
11457
11833
  class="ssg-group-value ssg-tree-aggregate"
11458
11834
  data-ssg-tooltip-overflow={current().caption !== void 0 ? `${current().caption} ${current().text}` : current().text}
11459
11835
  >
11460
- <Show31 when={current().caption !== void 0}>
11836
+ <Show33 when={current().caption !== void 0}>
11461
11837
  <span class="ssg-group-caption">{current().caption}</span>
11462
- </Show31>
11838
+ </Show33>
11463
11839
  {current().text}
11464
11840
  </span>}
11465
- </Show31>;
11841
+ </Show33>;
11466
11842
  }
11467
11843
 
11468
11844
  // src/features/treeData.ts
@@ -11515,9 +11891,9 @@ function createSelectionAggregates(args) {
11515
11891
  }
11516
11892
 
11517
11893
  // src/view/GridSelectionAggregates.tsx
11518
- import { For as For19, Show as Show32, createMemo as createMemo35 } from "solid-js";
11894
+ import { For as For19, Show as Show34, createMemo as createMemo35 } from "solid-js";
11519
11895
  import { formatSelectionAggregateNumber } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectionAggregates";
11520
- import { formatLocaleText as formatLocaleText18 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
11896
+ import { formatLocaleText as formatLocaleText19 } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
11521
11897
  function GridSelectionAggregates(props) {
11522
11898
  const texts = useFeatureLocaleText();
11523
11899
  const chips = createMemo35(() => {
@@ -11530,7 +11906,7 @@ function GridSelectionAggregates(props) {
11530
11906
  return [
11531
11907
  {
11532
11908
  key: "computing",
11533
- text: formatLocaleText18(localeTexts.aggregateComputing, { percent: Math.floor(aggregates.progress * 100) })
11909
+ text: formatLocaleText19(localeTexts.aggregateComputing, { percent: Math.floor(aggregates.progress * 100) })
11534
11910
  }
11535
11911
  ];
11536
11912
  }
@@ -11553,7 +11929,7 @@ function GridSelectionAggregates(props) {
11553
11929
  }
11554
11930
  return list;
11555
11931
  });
11556
- return <Show32 when={chips()}>
11932
+ return <Show34 when={chips()}>
11557
11933
  {(list) => <div class={["ssg-bar-aggregates", { "ssg-bar-aggregates--trailing": props.trailing }]}>
11558
11934
  <div class="ssg-bar-aggregates-inner" title={list().map((chip) => chip.text).join(" ")}>
11559
11935
  <div class="ssg-bar-aggregates-list">
@@ -11569,16 +11945,16 @@ function GridSelectionAggregates(props) {
11569
11945
  ]}
11570
11946
  style={{ order: String(-index()) }}
11571
11947
  >
11572
- <Show32 when={chip().label !== void 0} fallback={chip().text}>
11948
+ <Show34 when={chip().label !== void 0} fallback={chip().text}>
11573
11949
  {chip().label}
11574
11950
  <b class="ssg-bar-aggregate-value">{chip().value}</b>
11575
- </Show32>
11951
+ </Show34>
11576
11952
  </span>}
11577
11953
  </For19>
11578
11954
  </div>
11579
11955
  </div>
11580
11956
  </div>}
11581
- </Show32>;
11957
+ </Show34>;
11582
11958
  }
11583
11959
 
11584
11960
  // src/features/selectionAggregates.ts
@@ -11644,7 +12020,7 @@ import {
11644
12020
  } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/totalRow";
11645
12021
 
11646
12022
  // src/view/GridTotalRow.tsx
11647
- import { For as For20, Show as Show33, createMemo as createMemo37 } from "solid-js";
12023
+ import { For as For20, Show as Show35, createMemo as createMemo37 } from "solid-js";
11648
12024
  import {
11649
12025
  formatTotalRowCellText as formatTotalRowCellText3,
11650
12026
  resolveTotalRowCaption as resolveTotalRowCaption3
@@ -11671,7 +12047,7 @@ function GridTotalRow(props) {
11671
12047
  ...props.stickyBottom > 0 ? { bottom: px(props.stickyBottom) } : null
11672
12048
  }}
11673
12049
  >
11674
- <Show33 when={props.ownsRowHeader}>
12050
+ <Show35 when={props.ownsRowHeader}>
11675
12051
  <div
11676
12052
  role={rowHeaderIsCell() ? "rowheader" : void 0}
11677
12053
  aria-colindex={rowHeaderIsCell() ? 1 : void 0}
@@ -11686,7 +12062,7 @@ function GridTotalRow(props) {
11686
12062
  >
11687
12063
  {rowHeaderText() === "" ? null : rowHeaderText()}
11688
12064
  </div>
11689
- </Show33>
12065
+ </Show35>
11690
12066
  <For20 each={props.entries} keyed={(entry) => entry.column.key}>
11691
12067
  {(entry) => {
11692
12068
  const unbound = createMemo37(() => entry().column);
@@ -11770,6 +12146,8 @@ var fullGridFeatures = {
11770
12146
  scrollHint: scrollHintFeature,
11771
12147
  motionExtras: motionExtrasFeature,
11772
12148
  find: findFeature,
12149
+ findReplace: findReplaceFeature,
12150
+ richCopy: richCopyFeature,
11773
12151
  imeDirectInput: imeDirectInputFeature,
11774
12152
  selectSearch: selectSearchFeature,
11775
12153
  dateTimeEditors: dateTimeEditorsFeature,
@@ -11827,6 +12205,7 @@ export {
11827
12205
  fillHandleFeature,
11828
12206
  filteringFeature,
11829
12207
  findFeature,
12208
+ findReplaceFeature,
11830
12209
  groupingFeature,
11831
12210
  imeDirectInputFeature,
11832
12211
  labelRowFeature,
@@ -11838,6 +12217,7 @@ export {
11838
12217
  pinnedRowsFeature,
11839
12218
  preloadGridPopups,
11840
12219
  restoreColumnsFromState,
12220
+ richCopyFeature,
11841
12221
  rowDragFeature,
11842
12222
  scrollHintFeature,
11843
12223
  selectSearchFeature,