@pixerate/editor 0.25.0 → 0.26.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/README.md +30 -0
- package/THIRD_PARTY_NOTICES.md +11 -0
- package/dist/agent/index.cjs +174 -11
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +18 -4
- package/dist/agent/index.d.ts +18 -4
- package/dist/agent/index.js +167 -4
- package/dist/agent/index.js.map +1 -1
- package/dist/{arrangeShortcuts-B8O3f8-P.d.cts → arrange-BICutYPk.d.cts} +243 -29
- package/dist/{arrangeShortcuts-sLlD2rSX.d.ts → arrange-BICutYPk.d.ts} +243 -29
- package/dist/builtins-CdPcLwwF.d.cts +176 -0
- package/dist/builtins-Chj6zv_O.d.ts +176 -0
- package/dist/canvas/index.cjs +3917 -19
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +1232 -7
- package/dist/canvas/index.d.ts +1232 -7
- package/dist/canvas/index.js +3916 -18
- package/dist/canvas/index.js.map +1 -1
- package/dist/chunk-3CC7OPUQ.cjs +831 -0
- package/dist/chunk-3CC7OPUQ.cjs.map +1 -0
- package/dist/{chunk-AL6JMGWW.cjs → chunk-CS6NZWWA.cjs} +24 -24
- package/dist/{chunk-AL6JMGWW.cjs.map → chunk-CS6NZWWA.cjs.map} +1 -1
- package/dist/{chunk-C7P22VIP.cjs → chunk-EWCOFSCQ.cjs} +17 -6
- package/dist/chunk-EWCOFSCQ.cjs.map +1 -0
- package/dist/chunk-HDYMLS3X.cjs +409 -0
- package/dist/chunk-HDYMLS3X.cjs.map +1 -0
- package/dist/{chunk-X4N4WUKB.cjs → chunk-IFHKKVXH.cjs} +150 -38
- package/dist/chunk-IFHKKVXH.cjs.map +1 -0
- package/dist/{chunk-ECCCYKGL.js → chunk-JOIREKL7.js} +63 -39
- package/dist/chunk-JOIREKL7.js.map +1 -0
- package/dist/chunk-KRGXUQ2Y.js +1696 -0
- package/dist/chunk-KRGXUQ2Y.js.map +1 -0
- package/dist/{chunk-QGYDWPRM.js → chunk-MHEPLBFB.js} +2 -2
- package/dist/chunk-MR2764X2.js +831 -0
- package/dist/chunk-MR2764X2.js.map +1 -0
- package/dist/{chunk-7WISYZFO.cjs → chunk-NFVBT3UZ.cjs} +67 -43
- package/dist/chunk-NFVBT3UZ.cjs.map +1 -0
- package/dist/{chunk-WSQKHXW7.cjs → chunk-NQF32I6Z.cjs} +1209 -457
- package/dist/chunk-NQF32I6Z.cjs.map +1 -0
- package/dist/{chunk-IXHSYOVY.js → chunk-Q2OHWD2A.js} +638 -866
- package/dist/chunk-Q2OHWD2A.js.map +1 -0
- package/dist/{chunk-NAXVVS5I.js → chunk-QJSOZFCZ.js} +2 -2
- package/dist/{chunk-V3CHHWOE.cjs → chunk-RRREAOVM.cjs} +4 -4
- package/dist/{chunk-V3CHHWOE.cjs.map → chunk-RRREAOVM.cjs.map} +1 -1
- package/dist/{chunk-UAKDG62Z.js → chunk-SWE3NPOU.js} +116 -4
- package/dist/chunk-SWE3NPOU.js.map +1 -0
- package/dist/chunk-TXXNBDQX.cjs +1696 -0
- package/dist/chunk-TXXNBDQX.cjs.map +1 -0
- package/dist/chunk-UBCFIABU.js +409 -0
- package/dist/chunk-UBCFIABU.js.map +1 -0
- package/dist/{chunk-RR7F5GUM.js → chunk-X7HXL2SB.js} +941 -189
- package/dist/chunk-X7HXL2SB.js.map +1 -0
- package/dist/{chunk-PO6A6QQH.cjs → chunk-YOMYSFJU.cjs} +742 -970
- package/dist/chunk-YOMYSFJU.cjs.map +1 -0
- package/dist/{chunk-FH6F67DN.js → chunk-ZRNHGAQT.js} +17 -6
- package/dist/{chunk-FH6F67DN.js.map → chunk-ZRNHGAQT.js.map} +1 -1
- package/dist/commands/index.cjs +352 -4
- package/dist/commands/index.cjs.map +1 -1
- package/dist/commands/index.d.cts +37 -108
- package/dist/commands/index.d.ts +37 -108
- package/dist/commands/index.js +351 -3
- package/dist/commands/index.js.map +1 -1
- package/dist/compare/index.cjs +3 -3
- package/dist/compare/index.js +2 -2
- package/dist/{controller-BIJiNoVs.d.cts → controller-CxXGOEmy.d.cts} +209 -13
- package/dist/{controller-BIJiNoVs.d.ts → controller-CxXGOEmy.d.ts} +209 -13
- package/dist/export/index.cjs +36 -0
- package/dist/export/index.cjs.map +1 -0
- package/dist/export/index.d.cts +243 -0
- package/dist/export/index.d.ts +243 -0
- package/dist/export/index.js +36 -0
- package/dist/export/index.js.map +1 -0
- package/dist/extensions/index.cjs +54 -6
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +7 -2
- package/dist/extensions/index.d.ts +7 -2
- package/dist/extensions/index.js +59 -11
- package/dist/{index-7a6bHTLy.d.ts → index-B273Zllk.d.ts} +211 -207
- package/dist/{index-Csd5qI8u.d.cts → index-jcJwmBYt.d.cts} +211 -207
- package/dist/index.cjs +144 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -13
- package/dist/index.d.ts +49 -13
- package/dist/index.js +136 -24
- package/dist/index.js.map +1 -1
- package/dist/registry-CED5C0lA.d.cts +204 -0
- package/dist/registry-CED5C0lA.d.ts +204 -0
- package/dist/{registry-D32LpIc4.d.cts → registry-D0GADKc7.d.cts} +1 -1
- package/dist/{registry-evKTP4ls.d.ts → registry-DhVUZioj.d.ts} +1 -1
- package/dist/serializers/index.cjs +4 -4
- package/dist/serializers/index.d.cts +2 -1
- package/dist/serializers/index.d.ts +2 -1
- package/dist/serializers/index.js +3 -3
- package/dist/spreadsheet/index.cjs +33 -3
- package/dist/spreadsheet/index.cjs.map +1 -1
- package/dist/spreadsheet/index.d.cts +106 -3
- package/dist/spreadsheet/index.d.ts +106 -3
- package/dist/spreadsheet/index.js +32 -2
- package/package.json +10 -1
- package/dist/chunk-7WISYZFO.cjs.map +0 -1
- package/dist/chunk-C7P22VIP.cjs.map +0 -1
- package/dist/chunk-ECCCYKGL.js.map +0 -1
- package/dist/chunk-IXHSYOVY.js.map +0 -1
- package/dist/chunk-PO6A6QQH.cjs.map +0 -1
- package/dist/chunk-RR7F5GUM.js.map +0 -1
- package/dist/chunk-UAKDG62Z.js.map +0 -1
- package/dist/chunk-WSQKHXW7.cjs.map +0 -1
- package/dist/chunk-X4N4WUKB.cjs.map +0 -1
- package/dist/types-DX4Mh4SL.d.cts +0 -217
- package/dist/types-DX4Mh4SL.d.ts +0 -217
- /package/dist/{chunk-QGYDWPRM.js.map → chunk-MHEPLBFB.js.map} +0 -0
- /package/dist/{chunk-NAXVVS5I.js.map → chunk-QJSOZFCZ.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ASTNode,
|
|
2
|
-
export { B as BinaryOpNode, C as CellCoordinate, b as CellDep, f as CellRefNode, g as CellValueReader, h as ColumnBinding, i as ColumnType, k as ConditionalFormatCondition, m as ConditionalFormatOperator, s as ConditionalFormatType, u as CsvExportOptions, v as CsvImportOptions, D as DEFAULT_COLUMN_WIDTH, w as DEFAULT_ROW_HEIGHT, x as DataSourceBinder, I as DependencyGraph, J as
|
|
1
|
+
import { A as ASTNode, P as FormulaErrorCode, V as FormulaRange, a as CellData, c as CellFormat, p as ConditionalFormatSheet, n as ConditionalFormatOverlay, o as ConditionalFormatRule, j as ConditionalCellFormat, t as ConditionalFormatValue, l as ConditionalFormatIconSet, F as DataValidationRule, q as ConditionalFormatStyle, r as ConditionalFormatTimePeriod, e as CellRange, y as DataValidationErrorStyle, z as DataValidationOperator, H as DataValidationType, a8 as NewConditionalFormatRule, G as DataValidationSheet, d as CellPosition, E as DataValidationResult, $ as GroupAggregate, aj as SortDirection, N as FilterRule, S as SpreadsheetController, aw as SpreadsheetDefinedName, aP as StructuralChange, aM as SpreadsheetViewModel } from '../controller-CxXGOEmy.cjs';
|
|
2
|
+
export { B as BinaryOpNode, C as CellCoordinate, b as CellDep, f as CellRefNode, g as CellValueReader, h as ColumnBinding, i as ColumnType, k as ConditionalFormatCondition, m as ConditionalFormatOperator, s as ConditionalFormatType, u as CsvExportOptions, v as CsvImportOptions, D as DEFAULT_COLUMN_WIDTH, w as DEFAULT_ROW_HEIGHT, x as DataSourceBinder, I as DependencyGraph, J as DependencyIndexStats, K as EvaluationContext, L as FORMULA_ERRORS, M as FilterOperator, O as FormulaDiagnostic, Q as FormulaEvaluationResult, R as FormulaEvaluator, T as FormulaNameDefinition, U as FormulaParser, W as FormulaReferenceFilter, X as FormulaReferenceInfo, Y as FormulaToken, Z as FormulaTokenType, _ as FunctionCallNode, a0 as GroupSummary, a1 as IntervalIndex, a2 as InvokeNode, a3 as LiteralNode, a4 as MAX_FORMULA_ARRAY_SIZE, a5 as MissingNode, a6 as NameDep, a7 as NameNode, a9 as NewDataValidationRule, aa as NewFilterRule, ab as ParsedSpreadsheetClipboard, ac as PropertyRefNode, ad as RangeNode, ae as RangeResolveOptions, af as ReferenceDep, ag as RowType, ah as SPREADSHEET_CLIPBOARD_MIME, ai as SheetQualifier, ak as SortKey, al as SpillRefNode, am as SpreadsheetCellSpan, an as SpreadsheetClipboardCell, ao as SpreadsheetClipboardData, ap as SpreadsheetClipboardPayload, aq as SpreadsheetClipboardSource, ar as SpreadsheetColumn, as as SpreadsheetCommitResult, at as SpreadsheetControllerOptions, au as SpreadsheetDataSource, av as SpreadsheetDataSourceField, ax as SpreadsheetDocument, ay as SpreadsheetFilterState, az as SpreadsheetGrouping, aA as SpreadsheetNameInfo, aB as SpreadsheetNameScope, aC as SpreadsheetRecalculationStats, aD as SpreadsheetRow, aE as SpreadsheetRowGroup, aF as SpreadsheetRowSection, aG as SpreadsheetSheetInfo, aH as SpreadsheetSpill, aI as SpreadsheetTableSettings, aJ as SpreadsheetValidationAction, aK as SpreadsheetValidationPrompt, aL as SpreadsheetViewColumn, aN as SpreadsheetViewRow, aO as SpreadsheetWorkbook, aQ as UnaryOpNode, aR as WHOLE_COLUMN_END_ROW, aS as buildSpreadsheetView, aT as colNameToIndex, aU as columnDependencyKey, aV as compareNumbers, aW as compareValues, aX as computeRowGroups, aY as createSpreadsheetClipboardData, aZ as deleteSheetInFormula, a_ as describeFormulaError, a$ as extractCellDependencies, b0 as extractNameDependencies, b1 as extractReferenceDependencies, b2 as formatSheetPrefix, b3 as formulaIdentifiers, b4 as getRowSection, b5 as getTableSections, b6 as indexToColName, b7 as isFormulaError, b8 as mapFormulaReferences, b9 as numberToText, ba as offsetFormulaReferences, bb as parseCellReference, bc as parseFormula, bd as parseHtmlTable, be as parseRange, bf as quoteSheetName, bg as rangeDependencyKey, bh as readSpreadsheetClipboard, bi as rebaseClipboardRows, bj as remapFormulaReferences, bk as renameNameInFormula, bl as renameSheetInFormula, bm as rowPassesFilters, bn as serializeHtmlTable, bo as sheetNameNeedsQuotes, bp as shiftFormulaReferences, bq as sortCompareValues, br as tokenizeFormula } from '../controller-CxXGOEmy.cjs';
|
|
3
3
|
import { I as ImportAdapterRegistry, b as ImportAdapter, h as ImportInput, a as ImportOutcome } from '../registry-CEgwXED1.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1076,4 +1076,107 @@ declare function formatRuleRanges(ranges: CellRange[]): string;
|
|
|
1076
1076
|
/** Parses `A1:B5, D2` (commas, semicolons or spaces between ranges; `$` ignored). Null when any part is not a cell or range. */
|
|
1077
1077
|
declare function parseRuleRanges(text: string): CellRange[] | null;
|
|
1078
1078
|
|
|
1079
|
-
|
|
1079
|
+
/**
|
|
1080
|
+
* Virtualised rendering of large sheets: which displayed rows and columns
|
|
1081
|
+
* are inside (or near) the scrolled viewport, the space taken by the ones
|
|
1082
|
+
* left out, and how far to scroll to bring a cell into view. Framework
|
|
1083
|
+
* bindings render the frozen rows/columns, a spacer, the window and another
|
|
1084
|
+
* spacer; small sheets render everything (`shouldVirtualizeSpreadsheet`).
|
|
1085
|
+
*/
|
|
1086
|
+
|
|
1087
|
+
/** Height of the sticky column-header row, in pixels. */
|
|
1088
|
+
declare const SPREADSHEET_COLUMN_HEADER_HEIGHT = 28;
|
|
1089
|
+
/** Width of the sticky row-number column, in pixels. */
|
|
1090
|
+
declare const SPREADSHEET_ROW_HEADER_WIDTH = 48;
|
|
1091
|
+
/** Height of a category (group) header row, in pixels. */
|
|
1092
|
+
declare const SPREADSHEET_GROUP_ROW_HEIGHT = 28;
|
|
1093
|
+
/** Displayed rows above which `shouldVirtualizeSpreadsheet` turns virtualisation on. */
|
|
1094
|
+
declare const SPREADSHEET_VIRTUAL_ROW_THRESHOLD = 200;
|
|
1095
|
+
/** Displayed columns above which `shouldVirtualizeSpreadsheet` turns virtualisation on. */
|
|
1096
|
+
declare const SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD = 60;
|
|
1097
|
+
/** Viewport assumed before the grid has been measured (server rendering, jsdom). */
|
|
1098
|
+
declare const SPREADSHEET_DEFAULT_VIEWPORT: {
|
|
1099
|
+
width: number;
|
|
1100
|
+
height: number;
|
|
1101
|
+
};
|
|
1102
|
+
/** Pixel positions of a view model's rows and columns (see `measureSpreadsheetView`). */
|
|
1103
|
+
interface SpreadsheetViewMetrics {
|
|
1104
|
+
/** Top of each entry of `view.rows`, below the column header; the last entry is the total height. */
|
|
1105
|
+
rowTops: Float64Array;
|
|
1106
|
+
/** Left of each entry of `view.columns`, after the row header; the last entry is the total width. */
|
|
1107
|
+
columnLefts: Float64Array;
|
|
1108
|
+
/** Leading frozen entries of `view.rows` (always rendered, sticky). */
|
|
1109
|
+
frozenRows: number;
|
|
1110
|
+
/** Leading frozen entries of `view.columns`. */
|
|
1111
|
+
frozenColumns: number;
|
|
1112
|
+
/** Position in `view.rows` of each displayed document row. */
|
|
1113
|
+
rowPosition: Map<number, number>;
|
|
1114
|
+
/** Position in `view.columns` of each displayed document column. */
|
|
1115
|
+
columnPosition: Map<number, number>;
|
|
1116
|
+
}
|
|
1117
|
+
/** The scroll container: its scroll offsets and client size, in pixels. */
|
|
1118
|
+
interface SpreadsheetViewport {
|
|
1119
|
+
scrollTop: number;
|
|
1120
|
+
scrollLeft: number;
|
|
1121
|
+
width: number;
|
|
1122
|
+
height: number;
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* The part of a view model to render: frozen rows `[0, frozenRows)`, then
|
|
1126
|
+
* `topSpace` pixels of rows left out, then rows `[rowStart, rowEnd)`, then
|
|
1127
|
+
* `bottomSpace`; columns likewise (indices into `view.rows` / `view.columns`).
|
|
1128
|
+
*/
|
|
1129
|
+
interface SpreadsheetViewWindow {
|
|
1130
|
+
virtual: boolean;
|
|
1131
|
+
frozenRows: number;
|
|
1132
|
+
rowStart: number;
|
|
1133
|
+
rowEnd: number;
|
|
1134
|
+
topSpace: number;
|
|
1135
|
+
bottomSpace: number;
|
|
1136
|
+
frozenColumns: number;
|
|
1137
|
+
colStart: number;
|
|
1138
|
+
colEnd: number;
|
|
1139
|
+
leftSpace: number;
|
|
1140
|
+
rightSpace: number;
|
|
1141
|
+
}
|
|
1142
|
+
interface SpreadsheetViewWindowOptions {
|
|
1143
|
+
/** Extra rows rendered above and below the viewport. Default 8. */
|
|
1144
|
+
overscanRows?: number;
|
|
1145
|
+
/** Extra columns rendered left and right of the viewport. Default 2. */
|
|
1146
|
+
overscanColumns?: number;
|
|
1147
|
+
/** Merged ranges (document indices): a merge crossing the window's edge is rendered whole. */
|
|
1148
|
+
merges?: readonly CellRange[];
|
|
1149
|
+
}
|
|
1150
|
+
/** Measures the rows (row height, or the group row height) and columns (width) of a view model. */
|
|
1151
|
+
declare function measureSpreadsheetView(view: SpreadsheetViewModel): SpreadsheetViewMetrics;
|
|
1152
|
+
/**
|
|
1153
|
+
* Whether to virtualise: `true` / `false` force it; `'auto'` (the default)
|
|
1154
|
+
* virtualises views with more than `SPREADSHEET_VIRTUAL_ROW_THRESHOLD` rows
|
|
1155
|
+
* or `SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD` columns, so small sheets render
|
|
1156
|
+
* every cell exactly as before.
|
|
1157
|
+
*/
|
|
1158
|
+
declare function shouldVirtualizeSpreadsheet(view: SpreadsheetViewModel, mode?: boolean | 'auto'): boolean;
|
|
1159
|
+
/** A window holding every row and column (no spacers). */
|
|
1160
|
+
declare function fullSpreadsheetViewWindow(metrics: SpreadsheetViewMetrics): SpreadsheetViewWindow;
|
|
1161
|
+
/**
|
|
1162
|
+
* The rows and columns to render for a viewport. Frozen rows and columns are
|
|
1163
|
+
* always rendered; the rest are limited to the viewport plus overscan, and
|
|
1164
|
+
* widened so no merge is cut by the window's edge.
|
|
1165
|
+
*/
|
|
1166
|
+
declare function getSpreadsheetViewWindow(metrics: SpreadsheetViewMetrics, viewport: SpreadsheetViewport, options?: SpreadsheetViewWindowOptions): SpreadsheetViewWindow;
|
|
1167
|
+
/**
|
|
1168
|
+
* Scroll offsets that bring the cell at document (row, col) fully into view
|
|
1169
|
+
* (below the frozen rows, right of the frozen columns), or null when it
|
|
1170
|
+
* already is (or isn't displayed). Only the axes that must move are set.
|
|
1171
|
+
*/
|
|
1172
|
+
declare function getSpreadsheetScrollToCell(metrics: SpreadsheetViewMetrics, viewport: SpreadsheetViewport, cell: {
|
|
1173
|
+
row: number;
|
|
1174
|
+
col: number;
|
|
1175
|
+
}): {
|
|
1176
|
+
scrollTop?: number;
|
|
1177
|
+
scrollLeft?: number;
|
|
1178
|
+
} | null;
|
|
1179
|
+
/** Whether two windows render the same rows and columns. */
|
|
1180
|
+
declare function sameSpreadsheetViewWindow(a: SpreadsheetViewWindow, b: SpreadsheetViewWindow): boolean;
|
|
1181
|
+
|
|
1182
|
+
export { ASTNode, CONDITIONAL_FORMAT_ICON_SETS, CONDITIONAL_FORMAT_PRESETS, CONDITIONAL_FORMAT_STYLE_PRESETS, CONDITIONAL_FORMAT_TIME_PERIODS, CellData, CellFormat, type CellInputFormatKind, CellPosition, CellRange, ConditionalCellFormat, type ConditionalFormatCss, ConditionalFormatEngine, type ConditionalFormatIconGlyph, ConditionalFormatIconSet, ConditionalFormatOverlay, type ConditionalFormatPresetField, type ConditionalFormatPresetInfo, type ConditionalFormatPresetInput, type ConditionalFormatPresetKind, ConditionalFormatRule, ConditionalFormatSheet, ConditionalFormatStyle, ConditionalFormatTimePeriod, ConditionalFormatValue, type CsvParseOptions, type CsvSerializeOptions, DATA_VALIDATION_ERROR_STYLE_OPTIONS, DATA_VALIDATION_OPERATOR_OPTIONS, DATA_VALIDATION_TYPE_OPTIONS, DEFAULT_CONDITIONAL_FORMAT_STYLE, DEFAULT_DATA_VALIDATION_MESSAGE, DEFAULT_DATA_VALIDATION_TITLE, DataValidationErrorStyle, DataValidationOperator, DataValidationResult, DataValidationRule, DataValidationSheet, DataValidationType, EMPTY_CONDITIONAL_FORMAT_OVERLAY, type FillDirection, FilterRule, type FormattedNumberValue, type FormulaActiveCall, type FormulaArgument, type FormulaArgumentSpec, type FormulaArgumentType, type FormulaCaretContext, type FormulaCriteriaPredicate, type FormulaEnvironment, FormulaErrorCode, type FormulaFunctionCategory, type FormulaFunctionContext, type FormulaFunctionDefinition, type FormulaFunctionSuggestion, type FormulaHints, FormulaLambda, type FormulaNameSuggestionSource, FormulaRange, type FormulaSignaturePart, GroupAggregate, type ImportFileIntoSpreadsheetOptions, MAX_DEFINED_NAME_LENGTH, MAX_LAMBDA_DEPTH, MAX_NUMBER_FORMAT_CODE_CHARS, MAX_SHEET_NAME_LENGTH, NUMBER_FORMAT_PRESETS, NewConditionalFormatRule, NumberFormat, type NumberFormatColor, type NumberFormatKind, type NumberFormatPreset, type ParsedCellInput, SPREADSHEET_COLUMN_HEADER_HEIGHT, SPREADSHEET_DEFAULT_VIEWPORT, SPREADSHEET_GROUP_ROW_HEIGHT, SPREADSHEET_IMPORT_ADAPTERS, SPREADSHEET_ROW_HEADER_WIDTH, SPREADSHEET_TABLE_ACTIONS, SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD, SPREADSHEET_VIRTUAL_ROW_THRESHOLD, SortDirection, SpreadsheetController, SpreadsheetDefinedName, type SpreadsheetImport, type SpreadsheetImportAdapter, type SpreadsheetMenuItem, type SpreadsheetNameRow, type SpreadsheetPanelId, type SpreadsheetTableActionName, type SpreadsheetTableActions, type SpreadsheetViewMetrics, SpreadsheetViewModel, type SpreadsheetViewWindow, type SpreadsheetViewWindowOptions, type SpreadsheetViewport, StructuralChange, adjustRangeForStructuralChange, adjustRangesForStructuralChange, aggregateValues, applyFormulaSuggestion, bindSpreadsheetTableActions, blendConditionalFormatColors, builtinNumberFormat, builtinNumberFormatId, cellFormatForNumberFormat, checkFormulaArgumentCount, clampMenuPosition, clearNumberFormatCache, compareCellValues, computeFillTarget, conditionalFormatContrastColor, conditionalFormatIconCount, conditionalFormatNumber, conditionalFormatStyleString, copySheetName, createConditionalFormatRule, csvImportAdapter, dateValueToSerial, defaultIconThresholds, describeConditionalFormat, describeDataValidation, escapeCsvField, evaluateConditionalFormats, fillSeries, findDataValidation, findInvalidCells, forEachRangeCell, formatCellDisplay, formatCellForDisplay, formatGeneralFit, formatNumberFormatValue, formatRuleRanges, formatTextFunction, formatValueWithCode, fullSpreadsheetViewWindow, getConditionalFormatCss, getConditionalFormatIcon, getDataBarCss, getFillDirection, getFormulaArgumentSpecIndex, getFormulaCaretContext, getFormulaFunction, getFormulaHints, getFormulaSignature, getFormulaSignatureParts, getNameManagerRows, getSheetTabMenuItems, getSpreadsheetMenuItems, getSpreadsheetScrollToCell, getSpreadsheetViewWindow, getValidationListValues, importFileIntoSpreadsheet, isBlankValue, isFormulaLambda, isGeneralNumberFormat, isLambdaDefinition, isSingleCellRange, listFormulaFunctions, matchesFilterRule, matchesTimePeriod, measureSpreadsheetView, nextSheetName, normalizeRange, numberFormatColorToCss, numberFormatForCellFormat, parseCellInput, parseCriteria, parseCsv, parseNumberText, parseRuleRanges, parseTsv, rangeContains, rangeContainsRange, rangesContain, rangesIntersect, registerFormulaFunction, registerSpreadsheetImportAdapters, roundFloat, ruleAnchor, ruleFormulaAt, runSpreadsheetMenuItem, sameSpreadsheetViewWindow, searchFormulaFunctions, serialFromYmd, serializeCsv, serializeTsv, sheetDropIndex, shiftRuleFormula, shouldVirtualizeSpreadsheet, subtractRange, subtractRangeFromRanges, toNumber, tsvImportAdapter, unregisterFormulaFunction, validateCellInput, validateDefinedName, validateSheetName, wildcardToRegExp };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ASTNode,
|
|
2
|
-
export { B as BinaryOpNode, C as CellCoordinate, b as CellDep, f as CellRefNode, g as CellValueReader, h as ColumnBinding, i as ColumnType, k as ConditionalFormatCondition, m as ConditionalFormatOperator, s as ConditionalFormatType, u as CsvExportOptions, v as CsvImportOptions, D as DEFAULT_COLUMN_WIDTH, w as DEFAULT_ROW_HEIGHT, x as DataSourceBinder, I as DependencyGraph, J as
|
|
1
|
+
import { A as ASTNode, P as FormulaErrorCode, V as FormulaRange, a as CellData, c as CellFormat, p as ConditionalFormatSheet, n as ConditionalFormatOverlay, o as ConditionalFormatRule, j as ConditionalCellFormat, t as ConditionalFormatValue, l as ConditionalFormatIconSet, F as DataValidationRule, q as ConditionalFormatStyle, r as ConditionalFormatTimePeriod, e as CellRange, y as DataValidationErrorStyle, z as DataValidationOperator, H as DataValidationType, a8 as NewConditionalFormatRule, G as DataValidationSheet, d as CellPosition, E as DataValidationResult, $ as GroupAggregate, aj as SortDirection, N as FilterRule, S as SpreadsheetController, aw as SpreadsheetDefinedName, aP as StructuralChange, aM as SpreadsheetViewModel } from '../controller-CxXGOEmy.js';
|
|
2
|
+
export { B as BinaryOpNode, C as CellCoordinate, b as CellDep, f as CellRefNode, g as CellValueReader, h as ColumnBinding, i as ColumnType, k as ConditionalFormatCondition, m as ConditionalFormatOperator, s as ConditionalFormatType, u as CsvExportOptions, v as CsvImportOptions, D as DEFAULT_COLUMN_WIDTH, w as DEFAULT_ROW_HEIGHT, x as DataSourceBinder, I as DependencyGraph, J as DependencyIndexStats, K as EvaluationContext, L as FORMULA_ERRORS, M as FilterOperator, O as FormulaDiagnostic, Q as FormulaEvaluationResult, R as FormulaEvaluator, T as FormulaNameDefinition, U as FormulaParser, W as FormulaReferenceFilter, X as FormulaReferenceInfo, Y as FormulaToken, Z as FormulaTokenType, _ as FunctionCallNode, a0 as GroupSummary, a1 as IntervalIndex, a2 as InvokeNode, a3 as LiteralNode, a4 as MAX_FORMULA_ARRAY_SIZE, a5 as MissingNode, a6 as NameDep, a7 as NameNode, a9 as NewDataValidationRule, aa as NewFilterRule, ab as ParsedSpreadsheetClipboard, ac as PropertyRefNode, ad as RangeNode, ae as RangeResolveOptions, af as ReferenceDep, ag as RowType, ah as SPREADSHEET_CLIPBOARD_MIME, ai as SheetQualifier, ak as SortKey, al as SpillRefNode, am as SpreadsheetCellSpan, an as SpreadsheetClipboardCell, ao as SpreadsheetClipboardData, ap as SpreadsheetClipboardPayload, aq as SpreadsheetClipboardSource, ar as SpreadsheetColumn, as as SpreadsheetCommitResult, at as SpreadsheetControllerOptions, au as SpreadsheetDataSource, av as SpreadsheetDataSourceField, ax as SpreadsheetDocument, ay as SpreadsheetFilterState, az as SpreadsheetGrouping, aA as SpreadsheetNameInfo, aB as SpreadsheetNameScope, aC as SpreadsheetRecalculationStats, aD as SpreadsheetRow, aE as SpreadsheetRowGroup, aF as SpreadsheetRowSection, aG as SpreadsheetSheetInfo, aH as SpreadsheetSpill, aI as SpreadsheetTableSettings, aJ as SpreadsheetValidationAction, aK as SpreadsheetValidationPrompt, aL as SpreadsheetViewColumn, aN as SpreadsheetViewRow, aO as SpreadsheetWorkbook, aQ as UnaryOpNode, aR as WHOLE_COLUMN_END_ROW, aS as buildSpreadsheetView, aT as colNameToIndex, aU as columnDependencyKey, aV as compareNumbers, aW as compareValues, aX as computeRowGroups, aY as createSpreadsheetClipboardData, aZ as deleteSheetInFormula, a_ as describeFormulaError, a$ as extractCellDependencies, b0 as extractNameDependencies, b1 as extractReferenceDependencies, b2 as formatSheetPrefix, b3 as formulaIdentifiers, b4 as getRowSection, b5 as getTableSections, b6 as indexToColName, b7 as isFormulaError, b8 as mapFormulaReferences, b9 as numberToText, ba as offsetFormulaReferences, bb as parseCellReference, bc as parseFormula, bd as parseHtmlTable, be as parseRange, bf as quoteSheetName, bg as rangeDependencyKey, bh as readSpreadsheetClipboard, bi as rebaseClipboardRows, bj as remapFormulaReferences, bk as renameNameInFormula, bl as renameSheetInFormula, bm as rowPassesFilters, bn as serializeHtmlTable, bo as sheetNameNeedsQuotes, bp as shiftFormulaReferences, bq as sortCompareValues, br as tokenizeFormula } from '../controller-CxXGOEmy.js';
|
|
3
3
|
import { I as ImportAdapterRegistry, b as ImportAdapter, h as ImportInput, a as ImportOutcome } from '../registry-CEgwXED1.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1076,4 +1076,107 @@ declare function formatRuleRanges(ranges: CellRange[]): string;
|
|
|
1076
1076
|
/** Parses `A1:B5, D2` (commas, semicolons or spaces between ranges; `$` ignored). Null when any part is not a cell or range. */
|
|
1077
1077
|
declare function parseRuleRanges(text: string): CellRange[] | null;
|
|
1078
1078
|
|
|
1079
|
-
|
|
1079
|
+
/**
|
|
1080
|
+
* Virtualised rendering of large sheets: which displayed rows and columns
|
|
1081
|
+
* are inside (or near) the scrolled viewport, the space taken by the ones
|
|
1082
|
+
* left out, and how far to scroll to bring a cell into view. Framework
|
|
1083
|
+
* bindings render the frozen rows/columns, a spacer, the window and another
|
|
1084
|
+
* spacer; small sheets render everything (`shouldVirtualizeSpreadsheet`).
|
|
1085
|
+
*/
|
|
1086
|
+
|
|
1087
|
+
/** Height of the sticky column-header row, in pixels. */
|
|
1088
|
+
declare const SPREADSHEET_COLUMN_HEADER_HEIGHT = 28;
|
|
1089
|
+
/** Width of the sticky row-number column, in pixels. */
|
|
1090
|
+
declare const SPREADSHEET_ROW_HEADER_WIDTH = 48;
|
|
1091
|
+
/** Height of a category (group) header row, in pixels. */
|
|
1092
|
+
declare const SPREADSHEET_GROUP_ROW_HEIGHT = 28;
|
|
1093
|
+
/** Displayed rows above which `shouldVirtualizeSpreadsheet` turns virtualisation on. */
|
|
1094
|
+
declare const SPREADSHEET_VIRTUAL_ROW_THRESHOLD = 200;
|
|
1095
|
+
/** Displayed columns above which `shouldVirtualizeSpreadsheet` turns virtualisation on. */
|
|
1096
|
+
declare const SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD = 60;
|
|
1097
|
+
/** Viewport assumed before the grid has been measured (server rendering, jsdom). */
|
|
1098
|
+
declare const SPREADSHEET_DEFAULT_VIEWPORT: {
|
|
1099
|
+
width: number;
|
|
1100
|
+
height: number;
|
|
1101
|
+
};
|
|
1102
|
+
/** Pixel positions of a view model's rows and columns (see `measureSpreadsheetView`). */
|
|
1103
|
+
interface SpreadsheetViewMetrics {
|
|
1104
|
+
/** Top of each entry of `view.rows`, below the column header; the last entry is the total height. */
|
|
1105
|
+
rowTops: Float64Array;
|
|
1106
|
+
/** Left of each entry of `view.columns`, after the row header; the last entry is the total width. */
|
|
1107
|
+
columnLefts: Float64Array;
|
|
1108
|
+
/** Leading frozen entries of `view.rows` (always rendered, sticky). */
|
|
1109
|
+
frozenRows: number;
|
|
1110
|
+
/** Leading frozen entries of `view.columns`. */
|
|
1111
|
+
frozenColumns: number;
|
|
1112
|
+
/** Position in `view.rows` of each displayed document row. */
|
|
1113
|
+
rowPosition: Map<number, number>;
|
|
1114
|
+
/** Position in `view.columns` of each displayed document column. */
|
|
1115
|
+
columnPosition: Map<number, number>;
|
|
1116
|
+
}
|
|
1117
|
+
/** The scroll container: its scroll offsets and client size, in pixels. */
|
|
1118
|
+
interface SpreadsheetViewport {
|
|
1119
|
+
scrollTop: number;
|
|
1120
|
+
scrollLeft: number;
|
|
1121
|
+
width: number;
|
|
1122
|
+
height: number;
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* The part of a view model to render: frozen rows `[0, frozenRows)`, then
|
|
1126
|
+
* `topSpace` pixels of rows left out, then rows `[rowStart, rowEnd)`, then
|
|
1127
|
+
* `bottomSpace`; columns likewise (indices into `view.rows` / `view.columns`).
|
|
1128
|
+
*/
|
|
1129
|
+
interface SpreadsheetViewWindow {
|
|
1130
|
+
virtual: boolean;
|
|
1131
|
+
frozenRows: number;
|
|
1132
|
+
rowStart: number;
|
|
1133
|
+
rowEnd: number;
|
|
1134
|
+
topSpace: number;
|
|
1135
|
+
bottomSpace: number;
|
|
1136
|
+
frozenColumns: number;
|
|
1137
|
+
colStart: number;
|
|
1138
|
+
colEnd: number;
|
|
1139
|
+
leftSpace: number;
|
|
1140
|
+
rightSpace: number;
|
|
1141
|
+
}
|
|
1142
|
+
interface SpreadsheetViewWindowOptions {
|
|
1143
|
+
/** Extra rows rendered above and below the viewport. Default 8. */
|
|
1144
|
+
overscanRows?: number;
|
|
1145
|
+
/** Extra columns rendered left and right of the viewport. Default 2. */
|
|
1146
|
+
overscanColumns?: number;
|
|
1147
|
+
/** Merged ranges (document indices): a merge crossing the window's edge is rendered whole. */
|
|
1148
|
+
merges?: readonly CellRange[];
|
|
1149
|
+
}
|
|
1150
|
+
/** Measures the rows (row height, or the group row height) and columns (width) of a view model. */
|
|
1151
|
+
declare function measureSpreadsheetView(view: SpreadsheetViewModel): SpreadsheetViewMetrics;
|
|
1152
|
+
/**
|
|
1153
|
+
* Whether to virtualise: `true` / `false` force it; `'auto'` (the default)
|
|
1154
|
+
* virtualises views with more than `SPREADSHEET_VIRTUAL_ROW_THRESHOLD` rows
|
|
1155
|
+
* or `SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD` columns, so small sheets render
|
|
1156
|
+
* every cell exactly as before.
|
|
1157
|
+
*/
|
|
1158
|
+
declare function shouldVirtualizeSpreadsheet(view: SpreadsheetViewModel, mode?: boolean | 'auto'): boolean;
|
|
1159
|
+
/** A window holding every row and column (no spacers). */
|
|
1160
|
+
declare function fullSpreadsheetViewWindow(metrics: SpreadsheetViewMetrics): SpreadsheetViewWindow;
|
|
1161
|
+
/**
|
|
1162
|
+
* The rows and columns to render for a viewport. Frozen rows and columns are
|
|
1163
|
+
* always rendered; the rest are limited to the viewport plus overscan, and
|
|
1164
|
+
* widened so no merge is cut by the window's edge.
|
|
1165
|
+
*/
|
|
1166
|
+
declare function getSpreadsheetViewWindow(metrics: SpreadsheetViewMetrics, viewport: SpreadsheetViewport, options?: SpreadsheetViewWindowOptions): SpreadsheetViewWindow;
|
|
1167
|
+
/**
|
|
1168
|
+
* Scroll offsets that bring the cell at document (row, col) fully into view
|
|
1169
|
+
* (below the frozen rows, right of the frozen columns), or null when it
|
|
1170
|
+
* already is (or isn't displayed). Only the axes that must move are set.
|
|
1171
|
+
*/
|
|
1172
|
+
declare function getSpreadsheetScrollToCell(metrics: SpreadsheetViewMetrics, viewport: SpreadsheetViewport, cell: {
|
|
1173
|
+
row: number;
|
|
1174
|
+
col: number;
|
|
1175
|
+
}): {
|
|
1176
|
+
scrollTop?: number;
|
|
1177
|
+
scrollLeft?: number;
|
|
1178
|
+
} | null;
|
|
1179
|
+
/** Whether two windows render the same rows and columns. */
|
|
1180
|
+
declare function sameSpreadsheetViewWindow(a: SpreadsheetViewWindow, b: SpreadsheetViewWindow): boolean;
|
|
1181
|
+
|
|
1182
|
+
export { ASTNode, CONDITIONAL_FORMAT_ICON_SETS, CONDITIONAL_FORMAT_PRESETS, CONDITIONAL_FORMAT_STYLE_PRESETS, CONDITIONAL_FORMAT_TIME_PERIODS, CellData, CellFormat, type CellInputFormatKind, CellPosition, CellRange, ConditionalCellFormat, type ConditionalFormatCss, ConditionalFormatEngine, type ConditionalFormatIconGlyph, ConditionalFormatIconSet, ConditionalFormatOverlay, type ConditionalFormatPresetField, type ConditionalFormatPresetInfo, type ConditionalFormatPresetInput, type ConditionalFormatPresetKind, ConditionalFormatRule, ConditionalFormatSheet, ConditionalFormatStyle, ConditionalFormatTimePeriod, ConditionalFormatValue, type CsvParseOptions, type CsvSerializeOptions, DATA_VALIDATION_ERROR_STYLE_OPTIONS, DATA_VALIDATION_OPERATOR_OPTIONS, DATA_VALIDATION_TYPE_OPTIONS, DEFAULT_CONDITIONAL_FORMAT_STYLE, DEFAULT_DATA_VALIDATION_MESSAGE, DEFAULT_DATA_VALIDATION_TITLE, DataValidationErrorStyle, DataValidationOperator, DataValidationResult, DataValidationRule, DataValidationSheet, DataValidationType, EMPTY_CONDITIONAL_FORMAT_OVERLAY, type FillDirection, FilterRule, type FormattedNumberValue, type FormulaActiveCall, type FormulaArgument, type FormulaArgumentSpec, type FormulaArgumentType, type FormulaCaretContext, type FormulaCriteriaPredicate, type FormulaEnvironment, FormulaErrorCode, type FormulaFunctionCategory, type FormulaFunctionContext, type FormulaFunctionDefinition, type FormulaFunctionSuggestion, type FormulaHints, FormulaLambda, type FormulaNameSuggestionSource, FormulaRange, type FormulaSignaturePart, GroupAggregate, type ImportFileIntoSpreadsheetOptions, MAX_DEFINED_NAME_LENGTH, MAX_LAMBDA_DEPTH, MAX_NUMBER_FORMAT_CODE_CHARS, MAX_SHEET_NAME_LENGTH, NUMBER_FORMAT_PRESETS, NewConditionalFormatRule, NumberFormat, type NumberFormatColor, type NumberFormatKind, type NumberFormatPreset, type ParsedCellInput, SPREADSHEET_COLUMN_HEADER_HEIGHT, SPREADSHEET_DEFAULT_VIEWPORT, SPREADSHEET_GROUP_ROW_HEIGHT, SPREADSHEET_IMPORT_ADAPTERS, SPREADSHEET_ROW_HEADER_WIDTH, SPREADSHEET_TABLE_ACTIONS, SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD, SPREADSHEET_VIRTUAL_ROW_THRESHOLD, SortDirection, SpreadsheetController, SpreadsheetDefinedName, type SpreadsheetImport, type SpreadsheetImportAdapter, type SpreadsheetMenuItem, type SpreadsheetNameRow, type SpreadsheetPanelId, type SpreadsheetTableActionName, type SpreadsheetTableActions, type SpreadsheetViewMetrics, SpreadsheetViewModel, type SpreadsheetViewWindow, type SpreadsheetViewWindowOptions, type SpreadsheetViewport, StructuralChange, adjustRangeForStructuralChange, adjustRangesForStructuralChange, aggregateValues, applyFormulaSuggestion, bindSpreadsheetTableActions, blendConditionalFormatColors, builtinNumberFormat, builtinNumberFormatId, cellFormatForNumberFormat, checkFormulaArgumentCount, clampMenuPosition, clearNumberFormatCache, compareCellValues, computeFillTarget, conditionalFormatContrastColor, conditionalFormatIconCount, conditionalFormatNumber, conditionalFormatStyleString, copySheetName, createConditionalFormatRule, csvImportAdapter, dateValueToSerial, defaultIconThresholds, describeConditionalFormat, describeDataValidation, escapeCsvField, evaluateConditionalFormats, fillSeries, findDataValidation, findInvalidCells, forEachRangeCell, formatCellDisplay, formatCellForDisplay, formatGeneralFit, formatNumberFormatValue, formatRuleRanges, formatTextFunction, formatValueWithCode, fullSpreadsheetViewWindow, getConditionalFormatCss, getConditionalFormatIcon, getDataBarCss, getFillDirection, getFormulaArgumentSpecIndex, getFormulaCaretContext, getFormulaFunction, getFormulaHints, getFormulaSignature, getFormulaSignatureParts, getNameManagerRows, getSheetTabMenuItems, getSpreadsheetMenuItems, getSpreadsheetScrollToCell, getSpreadsheetViewWindow, getValidationListValues, importFileIntoSpreadsheet, isBlankValue, isFormulaLambda, isGeneralNumberFormat, isLambdaDefinition, isSingleCellRange, listFormulaFunctions, matchesFilterRule, matchesTimePeriod, measureSpreadsheetView, nextSheetName, normalizeRange, numberFormatColorToCss, numberFormatForCellFormat, parseCellInput, parseCriteria, parseCsv, parseNumberText, parseRuleRanges, parseTsv, rangeContains, rangeContainsRange, rangesContain, rangesIntersect, registerFormulaFunction, registerSpreadsheetImportAdapters, roundFloat, ruleAnchor, ruleFormulaAt, runSpreadsheetMenuItem, sameSpreadsheetViewWindow, searchFormulaFunctions, serialFromYmd, serializeCsv, serializeTsv, sheetDropIndex, shiftRuleFormula, shouldVirtualizeSpreadsheet, subtractRange, subtractRangeFromRanges, toNumber, tsvImportAdapter, unregisterFormulaFunction, validateCellInput, validateDefinedName, validateSheetName, wildcardToRegExp };
|
|
@@ -15,12 +15,19 @@ import {
|
|
|
15
15
|
DataSourceBinder,
|
|
16
16
|
DependencyGraph,
|
|
17
17
|
EMPTY_CONDITIONAL_FORMAT_OVERLAY,
|
|
18
|
+
IntervalIndex,
|
|
18
19
|
MAX_DEFINED_NAME_LENGTH,
|
|
19
20
|
MAX_SHEET_NAME_LENGTH,
|
|
20
21
|
NUMBER_FORMAT_PRESETS,
|
|
21
22
|
SPREADSHEET_CLIPBOARD_MIME,
|
|
23
|
+
SPREADSHEET_COLUMN_HEADER_HEIGHT,
|
|
24
|
+
SPREADSHEET_DEFAULT_VIEWPORT,
|
|
25
|
+
SPREADSHEET_GROUP_ROW_HEIGHT,
|
|
22
26
|
SPREADSHEET_IMPORT_ADAPTERS,
|
|
27
|
+
SPREADSHEET_ROW_HEADER_WIDTH,
|
|
23
28
|
SPREADSHEET_TABLE_ACTIONS,
|
|
29
|
+
SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD,
|
|
30
|
+
SPREADSHEET_VIRTUAL_ROW_THRESHOLD,
|
|
24
31
|
SpreadsheetController,
|
|
25
32
|
adjustRangeForStructuralChange,
|
|
26
33
|
adjustRangesForStructuralChange,
|
|
@@ -50,6 +57,7 @@ import {
|
|
|
50
57
|
evaluateConditionalFormats,
|
|
51
58
|
extractCellDependencies,
|
|
52
59
|
extractNameDependencies,
|
|
60
|
+
extractReferenceDependencies,
|
|
53
61
|
fillSeries,
|
|
54
62
|
findDataValidation,
|
|
55
63
|
findInvalidCells,
|
|
@@ -60,6 +68,7 @@ import {
|
|
|
60
68
|
formatSheetPrefix,
|
|
61
69
|
formatValueWithCode,
|
|
62
70
|
formulaIdentifiers,
|
|
71
|
+
fullSpreadsheetViewWindow,
|
|
63
72
|
getConditionalFormatCss,
|
|
64
73
|
getConditionalFormatIcon,
|
|
65
74
|
getDataBarCss,
|
|
@@ -70,6 +79,8 @@ import {
|
|
|
70
79
|
getRowSection,
|
|
71
80
|
getSheetTabMenuItems,
|
|
72
81
|
getSpreadsheetMenuItems,
|
|
82
|
+
getSpreadsheetScrollToCell,
|
|
83
|
+
getSpreadsheetViewWindow,
|
|
73
84
|
getTableSections,
|
|
74
85
|
getValidationListValues,
|
|
75
86
|
importFileIntoSpreadsheet,
|
|
@@ -80,6 +91,7 @@ import {
|
|
|
80
91
|
mapFormulaReferences,
|
|
81
92
|
matchesFilterRule,
|
|
82
93
|
matchesTimePeriod,
|
|
94
|
+
measureSpreadsheetView,
|
|
83
95
|
nextSheetName,
|
|
84
96
|
normalizeRange,
|
|
85
97
|
numberFormatForCellFormat,
|
|
@@ -89,6 +101,7 @@ import {
|
|
|
89
101
|
quoteSheetName,
|
|
90
102
|
rangeContains,
|
|
91
103
|
rangeContainsRange,
|
|
104
|
+
rangeDependencyKey,
|
|
92
105
|
rangesContain,
|
|
93
106
|
rangesIntersect,
|
|
94
107
|
readSpreadsheetClipboard,
|
|
@@ -102,11 +115,13 @@ import {
|
|
|
102
115
|
ruleAnchor,
|
|
103
116
|
ruleFormulaAt,
|
|
104
117
|
runSpreadsheetMenuItem,
|
|
118
|
+
sameSpreadsheetViewWindow,
|
|
105
119
|
serializeHtmlTable,
|
|
106
120
|
sheetDropIndex,
|
|
107
121
|
sheetNameNeedsQuotes,
|
|
108
122
|
shiftFormulaReferences,
|
|
109
123
|
shiftRuleFormula,
|
|
124
|
+
shouldVirtualizeSpreadsheet,
|
|
110
125
|
subtractRange,
|
|
111
126
|
subtractRangeFromRanges,
|
|
112
127
|
toNumber,
|
|
@@ -114,7 +129,7 @@ import {
|
|
|
114
129
|
validateCellInput,
|
|
115
130
|
validateDefinedName,
|
|
116
131
|
validateSheetName
|
|
117
|
-
} from "../chunk-
|
|
132
|
+
} from "../chunk-X7HXL2SB.js";
|
|
118
133
|
import {
|
|
119
134
|
escapeCsvField,
|
|
120
135
|
parseCsv,
|
|
@@ -167,7 +182,7 @@ import {
|
|
|
167
182
|
tokenizeFormula,
|
|
168
183
|
unregisterFormulaFunction,
|
|
169
184
|
wildcardToRegExp
|
|
170
|
-
} from "../chunk-
|
|
185
|
+
} from "../chunk-ZRNHGAQT.js";
|
|
171
186
|
export {
|
|
172
187
|
CONDITIONAL_FORMAT_ICON_SETS,
|
|
173
188
|
CONDITIONAL_FORMAT_PRESETS,
|
|
@@ -189,6 +204,7 @@ export {
|
|
|
189
204
|
FormulaEvaluator,
|
|
190
205
|
FormulaLambda,
|
|
191
206
|
FormulaParser,
|
|
207
|
+
IntervalIndex,
|
|
192
208
|
MAX_DEFINED_NAME_LENGTH,
|
|
193
209
|
MAX_FORMULA_ARRAY_SIZE,
|
|
194
210
|
MAX_LAMBDA_DEPTH,
|
|
@@ -197,8 +213,14 @@ export {
|
|
|
197
213
|
NUMBER_FORMAT_PRESETS,
|
|
198
214
|
NumberFormat,
|
|
199
215
|
SPREADSHEET_CLIPBOARD_MIME,
|
|
216
|
+
SPREADSHEET_COLUMN_HEADER_HEIGHT,
|
|
217
|
+
SPREADSHEET_DEFAULT_VIEWPORT,
|
|
218
|
+
SPREADSHEET_GROUP_ROW_HEIGHT,
|
|
200
219
|
SPREADSHEET_IMPORT_ADAPTERS,
|
|
220
|
+
SPREADSHEET_ROW_HEADER_WIDTH,
|
|
201
221
|
SPREADSHEET_TABLE_ACTIONS,
|
|
222
|
+
SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD,
|
|
223
|
+
SPREADSHEET_VIRTUAL_ROW_THRESHOLD,
|
|
202
224
|
SpreadsheetController,
|
|
203
225
|
WHOLE_COLUMN_END_ROW,
|
|
204
226
|
adjustRangeForStructuralChange,
|
|
@@ -239,6 +261,7 @@ export {
|
|
|
239
261
|
evaluateConditionalFormats,
|
|
240
262
|
extractCellDependencies,
|
|
241
263
|
extractNameDependencies,
|
|
264
|
+
extractReferenceDependencies,
|
|
242
265
|
fillSeries,
|
|
243
266
|
findDataValidation,
|
|
244
267
|
findInvalidCells,
|
|
@@ -252,6 +275,7 @@ export {
|
|
|
252
275
|
formatTextFunction,
|
|
253
276
|
formatValueWithCode,
|
|
254
277
|
formulaIdentifiers,
|
|
278
|
+
fullSpreadsheetViewWindow,
|
|
255
279
|
getConditionalFormatCss,
|
|
256
280
|
getConditionalFormatIcon,
|
|
257
281
|
getDataBarCss,
|
|
@@ -266,6 +290,8 @@ export {
|
|
|
266
290
|
getRowSection,
|
|
267
291
|
getSheetTabMenuItems,
|
|
268
292
|
getSpreadsheetMenuItems,
|
|
293
|
+
getSpreadsheetScrollToCell,
|
|
294
|
+
getSpreadsheetViewWindow,
|
|
269
295
|
getTableSections,
|
|
270
296
|
getValidationListValues,
|
|
271
297
|
importFileIntoSpreadsheet,
|
|
@@ -280,6 +306,7 @@ export {
|
|
|
280
306
|
mapFormulaReferences,
|
|
281
307
|
matchesFilterRule,
|
|
282
308
|
matchesTimePeriod,
|
|
309
|
+
measureSpreadsheetView,
|
|
283
310
|
nextSheetName,
|
|
284
311
|
normalizeRange,
|
|
285
312
|
numberFormatColorToCss,
|
|
@@ -299,6 +326,7 @@ export {
|
|
|
299
326
|
quoteSheetName,
|
|
300
327
|
rangeContains,
|
|
301
328
|
rangeContainsRange,
|
|
329
|
+
rangeDependencyKey,
|
|
302
330
|
rangesContain,
|
|
303
331
|
rangesIntersect,
|
|
304
332
|
readSpreadsheetClipboard,
|
|
@@ -313,6 +341,7 @@ export {
|
|
|
313
341
|
ruleAnchor,
|
|
314
342
|
ruleFormulaAt,
|
|
315
343
|
runSpreadsheetMenuItem,
|
|
344
|
+
sameSpreadsheetViewWindow,
|
|
316
345
|
searchFormulaFunctions,
|
|
317
346
|
serialFromYmd,
|
|
318
347
|
serializeCsv,
|
|
@@ -322,6 +351,7 @@ export {
|
|
|
322
351
|
sheetNameNeedsQuotes,
|
|
323
352
|
shiftFormulaReferences,
|
|
324
353
|
shiftRuleFormula,
|
|
354
|
+
shouldVirtualizeSpreadsheet,
|
|
325
355
|
sortCompareValues,
|
|
326
356
|
subtractRange,
|
|
327
357
|
subtractRangeFromRanges,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "UI-agnostic rich text and media editing core library",
|
|
5
5
|
"author": "Pixerate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -83,6 +83,11 @@
|
|
|
83
83
|
"types": "./dist/tokens/index.d.ts",
|
|
84
84
|
"import": "./dist/tokens/index.js",
|
|
85
85
|
"require": "./dist/tokens/index.cjs"
|
|
86
|
+
},
|
|
87
|
+
"./export": {
|
|
88
|
+
"types": "./dist/export/index.d.ts",
|
|
89
|
+
"import": "./dist/export/index.js",
|
|
90
|
+
"require": "./dist/export/index.cjs"
|
|
86
91
|
}
|
|
87
92
|
},
|
|
88
93
|
"files": [
|
|
@@ -100,6 +105,10 @@
|
|
|
100
105
|
"@tiptap/extension-placeholder": "^2.11.5",
|
|
101
106
|
"@tiptap/extension-subscript": "^2.11.5",
|
|
102
107
|
"@tiptap/extension-superscript": "^2.11.5",
|
|
108
|
+
"@tiptap/extension-table": "^2.11.5",
|
|
109
|
+
"@tiptap/extension-table-cell": "^2.11.5",
|
|
110
|
+
"@tiptap/extension-table-header": "^2.11.5",
|
|
111
|
+
"@tiptap/extension-table-row": "^2.11.5",
|
|
103
112
|
"@tiptap/extension-task-item": "^2.11.5",
|
|
104
113
|
"@tiptap/extension-task-list": "^2.11.5",
|
|
105
114
|
"@tiptap/extension-text-align": "^2.11.5",
|