@ishibashi0112/spreadsheet-grid 1.13.0 → 1.15.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 +228 -16
- package/README.md +13 -11
- package/dist/GridShell.d.ts +1 -1
- package/dist/ai/useGridAgentTools.d.ts +8 -0
- package/dist/ai.cjs +1 -1
- package/dist/ai.d.ts +4 -0
- package/dist/ai.js +186 -125
- package/dist/common.d.ts +1 -1
- package/dist/features/pagination.d.ts +2 -0
- package/dist/features/types.d.ts +8 -0
- package/dist/hooks/useGridBarContext.d.ts +5 -3
- package/dist/hooks/useGridLocaleText.d.ts +1 -1
- package/dist/hooks/useServerSideRowModel.d.ts +2 -1
- package/dist/index.cjs +14 -13
- package/dist/index.js +4608 -4328
- package/dist/lite/createSpreadsheetGrid-DRSQBYBT.cjs +14 -0
- package/dist/lite/createSpreadsheetGrid-atbwakIX.js +5597 -0
- package/dist/lite/createSpreadsheetGrid.cjs +1 -1
- package/dist/lite/createSpreadsheetGrid.js +1 -1
- package/dist/lite/features/grouping.cjs +1 -1
- package/dist/lite/features/grouping.js +1 -1
- package/dist/lite/features/pagination.cjs +1 -0
- package/dist/lite/features/pagination.js +2 -0
- package/dist/lite/features/rowDrag.cjs +1 -1
- package/dist/lite/features/rowDrag.js +1 -1
- package/dist/lite/features/scrollHint.cjs +1 -1
- package/dist/lite/features/scrollHint.js +1 -1
- package/dist/lite/features/serverSide.cjs +1 -1
- package/dist/lite/features/serverSide.js +1 -1
- package/dist/lite/grouping-BKT6i8at.cjs +1 -0
- package/dist/lite/{grouping-u4J8Rl0V.js → grouping-CZ86adA8.js} +30 -30
- package/dist/lite/pagination-C6zVQode.cjs +1 -0
- package/dist/lite/pagination-DJB7JLDr.js +114 -0
- package/dist/lite/rowDrag-DMI_HkRV.cjs +1 -0
- package/dist/lite/{rowDrag-e6TC1gsM.js → rowDrag-DZ5LiIQN.js} +20 -19
- package/dist/lite/scrollHint-Bn6YBjDF.js +210 -0
- package/dist/lite/scrollHint-CvLQcvC4.cjs +1 -0
- package/dist/lite/{serverSide-CLb4dLUK.js → serverSide-BWZPpSkL.js} +1 -0
- package/dist/lite/serverSide-BXmZ_co8.cjs +1 -0
- package/dist/lite.cjs +1 -1
- package/dist/lite.d.ts +1 -0
- package/dist/lite.js +17 -16
- package/dist/style.css +1 -1
- package/dist/style.layer.css +1 -1
- package/dist/view/DefaultGridBottomBar.d.ts +3 -1
- package/dist/view/DefaultGridTopBar.d.ts +2 -1
- package/dist/view/GridBodyGroupRow.d.ts +2 -1
- package/dist/view/GridBodyLayer.d.ts +2 -1
- package/dist/view/GridPager.d.ts +13 -0
- package/dist/view/GridScrollHint.d.ts +3 -1
- package/package.json +2 -2
- package/skills/spreadsheet-grid/SKILL.md +7 -3
- package/dist/lite/createSpreadsheetGrid-DNoVKiwo.cjs +0 -13
- package/dist/lite/createSpreadsheetGrid-cOTbng_2.js +0 -5436
- package/dist/lite/grouping-DKYPOjCk.cjs +0 -1
- package/dist/lite/rowDrag-Cn5fud6W.cjs +0 -1
- package/dist/lite/scrollHint-Bt8fuU7l.cjs +0 -1
- package/dist/lite/scrollHint-Dr4TOFNn.js +0 -196
- package/dist/lite/serverSide-COYBN6Pt.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { GlobalFilterStatus, GridChangesSummary, GridColumn, GridSelectionAggregates, GridUiState, SpreadsheetGridSlotContext } from '../model/gridTypes.js';
|
|
1
|
+
import type { GlobalFilterStatus, GridChangesSummary, GridColumn, GridPaginationContext, GridSelectionAggregates, GridUiState, SpreadsheetGridSlotContext } from '../model/gridTypes.js';
|
|
2
2
|
import type { ResolvedGridLocaleText } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText';
|
|
3
|
-
type GridSlotContextBase<T> = Omit<SpreadsheetGridSlotContext<T>, 'setGlobalFilterText' | 'derivedSummary' | 'filteredRows' | 'globalFilterStatus' | 'globalFilterProgress' | 'selectionAggregates' | 'unsavedChanges'>;
|
|
3
|
+
type GridSlotContextBase<T> = Omit<SpreadsheetGridSlotContext<T>, 'setGlobalFilterText' | 'derivedSummary' | 'filteredRows' | 'globalFilterStatus' | 'globalFilterProgress' | 'selectionAggregates' | 'unsavedChanges' | 'pagination' | 'loading'>;
|
|
4
4
|
type UseGridBarContextArgs<T> = {
|
|
5
5
|
rows: T[];
|
|
6
6
|
localeTexts: ResolvedGridLocaleText;
|
|
@@ -17,10 +17,12 @@ type UseGridBarContextArgs<T> = {
|
|
|
17
17
|
globalFilterProgress: number;
|
|
18
18
|
selectionAggregates?: GridSelectionAggregates | null;
|
|
19
19
|
unsavedChanges?: GridChangesSummary | null;
|
|
20
|
+
pagination?: GridPaginationContext | null;
|
|
21
|
+
loading?: boolean;
|
|
20
22
|
filtersApplied?: boolean;
|
|
21
23
|
columnTitles?: ReadonlyMap<string, string> | null;
|
|
22
24
|
};
|
|
23
|
-
export declare const useGridBarContext: <T>({ rows, localeTexts, viewRowCount, totalRowCount, getFilteredRows, columns, visibleColumns, orderedColumns, labelViewIndexes, uiState, setGlobalFilterText, globalFilterStatus, globalFilterProgress, selectionAggregates, unsavedChanges, filtersApplied, columnTitles, }: UseGridBarContextArgs<T>) => {
|
|
25
|
+
export declare const useGridBarContext: <T>({ rows, localeTexts, viewRowCount, totalRowCount, getFilteredRows, columns, visibleColumns, orderedColumns, labelViewIndexes, uiState, setGlobalFilterText, globalFilterStatus, globalFilterProgress, selectionAggregates, unsavedChanges, pagination, loading, filtersApplied, columnTitles, }: UseGridBarContextArgs<T>) => {
|
|
24
26
|
slotContextBase: GridSlotContextBase<T>;
|
|
25
27
|
derivedSummary: import("@ishibashi0112/spreadsheet-grid-core").SpreadsheetGridDerivedSummary;
|
|
26
28
|
slotContext: SpreadsheetGridSlotContext<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FeatureLocaleText, type ResolvedGridLocaleText } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText';
|
|
2
|
-
export declare const GridLocaleTextContext: import("react").Context<Readonly<Pick<import("@ishibashi0112/spreadsheet-grid-core").GridLocaleText, "none" | "blank" | "selection" | "globalFilterPlaceholder" | "rowCount" | "columnCount" | "filterSummary" | "filterGlobal" | "filterColumns" | "sortSummary" | "sortEntry" | "sortAscending" | "sortDescending" | "activeCell" | "selectionSize" | "selectedColumns" | "detailColumnName" | "rowDragColumnName" | "listSeparator" | "multiSelectSeparator" | "globalFilterLabel" | "clearGlobalFilter" | "toggleFilterPanel" | "clear" | "close" | "retry" | "noOptions" | "noRows" | "noMatchingRows" | "selectAllRows" | "selectRow" | "sortedAscending" | "sortedDescending" | "sortPriority" | "columnFiltered" | "dragColumn" | "columnMenu" | "columnMenuFor" | "showDetails" | "hideDetails" | "editCell" | "cellInput" | "sizingColumns" | "applyingFilter" | "resetColumnsHint" | "toolPanelFilters" | "toolPanelSort" | "toolPanelColumns" | "filterNone" | "filterCustom" | "filterExcluded" | "filterExcludedValues" | "filterSelected" | "filterMatches" | "filterBoth" | "conditionGreaterThanOrEqual" | "conditionGreaterThan" | "conditionLessThanOrEqual" | "conditionLessThan" | "conditionEquals" | "conditionNotEquals" | "conditionRange" | "conditionOnOrAfter" | "conditionOnOrBefore" | "conditionContains" | "conditionStartsWith" | "conditionEndsWith" | "conditionBlank" | "conditionNotBlank" | "datePresetToday" | "datePresetThisMonth" | "datePresetLast30Days" | "invalidValue" | "enterNumber" | "enterInteger" | "enterMin" | "enterMax" | "enterRange" | "enterDate" | "enterTime" | "enterDateTime" | "saveFailedCell" | "totalRowLabel" | "totalAverage" | "totalMin" | "totalMax" | "totalCount" | "exportSubtotal"> & Partial<import("@ishibashi0112/spreadsheet-grid-core").GridLocaleText>>>;
|
|
2
|
+
export declare const GridLocaleTextContext: import("react").Context<Readonly<Pick<import("@ishibashi0112/spreadsheet-grid-core").GridLocaleText, "none" | "blank" | "selection" | "globalFilterPlaceholder" | "rowCount" | "columnCount" | "filterSummary" | "filterGlobal" | "filterColumns" | "sortSummary" | "sortEntry" | "sortAscending" | "sortDescending" | "activeCell" | "selectionSize" | "selectedColumns" | "detailColumnName" | "rowDragColumnName" | "listSeparator" | "multiSelectSeparator" | "globalFilterLabel" | "clearGlobalFilter" | "toggleFilterPanel" | "clear" | "close" | "retry" | "noOptions" | "noRows" | "noMatchingRows" | "selectAllRows" | "selectRow" | "sortedAscending" | "sortedDescending" | "sortPriority" | "columnFiltered" | "dragColumn" | "columnMenu" | "columnMenuFor" | "showDetails" | "hideDetails" | "editCell" | "cellInput" | "sizingColumns" | "applyingFilter" | "resetColumnsHint" | "toolPanelFilters" | "toolPanelSort" | "toolPanelColumns" | "filterNone" | "filterCustom" | "filterExcluded" | "filterExcludedValues" | "filterSelected" | "filterMatches" | "filterBoth" | "conditionGreaterThanOrEqual" | "conditionGreaterThan" | "conditionLessThanOrEqual" | "conditionLessThan" | "conditionEquals" | "conditionNotEquals" | "conditionRange" | "conditionOnOrAfter" | "conditionOnOrBefore" | "conditionContains" | "conditionStartsWith" | "conditionEndsWith" | "conditionBlank" | "conditionNotBlank" | "datePresetToday" | "datePresetThisMonth" | "datePresetLast30Days" | "invalidValue" | "enterNumber" | "enterInteger" | "enterMin" | "enterMax" | "enterRange" | "enterDate" | "enterTime" | "enterDateTime" | "saveFailedCell" | "totalRowLabel" | "totalAverage" | "totalMin" | "totalMax" | "totalCount" | "exportSubtotal" | "loadingRows"> & Partial<import("@ishibashi0112/spreadsheet-grid-core").GridLocaleText>>>;
|
|
3
3
|
export declare const useGridLocaleText: () => ResolvedGridLocaleText;
|
|
4
4
|
export declare const useFeatureLocaleText: <D>() => FeatureLocaleText<D>;
|
|
5
5
|
export declare const mergeFeatureLocaleDefaults: (features: object) => ResolvedGridLocaleText;
|
|
@@ -11,8 +11,9 @@ export type UseServerSideRowModelResult<T> = {
|
|
|
11
11
|
refresh: () => void;
|
|
12
12
|
loadError: ServerSideLoadErrorState | null;
|
|
13
13
|
retryFailedBlocks: () => void;
|
|
14
|
+
isLoading: () => boolean;
|
|
14
15
|
canUpdateRows: boolean;
|
|
15
|
-
applyCellEdits: (edits: ServerSideCellEditInput<T>[]) => number;
|
|
16
|
+
applyCellEdits: (edits: ServerSideCellEditInput<T>[], onSettled?: (saved: boolean) => void) => number;
|
|
16
17
|
writeError: ServerSideWriteErrorState | null;
|
|
17
18
|
refetching: boolean;
|
|
18
19
|
};
|