@rowsncolumns/spreadsheet 10.5.13 → 10.5.15
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/cjs/api/selections.d.ts +1 -1
- package/dist/cjs/components/canvas-grid/index.d.ts.map +1 -1
- package/dist/cjs/components/canvas-grid/index.js +39 -9
- package/dist/cjs/components/canvas-grid/typings.d.ts +11 -0
- package/dist/cjs/components/canvas-grid/typings.d.ts.map +1 -1
- package/dist/cjs/components/cell/cell-backgrounds.d.ts +31 -0
- package/dist/cjs/components/cell/cell-backgrounds.d.ts.map +1 -0
- package/dist/cjs/components/cell/cell-backgrounds.js +171 -0
- package/dist/cjs/hooks/use-cell-renderer.d.ts +1 -1
- package/dist/cjs/hooks/use-cell-renderer.d.ts.map +1 -1
- package/dist/cjs/hooks/use-cell-renderer.js +14 -0
- package/dist/cjs/hooks/use-editor-submit.d.ts +3 -2
- package/dist/cjs/hooks/use-editor-submit.d.ts.map +1 -1
- package/dist/cjs/hooks/use-editor-submit.js +30 -20
- package/dist/cjs/hooks/use-get-values-from-range.d.ts +6 -1
- package/dist/cjs/hooks/use-get-values-from-range.d.ts.map +1 -1
- package/dist/cjs/hooks/use-get-values-from-range.js +89 -77
- package/dist/cjs/hooks/use-structured-reference-selection.d.ts +1 -1
- package/dist/cjs/release-date.js +1 -1
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/components/canvas-grid/index.d.ts.map +1 -1
- package/dist/esm/components/canvas-grid/index.js +36 -6
- package/dist/esm/components/canvas-grid/typings.d.ts +11 -0
- package/dist/esm/components/canvas-grid/typings.d.ts.map +1 -1
- package/dist/esm/components/cell/cell-backgrounds.d.ts +31 -0
- package/dist/esm/components/cell/cell-backgrounds.d.ts.map +1 -0
- package/dist/esm/components/cell/cell-backgrounds.js +112 -0
- package/dist/esm/hooks/use-cell-renderer.d.ts +1 -1
- package/dist/esm/hooks/use-cell-renderer.d.ts.map +1 -1
- package/dist/esm/hooks/use-cell-renderer.js +12 -0
- package/dist/esm/hooks/use-editor-submit.d.ts +3 -2
- package/dist/esm/hooks/use-editor-submit.d.ts.map +1 -1
- package/dist/esm/hooks/use-editor-submit.js +5 -1
- package/dist/esm/hooks/use-get-values-from-range.d.ts +6 -1
- package/dist/esm/hooks/use-get-values-from-range.d.ts.map +1 -1
- package/dist/esm/hooks/use-get-values-from-range.js +70 -41
- package/dist/esm/release-date.js +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-cell-renderer.d.ts","sourceRoot":"","sources":["../../../hooks/use-cell-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,4BAA4B,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAK/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,KAAsB,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EACjB,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"use-cell-renderer.d.ts","sourceRoot":"","sources":["../../../hooks/use-cell-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,4BAA4B,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAK/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kC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CAAC;IAErB;;;;;OAKG;IACH,6BAA6B,CAC3B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GAClB,eAAe,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,8xCAwE5D,iBAAiB,CAAC,CAAC,CAAC,uBAgkBX,aAAa,uCAnjBb,aAAa,gCA0bb,aAAa,uCApFb,aAAa,mDA4Rb,aAAa,EAAE,uBA0B1B,CAAC"}
|
|
@@ -10,6 +10,7 @@ var colors_1 = require("../api/colors");
|
|
|
10
10
|
var validation_1 = require("../api/validation");
|
|
11
11
|
var alignment_1 = require("../components/cell/alignment");
|
|
12
12
|
var cell_background_1 = require("../components/cell/cell-background");
|
|
13
|
+
var cell_backgrounds_1 = require("../components/cell/cell-backgrounds");
|
|
13
14
|
var cell_diff_1 = require("../components/cell-diff");
|
|
14
15
|
var cell_overlay_1 = require("../components/cell-overlay");
|
|
15
16
|
var config_1 = require("../config");
|
|
@@ -380,11 +381,24 @@ var useCellRenderer = function (_a) {
|
|
|
380
381
|
theme,
|
|
381
382
|
sheetId,
|
|
382
383
|
]);
|
|
384
|
+
// Batched form of `cellBackgroundRenderer`: one Konva shape per pane (see `CellBackgrounds`).
|
|
385
|
+
var getBackgroundFormat = (0, react_1.useCallback)(function (rowIndex, columnIndex) {
|
|
386
|
+
return getEffectiveCellFormat(sheetId, rowIndex, columnIndex);
|
|
387
|
+
}, [getEffectiveCellFormat, sheetId]);
|
|
388
|
+
var resolveBackgroundColor = (0, react_1.useCallback)(function (color) { return (0, themes_1.getStringifiedColor)(color, theme); }, [theme]);
|
|
389
|
+
var cellBackgroundsRenderer = (0, react_1.useCallback)(function (cells) { return (react_1.default.createElement(cell_backgrounds_1.CellBackgrounds, { cells: cells, getFormat: getBackgroundFormat, resolveColor: resolveBackgroundColor, showGridLines: showGridLines, scale: scale, defaultBackgroundColor: cellBackgroundColor })); }, [
|
|
390
|
+
getBackgroundFormat,
|
|
391
|
+
resolveBackgroundColor,
|
|
392
|
+
scale,
|
|
393
|
+
showGridLines,
|
|
394
|
+
cellBackgroundColor,
|
|
395
|
+
]);
|
|
383
396
|
return [
|
|
384
397
|
cellBackgroundRenderer,
|
|
385
398
|
cellRenderer,
|
|
386
399
|
cellOverlayRenderer,
|
|
387
400
|
headerCellRenderer,
|
|
401
|
+
cellBackgroundsRenderer,
|
|
388
402
|
];
|
|
389
403
|
};
|
|
390
404
|
exports.useCellRenderer = useCellRenderer;
|
|
@@ -80,9 +80,10 @@ type UseEditorSubmitProps = {
|
|
|
80
80
|
* Resolve the data-validation enforcement decision for a value about to be
|
|
81
81
|
* committed at a cell. Returns `undefined` when there is nothing to enforce
|
|
82
82
|
* (no rule, no error alert, value valid, or a formula rule that can't be
|
|
83
|
-
* evaluated synchronously — those keep the flag-only red marker).
|
|
83
|
+
* evaluated synchronously — those keep the flag-only red marker). A list
|
|
84
|
+
* (`ONE_OF_RANGE`) rule resolves its source asynchronously.
|
|
84
85
|
*/
|
|
85
|
-
getCommitValidation?: (sheetId: number, rowIndex: number, columnIndex: number, value: string | boolean, previousValue: string | boolean | undefined | null) => CommitValidation | undefined
|
|
86
|
+
getCommitValidation?: (sheetId: number, rowIndex: number, columnIndex: number, value: string | boolean, previousValue: string | boolean | undefined | null) => CommitValidation | undefined | Promise<CommitValidation | undefined>;
|
|
86
87
|
/**
|
|
87
88
|
* Opens the blocking data-validation alert dialog. Resolves to `true` when
|
|
88
89
|
* the user chose to proceed (or acknowledged a `stop`), `false` to discard.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-editor-submit.d.ts","sourceRoot":"","sources":["../../../hooks/use-editor-submit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,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/B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,0KAY7B,oBAAoB,aAQV,MAAM,GAAG,OAAO,kBACP,aAAa,EAAE,GAAG,SAAS,GAAG,IAAI,iBACnC,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,kBAClC,MAAM,cACV,aAAa,mBACR,aAAa,GAAG,IAAI,YAC3B,OAAO,YACP,mBAAmB,kBAyIlC,CAAC"}
|
|
@@ -101,10 +101,10 @@ var useEditorSubmit = function (_a) {
|
|
|
101
101
|
var selectionsRef = (0, react_1.useRef)(selections);
|
|
102
102
|
selectionsRef.current = selections;
|
|
103
103
|
return (0, react_1.useCallback)(function (value, textFormatRuns, previousValue, editingSheetId, activeCell, nextActiveCell, isDirty, options) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
104
|
-
var resetEditorState, commit, enforcement, decision, alert_1, request, proceed,
|
|
105
|
-
var
|
|
106
|
-
return tslib_1.__generator(this, function (
|
|
107
|
-
switch (
|
|
104
|
+
var resetEditorState, commit, pending_1, enforcement, _a, decision, alert_1, request, proceed, _b;
|
|
105
|
+
var _c, _d;
|
|
106
|
+
return tslib_1.__generator(this, function (_e) {
|
|
107
|
+
switch (_e.label) {
|
|
108
108
|
case 0:
|
|
109
109
|
/* Balance parentheses */
|
|
110
110
|
if (formulaMode && typeof value !== "boolean") {
|
|
@@ -178,14 +178,24 @@ var useEditorSubmit = function (_a) {
|
|
|
178
178
|
}
|
|
179
179
|
resetEditorState();
|
|
180
180
|
};
|
|
181
|
-
if (!(value !== previousValue && getCommitValidation)) return [3 /*break*/,
|
|
182
|
-
|
|
183
|
-
if (!
|
|
181
|
+
if (!(value !== previousValue && getCommitValidation)) return [3 /*break*/, 7];
|
|
182
|
+
pending_1 = getCommitValidation(editingSheetId, activeCell.rowIndex, activeCell.columnIndex, value, previousValue);
|
|
183
|
+
if (!(pending_1 instanceof Promise)) return [3 /*break*/, 2];
|
|
184
|
+
return [4 /*yield*/, pending_1];
|
|
185
|
+
case 1:
|
|
186
|
+
_a = _e.sent();
|
|
187
|
+
return [3 /*break*/, 3];
|
|
188
|
+
case 2:
|
|
189
|
+
_a = pending_1;
|
|
190
|
+
_e.label = 3;
|
|
191
|
+
case 3:
|
|
192
|
+
enforcement = _a;
|
|
193
|
+
if (!enforcement) return [3 /*break*/, 7];
|
|
184
194
|
decision = enforcement.decision, alert_1 = enforcement.alert;
|
|
185
195
|
request = {
|
|
186
196
|
style: alert_1.style,
|
|
187
|
-
title: (
|
|
188
|
-
message: (
|
|
197
|
+
title: (_c = alert_1.message) === null || _c === void 0 ? void 0 : _c.title,
|
|
198
|
+
message: (_d = alert_1.message) === null || _d === void 0 ? void 0 : _d.message,
|
|
189
199
|
confirm: decision === "confirm",
|
|
190
200
|
};
|
|
191
201
|
if (decision === "block") {
|
|
@@ -194,22 +204,22 @@ var useEditorSubmit = function (_a) {
|
|
|
194
204
|
void (showValidationAlert === null || showValidationAlert === void 0 ? void 0 : showValidationAlert(request));
|
|
195
205
|
return [2 /*return*/];
|
|
196
206
|
}
|
|
197
|
-
if (!showValidationAlert) return [3 /*break*/,
|
|
207
|
+
if (!showValidationAlert) return [3 /*break*/, 5];
|
|
198
208
|
return [4 /*yield*/, showValidationAlert(request)];
|
|
199
|
-
case
|
|
200
|
-
|
|
201
|
-
return [3 /*break*/,
|
|
202
|
-
case
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
case
|
|
206
|
-
proceed =
|
|
209
|
+
case 4:
|
|
210
|
+
_b = _e.sent();
|
|
211
|
+
return [3 /*break*/, 6];
|
|
212
|
+
case 5:
|
|
213
|
+
_b = true;
|
|
214
|
+
_e.label = 6;
|
|
215
|
+
case 6:
|
|
216
|
+
proceed = _b;
|
|
207
217
|
if (!proceed) {
|
|
208
218
|
resetEditorState();
|
|
209
219
|
return [2 /*return*/];
|
|
210
220
|
}
|
|
211
|
-
|
|
212
|
-
case
|
|
221
|
+
_e.label = 7;
|
|
222
|
+
case 7:
|
|
213
223
|
commit();
|
|
214
224
|
return [2 /*return*/];
|
|
215
225
|
}
|
|
@@ -32,6 +32,11 @@ type UseGetValuesFromRangeProps<T extends CellData> = {
|
|
|
32
32
|
* `CanvasGridProps["getValidationSourceValue"]`. Defaults to `getFormattedValue`.
|
|
33
33
|
*/
|
|
34
34
|
getValidationSourceValue?: CanvasGridProps["getValidationSourceValue"];
|
|
35
|
+
/**
|
|
36
|
+
* Optional engine-side resolver for the list sources the tokenizer cannot resolve — see
|
|
37
|
+
* `CanvasGridProps["resolveValidationSourceValues"]`.
|
|
38
|
+
*/
|
|
39
|
+
resolveValidationSourceValues?: CanvasGridProps["resolveValidationSourceValues"];
|
|
35
40
|
};
|
|
36
41
|
/**
|
|
37
42
|
* Get all user entered values from a range
|
|
@@ -39,6 +44,6 @@ type UseGetValuesFromRangeProps<T extends CellData> = {
|
|
|
39
44
|
* @param param0
|
|
40
45
|
* @returns
|
|
41
46
|
*/
|
|
42
|
-
export declare const useGetValuesFromRange: <T extends CellData>({ sheetId, getFormattedValue, getValidationValue, getSheetId, getSelectionsFromFormula, onRequestCalculate, getValidationSourceValue, }: UseGetValuesFromRangeProps<T>) => readonly [(address: string) => ConditionValue[], (address: string) => ConditionValue[], (address: string, rowIndex: number, columnIndex: number, targetSheetId?: number) => Promise<ConditionValue[]>];
|
|
47
|
+
export declare const useGetValuesFromRange: <T extends CellData>({ sheetId, getFormattedValue, getValidationValue, getSheetId, getSelectionsFromFormula, onRequestCalculate, getValidationSourceValue, resolveValidationSourceValues, }: UseGetValuesFromRangeProps<T>) => readonly [(address: string) => ConditionValue[], (address: string) => ConditionValue[], (address: string, rowIndex: number, columnIndex: number, targetSheetId?: number) => Promise<ConditionValue[]>];
|
|
43
48
|
export {};
|
|
44
49
|
//# sourceMappingURL=use-get-values-from-range.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-get-values-from-range.d.ts","sourceRoot":"","sources":["../../../hooks/use-get-values-from-range.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAIxD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACV,QAAQ,EACR,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAGlB,KAAK,0BAA0B,CAAC,CAAC,SAAS,QAAQ,IAAI;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,CACf,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAAC;IACtB;;;;;;OAMG;IACH,kBAAkB,EAAE,CAClB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,qBAAqB,KACzB,mBAAmB,CAAC;IACzB;;;OAGG;IACH,wBAAwB,CACtB,OAAO,EAAE,MAAM,GACd,aAAa,CAAC,mBAAmB,CAAC,EAAE,CAAC;IACxC;;OAEG;IACH,UAAU,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAC1C,kBAAkB,CAAC,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAC3D;;;OAGG;IACH,wBAAwB,CAAC,EAAE,eAAe,CAAC,0BAA0B,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"use-get-values-from-range.d.ts","sourceRoot":"","sources":["../../../hooks/use-get-values-from-range.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAIxD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACV,QAAQ,EACR,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAGlB,KAAK,0BAA0B,CAAC,CAAC,SAAS,QAAQ,IAAI;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,CACf,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAAC;IACtB;;;;;;OAMG;IACH,kBAAkB,EAAE,CAClB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,qBAAqB,KACzB,mBAAmB,CAAC;IACzB;;;OAGG;IACH,wBAAwB,CACtB,OAAO,EAAE,MAAM,GACd,aAAa,CAAC,mBAAmB,CAAC,EAAE,CAAC;IACxC;;OAEG;IACH,UAAU,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAC1C,kBAAkB,CAAC,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAC3D;;;OAGG;IACH,wBAAwB,CAAC,EAAE,eAAe,CAAC,0BAA0B,CAAC,CAAC;IACvE;;;OAGG;IACH,6BAA6B,CAAC,EAAE,eAAe,CAAC,+BAA+B,CAAC,CAAC;CAClF,CAAC;AA0BF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,QAAQ,EAAE,wKASvD,0BAA0B,CAAC,CAAC,CAAC,yBAqDhB,MAAM,KAAG,cAAc,EAAE,YASzB,MAAM,KAAG,cAAc,EAAE,YAoBxB,MAAM,YACL,MAAM,eACH,MAAM,kBACJ,MAAM,KACpB,OAAO,CAAC,cAAc,EAAE,CAAC,CAkFjC,CAAC"}
|
|
@@ -5,6 +5,38 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
var utils_1 = require("@rowsncolumns/utils");
|
|
6
6
|
var react_1 = require("react");
|
|
7
7
|
var use_callback_ref_1 = require("./use-callback-ref");
|
|
8
|
+
/**
|
|
9
|
+
* The reference / array functions the LEGACY calculator previews as an array through
|
|
10
|
+
* `onRequestCalculate(…, { isArray: true })` — the only sources it can resolve beyond plain
|
|
11
|
+
* ranges. The engine resolver (`resolveValidationSourceValues`) takes any function call.
|
|
12
|
+
*/
|
|
13
|
+
var LEGACY_CALC_SOURCE = /(OFFSET|INDIRECT|FILTER|UNIQUE|SORT|SEQUENCE)\s*\(/i;
|
|
14
|
+
/** Any function call — `OFFSET(`, `INDEX(`, `_xlfn.XLOOKUP(`, `CHOOSE(` — in a list source. */
|
|
15
|
+
var FUNCTION_CALL = /[A-Z_\\][A-Z0-9_.]*\s*\(/i;
|
|
16
|
+
/**
|
|
17
|
+
* Dropdown options from a resolver's display texts: blanks dropped, duplicates collapsed,
|
|
18
|
+
* first-seen order kept — the same shape `getValuesFromRange` builds from cells.
|
|
19
|
+
*/
|
|
20
|
+
var conditionValuesFromTexts = function (texts) {
|
|
21
|
+
var e_1, _a;
|
|
22
|
+
var userEnteredValues = new Map();
|
|
23
|
+
try {
|
|
24
|
+
for (var texts_1 = tslib_1.__values(texts), texts_1_1 = texts_1.next(); !texts_1_1.done; texts_1_1 = texts_1.next()) {
|
|
25
|
+
var userEnteredValue = texts_1_1.value;
|
|
26
|
+
if (userEnteredValue) {
|
|
27
|
+
userEnteredValues.set(userEnteredValue, { userEnteredValue: userEnteredValue });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
32
|
+
finally {
|
|
33
|
+
try {
|
|
34
|
+
if (texts_1_1 && !texts_1_1.done && (_a = texts_1.return)) _a.call(texts_1);
|
|
35
|
+
}
|
|
36
|
+
finally { if (e_1) throw e_1.error; }
|
|
37
|
+
}
|
|
38
|
+
return tslib_1.__spreadArray([], tslib_1.__read(userEnteredValues.values()), false);
|
|
39
|
+
};
|
|
8
40
|
/**
|
|
9
41
|
* Get all user entered values from a range
|
|
10
42
|
* used in data validation
|
|
@@ -12,13 +44,13 @@ var use_callback_ref_1 = require("./use-callback-ref");
|
|
|
12
44
|
* @returns
|
|
13
45
|
*/
|
|
14
46
|
var useGetValuesFromRange = function (_a) {
|
|
15
|
-
var sheetId = _a.sheetId, getFormattedValue = _a.getFormattedValue, getValidationValue = _a.getValidationValue, getSheetId = _a.getSheetId, getSelectionsFromFormula = _a.getSelectionsFromFormula, onRequestCalculate = _a.onRequestCalculate, getValidationSourceValue = _a.getValidationSourceValue;
|
|
47
|
+
var sheetId = _a.sheetId, getFormattedValue = _a.getFormattedValue, getValidationValue = _a.getValidationValue, getSheetId = _a.getSheetId, getSelectionsFromFormula = _a.getSelectionsFromFormula, onRequestCalculate = _a.onRequestCalculate, getValidationSourceValue = _a.getValidationSourceValue, resolveValidationSourceValues = _a.resolveValidationSourceValues;
|
|
16
48
|
// Windowed hosts supply an off-window-safe reader for validation source ranges
|
|
17
49
|
// (dropdown options + commit checks) — the plain `getFormattedValue` only sees the
|
|
18
50
|
// loaded viewport there. Defaults to `getFormattedValue`.
|
|
19
51
|
var readSourceValue = getValidationSourceValue !== null && getValidationSourceValue !== void 0 ? getValidationSourceValue : getFormattedValue;
|
|
20
52
|
var getValuesFromRange = (0, react_1.useCallback)(function (address, callback) {
|
|
21
|
-
var
|
|
53
|
+
var e_2, _a, e_3, _b;
|
|
22
54
|
var _c;
|
|
23
55
|
var selections = getSelectionsFromFormula(address);
|
|
24
56
|
var userEnteredValues = new Map();
|
|
@@ -30,7 +62,7 @@ var useGetValuesFromRange = function (_a) {
|
|
|
30
62
|
? (_c = getSheetId === null || getSheetId === void 0 ? void 0 : getSheetId(sheetName)) !== null && _c !== void 0 ? _c : sheetId
|
|
31
63
|
: sheetId;
|
|
32
64
|
try {
|
|
33
|
-
for (var _e = (
|
|
65
|
+
for (var _e = (e_3 = void 0, tslib_1.__values((0, utils_1.iterateCells)(startRowIndex, endColumnIndex, endRowIndex, startColumnIndex))), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
34
66
|
var _g = tslib_1.__read(_f.value, 2), rowIndex = _g[0], columnIndex = _g[1];
|
|
35
67
|
var userEnteredValue = callback(selectedSheetId, rowIndex, columnIndex);
|
|
36
68
|
if (userEnteredValue) {
|
|
@@ -40,21 +72,21 @@ var useGetValuesFromRange = function (_a) {
|
|
|
40
72
|
}
|
|
41
73
|
}
|
|
42
74
|
}
|
|
43
|
-
catch (
|
|
75
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
44
76
|
finally {
|
|
45
77
|
try {
|
|
46
78
|
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
47
79
|
}
|
|
48
|
-
finally { if (
|
|
80
|
+
finally { if (e_3) throw e_3.error; }
|
|
49
81
|
}
|
|
50
82
|
}
|
|
51
83
|
}
|
|
52
|
-
catch (
|
|
84
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
53
85
|
finally {
|
|
54
86
|
try {
|
|
55
87
|
if (selections_1_1 && !selections_1_1.done && (_a = selections_1.return)) _a.call(selections_1);
|
|
56
88
|
}
|
|
57
|
-
finally { if (
|
|
89
|
+
finally { if (e_2) throw e_2.error; }
|
|
58
90
|
}
|
|
59
91
|
return userEnteredValues;
|
|
60
92
|
}, [getSelectionsFromFormula, getSheetId, sheetId]);
|
|
@@ -67,38 +99,58 @@ var useGetValuesFromRange = function (_a) {
|
|
|
67
99
|
var getEffectiveValuesFromRange = (0, use_callback_ref_1.useCallbackRef)((0, react_1.useCallback)(function (address) {
|
|
68
100
|
return tslib_1.__spreadArray([], tslib_1.__read(getValuesFromRange(address, getValidationValue).values()), false);
|
|
69
101
|
}, [getValidationValue, getValuesFromRange]));
|
|
102
|
+
/**
|
|
103
|
+
* The options a list (`ONE_OF_RANGE`) source denotes at a cell — the dropdown's items and
|
|
104
|
+
* the commit gate's accept list. A plain or sheet-qualified range, a range-type name and a
|
|
105
|
+
* structured reference resolve locally from the tokenizer's selections (off-window-safe
|
|
106
|
+
* through `readSourceValue`). Anything else — a formula-valued name (`=RegionList` defined
|
|
107
|
+
* as `=Table1[Region]` / `=OFFSET(…,COUNTA(…),1)`), any function call, a source the
|
|
108
|
+
* tokenizer found nothing in — goes through the engine resolver when the host supplies
|
|
109
|
+
* one; the legacy calculator previews its reference/array functions as an array; the
|
|
110
|
+
* tokenizer's selections are the last resort. An empty list means "nothing resolvable".
|
|
111
|
+
*/
|
|
70
112
|
var getFormattedValuesFromRangeAsync = (0, use_callback_ref_1.useCallbackRef)((0, react_1.useCallback)(function (address_1, rowIndex_1, columnIndex_1) {
|
|
71
113
|
var args_1 = [];
|
|
72
114
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
73
115
|
args_1[_i - 3] = arguments[_i];
|
|
74
116
|
}
|
|
75
117
|
return tslib_1.__awaiter(void 0, tslib_1.__spreadArray([address_1, rowIndex_1, columnIndex_1], tslib_1.__read(args_1), false), void 0, function (address, rowIndex, columnIndex, targetSheetId) {
|
|
76
|
-
var trimmedAddress, isFormula, formulaBody, hasDirectReference,
|
|
77
|
-
var
|
|
78
|
-
var _d;
|
|
118
|
+
var trimmedAddress, isFormula, formulaBody, hasDirectReference, isFunctionCall, selections, texts, result, userEnteredValues_1, pushValue_1;
|
|
119
|
+
var _a;
|
|
79
120
|
if (targetSheetId === void 0) { targetSheetId = sheetId; }
|
|
80
|
-
return tslib_1.__generator(this, function (
|
|
81
|
-
switch (
|
|
121
|
+
return tslib_1.__generator(this, function (_b) {
|
|
122
|
+
switch (_b.label) {
|
|
82
123
|
case 0:
|
|
83
|
-
trimmedAddress = (
|
|
124
|
+
trimmedAddress = (_a = address === null || address === void 0 ? void 0 : address.trim()) !== null && _a !== void 0 ? _a : "";
|
|
125
|
+
if (!trimmedAddress) {
|
|
126
|
+
return [2 /*return*/, []];
|
|
127
|
+
}
|
|
84
128
|
isFormula = trimmedAddress.startsWith("=");
|
|
85
129
|
formulaBody = isFormula ? trimmedAddress.slice(1) : trimmedAddress;
|
|
86
130
|
hasDirectReference = (0, utils_1.checkIfStringIsReference)(formulaBody);
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
return [2 /*return*/, []];
|
|
131
|
+
isFunctionCall = FUNCTION_CALL.test(formulaBody);
|
|
132
|
+
selections = hasDirectReference
|
|
133
|
+
? []
|
|
134
|
+
: getSelectionsFromFormula(address);
|
|
135
|
+
if (hasDirectReference || (selections.length && !isFunctionCall)) {
|
|
136
|
+
return [2 /*return*/, tslib_1.__spreadArray([], tslib_1.__read(getValuesFromRange(address, readSourceValue).values()), false)];
|
|
95
137
|
}
|
|
96
|
-
return [
|
|
138
|
+
if (!resolveValidationSourceValues) return [3 /*break*/, 2];
|
|
139
|
+
return [4 /*yield*/, resolveValidationSourceValues(trimmedAddress, targetSheetId, rowIndex, columnIndex)];
|
|
97
140
|
case 1:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
141
|
+
texts = _b.sent();
|
|
142
|
+
if (texts) {
|
|
143
|
+
return [2 /*return*/, conditionValuesFromTexts(texts)];
|
|
144
|
+
}
|
|
145
|
+
_b.label = 2;
|
|
146
|
+
case 2:
|
|
147
|
+
if (!(onRequestCalculate && isFormula && LEGACY_CALC_SOURCE.test(formulaBody))) return [3 /*break*/, 4];
|
|
148
|
+
return [4 /*yield*/, onRequestCalculate(trimmedAddress, targetSheetId, rowIndex, columnIndex, { isArray: true, disablePreview: true })];
|
|
149
|
+
case 3:
|
|
150
|
+
result = _b.sent();
|
|
151
|
+
userEnteredValues_1 = new Map();
|
|
152
|
+
pushValue_1 = function (value) {
|
|
153
|
+
var e_4, _a;
|
|
102
154
|
if (value === null || value === undefined) {
|
|
103
155
|
return;
|
|
104
156
|
}
|
|
@@ -106,15 +158,15 @@ var useGetValuesFromRange = function (_a) {
|
|
|
106
158
|
try {
|
|
107
159
|
for (var value_1 = tslib_1.__values(value), value_1_1 = value_1.next(); !value_1_1.done; value_1_1 = value_1.next()) {
|
|
108
160
|
var entry = value_1_1.value;
|
|
109
|
-
|
|
161
|
+
pushValue_1(entry);
|
|
110
162
|
}
|
|
111
163
|
}
|
|
112
|
-
catch (
|
|
164
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
113
165
|
finally {
|
|
114
166
|
try {
|
|
115
167
|
if (value_1_1 && !value_1_1.done && (_a = value_1.return)) _a.call(value_1);
|
|
116
168
|
}
|
|
117
|
-
finally { if (
|
|
169
|
+
finally { if (e_4) throw e_4.error; }
|
|
118
170
|
}
|
|
119
171
|
return;
|
|
120
172
|
}
|
|
@@ -125,56 +177,15 @@ var useGetValuesFromRange = function (_a) {
|
|
|
125
177
|
? "TRUE"
|
|
126
178
|
: "FALSE"
|
|
127
179
|
: String(value);
|
|
128
|
-
|
|
180
|
+
userEnteredValues_1.set(userEnteredValue, { userEnteredValue: userEnteredValue });
|
|
129
181
|
};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
try {
|
|
136
|
-
for (row_1 = (e_4 = void 0, tslib_1.__values(row)), row_1_1 = row_1.next(); !row_1_1.done; row_1_1 = row_1.next()) {
|
|
137
|
-
entry = row_1_1.value;
|
|
138
|
-
pushValue(entry);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
142
|
-
finally {
|
|
143
|
-
try {
|
|
144
|
-
if (row_1_1 && !row_1_1.done && (_b = row_1.return)) _b.call(row_1);
|
|
145
|
-
}
|
|
146
|
-
finally { if (e_4) throw e_4.error; }
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
151
|
-
finally {
|
|
152
|
-
try {
|
|
153
|
-
if (result_1_1 && !result_1_1.done && (_a = result_1.return)) _a.call(result_1);
|
|
154
|
-
}
|
|
155
|
-
finally { if (e_3) throw e_3.error; }
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
try {
|
|
160
|
-
for (result_2 = tslib_1.__values(result), result_2_1 = result_2.next(); !result_2_1.done; result_2_1 = result_2.next()) {
|
|
161
|
-
entry = result_2_1.value;
|
|
162
|
-
pushValue(entry);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
166
|
-
finally {
|
|
167
|
-
try {
|
|
168
|
-
if (result_2_1 && !result_2_1.done && (_c = result_2.return)) _c.call(result_2);
|
|
169
|
-
}
|
|
170
|
-
finally { if (e_5) throw e_5.error; }
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
pushValue(result);
|
|
182
|
+
pushValue_1(result);
|
|
183
|
+
return [2 /*return*/, tslib_1.__spreadArray([], tslib_1.__read(userEnteredValues_1.values()), false)];
|
|
184
|
+
case 4:
|
|
185
|
+
if (selections.length) {
|
|
186
|
+
return [2 /*return*/, tslib_1.__spreadArray([], tslib_1.__read(getValuesFromRange(address, readSourceValue).values()), false)];
|
|
176
187
|
}
|
|
177
|
-
return [2 /*return*/,
|
|
188
|
+
return [2 /*return*/, []];
|
|
178
189
|
}
|
|
179
190
|
});
|
|
180
191
|
});
|
|
@@ -183,6 +194,7 @@ var useGetValuesFromRange = function (_a) {
|
|
|
183
194
|
getSelectionsFromFormula,
|
|
184
195
|
getValuesFromRange,
|
|
185
196
|
onRequestCalculate,
|
|
197
|
+
resolveValidationSourceValues,
|
|
186
198
|
sheetId,
|
|
187
199
|
]));
|
|
188
200
|
return [
|
|
@@ -11,12 +11,12 @@ export declare const useOnStructuredReferenceSelection: ({ tables, getSheetName,
|
|
|
11
11
|
endColumnIndex: number;
|
|
12
12
|
startRowIndex: number;
|
|
13
13
|
endRowIndex: number;
|
|
14
|
+
sheetId: number;
|
|
14
15
|
} | {
|
|
15
16
|
startColumnIndex: number;
|
|
16
17
|
endColumnIndex: number;
|
|
17
18
|
startRowIndex: number;
|
|
18
19
|
endRowIndex: number;
|
|
19
|
-
sheetId: number;
|
|
20
20
|
};
|
|
21
21
|
sheetName: string | undefined;
|
|
22
22
|
} | undefined;
|
package/dist/cjs/release-date.js
CHANGED
|
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.releaseDate = void 0;
|
|
5
5
|
exports.releaseDate =
|
|
6
6
|
// @ts-ignore
|
|
7
|
-
(_a = new Date("2026-10-
|
|
7
|
+
(_a = new Date("2026-10-29")) !== null && _a !== void 0 ? _a : new Date("2025-06-18");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../../config.ts","../../helpers.ts","../../index.tsx","../../platform.ts","../../release-date.ts","../../test-setup.ts","../../themes.ts","../../types.ts","../../vitest.config.ts","../../api/animate.ts","../../api/banded-ranges.ts","../../api/calculated-column-fill.ts","../../api/cf-engine.ts","../../api/cf-overlays.ts","../../api/cf-window.ts","../../api/chart-sheet.ts","../../api/chart-source-ranges.ts","../../api/colors.ts","../../api/copy-paste.ts","../../api/evaluate-formula.ts","../../api/excel-validation-kinds.ts","../../api/fill-patterns.ts","../../api/fill-series.ts","../../api/font-loader.ts","../../api/go-to-special.ts","../../api/go-to.ts","../../api/heatmap.ts","../../api/insert-options.ts","../../api/move-overwrite.ts","../../api/multi-selection.ts","../../api/scheduler.ts","../../api/scroller.ts","../../api/selections.ts","../../api/spreadsheet-api.ts","../../api/table-auto-expansion.ts","../../api/table.ts","../../api/validation-tooltip.tsx","../../api/validation.ts","../../atoms/active-editor.atom.ts","../../atoms/advanced-filter-dialog.atom.ts","../../atoms/calculated-column-fill.atom.ts","../../atoms/cell-input-context.atom.ts","../../atoms/chart-actions.atom.ts","../../atoms/editing-cell.atom.ts","../../atoms/evaluate-formula-dialog.atom.ts","../../atoms/fill-options.atom.ts","../../atoms/fill-series-dialog.atom.ts","../../atoms/formula-bar-editor-value.atom.ts","../../atoms/formula-mode.atom.ts","../../atoms/formula-selection-state.atom.ts","../../atoms/formula-selections.atom.ts","../../atoms/go-to-dialog.atom.ts","../../atoms/goal-seek-dialog.atom.ts","../../atoms/index.ts","../../atoms/insert-cells-dialog.atom.ts","../../atoms/insert-options.atom.ts","../../atoms/loading-indicator.atom.ts","../../atoms/magic-fill-state.atom.ts","../../atoms/move-chart-dialog.atom.ts","../../atoms/move-overwrite-confirm.atom.ts","../../atoms/paste-menu.atom.ts","../../atoms/paste-special-dialog.atom.ts","../../atoms/persistent-tooltip.atom.ts","../../atoms/popover.atom.ts","../../atoms/range-selector.atom.ts","../../atoms/remove-duplicates-dialog.atom.ts","../../atoms/selected-chart-embed.atom.ts","../../atoms/selected-chart-series.atom.ts","../../atoms/sheet-context.atom.ts","../../atoms/sheet-status-display.atom.ts","../../atoms/show-formula-help.atom.ts","../../atoms/sort-dialog.atom.ts","../../atoms/sparkline-dialog.atom.ts","../../atoms/spreadsheet-api.atom.ts","../../atoms/subtotal-dialog.atom.ts","../../atoms/table-auto-expansion.atom.ts","../../atoms/text-to-columns-dialog.atom.ts","../../atoms/validation-alert.atom.ts","../../atoms/watch-window.atom.ts","../../components/advanced-filter-dialog/index.tsx","../../components/bottom-bar/index.tsx","../../components/calculated-column-smart-tag/index.tsx","../../components/calculation-options-dialog/index.tsx","../../components/canvas-grid/helpers.ts","../../components/canvas-grid/index.tsx","../../components/canvas-grid/typings.ts","../../components/cell/alignment.ts","../../components/cell/cell-background.tsx","../../components/cell/cell-text-runs.tsx","../../components/cell/helpers.ts","../../components/cell/index.tsx","../../components/cell/line-height.ts","../../components/cell/rich-text.ts","../../components/cell/typings.ts","../../components/cell-arrow/index.tsx","../../components/cell-calculated/index.tsx","../../components/cell-checkbox/index.tsx","../../components/cell-diff/index.tsx","../../components/cell-editor/calendar-popup.tsx","../../components/cell-editor/formula-result-preview.tsx","../../components/cell-editor/helpers.ts","../../components/cell-editor/index.tsx","../../components/cell-editor/style.tsx","../../components/cell-error/index.tsx","../../components/cell-expand/index.tsx","../../components/cell-filter/index.tsx","../../components/cell-group/index.tsx","../../components/cell-input/cell-input.tsx","../../components/cell-input/formula-bar-cell-input.tsx","../../components/cell-input/index.tsx","../../components/cell-input/style.tsx","../../components/cell-overlay/index.tsx","../../components/cell-structured/index.tsx","../../components/cell-structured/sparkline-math.ts","../../components/cell-structured/sparkline.tsx","../../components/cell-structured/types.ts","../../components/cell-tooltip/index.tsx","../../components/cell-tooltip/note-editor.tsx","../../components/cell-tooltip/style.tsx","../../components/chart-sheet-view/index.tsx","../../components/context-menu/embed-context-menu.tsx","../../components/context-menu/index.tsx","../../components/context-menu/menu.tsx","../../components/context-menu/style.tsx","../../components/context-menu/total-row-function-menu.tsx","../../components/context-menu/total-row-functions.ts","../../components/embeds/chart-component.tsx","../../components/embeds/embed-component.tsx","../../components/embeds/embed-draggable.tsx","../../components/embeds/index.tsx","../../components/embeds/shape-geometry.ts","../../components/embeds/shape-svg.tsx","../../components/embeds/slicer-component.tsx","../../components/evaluate-formula-dialog/index.tsx","../../components/fill-handle/index.tsx","../../components/fill-series-dialog/index.tsx","../../components/filter-box/date-tree.ts","../../components/filter-box/filter-by-color.tsx","../../components/filter-box/filter-by-condition.tsx","../../components/filter-box/filter-by-value.tsx","../../components/filter-box/index.tsx","../../components/floating-cell-editor/index.tsx","../../components/formula-bar/index.tsx","../../components/formula-bar/style.tsx","../../components/formula-input/index.tsx","../../components/go-to-dialog/index.tsx","../../components/goal-seek-dialog/index.tsx","../../components/grid-footer/index.tsx","../../components/header-cell/index.tsx","../../components/header-menu/index.tsx","../../components/header-move/index.tsx","../../components/header-resizer/index.tsx","../../components/hidden-markers/index.tsx","../../components/hidden-markers/style.tsx","../../components/insert-cells-dialog/index.tsx","../../components/insert-function-dialog/index.tsx","../../components/insert-options-smart-tag/index.tsx","../../components/loading-indicator/index.tsx","../../components/move-chart-dialog/index.tsx","../../components/move-overwrite-confirm-dialog/index.tsx","../../components/outline-gutter/index.tsx","../../components/paste-special-dialog/index.tsx","../../components/pivot-placeholder/index.tsx","../../components/print-preview/cell-styles.ts","../../components/print-preview/index.ts","../../components/print-preview/page-block.tsx","../../components/print-preview/print-preview-dialog.tsx","../../components/print-preview/run-print.ts","../../components/print-preview/settings.ts","../../components/print-preview/use-page-layout.ts","../../components/range-selector/index.tsx","../../components/remove-duplicates-dialog/index.tsx","../../components/resizer/index.tsx","../../components/selection/avatar.tsx","../../components/selection/fill-options-menu.tsx","../../components/selection/index.tsx","../../components/selection/magic-fill.tsx","../../components/selection/paste-menu.tsx","../../components/selection/quick-edit.tsx","../../components/selection/style.tsx","../../components/selection/suggestion-action.tsx","../../components/selection/title.tsx","../../components/selection/types.ts","../../components/selection-input/index.tsx","../../components/selection-input/style.tsx","../../components/sheet-search/index.tsx","../../components/sheet-status/index.tsx","../../components/sheet-status/style.tsx","../../components/sheet-switcher/index.tsx","../../components/sheet-switcher/new-sheet-button.tsx","../../components/sheet-tabs/context-menu.tsx","../../components/sheet-tabs/index.tsx","../../components/sheet-tabs/sheet-tab.tsx","../../components/sheet-tabs/style.tsx","../../components/sheet-tabs/types.ts","../../components/sort-range-dialog/index.tsx","../../components/sparkline-dialog/index.tsx","../../components/subtotal-dialog/index.tsx","../../components/table-auto-expansion-smart-tag/index.tsx","../../components/text-to-columns-dialog/index.tsx","../../components/toolbar/background-color-selector.tsx","../../components/toolbar/border-color-selector.tsx","../../components/toolbar/border-line-style-options.tsx","../../components/toolbar/border-line-style-selector.tsx","../../components/toolbar/border-location-options.tsx","../../components/toolbar/border-selector.tsx","../../components/toolbar/buttons.tsx","../../components/toolbar/cell-style-selector.tsx","../../components/toolbar/color-selector.tsx","../../components/toolbar/fill-selectors.tsx","../../components/toolbar/font-family-selector.tsx","../../components/toolbar/font-size-selector.tsx","../../components/toolbar/index.tsx","../../components/toolbar/insert-menu.tsx","../../components/toolbar/merge-cells-selector.tsx","../../components/toolbar/scale-selector.tsx","../../components/toolbar/sparkline-actions.tsx","../../components/toolbar/style.tsx","../../components/toolbar/table-actions.tsx","../../components/toolbar/table-style-editor.tsx","../../components/toolbar/table-style-selector.tsx","../../components/toolbar/text-color-selector.tsx","../../components/toolbar/text-format-selector.tsx","../../components/toolbar/text-horizontal-align-selector.tsx","../../components/toolbar/text-rotation-selector.tsx","../../components/toolbar/text-vertical-align-selector.tsx","../../components/toolbar/text-wrap-selector.tsx","../../components/toolbar/theme-selector.tsx","../../components/toolbar/toolbar.tsx","../../components/toolbar/types.ts","../../components/toolbar/view-menu.tsx","../../components/validation-alert-dialog/index.tsx","../../components/watch-window/index.tsx","../../helpers/merged-cell-borders.ts","../../hooks/export-range-tiles.ts","../../hooks/index.ts","../../hooks/show-zeros.ts","../../hooks/use-async.ts","../../hooks/use-border-styles.ts","../../hooks/use-callback-ref.ts","../../hooks/use-cell-diff-highlight.ts","../../hooks/use-cell-popover.tsx","../../hooks/use-cell-renderer.tsx","../../hooks/use-chart-clipboard.ts","../../hooks/use-chart-source-ranges.ts","../../hooks/use-column-color-icons.ts","../../hooks/use-conditional-formatting.ts","../../hooks/use-context-menu.tsx","../../hooks/use-context-setter.ts","../../hooks/use-copy-paste-cut.tsx","../../hooks/use-create-address-from-selection.ts","../../hooks/use-create-formula-tokenizer.ts","../../hooks/use-delayed-value.ts","../../hooks/use-editable.tsx","../../hooks/use-editor-cancel.ts","../../hooks/use-editor-change.ts","../../hooks/use-editor-keydown.ts","../../hooks/use-editor-submit.ts","../../hooks/use-embeds-charts.tsx","../../hooks/use-expand-cell.tsx","../../hooks/use-export-range.ts","../../hooks/use-filter.ts","../../hooks/use-flash.ts","../../hooks/use-fonts.ts","../../hooks/use-formula-range-helpers.ts","../../hooks/use-get-tooltip.tsx","../../hooks/use-get-values-from-range.ts","../../hooks/use-grid-children.tsx","../../hooks/use-header-actions.tsx","../../hooks/use-hidden-dimension-markers.tsx","../../hooks/use-hidden-dimensions.ts","../../hooks/use-hovered-selection-ids.ts","../../hooks/use-isomorphic-layout-effect.ts","../../hooks/use-keyboard-handler.tsx","../../hooks/use-licensekey-validator.tsx","../../hooks/use-memo-compare.ts","../../hooks/use-merge.refs.ts","../../hooks/use-move-columns-rows.tsx","../../hooks/use-navigate-sheet-range.ts","../../hooks/use-previous.ts","../../hooks/use-raf.ts","../../hooks/use-resize-observer.ts","../../hooks/use-reveal-chart-embed.ts","../../hooks/use-scale-listener.ts","../../hooks/use-selected-rows-columns.ts","../../hooks/use-selection-aware-formatting.ts","../../hooks/use-selection-change.ts","../../hooks/use-selection-interceptors.ts","../../hooks/use-selection-move.ts","../../hooks/use-selection-renderer.tsx","../../hooks/use-selection-resize.ts","../../hooks/use-selection.ts","../../hooks/use-sheet-change-handler.ts","../../hooks/use-sizer.ts","../../hooks/use-spreadsheet-theme.ts","../../hooks/use-stable-ref.ts","../../hooks/use-structured-reference-selection.ts","../../hooks/use-table-hit-zones.ts","../../hooks/use-table-resizer.tsx","../../hooks/use-text-dimensions.ts","../../hooks/use-tooltip.ts","../../hooks/use-touch.ts","../../providers/spreadsheet-provider.tsx","../../signals/scroll-subscriber.ts","../../utils/copy-as-picture.ts","../../utils/maybe.ts","../../utils/pivot-chart-field-buttons.ts","../../utils/z-order.ts"],"version":"5.8.3"}
|
|
1
|
+
{"root":["../../config.ts","../../helpers.ts","../../index.tsx","../../platform.ts","../../release-date.ts","../../test-setup.ts","../../themes.ts","../../types.ts","../../vitest.config.ts","../../api/animate.ts","../../api/banded-ranges.ts","../../api/calculated-column-fill.ts","../../api/cf-engine.ts","../../api/cf-overlays.ts","../../api/cf-window.ts","../../api/chart-sheet.ts","../../api/chart-source-ranges.ts","../../api/colors.ts","../../api/copy-paste.ts","../../api/evaluate-formula.ts","../../api/excel-validation-kinds.ts","../../api/fill-patterns.ts","../../api/fill-series.ts","../../api/font-loader.ts","../../api/go-to-special.ts","../../api/go-to.ts","../../api/heatmap.ts","../../api/insert-options.ts","../../api/move-overwrite.ts","../../api/multi-selection.ts","../../api/scheduler.ts","../../api/scroller.ts","../../api/selections.ts","../../api/spreadsheet-api.ts","../../api/table-auto-expansion.ts","../../api/table.ts","../../api/validation-tooltip.tsx","../../api/validation.ts","../../atoms/active-editor.atom.ts","../../atoms/advanced-filter-dialog.atom.ts","../../atoms/calculated-column-fill.atom.ts","../../atoms/cell-input-context.atom.ts","../../atoms/chart-actions.atom.ts","../../atoms/editing-cell.atom.ts","../../atoms/evaluate-formula-dialog.atom.ts","../../atoms/fill-options.atom.ts","../../atoms/fill-series-dialog.atom.ts","../../atoms/formula-bar-editor-value.atom.ts","../../atoms/formula-mode.atom.ts","../../atoms/formula-selection-state.atom.ts","../../atoms/formula-selections.atom.ts","../../atoms/go-to-dialog.atom.ts","../../atoms/goal-seek-dialog.atom.ts","../../atoms/index.ts","../../atoms/insert-cells-dialog.atom.ts","../../atoms/insert-options.atom.ts","../../atoms/loading-indicator.atom.ts","../../atoms/magic-fill-state.atom.ts","../../atoms/move-chart-dialog.atom.ts","../../atoms/move-overwrite-confirm.atom.ts","../../atoms/paste-menu.atom.ts","../../atoms/paste-special-dialog.atom.ts","../../atoms/persistent-tooltip.atom.ts","../../atoms/popover.atom.ts","../../atoms/range-selector.atom.ts","../../atoms/remove-duplicates-dialog.atom.ts","../../atoms/selected-chart-embed.atom.ts","../../atoms/selected-chart-series.atom.ts","../../atoms/sheet-context.atom.ts","../../atoms/sheet-status-display.atom.ts","../../atoms/show-formula-help.atom.ts","../../atoms/sort-dialog.atom.ts","../../atoms/sparkline-dialog.atom.ts","../../atoms/spreadsheet-api.atom.ts","../../atoms/subtotal-dialog.atom.ts","../../atoms/table-auto-expansion.atom.ts","../../atoms/text-to-columns-dialog.atom.ts","../../atoms/validation-alert.atom.ts","../../atoms/watch-window.atom.ts","../../components/advanced-filter-dialog/index.tsx","../../components/bottom-bar/index.tsx","../../components/calculated-column-smart-tag/index.tsx","../../components/calculation-options-dialog/index.tsx","../../components/canvas-grid/helpers.ts","../../components/canvas-grid/index.tsx","../../components/canvas-grid/typings.ts","../../components/cell/alignment.ts","../../components/cell/cell-background.tsx","../../components/cell/cell-backgrounds.tsx","../../components/cell/cell-text-runs.tsx","../../components/cell/helpers.ts","../../components/cell/index.tsx","../../components/cell/line-height.ts","../../components/cell/rich-text.ts","../../components/cell/typings.ts","../../components/cell-arrow/index.tsx","../../components/cell-calculated/index.tsx","../../components/cell-checkbox/index.tsx","../../components/cell-diff/index.tsx","../../components/cell-editor/calendar-popup.tsx","../../components/cell-editor/formula-result-preview.tsx","../../components/cell-editor/helpers.ts","../../components/cell-editor/index.tsx","../../components/cell-editor/style.tsx","../../components/cell-error/index.tsx","../../components/cell-expand/index.tsx","../../components/cell-filter/index.tsx","../../components/cell-group/index.tsx","../../components/cell-input/cell-input.tsx","../../components/cell-input/formula-bar-cell-input.tsx","../../components/cell-input/index.tsx","../../components/cell-input/style.tsx","../../components/cell-overlay/index.tsx","../../components/cell-structured/index.tsx","../../components/cell-structured/sparkline-math.ts","../../components/cell-structured/sparkline.tsx","../../components/cell-structured/types.ts","../../components/cell-tooltip/index.tsx","../../components/cell-tooltip/note-editor.tsx","../../components/cell-tooltip/style.tsx","../../components/chart-sheet-view/index.tsx","../../components/context-menu/embed-context-menu.tsx","../../components/context-menu/index.tsx","../../components/context-menu/menu.tsx","../../components/context-menu/style.tsx","../../components/context-menu/total-row-function-menu.tsx","../../components/context-menu/total-row-functions.ts","../../components/embeds/chart-component.tsx","../../components/embeds/embed-component.tsx","../../components/embeds/embed-draggable.tsx","../../components/embeds/index.tsx","../../components/embeds/shape-geometry.ts","../../components/embeds/shape-svg.tsx","../../components/embeds/slicer-component.tsx","../../components/evaluate-formula-dialog/index.tsx","../../components/fill-handle/index.tsx","../../components/fill-series-dialog/index.tsx","../../components/filter-box/date-tree.ts","../../components/filter-box/filter-by-color.tsx","../../components/filter-box/filter-by-condition.tsx","../../components/filter-box/filter-by-value.tsx","../../components/filter-box/index.tsx","../../components/floating-cell-editor/index.tsx","../../components/formula-bar/index.tsx","../../components/formula-bar/style.tsx","../../components/formula-input/index.tsx","../../components/go-to-dialog/index.tsx","../../components/goal-seek-dialog/index.tsx","../../components/grid-footer/index.tsx","../../components/header-cell/index.tsx","../../components/header-menu/index.tsx","../../components/header-move/index.tsx","../../components/header-resizer/index.tsx","../../components/hidden-markers/index.tsx","../../components/hidden-markers/style.tsx","../../components/insert-cells-dialog/index.tsx","../../components/insert-function-dialog/index.tsx","../../components/insert-options-smart-tag/index.tsx","../../components/loading-indicator/index.tsx","../../components/move-chart-dialog/index.tsx","../../components/move-overwrite-confirm-dialog/index.tsx","../../components/outline-gutter/index.tsx","../../components/paste-special-dialog/index.tsx","../../components/pivot-placeholder/index.tsx","../../components/print-preview/cell-styles.ts","../../components/print-preview/index.ts","../../components/print-preview/page-block.tsx","../../components/print-preview/print-preview-dialog.tsx","../../components/print-preview/run-print.ts","../../components/print-preview/settings.ts","../../components/print-preview/use-page-layout.ts","../../components/range-selector/index.tsx","../../components/remove-duplicates-dialog/index.tsx","../../components/resizer/index.tsx","../../components/selection/avatar.tsx","../../components/selection/fill-options-menu.tsx","../../components/selection/index.tsx","../../components/selection/magic-fill.tsx","../../components/selection/paste-menu.tsx","../../components/selection/quick-edit.tsx","../../components/selection/style.tsx","../../components/selection/suggestion-action.tsx","../../components/selection/title.tsx","../../components/selection/types.ts","../../components/selection-input/index.tsx","../../components/selection-input/style.tsx","../../components/sheet-search/index.tsx","../../components/sheet-status/index.tsx","../../components/sheet-status/style.tsx","../../components/sheet-switcher/index.tsx","../../components/sheet-switcher/new-sheet-button.tsx","../../components/sheet-tabs/context-menu.tsx","../../components/sheet-tabs/index.tsx","../../components/sheet-tabs/sheet-tab.tsx","../../components/sheet-tabs/style.tsx","../../components/sheet-tabs/types.ts","../../components/sort-range-dialog/index.tsx","../../components/sparkline-dialog/index.tsx","../../components/subtotal-dialog/index.tsx","../../components/table-auto-expansion-smart-tag/index.tsx","../../components/text-to-columns-dialog/index.tsx","../../components/toolbar/background-color-selector.tsx","../../components/toolbar/border-color-selector.tsx","../../components/toolbar/border-line-style-options.tsx","../../components/toolbar/border-line-style-selector.tsx","../../components/toolbar/border-location-options.tsx","../../components/toolbar/border-selector.tsx","../../components/toolbar/buttons.tsx","../../components/toolbar/cell-style-selector.tsx","../../components/toolbar/color-selector.tsx","../../components/toolbar/fill-selectors.tsx","../../components/toolbar/font-family-selector.tsx","../../components/toolbar/font-size-selector.tsx","../../components/toolbar/index.tsx","../../components/toolbar/insert-menu.tsx","../../components/toolbar/merge-cells-selector.tsx","../../components/toolbar/scale-selector.tsx","../../components/toolbar/sparkline-actions.tsx","../../components/toolbar/style.tsx","../../components/toolbar/table-actions.tsx","../../components/toolbar/table-style-editor.tsx","../../components/toolbar/table-style-selector.tsx","../../components/toolbar/text-color-selector.tsx","../../components/toolbar/text-format-selector.tsx","../../components/toolbar/text-horizontal-align-selector.tsx","../../components/toolbar/text-rotation-selector.tsx","../../components/toolbar/text-vertical-align-selector.tsx","../../components/toolbar/text-wrap-selector.tsx","../../components/toolbar/theme-selector.tsx","../../components/toolbar/toolbar.tsx","../../components/toolbar/types.ts","../../components/toolbar/view-menu.tsx","../../components/validation-alert-dialog/index.tsx","../../components/watch-window/index.tsx","../../helpers/merged-cell-borders.ts","../../hooks/export-range-tiles.ts","../../hooks/index.ts","../../hooks/show-zeros.ts","../../hooks/use-async.ts","../../hooks/use-border-styles.ts","../../hooks/use-callback-ref.ts","../../hooks/use-cell-diff-highlight.ts","../../hooks/use-cell-popover.tsx","../../hooks/use-cell-renderer.tsx","../../hooks/use-chart-clipboard.ts","../../hooks/use-chart-source-ranges.ts","../../hooks/use-column-color-icons.ts","../../hooks/use-conditional-formatting.ts","../../hooks/use-context-menu.tsx","../../hooks/use-context-setter.ts","../../hooks/use-copy-paste-cut.tsx","../../hooks/use-create-address-from-selection.ts","../../hooks/use-create-formula-tokenizer.ts","../../hooks/use-delayed-value.ts","../../hooks/use-editable.tsx","../../hooks/use-editor-cancel.ts","../../hooks/use-editor-change.ts","../../hooks/use-editor-keydown.ts","../../hooks/use-editor-submit.ts","../../hooks/use-embeds-charts.tsx","../../hooks/use-expand-cell.tsx","../../hooks/use-export-range.ts","../../hooks/use-filter.ts","../../hooks/use-flash.ts","../../hooks/use-fonts.ts","../../hooks/use-formula-range-helpers.ts","../../hooks/use-get-tooltip.tsx","../../hooks/use-get-values-from-range.ts","../../hooks/use-grid-children.tsx","../../hooks/use-header-actions.tsx","../../hooks/use-hidden-dimension-markers.tsx","../../hooks/use-hidden-dimensions.ts","../../hooks/use-hovered-selection-ids.ts","../../hooks/use-isomorphic-layout-effect.ts","../../hooks/use-keyboard-handler.tsx","../../hooks/use-licensekey-validator.tsx","../../hooks/use-memo-compare.ts","../../hooks/use-merge.refs.ts","../../hooks/use-move-columns-rows.tsx","../../hooks/use-navigate-sheet-range.ts","../../hooks/use-previous.ts","../../hooks/use-raf.ts","../../hooks/use-resize-observer.ts","../../hooks/use-reveal-chart-embed.ts","../../hooks/use-scale-listener.ts","../../hooks/use-selected-rows-columns.ts","../../hooks/use-selection-aware-formatting.ts","../../hooks/use-selection-change.ts","../../hooks/use-selection-interceptors.ts","../../hooks/use-selection-move.ts","../../hooks/use-selection-renderer.tsx","../../hooks/use-selection-resize.ts","../../hooks/use-selection.ts","../../hooks/use-sheet-change-handler.ts","../../hooks/use-sizer.ts","../../hooks/use-spreadsheet-theme.ts","../../hooks/use-stable-ref.ts","../../hooks/use-structured-reference-selection.ts","../../hooks/use-table-hit-zones.ts","../../hooks/use-table-resizer.tsx","../../hooks/use-text-dimensions.ts","../../hooks/use-tooltip.ts","../../hooks/use-touch.ts","../../providers/spreadsheet-provider.tsx","../../signals/scroll-subscriber.ts","../../utils/copy-as-picture.ts","../../utils/maybe.ts","../../utils/pivot-chart-field-buttons.ts","../../utils/z-order.ts"],"version":"5.8.3"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/canvas-grid/index.tsx"],"names":[],"mappings":"AAoDA,OAAO,KASN,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/canvas-grid/index.tsx"],"names":[],"mappings":"AAoDA,OAAO,KASN,MAAM,OAAO,CAAC;AAwNf,OAAO,KAAK,EAGV,QAAQ,EAWT,MAAM,aAAa,CAAC;AAoBrB,OAAO,KAAK,EACV,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EAEhB,MAAM,WAAW,CAAC;AAkiMnB,eAAO,MAAM,UAAU,EAA4C,CACjE,CAAC,SAAS,QAAQ,CAAC,GAAG,CAAC,EAEvB,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,GACvB,wBAAwB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAAE,KAChE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC"}
|