@ishibashi0112/spreadsheet-grid-solid 1.5.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API_REFERENCE.md +174 -35
- package/README.md +2 -2
- package/dist/editors/CellEditorLayer.d.ts +4 -2
- package/dist/editors/SearchSelectCellEditor.d.ts +24 -0
- package/dist/editors/SelectCellEditor.d.ts +2 -3
- package/dist/features/columnGroups.d.ts +2 -0
- package/dist/features/selectSearch.d.ts +2 -0
- package/dist/features/types.d.ts +19 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3533 -2894
- package/dist/model/gridTypes.d.ts +6 -0
- package/dist/primitives/columnReorder.d.ts +1 -0
- package/dist/primitives/filterManagement.d.ts +1 -0
- package/dist/source/chunks/{toolPanelViews-HIQGRX3N.jsx → toolPanelViews-BRH5PCOI.jsx} +84 -8
- package/dist/source/index.jsx +1120 -360
- package/dist/style.css +1 -1
- package/dist/style.layer.css +1 -1
- package/dist/{toolPanelViews-BISN9iaG.js → toolPanelViews-DMEVr1KV.js} +197 -138
- package/dist/view/ColumnChooserPanel.d.ts +9 -1
- package/dist/view/ColumnFilterPopoverHost.d.ts +1 -0
- package/dist/view/ColumnMenuPopover.d.ts +6 -0
- package/dist/view/GridColumnGroupHeader.d.ts +42 -0
- package/dist/view/GridHeaderRow.d.ts +4 -0
- package/package.json +3 -3
- package/skills/spreadsheet-grid-solid/SKILL.md +2 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { JSX } from '@solidjs/web';
|
|
2
|
-
import type { EditorCommitDirection, EditorCommitResult, EditorEnterMove, GridRowKey } from '@ishibashi0112/spreadsheet-grid-core';
|
|
2
|
+
import type { EditorCommitDirection, EditorCommitResult, EditorEnterMove, GridRowKey, GridSelectEditorOption } from '@ishibashi0112/spreadsheet-grid-core';
|
|
3
3
|
import type { LateEditCommitReceiver } from '@ishibashi0112/spreadsheet-grid-core/internal/controllers/editController';
|
|
4
4
|
import type { GridColumn, GridResolvedSlots } from '../model/gridTypes.js';
|
|
5
|
+
import type { SearchSelectCellEditor } from './SearchSelectCellEditor.js';
|
|
5
6
|
export type CellEditorRect = {
|
|
6
7
|
left: number;
|
|
7
8
|
top: number;
|
|
@@ -28,8 +29,9 @@ type CellEditorLayerProps<T> = {
|
|
|
28
29
|
session: CellEditorSession<T> | null;
|
|
29
30
|
themeClassName?: string | undefined;
|
|
30
31
|
slots: GridResolvedSlots;
|
|
31
|
-
onCommit: (value: unknown, direction?: EditorCommitDirection) => EditorCommitResult | void;
|
|
32
|
+
onCommit: (value: unknown, direction?: EditorCommitDirection, option?: GridSelectEditorOption, forwardText?: string) => EditorCommitResult | void;
|
|
32
33
|
onCancel: () => void;
|
|
34
|
+
SearchSelectEditor?: typeof SearchSelectCellEditor | undefined;
|
|
33
35
|
onRegisterFlush?: ((flush: (() => void) | null) => void) | undefined;
|
|
34
36
|
onRegisterLateCommit?: ((receiver: LateEditCommitReceiver) => () => void) | undefined;
|
|
35
37
|
align?: 'left' | 'center' | 'right' | undefined;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { EditorCommitDirection, EditorCommitResult, EditorEnterMove, GridSelectEditorOption } from '@ishibashi0112/spreadsheet-grid-core';
|
|
2
|
+
import { type SearchSelectLoad } from '@ishibashi0112/spreadsheet-grid-core/internal/controllers/searchSelectEditorController';
|
|
3
|
+
import type { GridResolvedSlot } from '../model/gridTypes.js';
|
|
4
|
+
export type SearchSelectCellEditorProps = {
|
|
5
|
+
ariaLabel?: string | undefined;
|
|
6
|
+
options: readonly GridSelectEditorOption[];
|
|
7
|
+
value: unknown;
|
|
8
|
+
displayText?: string | undefined;
|
|
9
|
+
allowFreeText: boolean;
|
|
10
|
+
load?: SearchSelectLoad | undefined;
|
|
11
|
+
onCommit: (value: unknown, direction?: EditorCommitDirection, option?: GridSelectEditorOption, forwardText?: string) => EditorCommitResult | void;
|
|
12
|
+
onCancel: () => void;
|
|
13
|
+
onRegisterFlush?: ((flush: (() => void) | null) => void) | undefined;
|
|
14
|
+
align?: 'left' | 'center' | 'right' | undefined;
|
|
15
|
+
themeClassName?: string | undefined;
|
|
16
|
+
popoverSlot?: GridResolvedSlot | undefined;
|
|
17
|
+
enterMove?: EditorEnterMove | undefined;
|
|
18
|
+
initialText?: string | undefined;
|
|
19
|
+
cellTop?: number | undefined;
|
|
20
|
+
cellLeft?: number | undefined;
|
|
21
|
+
cellHeight?: number | undefined;
|
|
22
|
+
alignTop?: boolean | undefined;
|
|
23
|
+
};
|
|
24
|
+
export declare function SearchSelectCellEditor(props: SearchSelectCellEditorProps): import("@solidjs/web").JSX.Element;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type { EditorEnterMove, GridSelectEditorOption } from '@ishibashi0112/spreadsheet-grid-core';
|
|
1
|
+
import type { EditorCommitDirection, EditorCommitResult, EditorEnterMove, GridSelectEditorOption } from '@ishibashi0112/spreadsheet-grid-core';
|
|
2
2
|
import type { GridResolvedSlot } from '../model/gridTypes.js';
|
|
3
|
-
import type { EditorCommit } from './TextCellEditor.js';
|
|
4
3
|
type SelectCellEditorProps = {
|
|
5
4
|
ariaLabel?: string | undefined;
|
|
6
5
|
options: readonly GridSelectEditorOption[];
|
|
7
6
|
value: unknown;
|
|
8
|
-
onCommit:
|
|
7
|
+
onCommit: (value: unknown, direction?: EditorCommitDirection, option?: GridSelectEditorOption) => EditorCommitResult | void;
|
|
9
8
|
onCancel: () => void;
|
|
10
9
|
align?: 'left' | 'center' | 'right' | undefined;
|
|
11
10
|
themeClassName?: string | undefined;
|
package/dist/features/types.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ import type { GridLocaleText } from '@ishibashi0112/spreadsheet-grid-core';
|
|
|
5
5
|
import type { GridChip } from '../view/GridChip.js';
|
|
6
6
|
import type { GridTotalRow } from '../view/GridTotalRow.js';
|
|
7
7
|
import type { GridPinnedRows } from '../view/GridPinnedRows.js';
|
|
8
|
+
import type { SearchSelectCellEditor } from '../editors/SearchSelectCellEditor.js';
|
|
9
|
+
import type { GridColumnGroupHeader } from '../view/GridColumnGroupHeader.js';
|
|
10
|
+
import type { buildColumnGroupTree, columnHeaderSpanRows, createColumnChooserDropClamp, resolveCollapsedColumnKeys, followColumnKeysAfterColumnGroupChange, placeUnpinnedColumnInGroup, resolveColumnMenuGroupToggles, resolveColumnGroupDistinctTitles, warnUnknownColumnGroupKeys } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/columnGroups';
|
|
11
|
+
import type { ColumnGroupDragSupport } from '@ishibashi0112/spreadsheet-grid-core/internal/controllers/columnHeaderDragController';
|
|
8
12
|
import type { GridSelectionAggregates } from '../view/GridSelectionAggregates.js';
|
|
9
13
|
import type { createSelectionAggregates } from '../primitives/selectionAggregates.js';
|
|
10
14
|
import type { GridScrollHint } from '../view/GridScrollHint.js';
|
|
@@ -58,6 +62,21 @@ export type SolidGridFeatures = {
|
|
|
58
62
|
pinnedRows?: (FeatureLocaleDefaults & {
|
|
59
63
|
PinnedRows: typeof GridPinnedRows;
|
|
60
64
|
}) | undefined;
|
|
65
|
+
selectSearch?: (FeatureLocaleDefaults & {
|
|
66
|
+
SearchSelectCellEditor: typeof SearchSelectCellEditor;
|
|
67
|
+
}) | undefined;
|
|
68
|
+
columnGroups?: (FeatureLocaleDefaults & Omit<ColumnGroupDragSupport, 'tree'> & {
|
|
69
|
+
buildColumnGroupTree: typeof buildColumnGroupTree;
|
|
70
|
+
warnUnknownColumnGroupKeys: typeof warnUnknownColumnGroupKeys;
|
|
71
|
+
resolveCollapsedColumnKeys: typeof resolveCollapsedColumnKeys;
|
|
72
|
+
followColumnKeysAfterColumnGroupChange: typeof followColumnKeysAfterColumnGroupChange;
|
|
73
|
+
placeUnpinnedColumnInGroup: typeof placeUnpinnedColumnInGroup;
|
|
74
|
+
resolveColumnMenuGroupToggles: typeof resolveColumnMenuGroupToggles;
|
|
75
|
+
resolveColumnGroupDistinctTitles: typeof resolveColumnGroupDistinctTitles;
|
|
76
|
+
columnHeaderSpanRows: typeof columnHeaderSpanRows;
|
|
77
|
+
createColumnChooserDropClamp: typeof createColumnChooserDropClamp;
|
|
78
|
+
ColumnGroupHeader: typeof GridColumnGroupHeader;
|
|
79
|
+
}) | undefined;
|
|
61
80
|
selectionAggregates?: (FeatureLocaleDefaults & {
|
|
62
81
|
createSelectionAggregates: typeof createSelectionAggregates;
|
|
63
82
|
SelectionAggregates: typeof GridSelectionAggregates;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,11 +7,13 @@ export { autoHeightFeature } from './features/autoHeight.js';
|
|
|
7
7
|
export { conditionalFormatFeature } from './features/conditionalFormat.js';
|
|
8
8
|
export { totalRowFeature } from './features/totalRow.js';
|
|
9
9
|
export { pinnedRowsFeature } from './features/pinnedRows.js';
|
|
10
|
+
export { columnGroupsFeature } from './features/columnGroups.js';
|
|
10
11
|
export { selectionAggregatesFeature } from './features/selectionAggregates.js';
|
|
11
12
|
export { scrollHintFeature } from './features/scrollHint.js';
|
|
12
13
|
export { motionExtrasFeature } from './features/motionExtras.js';
|
|
13
14
|
export { findFeature } from './features/find.js';
|
|
14
15
|
export { imeDirectInputFeature } from './features/imeDirectInput.js';
|
|
16
|
+
export { selectSearchFeature } from './features/selectSearch.js';
|
|
15
17
|
export { columnAutosizeFeature } from './features/columnAutosize.js';
|
|
16
18
|
export { columnReorderFeature } from './features/columnReorder.js';
|
|
17
19
|
export { rowDragFeature } from './features/rowDrag.js';
|
|
@@ -28,6 +30,6 @@ export { numberFormatter } from '@ishibashi0112/spreadsheet-grid-core/internal/l
|
|
|
28
30
|
export { numberParser } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/valueParsers';
|
|
29
31
|
export { restoreColumnsFromState } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/gridState';
|
|
30
32
|
export { preloadGridPopups } from './view/lazyPopups.js';
|
|
31
|
-
export type { SpreadsheetGridProps, GridColumn, GridColumnPinned, GridColumnEditor, EditorCommitDirection, EditorEnterMove, CellEditorContext, GridSelectEditorOption, GridValidationMode, CellValidationContext, CellValidationResult, GridInvalidCell, EditorCommitResult, GridRowKey, GridAggFuncName, GridAggFuncParams, GridAggFunc, GridGroupRow, GridSelectFilterOption, GetFilterOptionsParams, GetFilterOptionsResult, ColumnFilterTypeOption, ColumnFilterUiType, CellRenderContext, HeaderRenderContext, CellStyleContext, CanEditCellContext, GridConditionalFormat, RowStyleContext, DetailRowOptions, GridClassNames, GridSlotProps, GridFrameworkTypes, SolidGridTypes, DetailRowRenderContext, CellDetailContext, LabelRowOptions, LabelRowRenderContext, GridLabelRow, LabelRowSortMode, TotalRowOptions, TotalRowCellContext, TotalRowCellKind, FillHandleOptions, GridFillValueParams, GridFillDirection, GridFillKind, RowDragContext, RowMoveParams, RowDropParams, GridCellRef, GridCellEventParams, GridCellDoubleClickParams, CellValueFormatter, CellValueFormatterParams, SpreadsheetGridSlotContext, SpreadsheetGridDerivedSummary, SpreadsheetGridSelectionStats, GridLocaleText, GridLocaleTextTemplate, GridVerticalAlign, GridTextEditorEnterKey, GlobalFilterStatus, GridSelectionAggregates, CellCoord, CellRange, GridSelection, GridSortState, GridSortEntry, GridSortDirection, ColumnFilterValue, GridFilterState, SetColumnFilterValue, NumberColumnFilterValue, NumberSetColumnFilterValue, ParsedNumberFilter, TextSetColumnFilterValue, ParsedTextFilter, DateSetColumnFilterValue, ParsedDateFilter, DateFilterPreset, DateFilterPresetOption, CustomDateFilterPreset, DateFilterPresetRange, FilterDateInputContext, TextColumnFilterValue, DateColumnFilterValue, SelectColumnFilterValue, CustomColumnFilterValue, ServerSideDataSource, ServerSideQuery, ServerSideGetRowsParams, ServerSideGetRowsResult, ServerSideLoadErrorParams, ServerSideCellChange, ServerSideRowUpdate, ServerSideUpdateRowsParams, ServerSideUpdateRowsResult, ServerSideWriteErrorParams, RowModel, SpreadsheetGridHandle, RowSelectionModel, RowSelectionMode, ScrollAlign, GridScrollPosition, GridScrollEventParams, CsvExportScope, CsvExportOptions, GridExportOptions, GridExportCell, GridExportData, GridState, GridStatePatch, GridColumnState, GridDensity, GridTheme, UndoRedoState, GridMotion, GridPopupContainer, GridGlobalFilterMatch, GridPasteSkippedCell, GridPasteSkippedParams, GridApplyRowsOptions, GridPinnedRowPosition, FindOptions, FindChangeParams, GridDataBarFormat, GridColorScaleFormat, GridChipTone, GridChipSpec, GridChipMap, AutoSizeColumnsMode, GridContextMenuTarget, GridContextMenuParams, GridContextMenuItem, GridContextMenuActionItem, GridContextMenuLabelItem, GridContextMenuSeparatorItem, GridContextMenuCustomItem, ScrollHintOptions, ScrollHintTrigger, ScrollHintRenderArgs, } from './model/gridTypes.js';
|
|
33
|
+
export type { SpreadsheetGridProps, GridColumn, GridColumnPinned, GridColumnEditor, EditorCommitDirection, EditorEnterMove, CellEditorContext, GridSelectEditorOption, GridSelectLoadOptionsParams, GridSelectFillRowContext, GridValidationMode, CellValidationContext, CellValidationResult, GridInvalidCell, EditorCommitResult, GridRowKey, GridAggFuncName, GridAggFuncParams, GridAggFunc, GridGroupRow, GridSelectFilterOption, GetFilterOptionsParams, GetFilterOptionsResult, ColumnFilterTypeOption, ColumnFilterUiType, CellRenderContext, HeaderRenderContext, GridColumnGroup, GridColumnGroupCollapsible, ColumnGroupHeaderRenderContext, ColumnGroupOpenChangeParams, GridExportColumnGroup, CellStyleContext, CanEditCellContext, GridConditionalFormat, RowStyleContext, DetailRowOptions, GridClassNames, GridSlotProps, GridFrameworkTypes, SolidGridTypes, DetailRowRenderContext, CellDetailContext, LabelRowOptions, LabelRowRenderContext, GridLabelRow, LabelRowSortMode, TotalRowOptions, TotalRowCellContext, TotalRowCellKind, FillHandleOptions, GridFillValueParams, GridFillDirection, GridFillKind, RowDragContext, RowMoveParams, RowDropParams, GridCellRef, GridCellEventParams, GridCellDoubleClickParams, CellValueFormatter, CellValueFormatterParams, SpreadsheetGridSlotContext, SpreadsheetGridDerivedSummary, SpreadsheetGridSelectionStats, GridLocaleText, GridLocaleTextTemplate, GridVerticalAlign, GridTextEditorEnterKey, GlobalFilterStatus, GridSelectionAggregates, CellCoord, CellRange, GridSelection, GridSortState, GridSortEntry, GridSortDirection, ColumnFilterValue, GridFilterState, SetColumnFilterValue, NumberColumnFilterValue, NumberSetColumnFilterValue, ParsedNumberFilter, TextSetColumnFilterValue, ParsedTextFilter, DateSetColumnFilterValue, ParsedDateFilter, DateFilterPreset, DateFilterPresetOption, CustomDateFilterPreset, DateFilterPresetRange, FilterDateInputContext, TextColumnFilterValue, DateColumnFilterValue, SelectColumnFilterValue, CustomColumnFilterValue, ServerSideDataSource, ServerSideQuery, ServerSideGetRowsParams, ServerSideGetRowsResult, ServerSideLoadErrorParams, ServerSideCellChange, ServerSideRowUpdate, ServerSideUpdateRowsParams, ServerSideUpdateRowsResult, ServerSideWriteErrorParams, RowModel, SpreadsheetGridHandle, RowSelectionModel, RowSelectionMode, ScrollAlign, GridScrollPosition, GridScrollEventParams, CsvExportScope, CsvExportOptions, GridExportOptions, GridExportCell, GridExportData, GridState, GridStatePatch, GridColumnState, GridDensity, GridTheme, UndoRedoState, GridMotion, GridPopupContainer, GridGlobalFilterMatch, GridPasteSkippedCell, GridPasteSkippedParams, GridApplyRowsOptions, GridPinnedRowPosition, FindOptions, FindChangeParams, GridDataBarFormat, GridColorScaleFormat, GridChipTone, GridChipSpec, GridChipMap, AutoSizeColumnsMode, GridContextMenuTarget, GridContextMenuParams, GridContextMenuItem, GridContextMenuActionItem, GridContextMenuLabelItem, GridContextMenuSeparatorItem, GridContextMenuCustomItem, ScrollHintOptions, ScrollHintTrigger, ScrollHintRenderArgs, } from './model/gridTypes.js';
|
|
32
34
|
export type { NumberFormatterOptions } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/valueFormatters';
|
|
33
35
|
export type { NumberParserOptions } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/valueParsers';
|