@rowsncolumns/spreadsheet 10.19.4 → 10.19.6
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/entry-selections.d.ts +6 -0
- package/dist/cjs/api/entry-selections.d.ts.map +1 -1
- package/dist/cjs/api/entry-selections.js +11 -1
- package/dist/cjs/atoms/cell-input-context.atom.d.ts.map +1 -1
- package/dist/cjs/components/advanced-filter-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/advanced-filter-dialog/index.js +6 -6
- package/dist/cjs/components/calculation-options-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/calculation-options-dialog/index.js +3 -3
- package/dist/cjs/components/canvas-grid/index.d.ts.map +1 -1
- package/dist/cjs/components/canvas-grid/index.js +65 -17
- package/dist/cjs/components/canvas-grid/typings.d.ts +12 -0
- package/dist/cjs/components/canvas-grid/typings.d.ts.map +1 -1
- package/dist/cjs/components/cell-input/formula-bar-cell-input.d.ts.map +1 -1
- package/dist/cjs/components/cell-input/formula-bar-cell-input.js +8 -2
- package/dist/cjs/components/consolidate-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/consolidate-dialog/index.js +12 -8
- package/dist/cjs/components/data-table-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/data-table-dialog/index.js +2 -2
- package/dist/cjs/components/evaluate-formula-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/evaluate-formula-dialog/index.js +9 -3
- package/dist/cjs/components/fill-series-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/fill-series-dialog/index.js +22 -6
- package/dist/cjs/components/forecast-sheet-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/forecast-sheet-dialog/index.js +4 -4
- package/dist/cjs/components/go-to-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/go-to-dialog/index.js +19 -6
- package/dist/cjs/components/goal-seek-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/goal-seek-dialog/index.js +5 -5
- package/dist/cjs/components/insert-cells-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/insert-cells-dialog/index.js +9 -9
- package/dist/cjs/components/move-chart-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/move-chart-dialog/index.js +4 -2
- package/dist/cjs/components/outline-settings-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/outline-settings-dialog/index.js +7 -5
- package/dist/cjs/components/paste-special-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/paste-special-dialog/index.js +22 -20
- package/dist/cjs/components/protect-sheet-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/protect-sheet-dialog/index.js +4 -3
- package/dist/cjs/components/remove-duplicates-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/remove-duplicates-dialog/index.js +5 -3
- package/dist/cjs/components/scenario-manager-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/scenario-manager-dialog/index.js +16 -11
- package/dist/cjs/components/solver-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/solver-dialog/index.js +12 -10
- package/dist/cjs/components/sort-range-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/sort-range-dialog/index.js +13 -9
- package/dist/cjs/components/sparkline-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/sparkline-dialog/index.js +4 -2
- package/dist/cjs/components/subtotal-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/subtotal-dialog/index.js +6 -5
- package/dist/cjs/components/text-to-columns-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/text-to-columns-dialog/index.js +5 -4
- package/dist/cjs/hooks/use-editable.d.ts +7 -1
- package/dist/cjs/hooks/use-editable.d.ts.map +1 -1
- package/dist/cjs/hooks/use-editable.js +72 -8
- package/dist/cjs/hooks/use-editor-submit.d.ts +6 -1
- package/dist/cjs/hooks/use-editor-submit.d.ts.map +1 -1
- package/dist/cjs/hooks/use-editor-submit.js +14 -6
- package/dist/cjs/hooks/use-selection.d.ts.map +1 -1
- package/dist/cjs/hooks/use-selection.js +2 -2
- package/dist/cjs/release-date.js +1 -1
- package/dist/esm/api/entry-selections.d.ts +6 -0
- package/dist/esm/api/entry-selections.d.ts.map +1 -1
- package/dist/esm/api/entry-selections.js +10 -0
- package/dist/esm/atoms/cell-input-context.atom.d.ts.map +1 -1
- package/dist/esm/components/advanced-filter-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/advanced-filter-dialog/index.js +7 -7
- package/dist/esm/components/calculation-options-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/calculation-options-dialog/index.js +4 -4
- package/dist/esm/components/canvas-grid/index.d.ts.map +1 -1
- package/dist/esm/components/canvas-grid/index.js +64 -17
- package/dist/esm/components/canvas-grid/typings.d.ts +12 -0
- package/dist/esm/components/canvas-grid/typings.d.ts.map +1 -1
- package/dist/esm/components/cell-input/formula-bar-cell-input.d.ts.map +1 -1
- package/dist/esm/components/cell-input/formula-bar-cell-input.js +9 -3
- package/dist/esm/components/consolidate-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/consolidate-dialog/index.js +13 -9
- package/dist/esm/components/data-table-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/data-table-dialog/index.js +3 -3
- package/dist/esm/components/evaluate-formula-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/evaluate-formula-dialog/index.js +7 -3
- package/dist/esm/components/fill-series-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/fill-series-dialog/index.js +23 -7
- package/dist/esm/components/forecast-sheet-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/forecast-sheet-dialog/index.js +5 -5
- package/dist/esm/components/go-to-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/go-to-dialog/index.js +20 -7
- package/dist/esm/components/goal-seek-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/goal-seek-dialog/index.js +6 -6
- package/dist/esm/components/insert-cells-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/insert-cells-dialog/index.js +10 -10
- package/dist/esm/components/move-chart-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/move-chart-dialog/index.js +5 -3
- package/dist/esm/components/outline-settings-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/outline-settings-dialog/index.js +8 -6
- package/dist/esm/components/paste-special-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/paste-special-dialog/index.js +23 -21
- package/dist/esm/components/protect-sheet-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/protect-sheet-dialog/index.js +5 -4
- package/dist/esm/components/remove-duplicates-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/remove-duplicates-dialog/index.js +6 -4
- package/dist/esm/components/scenario-manager-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/scenario-manager-dialog/index.js +17 -12
- package/dist/esm/components/solver-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/solver-dialog/index.js +13 -11
- package/dist/esm/components/sort-range-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/sort-range-dialog/index.js +14 -10
- package/dist/esm/components/sparkline-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/sparkline-dialog/index.js +5 -3
- package/dist/esm/components/subtotal-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/subtotal-dialog/index.js +7 -6
- package/dist/esm/components/text-to-columns-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/text-to-columns-dialog/index.js +6 -5
- package/dist/esm/hooks/use-editable.d.ts +7 -1
- package/dist/esm/hooks/use-editable.d.ts.map +1 -1
- package/dist/esm/hooks/use-editable.js +69 -5
- package/dist/esm/hooks/use-editor-submit.d.ts +6 -1
- package/dist/esm/hooks/use-editor-submit.d.ts.map +1 -1
- package/dist/esm/hooks/use-editor-submit.js +14 -4
- package/dist/esm/hooks/use-selection.d.ts.map +1 -1
- package/dist/esm/hooks/use-selection.js +2 -2
- package/dist/esm/release-date.js +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cross1Icon } from "@rowsncolumns/icons";
|
|
2
|
-
import { Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogDescription, DialogTitle, Input, Separator, } from "@rowsncolumns/ui";
|
|
2
|
+
import { AccessKeyLabel, Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogDescription, DialogTitle, Input, Separator, } from "@rowsncolumns/ui";
|
|
3
3
|
import { addressToCell } from "@rowsncolumns/utils";
|
|
4
4
|
import React, { memo, useCallback, useEffect, useState } from "react";
|
|
5
5
|
/** Excel's refusal for an empty dialog or a reference that is not one cell. */
|
|
@@ -55,13 +55,13 @@ export const DataTableDialog = memo(({ open, onOpenChange, onApply }) => {
|
|
|
55
55
|
React.createElement(DialogBody, { className: "flex flex-col gap-3 font-system text-sm" },
|
|
56
56
|
React.createElement("form", { className: "flex flex-col gap-3", onSubmit: submit },
|
|
57
57
|
React.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
|
|
58
|
-
"Row input cell:",
|
|
58
|
+
React.createElement(AccessKeyLabel, { accessKey: "r" }, "Row input cell:"),
|
|
59
59
|
React.createElement(Input, { autoFocus: true, value: rowInput, "aria-label": "Row input cell", onChange: (e) => {
|
|
60
60
|
setRowInput(e.target.value);
|
|
61
61
|
setError(undefined);
|
|
62
62
|
} })),
|
|
63
63
|
React.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
|
|
64
|
-
"Column input cell:",
|
|
64
|
+
React.createElement(AccessKeyLabel, { accessKey: "c" }, "Column input cell:"),
|
|
65
65
|
React.createElement(Input, { value: columnInput, "aria-label": "Column input cell", onChange: (e) => {
|
|
66
66
|
setColumnInput(e.target.value);
|
|
67
67
|
setError(undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/evaluate-formula-dialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,eAAe,EAErB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/evaluate-formula-dialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,eAAe,EAErB,MAAM,0BAA0B,CAAC;AAYlC,OAAO,KAAsC,MAAM,OAAO,CAAC;AAQ3D,MAAM,MAAM,0BAA0B,GAAG;IACvC,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CACxD,CAAC;AAKF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,oFAO7B,0BAA0B,uBAqG9B,CAAC;AAUF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;CAiBrC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { advanceFormulaEvaluation, createFormulaEvaluation, } from "@rowsncolumns/calculator";
|
|
2
|
-
import { Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Separator, } from "@rowsncolumns/ui";
|
|
2
|
+
import { AccessKeyLabel, Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Separator, } from "@rowsncolumns/ui";
|
|
3
3
|
import { cellToAddress, sanitizeSheetName } from "@rowsncolumns/utils";
|
|
4
4
|
import React, { memo, useCallback, useState } from "react";
|
|
5
5
|
import { useEvaluateFormulaDialogState, useRegisterEvaluateFormulaDialogHost, } from "../../atoms/evaluate-formula-dialog.atom";
|
|
@@ -23,7 +23,9 @@ export const EvaluateFormulaDialog = memo(({ open, onOpenChange, reference, form
|
|
|
23
23
|
setFailure(undefined);
|
|
24
24
|
}
|
|
25
25
|
catch (err) {
|
|
26
|
-
setFailure(err instanceof Error
|
|
26
|
+
setFailure(err instanceof Error
|
|
27
|
+
? err.message
|
|
28
|
+
: "The expression could not be evaluated.");
|
|
27
29
|
}
|
|
28
30
|
finally {
|
|
29
31
|
setBusy(false);
|
|
@@ -58,7 +60,9 @@ export const EvaluateFormulaDialog = memo(({ open, onOpenChange, reference, form
|
|
|
58
60
|
React.createElement(Separator, null),
|
|
59
61
|
React.createElement("div", { className: "flex justify-end gap-2" },
|
|
60
62
|
React.createElement(Button, { variant: "outline", size: "sm", onClick: () => onOpenChange(false) }, "Close"),
|
|
61
|
-
state?.done ? (React.createElement(Button, { size: "sm", onClick: restart },
|
|
63
|
+
state?.done ? (React.createElement(Button, { size: "sm", onClick: restart },
|
|
64
|
+
React.createElement(AccessKeyLabel, { accessKey: "r" }, "Restart"))) : (React.createElement(Button, { size: "sm", onClick: step, disabled: !state || busy },
|
|
65
|
+
React.createElement(AccessKeyLabel, { accessKey: "e" }, "Evaluate"))))))));
|
|
62
66
|
});
|
|
63
67
|
EvaluateFormulaDialog.displayName = "EvaluateFormulaDialog";
|
|
64
68
|
const referenceOf = (request) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/fill-series-dialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/fill-series-dialog/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAItE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,qBAAqB,GAAG;IAClC,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,oEAAoE;IACpE,SAAS,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;IACpC,oFAAoF;IACpF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CAC9C,CAAC;AAsCF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,uGASxB,qBAAqB,uBAqOzB,CAAC;AAIF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;CAgBhC,CAAC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import { Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Input, Separator, } from "@rowsncolumns/ui";
|
|
1
|
+
import { AccessKeyLabel, Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Input, Separator, } from "@rowsncolumns/ui";
|
|
2
2
|
import React, { memo, useCallback, useEffect, useState } from "react";
|
|
3
3
|
import { parseSeriesStopValue } from "../../api/fill-series";
|
|
4
4
|
import { useFillSeriesDialogState } from "../../atoms/fill-series-dialog.atom";
|
|
5
|
+
/** The letters Excel's Series dialog underlines. */
|
|
6
|
+
const ACCESS_KEYS = {
|
|
7
|
+
linear: "l",
|
|
8
|
+
growth: "g",
|
|
9
|
+
date: "d",
|
|
10
|
+
autofill: "f",
|
|
11
|
+
day: "a",
|
|
12
|
+
weekday: "w",
|
|
13
|
+
month: "m",
|
|
14
|
+
year: "y",
|
|
15
|
+
};
|
|
5
16
|
const SERIES_TYPES = [
|
|
6
17
|
{ value: "linear", label: "Linear" },
|
|
7
18
|
{ value: "growth", label: "Growth" },
|
|
@@ -111,7 +122,7 @@ export const FillSeriesDialog = memo(({ open, onOpenChange, initialIn, onApply,
|
|
|
111
122
|
React.createElement("legend", { className: "text-xs font-medium pb-1" }, "Series in"),
|
|
112
123
|
["rows", "columns"].map((value) => (React.createElement("label", { key: value, className: "flex items-center gap-2 text-xs cursor-pointer" },
|
|
113
124
|
React.createElement("input", { type: "radio", name: "fillSeriesIn", value: value, checked: axis === value, onChange: () => setAxis(value) }),
|
|
114
|
-
value === "rows" ? "Rows" : "Columns")))),
|
|
125
|
+
value === "rows" ? (React.createElement(AccessKeyLabel, { accessKey: "r" }, "Rows")) : (React.createElement(AccessKeyLabel, { accessKey: "c" }, "Columns")))))),
|
|
115
126
|
React.createElement("fieldset", { className: "flex flex-col gap-1 border-0 p-0 m-0" },
|
|
116
127
|
React.createElement("legend", { className: "text-xs font-medium pb-1" }, "Type"),
|
|
117
128
|
SERIES_TYPES.map(({ value, label }) => (React.createElement("label", { key: value, className: "flex items-center gap-2 text-xs cursor-pointer" },
|
|
@@ -120,24 +131,29 @@ export const FillSeriesDialog = memo(({ open, onOpenChange, initialIn, onApply,
|
|
|
120
131
|
disabled: trendOn && (value === "date" || value === "autofill") }),
|
|
121
132
|
React.createElement("span", { className: trendOn && (value === "date" || value === "autofill")
|
|
122
133
|
? "opacity-50"
|
|
123
|
-
: "" },
|
|
134
|
+
: "" },
|
|
135
|
+
React.createElement(AccessKeyLabel, { accessKey: ACCESS_KEYS[value] }, label)))))),
|
|
124
136
|
React.createElement("fieldset", { className: "flex flex-col gap-1 border-0 p-0 m-0", disabled: type !== "date" },
|
|
125
137
|
React.createElement("legend", { className: "text-xs font-medium pb-1" }, "Date unit"),
|
|
126
138
|
DATE_UNITS.map(({ value, label }) => (React.createElement("label", { key: value, className: "flex items-center gap-2 text-xs cursor-pointer disabled:opacity-50" },
|
|
127
139
|
React.createElement("input", { type: "radio", name: "fillSeriesDateUnit", value: value, checked: dateUnit === value, onChange: () => setDateUnit(value), disabled: type !== "date" }),
|
|
128
|
-
React.createElement("span", { className: type !== "date" ? "opacity-50" : "" },
|
|
140
|
+
React.createElement("span", { className: type !== "date" ? "opacity-50" : "" },
|
|
141
|
+
React.createElement(AccessKeyLabel, { accessKey: ACCESS_KEYS[value] }, label))))))),
|
|
129
142
|
React.createElement("label", { className: "flex items-center gap-2 text-xs cursor-pointer" },
|
|
130
143
|
React.createElement("input", { type: "checkbox", name: "fillSeriesTrend", checked: trendOn, disabled: !trendAllowed, onChange: (e) => setTrend(e.target.checked) }),
|
|
131
|
-
React.createElement("span", { className: !trendAllowed ? "opacity-50" : "" },
|
|
144
|
+
React.createElement("span", { className: !trendAllowed ? "opacity-50" : "" },
|
|
145
|
+
React.createElement(AccessKeyLabel, { accessKey: "t" }, "Trend"))),
|
|
132
146
|
React.createElement("div", { className: "grid grid-cols-2 gap-3" },
|
|
133
147
|
React.createElement("label", { className: "flex flex-col gap-1 text-xs" },
|
|
134
|
-
"
|
|
148
|
+
React.createElement("span", null,
|
|
149
|
+
React.createElement(AccessKeyLabel, { accessKey: "s" }, "Step value")),
|
|
135
150
|
React.createElement(Input, { name: "fillSeriesStep", value: step, disabled: stepStopDisabled, onChange: (e) => {
|
|
136
151
|
setStep(e.target.value);
|
|
137
152
|
setError(undefined);
|
|
138
153
|
}, inputMode: "decimal" })),
|
|
139
154
|
React.createElement("label", { className: "flex flex-col gap-1 text-xs" },
|
|
140
|
-
"
|
|
155
|
+
React.createElement("span", null,
|
|
156
|
+
React.createElement(AccessKeyLabel, { accessKey: "o" }, "Stop value")),
|
|
141
157
|
React.createElement(Input, { name: "fillSeriesStop", value: stop, disabled: stepStopDisabled, onChange: (e) => {
|
|
142
158
|
setStop(e.target.value);
|
|
143
159
|
setError(undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/forecast-sheet-dialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/forecast-sheet-dialog/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,gFAAgF;AAChF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC7B,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qDAAqD;IACrD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,iFAAiF;IACjF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wFAAwF;IACxF,QAAQ,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC;CAC3F,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,mFACyB,wBAAwB,uBA6HhF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cross1Icon } from "@rowsncolumns/icons";
|
|
2
|
-
import { Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogDescription, DialogTitle, Input, Separator, } from "@rowsncolumns/ui";
|
|
2
|
+
import { AccessKeyLabel, Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogDescription, DialogTitle, Input, Separator, } from "@rowsncolumns/ui";
|
|
3
3
|
import React, { memo, useCallback, useEffect, useState } from "react";
|
|
4
4
|
/**
|
|
5
5
|
* Excel's Create Forecast Worksheet dialog: Line or Column chart, Forecast
|
|
@@ -57,22 +57,22 @@ export const ForecastSheetDialog = memo(({ open, onOpenChange, initialForecastEn
|
|
|
57
57
|
React.createElement("input", { type: "radio", checked: chartType === t, onChange: () => setChartType(t) }),
|
|
58
58
|
t === "line" ? "Line chart" : "Column chart")))),
|
|
59
59
|
React.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
|
|
60
|
-
"Forecast End:",
|
|
60
|
+
React.createElement(AccessKeyLabel, { accessKey: "e" }, "Forecast End:"),
|
|
61
61
|
React.createElement(Input, { autoFocus: true, "aria-label": "Forecast End", value: end, onChange: (e) => setEnd(e.target.value) })),
|
|
62
62
|
React.createElement("div", { className: "flex items-center gap-2 text-xs" },
|
|
63
63
|
React.createElement("label", { className: "flex items-center gap-2" },
|
|
64
64
|
React.createElement("input", { type: "checkbox", checked: withInterval, onChange: (e) => setWithInterval(e.target.checked) }),
|
|
65
|
-
"Confidence Interval"),
|
|
65
|
+
React.createElement(AccessKeyLabel, { accessKey: "c" }, "Confidence Interval")),
|
|
66
66
|
React.createElement(Input, { className: "w-16", "aria-label": "Confidence Interval (%)", value: interval, disabled: !withInterval, onChange: (e) => setInterval(e.target.value) }),
|
|
67
67
|
"%"),
|
|
68
68
|
React.createElement("div", { className: "flex flex-col gap-1 text-xs" },
|
|
69
69
|
"Seasonality",
|
|
70
70
|
React.createElement("label", { className: "flex items-center gap-2" },
|
|
71
71
|
React.createElement("input", { type: "radio", checked: autoSeason, onChange: () => setAutoSeason(true) }),
|
|
72
|
-
"Detect Automatically"),
|
|
72
|
+
React.createElement(AccessKeyLabel, { accessKey: "a" }, "Detect Automatically")),
|
|
73
73
|
React.createElement("label", { className: "flex items-center gap-2" },
|
|
74
74
|
React.createElement("input", { type: "radio", checked: !autoSeason, onChange: () => setAutoSeason(false) }),
|
|
75
|
-
"Set Manually",
|
|
75
|
+
React.createElement(AccessKeyLabel, { accessKey: "m" }, "Set Manually"),
|
|
76
76
|
React.createElement(Input, { className: "w-16", "aria-label": "Season length", value: season, disabled: autoSeason, onChange: (e) => setSeason(e.target.value) }))),
|
|
77
77
|
error ? (React.createElement("div", { role: "alert", className: "text-xs text-rnc-destructive" }, error)) : null,
|
|
78
78
|
React.createElement(Separator, null),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/go-to-dialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/go-to-dialog/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAY1D,MAAM,MAAM,eAAe,GAAG;IAC5B,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,gFAAgF;IAChF,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAClC,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IACnD,uEAAuE;IACvE,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,SAAS,EAAE,CAAC;QAC5C,cAAc,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;KAC3C,CAAC;CACH,CAAC;AAKF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,iHASlB,eAAe,uBAsNnB,CAAC;AAUF;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;CA+B1B,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import { Button, cn, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Input, Separator, } from "@rowsncolumns/ui";
|
|
1
|
+
import { AccessKeyLabel, Button, cn, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Input, Separator, } from "@rowsncolumns/ui";
|
|
2
2
|
import { cellToAddress } from "@rowsncolumns/utils";
|
|
3
3
|
import React, { memo, useCallback, useState } from "react";
|
|
4
4
|
import { resolveGoToReference } from "../../api/go-to";
|
|
5
5
|
import { GO_TO_SPECIAL_OPTIONS, } from "../../api/go-to-special";
|
|
6
6
|
import { useGoToDialogState, useRegisterGoToDialogHost, } from "../../atoms/go-to-dialog.atom";
|
|
7
|
+
/** The letters Excel's Go To Special underlines. */
|
|
8
|
+
const GO_TO_SPECIAL_ACCESS_KEYS = {
|
|
9
|
+
notes: "n",
|
|
10
|
+
constants: "o",
|
|
11
|
+
formulas: "f",
|
|
12
|
+
errors: "e",
|
|
13
|
+
blanks: "k",
|
|
14
|
+
visible: "y",
|
|
15
|
+
};
|
|
7
16
|
const INVALID_REFERENCE = "Reference is not valid.";
|
|
8
17
|
const NO_CELLS_FOUND = "No cells were found.";
|
|
9
18
|
/**
|
|
@@ -53,14 +62,15 @@ export const GoToDialog = memo(({ open, onOpenChange, namedRanges, currentAddres
|
|
|
53
62
|
setSpecialKind(kind);
|
|
54
63
|
setError(undefined);
|
|
55
64
|
} }),
|
|
56
|
-
label)))),
|
|
65
|
+
React.createElement(AccessKeyLabel, { accessKey: GO_TO_SPECIAL_ACCESS_KEYS[kind] }, label))))),
|
|
57
66
|
error ? (React.createElement("div", { role: "alert", className: "text-xs text-rnc-destructive" }, error)) : null,
|
|
58
67
|
React.createElement(Separator, null),
|
|
59
68
|
React.createElement("div", { className: "flex justify-between gap-2" },
|
|
60
69
|
React.createElement(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => {
|
|
61
70
|
setShowSpecial(false);
|
|
62
71
|
setError(undefined);
|
|
63
|
-
} },
|
|
72
|
+
} },
|
|
73
|
+
React.createElement(AccessKeyLabel, { accessKey: "b" }, "Back")),
|
|
64
74
|
React.createElement("div", { className: "flex gap-2" },
|
|
65
75
|
React.createElement(Button, { type: "button", variant: "outline", size: "sm", onClick: () => onOpenChange(false) }, "Cancel"),
|
|
66
76
|
React.createElement(Button, { type: "submit", size: "sm" }, "OK"))))) : (React.createElement("form", { className: "flex flex-col gap-3", onSubmit: (e) => {
|
|
@@ -68,13 +78,15 @@ export const GoToDialog = memo(({ open, onOpenChange, namedRanges, currentAddres
|
|
|
68
78
|
navigate(reference);
|
|
69
79
|
} },
|
|
70
80
|
React.createElement("div", { className: "flex flex-col gap-1" },
|
|
71
|
-
React.createElement("span", { className: "text-xs font-medium" },
|
|
72
|
-
|
|
81
|
+
React.createElement("span", { id: "rnc-go-to-names-label", className: "text-xs font-medium" },
|
|
82
|
+
React.createElement(AccessKeyLabel, { accessKey: "g" }, "Go to:")),
|
|
83
|
+
React.createElement("div", { role: "listbox", tabIndex: 0, "aria-labelledby": "rnc-go-to-names-label", className: "h-[140px] overflow-auto rounded border border-rnc-border text-xs" }, names.length === 0 ? (React.createElement("div", { role: "option", "aria-disabled": "true", "aria-selected": false, className: "px-2 py-1.5 text-rnc-foreground/60" }, "No defined names")) : (names.map((range) => (React.createElement("div", { key: String(range.namedRangeId), role: "option", "aria-selected": reference === range.name, className: cn("px-2 py-1 cursor-default select-none hover:bg-rnc-accent", reference === range.name && "bg-rnc-accent"), onClick: () => {
|
|
73
84
|
setReference(range.name);
|
|
74
85
|
setError(undefined);
|
|
75
86
|
}, onDoubleClick: () => navigate(range.name) }, range.name)))))),
|
|
76
87
|
React.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
|
|
77
|
-
"
|
|
88
|
+
React.createElement("span", null,
|
|
89
|
+
React.createElement(AccessKeyLabel, { accessKey: "r" }, "Reference:")),
|
|
78
90
|
React.createElement(Input, { autoFocus: true, value: reference, placeholder: currentAddress, "aria-invalid": error ? true : undefined, onChange: (e) => {
|
|
79
91
|
setReference(e.target.value);
|
|
80
92
|
setError(undefined);
|
|
@@ -85,7 +97,8 @@ export const GoToDialog = memo(({ open, onOpenChange, namedRanges, currentAddres
|
|
|
85
97
|
special ? (React.createElement(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => {
|
|
86
98
|
setShowSpecial(true);
|
|
87
99
|
setError(undefined);
|
|
88
|
-
} },
|
|
100
|
+
} },
|
|
101
|
+
React.createElement(AccessKeyLabel, { accessKey: "s" }, "Special\u2026"))) : (React.createElement("span", null)),
|
|
89
102
|
React.createElement("div", { className: "flex gap-2" },
|
|
90
103
|
React.createElement(Button, { type: "button", variant: "outline", size: "sm", onClick: () => onOpenChange(false) }, "Cancel"),
|
|
91
104
|
React.createElement(Button, { type: "submit", size: "sm", disabled: !reference.trim() }, "OK")))))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/goal-seek-dialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/goal-seek-dialog/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAM/E,OAAO,KAAK,EAEV,cAAc,EACd,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,mBAAmB,GAAG;IAChC,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,4DAA4D;IAC5D,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,OAAO,CACL,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;IACvC,mEAAmE;IACnE,QAAQ,CAAC,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtD,CAAC;AAKF,qDAAqD;AACrD,eAAO,MAAM,kBAAkB,GAC7B,SAAS,MAAM,EACf,QAAQ,cAAc,GAAG,SAAS,KACjC,MAKF,CAAC;AAEF,4FAA4F;AAC5F,eAAO,MAAM,wBAAwB,GAAI,aAAa,MAAM,WACF,CAAC;AAW3D,4DAA4D;AAC5D,eAAO,MAAM,4BAA4B,GACvC,SAAS,MAAM,EACf,QAAQ,cAAc,GAAG,SAAS,EAClC,aAAa,MAAM,EACnB,SAAS,qBAAqB,KAC7B,MASF,CAAC;AAUF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,wFACmC,mBAAmB,uBA0ShF,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;CAqB9B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cross1Icon } from "@rowsncolumns/icons";
|
|
2
|
-
import { Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogDescription, DialogTitle, Input, Separator, } from "@rowsncolumns/ui";
|
|
2
|
+
import { AccessKeyLabel, Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogDescription, DialogTitle, Input, Separator, } from "@rowsncolumns/ui";
|
|
3
3
|
import { addressToCell } from "@rowsncolumns/utils";
|
|
4
4
|
import React, { memo, useCallback, useEffect, useMemo, useState } from "react";
|
|
5
5
|
import { useGoalSeekDialogState, useRegisterGoalSeekDialogHost, } from "../../atoms/goal-seek-dialog.atom";
|
|
@@ -166,13 +166,13 @@ export const GoalSeekDialog = memo(({ open, onOpenChange, initialSetCell, onAppl
|
|
|
166
166
|
React.createElement(Cross1Icon, null)),
|
|
167
167
|
React.createElement(DialogBody, { className: "flex flex-col gap-3 font-system text-sm" }, outcome ? (React.createElement("div", { className: "flex flex-col gap-2", role: "status" }, renderStatus(outcome))) : (React.createElement("form", { className: "flex flex-col gap-3", onSubmit: submit },
|
|
168
168
|
React.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
|
|
169
|
-
"Set cell:",
|
|
169
|
+
React.createElement(AccessKeyLabel, { accessKey: "e" }, "Set cell:"),
|
|
170
170
|
React.createElement(Input, { autoFocus: true, value: setCell, "aria-label": "Set cell", onChange: (e) => {
|
|
171
171
|
setSetCell(e.target.value);
|
|
172
172
|
setError(undefined);
|
|
173
173
|
} })),
|
|
174
174
|
React.createElement("div", { className: "flex flex-col gap-1 text-xs font-medium" },
|
|
175
|
-
"To value:",
|
|
175
|
+
React.createElement(AccessKeyLabel, { accessKey: "v" }, "To value:"),
|
|
176
176
|
React.createElement("div", { className: "flex gap-2" },
|
|
177
177
|
React.createElement("select", { className: "h-8 rounded border border-rnc-border bg-transparent px-2 text-sm", value: mode, "aria-label": "Target", onChange: (e) => setMode(e.target.value) }, Object.keys(MODE_LABELS).map((key) => (React.createElement("option", { key: key, value: key }, MODE_LABELS[key])))),
|
|
178
178
|
React.createElement(Input, { value: target, "aria-label": "To value", inputMode: "decimal", onChange: (e) => {
|
|
@@ -180,16 +180,16 @@ export const GoalSeekDialog = memo(({ open, onOpenChange, initialSetCell, onAppl
|
|
|
180
180
|
setError(undefined);
|
|
181
181
|
} }))),
|
|
182
182
|
React.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
|
|
183
|
-
"By changing cell:",
|
|
183
|
+
React.createElement(AccessKeyLabel, { accessKey: "c" }, "By changing cell:"),
|
|
184
184
|
React.createElement(Input, { value: changingCell, "aria-label": "By changing cell", onChange: (e) => {
|
|
185
185
|
setChangingCell(e.target.value);
|
|
186
186
|
setError(undefined);
|
|
187
187
|
} })),
|
|
188
188
|
React.createElement("label", { className: "flex items-center gap-2 text-xs" },
|
|
189
189
|
React.createElement("input", { type: "checkbox", checked: round, onChange: (e) => setRound(e.target.checked) }),
|
|
190
|
-
"Round to a natural number"),
|
|
190
|
+
React.createElement(AccessKeyLabel, { accessKey: "n" }, "Round to a natural number")),
|
|
191
191
|
beyondExcel ? (React.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
|
|
192
|
-
"Within:",
|
|
192
|
+
React.createElement(AccessKeyLabel, { accessKey: "w" }, "Within:"),
|
|
193
193
|
React.createElement(Input, { value: tolerance, "aria-label": "Within", inputMode: "decimal", placeholder: "1% of the target", onChange: (e) => {
|
|
194
194
|
setTolerance(e.target.value);
|
|
195
195
|
setError(undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/insert-cells-dialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/insert-cells-dialog/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAoBnC,MAAM,MAAM,sBAAsB,GAC9B;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,8EAA8E;IAC9E,aAAa,EAAE,iBAAiB,CAAC;IACjC,OAAO,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC1C,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,aAAa,EAAE,iBAAiB,CAAC;IACjC,OAAO,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC1C,CAAC;AAEN;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,oCAAgB,sBAAsB,uBA0ElE,CAAC;AAIH;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;CAyBjC,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Separator, } from "@rowsncolumns/ui";
|
|
1
|
+
import { AccessKeyLabel, Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Separator, } from "@rowsncolumns/ui";
|
|
2
2
|
import React, { memo, useCallback, useEffect, useState } from "react";
|
|
3
3
|
import { useInsertCellsDialogState, useRegisterInsertCellsDialogHost, } from "../../atoms/insert-cells-dialog.atom";
|
|
4
4
|
const INSERT_CHOICES = [
|
|
5
|
-
{ value: "shift-right", label: "Shift cells right" },
|
|
6
|
-
{ value: "shift-down", label: "Shift cells down" },
|
|
7
|
-
{ value: "entire-row", label: "Entire row" },
|
|
8
|
-
{ value: "entire-column", label: "Entire column" },
|
|
5
|
+
{ value: "shift-right", label: "Shift cells right", accessKey: "i" },
|
|
6
|
+
{ value: "shift-down", label: "Shift cells down", accessKey: "d" },
|
|
7
|
+
{ value: "entire-row", label: "Entire row", accessKey: "r" },
|
|
8
|
+
{ value: "entire-column", label: "Entire column", accessKey: "c" },
|
|
9
9
|
];
|
|
10
10
|
const DELETE_CHOICES = [
|
|
11
|
-
{ value: "shift-left", label: "Shift cells left" },
|
|
12
|
-
{ value: "shift-up", label: "Shift cells up" },
|
|
13
|
-
{ value: "entire-row", label: "Entire row" },
|
|
14
|
-
{ value: "entire-column", label: "Entire column" },
|
|
11
|
+
{ value: "shift-left", label: "Shift cells left", accessKey: "l" },
|
|
12
|
+
{ value: "shift-up", label: "Shift cells up", accessKey: "u" },
|
|
13
|
+
{ value: "entire-row", label: "Entire row", accessKey: "r" },
|
|
14
|
+
{ value: "entire-column", label: "Entire column", accessKey: "c" },
|
|
15
15
|
];
|
|
16
16
|
/**
|
|
17
17
|
* Excel's Insert / Delete cells dialog (right-click a cell → "Insert…" /
|
|
@@ -51,7 +51,7 @@ export const InsertCellsDialog = memo((props) => {
|
|
|
51
51
|
React.createElement("legend", { className: "text-xs font-medium mb-1" }, title),
|
|
52
52
|
choices.map((entry) => (React.createElement("label", { key: entry.value, className: "flex items-center gap-2 text-xs py-0.5 cursor-pointer" },
|
|
53
53
|
React.createElement("input", { type: "radio", name: `${mode}-cells-choice`, value: entry.value, checked: choice === entry.value, onChange: () => setChoice(entry.value) }),
|
|
54
|
-
entry.label)))),
|
|
54
|
+
React.createElement(AccessKeyLabel, { accessKey: entry.accessKey }, entry.label))))),
|
|
55
55
|
React.createElement(Separator, null),
|
|
56
56
|
React.createElement("div", { className: "flex justify-end gap-2" },
|
|
57
57
|
React.createElement(Button, { type: "button", variant: "outline", size: "sm", onClick: () => onOpenChange(false) }, "Cancel"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/move-chart-dialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/move-chart-dialog/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAO3D,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzE,MAAM,MAAM,oBAAoB,GAAG;IACjC,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,yEAAyE;IACzE,KAAK,EAAE,aAAa,CAAC;IACrB,wFAAwF;IACxF,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,QAAQ,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;CACzC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,8EACwB,oBAAoB,uBAgIvE,CAAC;AAIF,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,iFAAiF;IACjF,kBAAkB,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC;CAC5E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;sCAG7B,wBAAwB;;CAiB1B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Separator, } from "@rowsncolumns/ui";
|
|
1
|
+
import { AccessKeyLabel, Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Separator, } from "@rowsncolumns/ui";
|
|
2
2
|
import React, { memo, useCallback, useState } from "react";
|
|
3
3
|
import { getNextChartSheetTitle } from "../../api/chart-sheet";
|
|
4
4
|
import { useMoveChartDialogState, useRegisterMoveChartDialogHost, } from "../../atoms/move-chart-dialog.atom";
|
|
@@ -56,11 +56,13 @@ export const MoveChartDialog = memo(({ open, onOpenChange, chart, sheets, onSubm
|
|
|
56
56
|
React.createElement("legend", { className: "text-xs font-medium mb-1" }, "Choose where you want the chart to be placed:"),
|
|
57
57
|
React.createElement("label", { className: "flex items-center gap-2 text-xs py-0.5 cursor-pointer" },
|
|
58
58
|
React.createElement("input", { type: "radio", name: "move-chart-target", value: "newSheet", checked: mode === "newSheet", onChange: () => setMode("newSheet") }),
|
|
59
|
-
React.createElement("span", { className: "w-20 shrink-0" },
|
|
59
|
+
React.createElement("span", { className: "w-20 shrink-0" },
|
|
60
|
+
React.createElement(AccessKeyLabel, { accessKey: "s" }, "New sheet:")),
|
|
60
61
|
React.createElement("input", { type: "text", "aria-label": "New sheet name", className: "flex-1 min-w-0 rounded border border-rnc-border bg-transparent px-2 py-1 text-xs", value: title, disabled: mode !== "newSheet", onChange: (e) => setTitle(e.target.value), onFocus: () => setMode("newSheet") })),
|
|
61
62
|
React.createElement("label", { className: "flex items-center gap-2 text-xs py-0.5 cursor-pointer" },
|
|
62
63
|
React.createElement("input", { type: "radio", name: "move-chart-target", value: "sheet", checked: mode === "sheet", disabled: worksheets.length === 0, onChange: () => setMode("sheet") }),
|
|
63
|
-
React.createElement("span", { className: "w-20 shrink-0" },
|
|
64
|
+
React.createElement("span", { className: "w-20 shrink-0" },
|
|
65
|
+
React.createElement(AccessKeyLabel, { accessKey: "o" }, "Object in:")),
|
|
64
66
|
React.createElement("select", { "aria-label": "Object in sheet", className: "flex-1 min-w-0 rounded border border-rnc-border bg-transparent px-2 py-1 text-xs", value: targetSheetId ?? "", disabled: mode !== "sheet" || worksheets.length === 0, onChange: (e) => setTargetSheetId(Number(e.target.value)) }, worksheets.map((sheet) => (React.createElement("option", { key: sheet.sheetId, value: sheet.sheetId }, sheet.title)))))),
|
|
65
67
|
React.createElement(Separator, null),
|
|
66
68
|
React.createElement("div", { className: "flex justify-end gap-2" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/outline-settings-dialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/outline-settings-dialog/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAGtE,OAAO,EACL,KAAK,sBAAsB,EAG5B,MAAM,0CAA0C,CAAC;AAElD,YAAY,EAAE,sBAAsB,EAAE,CAAC;AAEvC,eAAO,MAAM,wBAAwB,EAAE,sBAItC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,OAAO,CAAC,QAAQ,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAChD,sCAAsC;IACtC,QAAQ,CAAC,CAAC,QAAQ,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAClD,4CAA4C;IAC5C,aAAa,CAAC,CAAC,QAAQ,EAAE,sBAAsB,GAAG,IAAI,CAAC;CACxD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,kGAQ7B,0BAA0B,uBAyG9B,CAAC;AAIF,sFAAsF;AACtF,eAAO,MAAM,yBAAyB;;;CAwBrC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cross1Icon } from "@rowsncolumns/icons";
|
|
2
|
-
import { Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogDescription, DialogTitle, Separator, } from "@rowsncolumns/ui";
|
|
2
|
+
import { AccessKeyLabel, Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogDescription, DialogTitle, Separator, } from "@rowsncolumns/ui";
|
|
3
3
|
import React, { memo, useCallback, useEffect, useState } from "react";
|
|
4
4
|
import { useFocusSheet } from "../../atoms";
|
|
5
5
|
import { useOutlineSettingsDialogState, useRegisterOutlineSettingsDialogHost, } from "../../atoms/outline-settings-dialog.atom";
|
|
@@ -41,17 +41,19 @@ export const OutlineSettingsDialog = memo(({ open, onOpenChange, settings = DEFA
|
|
|
41
41
|
React.createElement("legend", { className: "text-xs font-medium" }, "Direction"),
|
|
42
42
|
React.createElement("label", { className: "flex items-center gap-1" },
|
|
43
43
|
React.createElement("input", { type: "checkbox", checked: choices.summaryBelow, onChange: (e) => toggle("summaryBelow")(e.target.checked) }),
|
|
44
|
-
"Summary rows below detail"),
|
|
44
|
+
React.createElement(AccessKeyLabel, { accessKey: "r" }, "Summary rows below detail")),
|
|
45
45
|
React.createElement("label", { className: "flex items-center gap-1" },
|
|
46
46
|
React.createElement("input", { type: "checkbox", checked: choices.summaryRight, onChange: (e) => toggle("summaryRight")(e.target.checked) }),
|
|
47
|
-
"Summary columns to right of detail")),
|
|
47
|
+
React.createElement(AccessKeyLabel, { accessKey: "c" }, "Summary columns to right of detail"))),
|
|
48
48
|
React.createElement("label", { className: "flex items-center gap-1" },
|
|
49
49
|
React.createElement("input", { type: "checkbox", checked: choices.applyStyles, onChange: (e) => toggle("applyStyles")(e.target.checked) }),
|
|
50
|
-
"Automatic styles"),
|
|
50
|
+
React.createElement(AccessKeyLabel, { accessKey: "a" }, "Automatic styles")),
|
|
51
51
|
React.createElement(Separator, null),
|
|
52
52
|
React.createElement("div", { className: "flex flex-wrap justify-end gap-2" },
|
|
53
|
-
onCreate ? (React.createElement(Button, { variant: "outline", size: "sm", type: "button", onClick: () => run(onCreate) },
|
|
54
|
-
|
|
53
|
+
onCreate ? (React.createElement(Button, { variant: "outline", size: "sm", type: "button", onClick: () => run(onCreate) },
|
|
54
|
+
React.createElement(AccessKeyLabel, { accessKey: "e" }, "Create"))) : null,
|
|
55
|
+
onApplyStyles ? (React.createElement(Button, { variant: "outline", size: "sm", type: "button", onClick: () => run(onApplyStyles) },
|
|
56
|
+
React.createElement(AccessKeyLabel, { accessKey: "s" }, "Apply Styles"))) : null,
|
|
55
57
|
React.createElement(Button, { variant: "outline", size: "sm", type: "button", onClick: () => onOpenChange(false) }, "Cancel"),
|
|
56
58
|
React.createElement(Button, { size: "sm", type: "button", onClick: () => run(onApply) }, "OK"))))));
|
|
57
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/paste-special-dialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/paste-special-dialog/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,OAAO,KAAK,EAGV,mBAAmB,EACpB,MAAM,gCAAgC,CAAC;AAmDxC,MAAM,MAAM,uBAAuB,GAAG;IACpC,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC7C,CAAC;AAoEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,8DACK,uBAAuB,uBAsG1D,CAAC;AAIF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;CAclC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Separator, } from "@rowsncolumns/ui";
|
|
1
|
+
import { AccessKeyLabel, Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Separator, } from "@rowsncolumns/ui";
|
|
2
2
|
import React, { memo, useCallback, useState } from "react";
|
|
3
3
|
import { usePasteSpecialDialogState, useRegisterPasteSpecialDialogHost, } from "../../atoms/paste-special-dialog.atom";
|
|
4
4
|
/**
|
|
@@ -7,22 +7,23 @@ import { usePasteSpecialDialogState, useRegisterPasteSpecialDialogHost, } from "
|
|
|
7
7
|
*/
|
|
8
8
|
const PASTE_MODE_COLUMNS = [
|
|
9
9
|
[
|
|
10
|
-
{ value: "all", label: "All" },
|
|
11
|
-
{ value: "formulas", label: "Formulas" },
|
|
12
|
-
{ value: "values", label: "Values" },
|
|
13
|
-
{ value: "formats", label: "Formats" },
|
|
14
|
-
{ value: "commentsAndNotes", label: "Comments and Notes" },
|
|
15
|
-
{ value: "validation", label: "Validation" },
|
|
10
|
+
{ value: "all", label: "All", accessKey: "a" },
|
|
11
|
+
{ value: "formulas", label: "Formulas", accessKey: "f" },
|
|
12
|
+
{ value: "values", label: "Values", accessKey: "v" },
|
|
13
|
+
{ value: "formats", label: "Formats", accessKey: "t" },
|
|
14
|
+
{ value: "commentsAndNotes", label: "Comments and Notes", accessKey: "c" },
|
|
15
|
+
{ value: "validation", label: "Validation", accessKey: "n" },
|
|
16
16
|
],
|
|
17
17
|
[
|
|
18
|
-
{ value: "allUsingSourceTheme", label: "All using Source theme" },
|
|
19
|
-
{ value: "allExceptBorders", label: "All except borders" },
|
|
20
|
-
{ value: "columnWidths", label: "Column widths" },
|
|
21
|
-
{ value: "formulasAndNumberFormats", label: "Formulas and number formats" },
|
|
22
|
-
{ value: "valuesAndNumberFormats", label: "Values and number formats" },
|
|
18
|
+
{ value: "allUsingSourceTheme", label: "All using Source theme", accessKey: "h" },
|
|
19
|
+
{ value: "allExceptBorders", label: "All except borders", accessKey: "x" },
|
|
20
|
+
{ value: "columnWidths", label: "Column widths", accessKey: "w" },
|
|
21
|
+
{ value: "formulasAndNumberFormats", label: "Formulas and number formats", accessKey: "r" },
|
|
22
|
+
{ value: "valuesAndNumberFormats", label: "Values and number formats", accessKey: "u" },
|
|
23
23
|
{
|
|
24
24
|
value: "allMergingConditionalFormats",
|
|
25
25
|
label: "All merging conditional formats",
|
|
26
|
+
accessKey: "g",
|
|
26
27
|
},
|
|
27
28
|
],
|
|
28
29
|
];
|
|
@@ -34,15 +35,15 @@ const NO_OPERATION_MODES = new Set([
|
|
|
34
35
|
"columnWidths",
|
|
35
36
|
]);
|
|
36
37
|
const OPERATIONS = [
|
|
37
|
-
{ value: "none", label: "None" },
|
|
38
|
-
{ value: "add", label: "Add" },
|
|
39
|
-
{ value: "subtract", label: "Subtract" },
|
|
40
|
-
{ value: "multiply", label: "Multiply" },
|
|
41
|
-
{ value: "divide", label: "Divide" },
|
|
38
|
+
{ value: "none", label: "None", accessKey: "o" },
|
|
39
|
+
{ value: "add", label: "Add", accessKey: "d" },
|
|
40
|
+
{ value: "subtract", label: "Subtract", accessKey: "s" },
|
|
41
|
+
{ value: "multiply", label: "Multiply", accessKey: "m" },
|
|
42
|
+
{ value: "divide", label: "Divide", accessKey: "i" },
|
|
42
43
|
];
|
|
43
44
|
const RadioOption = ({ name, option, checked, disabled, onChange, }) => (React.createElement("label", { className: "flex items-center gap-2 text-xs py-0.5 cursor-pointer" },
|
|
44
45
|
React.createElement("input", { type: "radio", name: name, value: option.value, checked: checked, disabled: disabled, onChange: () => onChange(option.value) }),
|
|
45
|
-
option.label));
|
|
46
|
+
React.createElement(AccessKeyLabel, { accessKey: option.accessKey }, option.label)));
|
|
46
47
|
const RadioGroup = ({ name, legend, value, columns, onChange, disabled, }) => (React.createElement("fieldset", { className: "flex flex-col gap-1 min-w-0 disabled:opacity-50", disabled: disabled },
|
|
47
48
|
React.createElement("legend", { className: "text-xs font-medium mb-1" }, legend),
|
|
48
49
|
React.createElement("div", { className: "grid grid-flow-col auto-cols-fr gap-x-4" }, columns.map((column, index) => (React.createElement("div", { key: index, className: "flex flex-col gap-1 min-w-0" }, column.map((option) => (React.createElement(RadioOption, { key: option.value, name: name, option: option, checked: value === option.value, disabled: disabled, onChange: onChange })))))))));
|
|
@@ -93,13 +94,14 @@ export const PasteSpecialDialog = memo(({ open, onOpenChange, onApply }) => {
|
|
|
93
94
|
React.createElement("div", { className: "grid grid-cols-2 gap-x-4" },
|
|
94
95
|
React.createElement("label", { className: "flex items-center gap-2 text-xs py-0.5 cursor-pointer" },
|
|
95
96
|
React.createElement("input", { type: "checkbox", checked: skipBlanks, onChange: (e) => setSkipBlanks(e.target.checked) }),
|
|
96
|
-
"Skip blanks"),
|
|
97
|
+
React.createElement(AccessKeyLabel, { accessKey: "b" }, "Skip blanks")),
|
|
97
98
|
React.createElement("label", { className: "flex items-center gap-2 text-xs py-0.5 cursor-pointer" },
|
|
98
99
|
React.createElement("input", { type: "checkbox", checked: transpose, onChange: (e) => setTranspose(e.target.checked) }),
|
|
99
|
-
"Transpose")),
|
|
100
|
+
React.createElement(AccessKeyLabel, { accessKey: "e" }, "Transpose"))),
|
|
100
101
|
React.createElement(Separator, null),
|
|
101
102
|
React.createElement("div", { className: "flex justify-between gap-2" },
|
|
102
|
-
React.createElement(Button, { variant: "outline", size: "sm", onClick: commitLink },
|
|
103
|
+
React.createElement(Button, { variant: "outline", size: "sm", onClick: commitLink },
|
|
104
|
+
React.createElement(AccessKeyLabel, { accessKey: "l" }, "Paste Link")),
|
|
103
105
|
React.createElement("div", { className: "flex gap-2" },
|
|
104
106
|
React.createElement(Button, { size: "sm", onClick: commit }, "OK"),
|
|
105
107
|
React.createElement(Button, { variant: "outline", size: "sm", onClick: () => onOpenChange(false) }, "Cancel")))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/protect-sheet-dialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/protect-sheet-dialog/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAE9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD,iFAAiF;AACjF,MAAM,MAAM,wBAAwB,GAChC,mBAAmB,GACnB,qBAAqB,GACrB,aAAa,GACb,eAAe,GACf,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,kBAAkB,GAClB,eAAe,GACf,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,aAAa,GACb,SAAS,GACT,WAAW,CAAC;AAEhB;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAE,aAAa,CAAC;IACzD,IAAI,EAAE,wBAAwB,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;CACzB,CAgBA,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;AAElF,iFAAiF;AACjF,eAAO,MAAM,2BAA2B,GACtC,aAAa,eAAe,GAAG,IAAI,KAClC,yBAOF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,yBAAyB,KAC/B,IAAI,CACL,eAAe,EACf,UAAU,GAAG,eAAe,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAOvE,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,cAAc,4BAA4B,CAAC;AA4D3C,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,gEAAgE;IAChE,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,SAAS,CAAC,OAAO,EAAE;QACjB,eAAe,EAAE,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;QAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,GAAG,IAAI,CAAC;CACV,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,yEACgB,uBAAuB,uBAoErE,CAAC;AAIF,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,uEAAuE;IACvE,SAAS,CAAC,OAAO,EAAE;QAAE,aAAa,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CACzE,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,gEACI,0BAA0B,uBAwD/D,CAAC;AAIF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,eAAe,uEACiB,oBAAoB,uBAmChE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Input, Separator, } from "@rowsncolumns/ui";
|
|
1
|
+
import { AccessKeyLabel, Button, Dialog, DialogBody, DialogCloseButton, DialogContent, DialogTitle, Input, Separator, } from "@rowsncolumns/ui";
|
|
2
2
|
import React, { memo, useState } from "react";
|
|
3
3
|
import { CONFIRM_PASSWORD_MISMATCH } from "./constants";
|
|
4
4
|
/**
|
|
@@ -89,7 +89,8 @@ export const ProtectSheetDialog = memo(({ open, onOpenChange, initial, onConfirm
|
|
|
89
89
|
setMismatch(false);
|
|
90
90
|
} }),
|
|
91
91
|
React.createElement("fieldset", { className: "flex flex-col gap-1" },
|
|
92
|
-
React.createElement("legend", { className: "mb-1 text-xs font-medium" },
|
|
92
|
+
React.createElement("legend", { className: "mb-1 text-xs font-medium" },
|
|
93
|
+
React.createElement(AccessKeyLabel, { accessKey: "o" }, "Allow all users of this worksheet to:")),
|
|
93
94
|
React.createElement("div", { className: "flex max-h-56 flex-col gap-1 overflow-y-auto rounded border p-2" }, SHEET_PROTECTION_ALLOW_OPTIONS.map(({ flag, label }) => (React.createElement("label", { key: flag, className: "flex items-center gap-2 text-xs" },
|
|
94
95
|
React.createElement("input", { type: "checkbox", checked: allow[flag], "data-testid": `protect-allow-${flag}`, onChange: (e) => setAllow((prev) => ({ ...prev, [flag]: e.target.checked })) }),
|
|
95
96
|
label))))),
|
|
@@ -121,7 +122,7 @@ export const ProtectWorkbookDialog = memo(({ open, onOpenChange, onConfirm }) =>
|
|
|
121
122
|
} },
|
|
122
123
|
React.createElement("label", { className: "flex items-center gap-2 text-xs font-medium" },
|
|
123
124
|
React.createElement("input", { type: "checkbox", checked: structure, "data-testid": "protect-workbook-structure", onChange: (e) => setStructure(e.target.checked) }),
|
|
124
|
-
"Structure"),
|
|
125
|
+
React.createElement(AccessKeyLabel, { accessKey: "s" }, "Structure")),
|
|
125
126
|
React.createElement(PasswordFields, { label: "Password (optional):", password: password, confirm: confirm, mismatch: mismatch, onPassword: (v) => {
|
|
126
127
|
setPassword(v);
|
|
127
128
|
setMismatch(false);
|
|
@@ -147,7 +148,7 @@ export const UnprotectDialog = memo(({ open, onOpenChange, title, onConfirm }) =
|
|
|
147
148
|
onOpenChange(false);
|
|
148
149
|
} },
|
|
149
150
|
React.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
|
|
150
|
-
"Password:",
|
|
151
|
+
React.createElement(AccessKeyLabel, { accessKey: "p" }, "Password:"),
|
|
151
152
|
React.createElement(Input, { type: "password", autoComplete: "current-password", autoFocus: true, value: password, onChange: (e) => setPassword(e.target.value), "data-testid": "unprotect-password" })),
|
|
152
153
|
React.createElement(Separator, null),
|
|
153
154
|
React.createElement(DialogButtons, { onCancel: () => onOpenChange(false) }))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/remove-duplicates-dialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/remove-duplicates-dialog/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAE/E,OAAO,EACL,KAAK,4BAA4B,EAGlC,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,YAAY,EAAE,4BAA4B,EAAE,CAAC;AAE7C,MAAM,MAAM,2BAA2B,GAAG;IACxC,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,+DAA+D;IAC/D,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACxC,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI,CAAC;CACjD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,0FAO9B,2BAA2B,uBAqI/B,CAAC;AAIF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;;;CAetC,CAAC"}
|