@ishibashi0112/spreadsheet-grid 0.38.0 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/useCellContextMenuController.d.ts +4 -4
- package/dist/hooks/useColumnAutosizeRunner.d.ts +2 -2
- package/dist/hooks/useColumnHeaderDragController.d.ts +2 -2
- package/dist/hooks/useColumnMenuController.d.ts +5 -5
- package/dist/hooks/useColumnSelectOptionsCollector.d.ts +2 -2
- package/dist/hooks/useFilterPopoverController.d.ts +8 -8
- package/dist/hooks/useGlobalFilteredOrder.d.ts +3 -3
- package/dist/hooks/useGridBarContext.d.ts +1 -1
- package/dist/hooks/useGridClipboardController.d.ts +1 -1
- package/dist/hooks/useGridEditController.d.ts +4 -4
- package/dist/hooks/useGridHistoryController.d.ts +1 -1
- package/dist/hooks/useGridKeyboardInteractions.d.ts +1 -1
- package/dist/hooks/useGridPointerInteractions.d.ts +8 -8
- package/dist/hooks/useGridStore.d.ts +1 -1
- package/dist/hooks/useGridViewportSync.d.ts +1 -1
- package/dist/hooks/useResolvedGridTheme.d.ts +1 -1
- package/dist/hooks/useRowDragController.d.ts +2 -2
- package/dist/hooks/useServerSideRowModel.d.ts +3 -3
- package/dist/hooks/useToolPanelController.d.ts +2 -2
- package/dist/index.cjs +1 -10
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2506 -8583
- package/dist/model/gridTypes.d.ts +2 -2
- package/dist/testing/index.d.ts +1 -5
- package/dist/testing.cjs +1 -1
- package/dist/testing.js +1 -51
- package/dist/view/ColumnChooserPanel.d.ts +1 -1
- package/dist/view/ColumnFilterPopover.d.ts +5 -5
- package/dist/view/GridBodyLayer.d.ts +2 -2
- package/dist/view/GridDetailLayer.d.ts +1 -1
- package/dist/view/GridHeaderRow.d.ts +2 -2
- package/dist/view/GridScrollHint.d.ts +2 -2
- package/package.json +8 -28
- package/README.md +0 -582
- package/dist/controllers/autoHeightMeasurer.d.ts +0 -30
- package/dist/controllers/clipboardController.d.ts +0 -31
- package/dist/controllers/columnAutosizeRunner.d.ts +0 -31
- package/dist/controllers/columnHeaderDragController.d.ts +0 -44
- package/dist/controllers/columnMenuController.d.ts +0 -49
- package/dist/controllers/contextMenuController.d.ts +0 -30
- package/dist/controllers/debouncedValueStore.d.ts +0 -11
- package/dist/controllers/editController.d.ts +0 -27
- package/dist/controllers/filterPopoverController.d.ts +0 -53
- package/dist/controllers/globalFilteredOrder.d.ts +0 -38
- package/dist/controllers/historyController.d.ts +0 -28
- package/dist/controllers/keyboardController.d.ts +0 -36
- package/dist/controllers/panelHeaderDragController.d.ts +0 -21
- package/dist/controllers/pointerInteractionsController.d.ts +0 -74
- package/dist/controllers/popoverSupport.d.ts +0 -18
- package/dist/controllers/rowDragController.d.ts +0 -40
- package/dist/controllers/scrollSyncController.d.ts +0 -17
- package/dist/controllers/selectOptionsCollector.d.ts +0 -31
- package/dist/controllers/serverSideRowModel.d.ts +0 -36
- package/dist/controllers/systemColorSchemeStore.d.ts +0 -5
- package/dist/controllers/toolPanelController.d.ts +0 -36
- package/dist/controllers/tooltipController.d.ts +0 -6
- package/dist/controllers/viewportSyncController.d.ts +0 -30
- package/dist/engine/columnCommands.d.ts +0 -56
- package/dist/engine/columnLayout.d.ts +0 -43
- package/dist/engine/createGridEngine.d.ts +0 -46
- package/dist/engine/filterPopoverCommands.d.ts +0 -56
- package/dist/engine/gridApi.d.ts +0 -61
- package/dist/engine/memo.d.ts +0 -2
- package/dist/engine/notifiers.d.ts +0 -35
- package/dist/engine/rowPipeline.d.ts +0 -50
- package/dist/engine/rowSelectionCommands.d.ts +0 -21
- package/dist/engine/verticalLayout.d.ts +0 -52
- package/dist/logic/aggregation.d.ts +0 -13
- package/dist/logic/autoScrollGeometry.d.ts +0 -27
- package/dist/logic/autoSizeOnData.d.ts +0 -10
- package/dist/logic/cellOverflowTooltip.d.ts +0 -5
- package/dist/logic/checkboxEditor.d.ts +0 -12
- package/dist/logic/chunkedLoop.d.ts +0 -8
- package/dist/logic/clearCells.d.ts +0 -31
- package/dist/logic/columnAutosize.d.ts +0 -18
- package/dist/logic/columnFlex.d.ts +0 -4
- package/dist/logic/columnReset.d.ts +0 -7
- package/dist/logic/contextMenuTarget.d.ts +0 -4
- package/dist/logic/cx.d.ts +0 -1
- package/dist/logic/dateFilterCondition.d.ts +0 -26
- package/dist/logic/dateFilterPresets.d.ts +0 -13
- package/dist/logic/dateFilterTree.d.ts +0 -17
- package/dist/logic/datePickerCalendar.d.ts +0 -12
- package/dist/logic/detailRow.d.ts +0 -38
- package/dist/logic/domGuards.d.ts +0 -7
- package/dist/logic/editorValues.d.ts +0 -5
- package/dist/logic/exportCsv.d.ts +0 -12
- package/dist/logic/exportData.d.ts +0 -9
- package/dist/logic/exportScope.d.ts +0 -3
- package/dist/logic/filterPopoverLayout.d.ts +0 -17
- package/dist/logic/filterPopoverOutsideClick.d.ts +0 -2
- package/dist/logic/filterSummary.d.ts +0 -3
- package/dist/logic/filtering.d.ts +0 -33
- package/dist/logic/geometry.d.ts +0 -72
- package/dist/logic/gridState.d.ts +0 -13
- package/dist/logic/grouping.d.ts +0 -34
- package/dist/logic/history.d.ts +0 -16
- package/dist/logic/inferFilterType.d.ts +0 -19
- package/dist/logic/numberFilterCondition.d.ts +0 -21
- package/dist/logic/panelDragGeometry.d.ts +0 -13
- package/dist/logic/rowHeightStore.d.ts +0 -13
- package/dist/logic/rowReorder.d.ts +0 -18
- package/dist/logic/rowSelection.d.ts +0 -16
- package/dist/logic/scrollHint.d.ts +0 -41
- package/dist/logic/scrollTargets.d.ts +0 -22
- package/dist/logic/selectEditorState.d.ts +0 -28
- package/dist/logic/selectOptions.d.ts +0 -9
- package/dist/logic/serverSideBlocks.d.ts +0 -2
- package/dist/logic/serverSideCache.d.ts +0 -14
- package/dist/logic/serverSideEdits.d.ts +0 -16
- package/dist/logic/serverSideQuery.d.ts +0 -7
- package/dist/logic/setFilterSearch.d.ts +0 -14
- package/dist/logic/setFilterSelection.d.ts +0 -5
- package/dist/logic/slotDom.d.ts +0 -8
- package/dist/logic/slotProps.d.ts +0 -18
- package/dist/logic/sorting.d.ts +0 -11
- package/dist/logic/textFilterCondition.d.ts +0 -18
- package/dist/logic/theme.d.ts +0 -3
- package/dist/logic/tooltipGeometry.d.ts +0 -19
- package/dist/logic/validation.d.ts +0 -14
- package/dist/logic/valueFormatters.d.ts +0 -9
- package/dist/logic/valueStore.d.ts +0 -6
- package/dist/logic/verticalGeometry.d.ts +0 -58
- package/dist/model/gridActions.d.ts +0 -125
- package/dist/model/gridReducer.d.ts +0 -4
- package/dist/model/gridSelectors.d.ts +0 -40
- package/dist/model/gridStore.d.ts +0 -24
- package/dist/model/gridTypes.core.d.ts +0 -796
- package/dist/utils/clipboard.d.ts +0 -29
- package/dist/utils/excelColumnName.d.ts +0 -1
- package/dist/utils/permissions.d.ts +0 -4
- package/dist/utils/scheduler.d.ts +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode, Ref } from 'react';
|
|
2
|
-
import type * as Core from '
|
|
3
|
-
export type * from '
|
|
2
|
+
import type * as Core from '@ishibashi0112/spreadsheet-grid-core/model/gridTypes.core';
|
|
3
|
+
export type * from '@ishibashi0112/spreadsheet-grid-core/model/gridTypes.core';
|
|
4
4
|
export type ReactGridTypes = {
|
|
5
5
|
node: ReactNode;
|
|
6
6
|
style: CSSProperties;
|
package/dist/testing/index.d.ts
CHANGED
package/dist/testing.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=require("@ishibashi0112/spreadsheet-grid-core/testing");Object.keys(e).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
|
package/dist/testing.js
CHANGED
|
@@ -1,51 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function e(e = {}) {
|
|
3
|
-
let t = e.width ?? 1200, n = e.height ?? 600, r = Element.prototype, i = HTMLElement.prototype, a = Object.getOwnPropertyDescriptor(i, "clientHeight"), o = Object.getOwnPropertyDescriptor(i, "clientWidth"), s = r.getBoundingClientRect, c = globalThis.ResizeObserver, l = r.scrollTo;
|
|
4
|
-
Object.defineProperty(i, "clientHeight", {
|
|
5
|
-
configurable: !0,
|
|
6
|
-
get: () => n
|
|
7
|
-
}), Object.defineProperty(i, "clientWidth", {
|
|
8
|
-
configurable: !0,
|
|
9
|
-
get: () => t
|
|
10
|
-
}), r.getBoundingClientRect = () => ({
|
|
11
|
-
x: 0,
|
|
12
|
-
y: 0,
|
|
13
|
-
top: 0,
|
|
14
|
-
left: 0,
|
|
15
|
-
bottom: n,
|
|
16
|
-
right: t,
|
|
17
|
-
width: t,
|
|
18
|
-
height: n,
|
|
19
|
-
toJSON: () => ({})
|
|
20
|
-
});
|
|
21
|
-
class u {
|
|
22
|
-
callback;
|
|
23
|
-
constructor(e) {
|
|
24
|
-
this.callback = e;
|
|
25
|
-
}
|
|
26
|
-
observe(e) {
|
|
27
|
-
let r = {
|
|
28
|
-
inlineSize: t,
|
|
29
|
-
blockSize: n
|
|
30
|
-
};
|
|
31
|
-
this.callback([{
|
|
32
|
-
target: e,
|
|
33
|
-
contentRect: {
|
|
34
|
-
width: t,
|
|
35
|
-
height: n,
|
|
36
|
-
top: 0,
|
|
37
|
-
left: 0
|
|
38
|
-
},
|
|
39
|
-
borderBoxSize: [r],
|
|
40
|
-
contentBoxSize: [r]
|
|
41
|
-
}], this);
|
|
42
|
-
}
|
|
43
|
-
unobserve() {}
|
|
44
|
-
disconnect() {}
|
|
45
|
-
}
|
|
46
|
-
return globalThis.ResizeObserver = u, r.scrollTo ||= () => {}, () => {
|
|
47
|
-
a ? Object.defineProperty(i, "clientHeight", a) : delete i.clientHeight, o ? Object.defineProperty(i, "clientWidth", o) : delete i.clientWidth, r.getBoundingClientRect = s, globalThis.ResizeObserver = c, r.scrollTo = l;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
//#endregion
|
|
51
|
-
export { e as installJsdomLayoutStubs };
|
|
1
|
+
export * from "@ishibashi0112/spreadsheet-grid-core/testing";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ColumnFilterUiType, FilterDateInputContext } from '../model/gridTypes';
|
|
2
2
|
export type ColumnFilterDateInputRenderer = (ctx: Omit<FilterDateInputContext, 'columnKey'>) => ReactNode;
|
|
3
3
|
import { type ReactNode, type RefObject } from 'react';
|
|
4
|
-
import { type ColumnFilterSetSelection } from '
|
|
5
|
-
import { type NumberFilterConditionDraft } from '
|
|
6
|
-
import { type TextFilterConditionDraft } from '
|
|
7
|
-
import { type DateFilterConditionDraft } from '
|
|
8
|
-
import { type NormalizedDateFilterPreset } from '
|
|
4
|
+
import { type ColumnFilterSetSelection } from '@ishibashi0112/spreadsheet-grid-core/logic/setFilterSelection';
|
|
5
|
+
import { type NumberFilterConditionDraft } from '@ishibashi0112/spreadsheet-grid-core/logic/numberFilterCondition';
|
|
6
|
+
import { type TextFilterConditionDraft } from '@ishibashi0112/spreadsheet-grid-core/logic/textFilterCondition';
|
|
7
|
+
import { type DateFilterConditionDraft } from '@ishibashi0112/spreadsheet-grid-core/logic/dateFilterCondition';
|
|
8
|
+
import { type NormalizedDateFilterPreset } from '@ishibashi0112/spreadsheet-grid-core/logic/dateFilterPresets';
|
|
9
9
|
import type { GridResolvedSlot } from '../model/gridTypes';
|
|
10
10
|
export type ColumnFilterPopoverLayout = {
|
|
11
11
|
top: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, PointerEvent, ReactNode } from 'react';
|
|
2
|
-
import type { SelectionSnapshot } from '
|
|
2
|
+
import type { SelectionSnapshot } from '@ishibashi0112/spreadsheet-grid-core/model/gridSelectors';
|
|
3
3
|
import type { CellCoord, CellRenderState, GridColumn, RowModel, RowSelectionState, RowStyleContext, SpreadsheetGridProps } from '../model/gridTypes';
|
|
4
|
-
import type { PaneColumnEntry } from '
|
|
4
|
+
import type { PaneColumnEntry } from '@ishibashi0112/spreadsheet-grid-core/logic/geometry';
|
|
5
5
|
import type { GridPaneKind } from './GridHeaderRow';
|
|
6
6
|
import type { GridResolvedSlots, GridSlotProps } from '../model/gridTypes';
|
|
7
7
|
type VirtualRowLike = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type { VerticalRow } from '
|
|
2
|
+
import type { VerticalRow } from '@ishibashi0112/spreadsheet-grid-core/logic/verticalGeometry';
|
|
3
3
|
import type { GridResolvedSlot, GridResolvedSlots } from '../model/gridTypes';
|
|
4
4
|
export type GridDetailLayerEntry = {
|
|
5
5
|
rowKey: string | number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type CSSProperties, type MouseEvent, type PointerEvent } from 'react';
|
|
2
|
-
import type { SelectionSnapshot } from '
|
|
2
|
+
import type { SelectionSnapshot } from '@ishibashi0112/spreadsheet-grid-core/model/gridSelectors';
|
|
3
3
|
import type { ColumnFilterValue, GridColumn, GridSortState, SelectAllState } from '../model/gridTypes';
|
|
4
|
-
import type { PaneColumnEntry } from '
|
|
4
|
+
import type { PaneColumnEntry } from '@ishibashi0112/spreadsheet-grid-core/logic/geometry';
|
|
5
5
|
import type { GridResolvedSlots } from '../model/gridTypes';
|
|
6
6
|
export type GridPaneKind = 'left' | 'center' | 'right';
|
|
7
7
|
type GridHeaderRowProps<T> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
2
|
import type { RowModel } from '../model/gridTypes';
|
|
3
|
-
import type { RowMetrics } from '
|
|
4
|
-
import type { ResolvedScrollHintOptions } from '
|
|
3
|
+
import type { RowMetrics } from '@ishibashi0112/spreadsheet-grid-core/logic/verticalGeometry';
|
|
4
|
+
import type { ResolvedScrollHintOptions } from '@ishibashi0112/spreadsheet-grid-core/logic/scrollHint';
|
|
5
5
|
import type { GridResolvedSlot } from '../model/gridTypes';
|
|
6
6
|
import type { ReactGridTypes } from '../model/gridTypes';
|
|
7
7
|
export declare const SCROLL_HINT_GUTTER_WIDTH_PX = 14;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ishibashi0112/spreadsheet-grid",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "React 19 製のカスタム仮想化データグリッド。100 万行対応の仮想化・3
|
|
3
|
+
"version": "0.39.0",
|
|
4
|
+
"description": "React 19 製のカスタム仮想化データグリッド。100 万行対応の仮想化・3 ペイン固定列・ソート/フィルター・クライアント/サーバーサイド行モデル対応。コアは @ishibashi0112/spreadsheet-grid-core。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
7
7
|
"react19",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"author": "Yuki Sakakibara",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/ishibashi0112/datasheet-grid.git"
|
|
21
|
+
"url": "git+https://github.com/ishibashi0112/datasheet-grid.git",
|
|
22
|
+
"directory": "packages/react"
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://github.com/ishibashi0112/datasheet-grid#readme",
|
|
24
25
|
"bugs": {
|
|
@@ -59,38 +60,17 @@
|
|
|
59
60
|
"react-dom": "^19.0.0"
|
|
60
61
|
},
|
|
61
62
|
"dependencies": {
|
|
62
|
-
"@tanstack/virtual-core": "^3.17.0"
|
|
63
|
+
"@tanstack/virtual-core": "^3.17.0",
|
|
64
|
+
"@ishibashi0112/spreadsheet-grid-core": "^0.39.0"
|
|
63
65
|
},
|
|
64
66
|
"devDependencies": {
|
|
65
|
-
"@eslint/js": "^10.0.1",
|
|
66
|
-
"@testing-library/dom": "^10.4.1",
|
|
67
|
-
"@testing-library/react": "^16.3.2",
|
|
68
|
-
"@types/node": "^24.12.3",
|
|
69
67
|
"@types/react": "^19.3.0",
|
|
70
68
|
"@types/react-dom": "^19.3.0",
|
|
71
|
-
"@vitejs/plugin-react": "^6.0.1",
|
|
72
|
-
"eslint": "^10.3.0",
|
|
73
|
-
"eslint-plugin-react-hooks": "^7.1.1",
|
|
74
|
-
"eslint-plugin-react-refresh": "^0.5.2",
|
|
75
|
-
"globals": "^17.6.0",
|
|
76
|
-
"jsdom": "^29.1.1",
|
|
77
69
|
"react": "^19.3.0",
|
|
78
|
-
"react-dom": "^19.3.0"
|
|
79
|
-
"typescript": "~6.0.2",
|
|
80
|
-
"typescript-eslint": "^8.59.2",
|
|
81
|
-
"vite": "^8.0.12",
|
|
82
|
-
"vite-plus": "^0.2.4",
|
|
83
|
-
"vitest": "^4.1.9"
|
|
70
|
+
"react-dom": "^19.3.0"
|
|
84
71
|
},
|
|
85
72
|
"scripts": {
|
|
86
|
-
"dev": "vp dev",
|
|
87
|
-
"build": "tsc -b && vp build",
|
|
88
73
|
"build:lib": "vp build --config vite.lib.config.ts && tsc -p tsconfig.lib.json && node scripts/emit-layer-css.mjs",
|
|
89
|
-
"build:types": "tsc -p tsconfig.lib.json"
|
|
90
|
-
"lint": "eslint .",
|
|
91
|
-
"preview": "vp preview",
|
|
92
|
-
"test": "vitest run",
|
|
93
|
-
"test:watch": "vitest",
|
|
94
|
-
"typecheck:test": "tsc --noEmit -p tsconfig.vitest.json"
|
|
74
|
+
"build:types": "tsc -p tsconfig.lib.json"
|
|
95
75
|
}
|
|
96
76
|
}
|