@gridsheet/react-core 1.2.0 → 1.2.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA+B1B,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EA8Z1B,CAAC;AAEF,eAAO,MAAM,WAAW,SAAU,MAAM,gBAuCvC,CAAC"}
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA+B1B,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAia1B,CAAC;AAEF,eAAO,MAAM,WAAW,SAAU,MAAM,gBAuCvC,CAAC"}
@@ -39,7 +39,7 @@ const SheetProvider_1 = require("./SheetProvider");
39
39
  const evaluator_1 = require("../formula/evaluator");
40
40
  const palette_1 = require("../lib/palette");
41
41
  const Editor = () => {
42
- var _a, _b, _c;
42
+ var _a, _b, _c, _d, _e;
43
43
  const { store, dispatch } = react_1.default.useContext(store_1.Context);
44
44
  const { showAddress, editorRect, editingCell, choosing, inputting, selectingZone, searchQuery, editorRef, largeEditorRef, searchInputRef, editingOnEnter, onSave, table, } = store;
45
45
  const [, sheetContext] = (0, SheetProvider_1.useSheetContext)();
@@ -351,17 +351,18 @@ const Editor = () => {
351
351
  }
352
352
  return false;
353
353
  };
354
- return (react_1.default.createElement("div", { className: `gs-editor ${editing ? 'gs-editing' : ''}`, style: editing ? { top, left, height, width } : {} },
354
+ return (react_1.default.createElement("div", { className: `gs-editor ${editing ? 'gs-editing' : ''}`, style: editing ? { top, left, height } : {} },
355
355
  showAddress && react_1.default.createElement("div", { className: "gs-cell-label" }, address),
356
- react_1.default.createElement("div", { className: "gs-editor-inner" },
356
+ react_1.default.createElement("div", { className: "gs-editor-inner", style: {
357
+ minWidth: width,
358
+ width: (_b = (_a = editorRef.current) === null || _a === void 0 ? void 0 : _a.scrollWidth) !== null && _b !== void 0 ? _b : 0,
359
+ } },
357
360
  react_1.default.createElement("pre", { className: "gs-editor-hl", style: {
358
361
  //...cell?.style,
359
- height: (_a = editorRef.current) === null || _a === void 0 ? void 0 : _a.scrollHeight,
360
- width: ((_c = (_b = editorRef.current) === null || _b === void 0 ? void 0 : _b.scrollWidth) !== null && _c !== void 0 ? _c : 0) - 4,
362
+ height: (_c = editorRef.current) === null || _c === void 0 ? void 0 : _c.scrollHeight,
363
+ width: ((_e = (_d = editorRef.current) === null || _d === void 0 ? void 0 : _d.scrollWidth) !== null && _e !== void 0 ? _e : 0) - 4,
361
364
  } }, (0, exports.editorStyle)(inputting)),
362
- react_1.default.createElement("textarea", { spellCheck: false, draggable: false, ref: editorRef, style: {
363
- width,
364
- }, rows: numLines, onFocus: () => {
365
+ react_1.default.createElement("textarea", { spellCheck: false, draggable: false, ref: editorRef, rows: numLines, onFocus: () => {
365
366
  var _a;
366
367
  dispatch((0, actions_1.setLastFocusedRef)(editorRef));
367
368
  (_a = sheetContext === null || sheetContext === void 0 ? void 0 : sheetContext.setLastFocusedRef) === null || _a === void 0 ? void 0 : _a.call(sheetContext, editorRef);
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.js","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,kDAA6C;AAC7C,gDAAwC;AACxC,8CAkB0B;AAE1B,oCAAmC;AACnC,4CAA4C;AAC5C,8DAAgD;AAChD,wCAA+D;AAC/D,mDAAkD;AAClD,oDAA6C;AAC7C,4CAA6C;AAEtC,MAAM,MAAM,GAAa,GAAG,EAAE;;IACnC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,eAAK,CAAC,UAAU,CAAC,eAAO,CAAC,CAAC;IAEt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AAM,WAAW,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;gBAC5C,IAAI,WAAW,KAAK,SAAS,EAAE;oBAC7B,OAAO,CACL,wCAAM,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,qBAAW,CAAC,WAAW,GAAG,qBAAW,CAAC,MAAM,CAAC,EAAE,IAC1E,KAAK,CAAC,SAAS,EAAE,CACb,CACR,CAAC;iBACH;gBACD,MAAM,KAAK,GAAG,qBAAW,CAAC,WAAW,GAAG,qBAAW,CAAC,MAAM,CAAC,CAAC;gBAC5D,MAAM,CAAC,eAAe,CAAC,GAAG,WAAW,EAAE,CAAC;gBACxC,OAAO,CACL,wCAAM,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,iBAAiB,KAAK,CAAC,IAAI,EAAE,IACrE,eAAe,CACX,CACR,CAAC;aACH;YAED,OAAO,CACL,wCAAM,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,iBAAiB,KAAK,CAAC,IAAI,yBAAyB,OAAO,KAAK,CAAC,MAAM,EAAE,IAC/F,KAAK,CAAC,SAAS,EAAE,CACb,CACR,CAAC;QACJ,CAAC,CAAC,CACD,CACJ,CAAC;AACJ,CAAC,CAAC;AAvCW,QAAA,WAAW,eAuCtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EA+G9B,CAAC"}
1
+ {"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EA2I9B,CAAC"}
@@ -41,6 +41,7 @@ const FormulaBar = () => {
41
41
  const [before, setBefore] = react_1.default.useState('');
42
42
  const { choosing, editorRef, largeEditorRef, table, inputting, editingCell } = store;
43
43
  const [, sheetContext] = (0, SheetProvider_1.useSheetContext)();
44
+ const hlRef = react_1.default.useRef(null);
44
45
  const address = choosing.x === -1 ? '' : (0, converters_1.p2a)(choosing);
45
46
  react_1.default.useEffect(() => {
46
47
  var _a, _b;
@@ -57,6 +58,17 @@ const FormulaBar = () => {
57
58
  dispatch((0, actions_1.setEditingCell)(''));
58
59
  editorRef.current.focus();
59
60
  };
61
+ react_1.default.useEffect(() => {
62
+ const observer = new ResizeObserver((entries) => {
63
+ entries.forEach(updateScroll);
64
+ });
65
+ if (largeEditorRef.current) {
66
+ observer.observe(largeEditorRef.current);
67
+ }
68
+ return () => {
69
+ observer.disconnect();
70
+ };
71
+ }, []);
60
72
  const largeInput = largeEditorRef.current;
61
73
  const handleFocus = () => {
62
74
  var _a;
@@ -72,13 +84,21 @@ const FormulaBar = () => {
72
84
  dispatch((0, actions_1.setInputting)(e.currentTarget.value));
73
85
  (_a = sheetContext === null || sheetContext === void 0 ? void 0 : sheetContext.forceRender) === null || _a === void 0 ? void 0 : _a.call(sheetContext);
74
86
  };
87
+ const updateScroll = () => {
88
+ if (!hlRef.current || !largeEditorRef.current) {
89
+ return;
90
+ }
91
+ hlRef.current.style.height = `${largeEditorRef.current.clientHeight}px`;
92
+ hlRef.current.scrollLeft = largeEditorRef.current.scrollLeft;
93
+ hlRef.current.scrollTop = largeEditorRef.current.scrollTop;
94
+ };
75
95
  return (react_1.default.createElement("label", { className: "gs-formula-bar" },
76
96
  react_1.default.createElement("div", { className: "gs-selecting-address" }, address),
77
97
  react_1.default.createElement("div", { className: "gs-fx" }, "Fx"),
78
98
  react_1.default.createElement("div", { className: "gs-formula-bar-editor-inner" },
79
- react_1.default.createElement("div", { className: "gs-editor-hl", style: {
80
- height: (_a = largeEditorRef.current) === null || _a === void 0 ? void 0 : _a.scrollHeight,
81
- width: (_b = largeEditorRef.current) === null || _b === void 0 ? void 0 : _b.scrollWidth,
99
+ react_1.default.createElement("div", { className: "gs-editor-hl", ref: hlRef, style: {
100
+ height: (_a = largeEditorRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight,
101
+ width: (_b = largeEditorRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth,
82
102
  } }, (0, Editor_1.editorStyle)(inputting)),
83
103
  react_1.default.createElement("textarea", { rows: 1, spellCheck: false, ref: largeEditorRef, value: inputting, onInput: handleInput, onFocus: handleFocus, onBlur: (e) => {
84
104
  dispatch((0, actions_1.setLastEdited)(before));
@@ -124,8 +144,9 @@ const FormulaBar = () => {
124
144
  console.warn('This cell is protected from writing.');
125
145
  e.preventDefault();
126
146
  }
147
+ updateScroll();
127
148
  return false;
128
- } }))));
149
+ }, onKeyUp: updateScroll, onScroll: updateScroll }))));
129
150
  };
130
151
  exports.FormulaBar = FormulaBar;
131
152
  //# sourceMappingURL=FormulaBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormulaBar.js","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,oCAAmC;AACnC,kDAAwC;AACxC,8CAA+G;AAC/G,8DAAgD;AAChD,wCAAkD;AAClD,mDAAkD;AAClD,qCAAuC;AAEhC,MAAM,UAAU,GAAa,GAAG,EAAE;;IACvC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,eAAK,CAAC,UAAU,CAAC,eAAO,CAAC,CAAC;IACtD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC/C,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IACrF,MAAM,CAAC,EAAE,YAAY,CAAC,GAAG,IAAA,+BAAe,GAAE,CAA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,CAAC;gBACf,CAAC,EACD,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,YAAY,GACZ,CACR,CACA,CACT,CAAC;AACJ,CAAC,CAAC;AA3IW,QAAA,UAAU,cA2IrB"}
@@ -1,3 +1,3 @@
1
- export declare const LAST_MODIFIED = 1730556852;
2
- export declare const CSS = ".gs-root1{display:inline-block;max-width:100%;overflow:auto;font-family:\"SF Pro Text\",\"SF Pro Icons\",\"Helvetica Neue\",Helvetica,Arial,Meiryo,sans-serif}.gs-root1 .gs-main{overflow:hidden;position:relative;box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.gs-root1 .gs-resizing{width:100%;height:100%;position:absolute;background-color:rgba(0,127,255,.08);top:0;left:0;z-index:2}.gs-root1 .gs-line{position:relative;top:0;left:0;border:dotted 1px #07f;box-sizing:border-box}.gs-root1 .gs-line span{font-size:10px;padding:3px;background-color:#07f;color:#fff;margin:0;position:absolute;top:0;left:0}[data-theme=light]{background-color:#e2e2e2;color:#000}[data-theme=light] .gs-main{background-color:#e2e2e2;border-right:solid 1px #ddd;border-bottom:solid 1px #ddd}[data-theme=light] .gs-tabular{background-color:#e2e2e2}[data-theme=light] .gs-formula-bar{background-color:#efefef}[data-theme=light] .gs-formula-bar-editor-inner{color:#555}[data-theme=light] .gs-cell{border-top:solid 1px #ddd;border-left:solid 1px #ddd}[data-theme=light] .gs-adjuster{background-color:#ddd}[data-theme=light] .gs-tabular-inner{background-color:#f7f7f7}[data-theme=light] .gs-editor.gs-editing textarea{caret-color:#000}[data-theme=light] .gs-editor.gs-editing .gs-editor-hl{background-color:#f7f7f7;color:#000}[data-theme=light] .gs-th{background-color:#efefef;color:#666}[data-theme=light] .gs-th.gs-selecting{background-color:#d2d2d2}[data-theme=light] .gs-th.gs-choosing{background-color:#bbb}[data-theme=light] .gs-th.gs-th-selecting{background-color:#555;color:#fff}[data-theme=light] .gs-th-top .gs-th-inner{border-top:solid 1px #ddd}[data-theme=light] .gs-th-top .gs-th-inner-wrap{border-left:solid 1px #ddd}[data-theme=light] .gs-th-left .gs-th-inner{border-left:solid 1px #ddd}[data-theme=light] .gs-th-left .gs-th-inner-wrap{border-top:solid 1px #ddd}[data-theme=dark]{background-color:#3f3f3f;color:#eee}[data-theme=dark] .gs-main{background-color:#3f3f3f;border-right:solid 1px #5a5a5a;border-bottom:solid 1px #5a5a5a}[data-theme=dark] .gs-tabular{background-color:#3f3f3f}[data-theme=dark] .gs-formula-bar{background-color:#4f4f4f}[data-theme=dark] .gs-formula-bar-editor-inner{color:#bbb}[data-theme=dark] .gs-cell{border-top:solid 1px #5a5a5a;border-left:solid 1px #5a5a5a}[data-theme=dark] .gs-adjuster{background-color:#5a5a5a}[data-theme=dark] .gs-tabular-inner{background-color:#212121}[data-theme=dark] .gs-editor.gs-editing textarea{caret-color:#eee}[data-theme=dark] .gs-editor.gs-editing .gs-editor-hl{background-color:#212121;color:#eee}[data-theme=dark] .gs-large-editor textarea{color:#eee;caret-color:#eee}[data-theme=dark] .gs-th{background-color:#4f4f4f;color:#eee}[data-theme=dark] .gs-th.gs-selecting{background-color:#606060}[data-theme=dark] .gs-th.gs-choosing{background-color:#777}[data-theme=dark] .gs-th.gs-th-selecting{background-color:#aaa;color:#444}[data-theme=dark] .gs-th-top .gs-th-inner{border-top:solid 1px #5a5a5a}[data-theme=dark] .gs-th-top .gs-th-inner-wrap{border-left:solid 1px #5a5a5a}[data-theme=dark] .gs-th-left .gs-th-inner{border-left:solid 1px #5a5a5a}[data-theme=dark] .gs-th-left .gs-th-inner-wrap{border-top:solid 1px #5a5a5a}.gs-cell{padding:0;margin:0;box-sizing:border-box;position:relative;font-size:13px;letter-spacing:1px;line-height:24px}.gs-cell .gs-cell-inner-wrap.gs-selecting{background-color:rgba(0,128,255,.2)}.gs-cell.gs-copying textarea:focus{outline:solid 1px #07f}.gs-cell.gs-selecting{z-index:1}.gs-cell.gs-selecting .gs-cell-inner{background-color:rgba(0,128,255,.2)}.gs-cell.gs-selecting .gs-cell-label{display:block}.gs-cell.gs-choosing{margin-top:-1px;margin-left:-1px;z-index:1}.gs-cell.gs-choosing.gs-editing{color:transparent}.gs-cell.gs-choosing .gs-cell-label{display:block}.gs-cell .gs-formula-error-triangle{position:absolute;top:0;right:0;border-top:3px solid rgba(200,0,0,.9);border-right:3px solid rgba(200,0,0,.9);border-bottom:3px solid transparent;border-left:3px solid transparent;z-index:1}.gs-cell .gs-cell-label{font-size:8px;font-weight:400;font-style:normal;font-family:math,monospace,serif;letter-spacing:1px;line-height:14px;position:absolute;top:0;right:0;background-color:rgba(0,128,255,.2);color:rgba(255,255,255,.6);padding:0 2px;display:none;opacity:.7}.gs-cell .gs-cell-inner-wrap{width:100%;height:100%;position:absolute;top:0;left:0}.gs-cell .gs-cell-inner{width:100%;height:100%;overflow:hidden;display:flex;box-sizing:border-box;border:none!important}.gs-cell .gs-cell-rendered{overflow:hidden;white-space:pre-wrap;cursor:auto;word-wrap:break-word;word-break:break-all;padding:0 2px}.gs-cell .gs-cell-rendered>*{position:relative}.gs-cell .gs-cell-rendered>.backface{z-index:0}.gs-cell .gs-autofill-drag{background-color:#07f;position:absolute;width:7px;height:7px;bottom:0;right:0;margin-right:-3.5px;margin-bottom:-3.5px;cursor:crosshair;z-index:1}.gs-th[data-x=\"1\"] .gs-th-inner-wrap{border-left:none}.gs-th[data-y=\"1\"] .gs-th-inner-wrap{border-top:none}.gs-cell[data-x=\"1\"]{border-left:none}.gs-cell[data-y=\"1\"]{border-top:none}.gs-contextmenu-modal{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:3}.gs-contextmenu{z-index:3;position:fixed;background-color:#fff;padding:5px 0;border-radius:5px;box-shadow:rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px}.gs-contextmenu ul{min-width:250px;color:#555;margin:0;padding:0}.gs-contextmenu li{padding:5px 10px;list-style-type:none;display:flex}.gs-contextmenu li.gs-enabled{cursor:pointer}.gs-contextmenu li.gs-enabled:hover{background-color:#eee}.gs-contextmenu li.gs-disabled{opacity:.5;cursor:not-allowed}.gs-contextmenu li.gs-menu-divider{background-color:#aaa;margin:10px 0;padding:0;height:1px}.gs-contextmenu li .gs-menu-name{flex:1;font-size:15px;letter-spacing:1px}.gs-contextmenu li .gs-menu-shortcut{font-size:10px;line-height:15px;color:#999;width:15px}.gs-contextmenu li .gs-menu-shortcut:before{content:\"(\"}.gs-contextmenu li .gs-menu-shortcut:after{content:\")\"}.gs-contextmenu li .gs-menu-shortcut .gs-menu-underline{text-decoration:underline}.gs-editor-hl{padding:0 2px;position:absolute;font-family:monospace,Arial;font-size:12px;line-height:24px;letter-spacing:1px}.gs-formula-bar-editor-inner{position:relative;overflow-y:hidden}.gs-editor{position:fixed;opacity:0;z-index:-1}.gs-editor .gs-editor-inner{position:relative}.gs-editor .gs-editor-hl{box-sizing:content-box;border:solid 2px #07f;margin:-2px -1px}.gs-editor textarea{width:100%;padding:0 2px;position:absolute;font-size:12px;font-family:monospace,Arial;line-height:24px;letter-spacing:1px;top:0;left:0;border:none;outline:0;background-color:transparent;color:transparent;resize:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;overflow:hidden;cursor:default;white-space:pre;height:auto}.gs-editor.gs-editing{z-index:3;opacity:1}.gs-editor.gs-editing .gs-cell-label{pointer-events:none;font-family:math,monospace,serif;position:absolute;top:0;right:0;margin-top:-15px;margin-right:-2px;padding:0 2px;font-size:10px;background-color:rgba(0,119,255,.75);color:#fff;z-index:1}.gs-formula-bar{width:100%;display:table;align-items:center;justify-content:center;border-top:solid 1px rgba(128,128,128,.3);border-left:solid 1px rgba(128,128,128,.3);border-right:solid 1px rgba(128,128,128,.3);box-sizing:border-box}.gs-formula-bar .gs-selecting-address{display:table-cell;vertical-align:middle;width:50px;color:rgba(200,200,200);font-size:13px;padding-left:5px}.gs-formula-bar .gs-fx{display:table-cell;vertical-align:middle;width:30px;color:rgba(200,200,200);font-style:italic;font-family:cursive;text-align:center;border-left:solid 1px rgba(128,128,128,.5)}.gs-formula-bar .gs-editor-hl{z-index:0;box-sizing:border-box;white-space:pre-wrap;word-break:break-all}.gs-formula-bar textarea{display:table-cell;position:relative;z-index:1;width:100%;vertical-align:bottom;color:transparent;border:none;background-color:transparent;padding:0 2px;box-sizing:border-box;outline:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;font-size:12px;font-family:monospace,Arial;height:24px;line-height:24px;min-height:24px;letter-spacing:1px;resize:vertical;caret-color:rgba(128,128,128);white-space:pre-wrap;word-break:break-all}.gs-token-type-INVALID_REF{color:red}.gs-token-type-VALUE.gs-token-entity-type-boolean,.gs-token-type-VALUE.gs-token-entity-type-number{color:#39f}.gs-token-type-VALUE.gs-token-entity-type-string{color:#090}.gs-adjuster{padding:0}.gs-tabular{overflow:auto;display:block;box-sizing:border-box;overscroll-behavior-x:contain}.gs-tabular-inner>table{table-layout:fixed;border-collapse:collapse}.gs-th{z-index:2;padding:0;position:sticky;font-size:13px;font-weight:400;box-sizing:border-box;vertical-align:top}.gs-th .gs-resizer{position:absolute;border-color:transparent;box-sizing:border-box;z-index:2}.gs-th .gs-resizer:hover{background-color:#07f}.gs-th .gs-resizer.gs-protected{display:none}.gs-th-inner{height:100%;box-sizing:border-box;vertical-align:middle;overflow:hidden;display:flex;align-items:center;justify-content:center}.gs-th-inner-wrap{height:100%;box-sizing:border-box}.gs-th-top{top:0;overflow:hidden}.gs-th-top .gs-resizer{top:0;right:0;width:3px;cursor:e-resize}.gs-th-top .gs-resizer.gs-dragging{border-right-style:dotted;height:1000000px!important;cursor:e-resize}.gs-th-left{left:0;overflow:hidden;min-width:30px}.gs-th-left .gs-resizer{left:0;bottom:0;height:3px;cursor:n-resize}.gs-th-left .gs-resizer.gs-dragging{border-bottom-style:dotted;width:1000000px!important;cursor:n-resize}.gs-th-top.gs-th-left{top:0;left:0;z-index:3}.gs-search{width:300px;box-shadow:rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px;display:flex;background-color:#fdfdfd;border:solid 2px #eee;border-radius:5px;padding:10px;position:fixed;top:10px;right:10px;z-index:5}.gs-search .gs-searchbox{display:flex;position:relative;border:solid 2px #07f;border-radius:5px;flex:1}.gs-search .gs-searchbox input[type=text]{padding:5px;background-color:transparent;border:none;outline:0;z-index:1;flex:1}.gs-search .gs-search-progress{color:#999;padding:6px 3px;font-size:13px;text-align:right}.gs-search .gs-search-close{margin:6px 5px;cursor:pointer;color:#ddd;width:50px;text-align:center}";
1
+ export declare const LAST_MODIFIED = 1730618877;
2
+ export declare const CSS = ".gs-root1{display:inline-block;max-width:100%;overflow:auto;font-family:\"SF Pro Text\",\"SF Pro Icons\",\"Helvetica Neue\",Helvetica,Arial,Meiryo,sans-serif}.gs-root1 .gs-main{overflow:hidden;position:relative;box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.gs-root1 .gs-resizing{width:100%;height:100%;position:absolute;background-color:rgba(0,127,255,.08);top:0;left:0;z-index:2}.gs-root1 .gs-line{position:relative;top:0;left:0;border:dotted 1px #07f;box-sizing:border-box}.gs-root1 .gs-line span{font-size:10px;padding:3px;background-color:#07f;color:#fff;margin:0;position:absolute;top:0;left:0}.gs-root1[data-theme=light]{background-color:#e2e2e2;color:#000}.gs-root1[data-theme=light] .gs-main{background-color:#e2e2e2;border-right:solid 1px #ddd;border-bottom:solid 1px #ddd}.gs-root1[data-theme=light] .gs-tabular{background-color:#e2e2e2}.gs-root1[data-theme=light] .gs-formula-bar{background-color:#efefef}.gs-root1[data-theme=light] .gs-formula-bar-editor-inner{color:#555}.gs-root1[data-theme=light] .gs-cell{border-top:solid 1px #ddd;border-left:solid 1px #ddd}.gs-root1[data-theme=light] .gs-adjuster{background-color:#ddd}.gs-root1[data-theme=light] .gs-tabular-inner{background-color:#f7f7f7}.gs-root1[data-theme=light] .gs-editor.gs-editing textarea{caret-color:#000}.gs-root1[data-theme=light] .gs-editor.gs-editing .gs-editor-hl{background-color:#f7f7f7;color:#000}.gs-root1[data-theme=light] .gs-th{background-color:#efefef;color:#666}.gs-root1[data-theme=light] .gs-th.gs-selecting{background-color:#d2d2d2}.gs-root1[data-theme=light] .gs-th.gs-choosing{background-color:#bbb}.gs-root1[data-theme=light] .gs-th.gs-th-selecting{background-color:#555;color:#fff}.gs-root1[data-theme=light] .gs-th-top .gs-th-inner{border-top:solid 1px #ddd}.gs-root1[data-theme=light] .gs-th-top .gs-th-inner-wrap{border-left:solid 1px #ddd}.gs-root1[data-theme=light] .gs-th-left .gs-th-inner{border-left:solid 1px #ddd}.gs-root1[data-theme=light] .gs-th-left .gs-th-inner-wrap{border-top:solid 1px #ddd}.gs-root1[data-theme=dark]{background-color:#3f3f3f;color:#eee}.gs-root1[data-theme=dark] .gs-main{background-color:#3f3f3f;border-right:solid 1px #5a5a5a;border-bottom:solid 1px #5a5a5a}.gs-root1[data-theme=dark] .gs-tabular{background-color:#3f3f3f}.gs-root1[data-theme=dark] .gs-formula-bar{background-color:#4f4f4f}.gs-root1[data-theme=dark] .gs-formula-bar-editor-inner{color:#bbb}.gs-root1[data-theme=dark] .gs-cell{border-top:solid 1px #5a5a5a;border-left:solid 1px #5a5a5a}.gs-root1[data-theme=dark] .gs-adjuster{background-color:#5a5a5a}.gs-root1[data-theme=dark] .gs-tabular-inner{background-color:#212121}.gs-root1[data-theme=dark] .gs-editor.gs-editing textarea{caret-color:#eee}.gs-root1[data-theme=dark] .gs-editor.gs-editing .gs-editor-hl{background-color:#212121;color:#eee}.gs-root1[data-theme=dark] .gs-large-editor textarea{color:#eee;caret-color:#eee}.gs-root1[data-theme=dark] .gs-th{background-color:#4f4f4f;color:#eee}.gs-root1[data-theme=dark] .gs-th.gs-selecting{background-color:#606060}.gs-root1[data-theme=dark] .gs-th.gs-choosing{background-color:#777}.gs-root1[data-theme=dark] .gs-th.gs-th-selecting{background-color:#aaa;color:#444}.gs-root1[data-theme=dark] .gs-th-top .gs-th-inner{border-top:solid 1px #5a5a5a}.gs-root1[data-theme=dark] .gs-th-top .gs-th-inner-wrap{border-left:solid 1px #5a5a5a}.gs-root1[data-theme=dark] .gs-th-left .gs-th-inner{border-left:solid 1px #5a5a5a}.gs-root1[data-theme=dark] .gs-th-left .gs-th-inner-wrap{border-top:solid 1px #5a5a5a}.gs-root1 .gs-cell{padding:0;margin:0;box-sizing:border-box;position:relative;font-size:13px;letter-spacing:1px;line-height:24px}.gs-root1 .gs-cell .gs-cell-inner-wrap.gs-selecting{background-color:rgba(0,128,255,.2)}.gs-root1 .gs-cell.gs-copying textarea:focus{outline:solid 1px #07f}.gs-root1 .gs-cell.gs-selecting{z-index:1}.gs-root1 .gs-cell.gs-selecting .gs-cell-inner{background-color:rgba(0,128,255,.2)}.gs-root1 .gs-cell.gs-selecting .gs-cell-label{display:block}.gs-root1 .gs-cell.gs-choosing{margin-top:-1px;margin-left:-1px;z-index:1}.gs-root1 .gs-cell.gs-choosing.gs-editing{color:transparent}.gs-root1 .gs-cell.gs-choosing .gs-cell-label{display:block}.gs-root1 .gs-cell .gs-formula-error-triangle{position:absolute;top:0;right:0;border-top:3px solid rgba(200,0,0,.9);border-right:3px solid rgba(200,0,0,.9);border-bottom:3px solid transparent;border-left:3px solid transparent;z-index:1}.gs-root1 .gs-cell .gs-cell-label{font-size:8px;font-weight:400;font-style:normal;font-family:math,monospace,serif;letter-spacing:1px;line-height:14px;position:absolute;top:0;right:0;background-color:rgba(0,128,255,.2);color:rgba(255,255,255,.6);padding:0 2px;display:none;opacity:.7}.gs-root1 .gs-cell .gs-cell-inner-wrap{width:100%;height:100%;position:absolute;top:0;left:0}.gs-root1 .gs-cell .gs-cell-inner{width:100%;height:100%;overflow:hidden;display:flex;box-sizing:border-box;border:none!important}.gs-root1 .gs-cell .gs-cell-rendered{overflow:hidden;white-space:pre-wrap;cursor:auto;word-wrap:break-word;word-break:break-all;padding:0 2px}.gs-root1 .gs-cell .gs-cell-rendered>*{position:relative}.gs-root1 .gs-cell .gs-cell-rendered>.backface{z-index:0}.gs-root1 .gs-cell .gs-autofill-drag{background-color:#07f;position:absolute;width:7px;height:7px;bottom:0;right:0;margin-right:-3.5px;margin-bottom:-3.5px;cursor:crosshair;z-index:1}.gs-root1 .gs-th[data-x=\"1\"] .gs-th-inner-wrap{border-left:none}.gs-root1 .gs-th[data-y=\"1\"] .gs-th-inner-wrap{border-top:none}.gs-root1 .gs-cell[data-x=\"1\"]{border-left:none}.gs-root1 .gs-cell[data-y=\"1\"]{border-top:none}.gs-root1 .gs-contextmenu-modal{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:3}.gs-root1 .gs-contextmenu{z-index:3;position:fixed;background-color:#fff;padding:5px 0;border-radius:5px;box-shadow:rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px}.gs-root1 .gs-contextmenu ul{min-width:250px;color:#555;margin:0;padding:0}.gs-root1 .gs-contextmenu li{padding:5px 10px;list-style-type:none;display:flex}.gs-root1 .gs-contextmenu li.gs-enabled{cursor:pointer}.gs-root1 .gs-contextmenu li.gs-enabled:hover{background-color:#eee}.gs-root1 .gs-contextmenu li.gs-disabled{opacity:.5;cursor:not-allowed}.gs-root1 .gs-contextmenu li.gs-menu-divider{background-color:#aaa;margin:10px 0;padding:0;height:1px}.gs-root1 .gs-contextmenu li .gs-menu-name{flex:1;font-size:15px;letter-spacing:1px}.gs-root1 .gs-contextmenu li .gs-menu-shortcut{font-size:10px;line-height:15px;color:#999;width:15px}.gs-root1 .gs-contextmenu li .gs-menu-shortcut:before{content:\"(\"}.gs-root1 .gs-contextmenu li .gs-menu-shortcut:after{content:\")\"}.gs-root1 .gs-contextmenu li .gs-menu-shortcut .gs-menu-underline{text-decoration:underline}.gs-root1 .gs-editor-hl{padding:0 2px;position:absolute;font-family:monospace,Arial;font-size:12px;line-height:24px;letter-spacing:1px}.gs-root1 .gs-formula-bar-editor-inner{position:relative}.gs-root1 .gs-editor{position:fixed;opacity:0;z-index:-1}.gs-root1 .gs-editor .gs-editor-inner{position:relative}.gs-root1 .gs-editor .gs-editor-hl{box-sizing:content-box;border:solid 2px #07f;margin:-2px -1px}.gs-root1 .gs-editor textarea{width:100%;padding:0 2px;position:absolute;font-size:12px;font-family:monospace,Arial;line-height:24px;letter-spacing:1px;top:0;left:0;border:none;outline:0;background-color:transparent;color:transparent;resize:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;overflow:hidden;cursor:default;white-space:pre;height:auto}.gs-root1 .gs-editor.gs-editing{z-index:3;opacity:1}.gs-root1 .gs-editor.gs-editing .gs-cell-label{pointer-events:none;font-family:math,monospace,serif;position:absolute;top:0;right:0;margin-top:-15px;margin-right:-2px;padding:0 2px;font-size:10px;background-color:rgba(0,119,255,.75);color:#fff;z-index:1}.gs-root1 .gs-formula-bar{width:100%;display:table;align-items:center;justify-content:center;border-top:solid 1px rgba(128,128,128,.3);border-left:solid 1px rgba(128,128,128,.3);border-right:solid 1px rgba(128,128,128,.3);box-sizing:border-box}.gs-root1 .gs-formula-bar .gs-selecting-address{display:table-cell;vertical-align:middle;width:50px;color:rgba(200,200,200);font-size:13px;padding-left:5px}.gs-root1 .gs-formula-bar .gs-fx{display:table-cell;vertical-align:middle;width:30px;color:rgba(200,200,200);font-style:italic;font-family:cursive;text-align:center;border-left:solid 1px rgba(128,128,128,.5)}.gs-root1 .gs-formula-bar .gs-editor-hl{z-index:0;overflow-y:auto;box-sizing:border-box;white-space:pre-wrap;word-break:break-all}.gs-root1 .gs-formula-bar textarea{display:table-cell;position:relative;z-index:1;width:100%;vertical-align:bottom;color:transparent;border:none;background-color:transparent;padding:0 2px;box-sizing:border-box;outline:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;font-size:12px;font-family:monospace,Arial;height:24px;line-height:24px;min-height:24px;letter-spacing:1px;resize:vertical;caret-color:rgba(128,128,128);white-space:pre-wrap;word-break:break-all}.gs-root1 .gs-token-type-INVALID_REF{color:red}.gs-root1 .gs-token-type-VALUE.gs-token-entity-type-boolean,.gs-root1 .gs-token-type-VALUE.gs-token-entity-type-number{color:#39f}.gs-root1 .gs-token-type-VALUE.gs-token-entity-type-string{color:#090}.gs-root1 .gs-adjuster{padding:0}.gs-root1 .gs-tabular{overflow:auto;display:block;box-sizing:border-box;overscroll-behavior-x:contain}.gs-root1 .gs-tabular-inner>table{table-layout:fixed;border-collapse:collapse}.gs-root1 .gs-th{z-index:2;padding:0;position:sticky;font-size:13px;font-weight:400;box-sizing:border-box;vertical-align:top}.gs-root1 .gs-th .gs-resizer{position:absolute;border-color:transparent;box-sizing:border-box;z-index:2}.gs-root1 .gs-th .gs-resizer:hover{background-color:#07f}.gs-root1 .gs-th .gs-resizer.gs-protected{display:none}.gs-root1 .gs-th-inner{height:100%;box-sizing:border-box;vertical-align:middle;overflow:hidden;display:flex;align-items:center;justify-content:center}.gs-root1 .gs-th-inner-wrap{height:100%;box-sizing:border-box}.gs-root1 .gs-th-top{top:0;overflow:hidden}.gs-root1 .gs-th-top .gs-resizer{top:0;right:0;width:3px;cursor:e-resize}.gs-root1 .gs-th-top .gs-resizer.gs-dragging{border-right-style:dotted;height:1000000px!important;cursor:e-resize}.gs-root1 .gs-th-left{left:0;overflow:hidden;min-width:30px}.gs-root1 .gs-th-left .gs-resizer{left:0;bottom:0;height:3px;cursor:n-resize}.gs-root1 .gs-th-left .gs-resizer.gs-dragging{border-bottom-style:dotted;width:1000000px!important;cursor:n-resize}.gs-root1 .gs-th-top.gs-th-left{top:0;left:0;z-index:3}.gs-root1 .gs-search{width:300px;box-shadow:rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px;display:flex;background-color:#fdfdfd;border:solid 2px #eee;border-radius:5px;padding:10px;position:fixed;top:10px;right:10px;z-index:5}.gs-root1 .gs-search .gs-searchbox{display:flex;position:relative;border:solid 2px #07f;border-radius:5px;flex:1}.gs-root1 .gs-search .gs-searchbox input[type=text]{padding:5px;background-color:transparent;border:none;outline:0;z-index:1;flex:1}.gs-root1 .gs-search .gs-search-progress{color:#999;padding:6px 3px;font-size:13px;text-align:right}.gs-root1 .gs-search .gs-search-close{margin:6px 5px;cursor:pointer;color:#ddd;width:50px;text-align:center}";
3
3
  //# sourceMappingURL=minified.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"minified.d.ts","sourceRoot":"","sources":["../../src/styles/minified.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,aAAa,CAAC;AACxC,eAAO,MAAM,GAAG,qhUAAmgU,CAAC"}
1
+ {"version":3,"file":"minified.d.ts","sourceRoot":"","sources":["../../src/styles/minified.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,aAAa,CAAC;AACxC,eAAO,MAAM,GAAG,gjWAA8hW,CAAC"}
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CSS = exports.LAST_MODIFIED = void 0;
4
4
  // yarn generate-style
5
- exports.LAST_MODIFIED = 1730556852;
6
- exports.CSS = `.gs-root1{display:inline-block;max-width:100%;overflow:auto;font-family:"SF Pro Text","SF Pro Icons","Helvetica Neue",Helvetica,Arial,Meiryo,sans-serif}.gs-root1 .gs-main{overflow:hidden;position:relative;box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.gs-root1 .gs-resizing{width:100%;height:100%;position:absolute;background-color:rgba(0,127,255,.08);top:0;left:0;z-index:2}.gs-root1 .gs-line{position:relative;top:0;left:0;border:dotted 1px #07f;box-sizing:border-box}.gs-root1 .gs-line span{font-size:10px;padding:3px;background-color:#07f;color:#fff;margin:0;position:absolute;top:0;left:0}[data-theme=light]{background-color:#e2e2e2;color:#000}[data-theme=light] .gs-main{background-color:#e2e2e2;border-right:solid 1px #ddd;border-bottom:solid 1px #ddd}[data-theme=light] .gs-tabular{background-color:#e2e2e2}[data-theme=light] .gs-formula-bar{background-color:#efefef}[data-theme=light] .gs-formula-bar-editor-inner{color:#555}[data-theme=light] .gs-cell{border-top:solid 1px #ddd;border-left:solid 1px #ddd}[data-theme=light] .gs-adjuster{background-color:#ddd}[data-theme=light] .gs-tabular-inner{background-color:#f7f7f7}[data-theme=light] .gs-editor.gs-editing textarea{caret-color:#000}[data-theme=light] .gs-editor.gs-editing .gs-editor-hl{background-color:#f7f7f7;color:#000}[data-theme=light] .gs-th{background-color:#efefef;color:#666}[data-theme=light] .gs-th.gs-selecting{background-color:#d2d2d2}[data-theme=light] .gs-th.gs-choosing{background-color:#bbb}[data-theme=light] .gs-th.gs-th-selecting{background-color:#555;color:#fff}[data-theme=light] .gs-th-top .gs-th-inner{border-top:solid 1px #ddd}[data-theme=light] .gs-th-top .gs-th-inner-wrap{border-left:solid 1px #ddd}[data-theme=light] .gs-th-left .gs-th-inner{border-left:solid 1px #ddd}[data-theme=light] .gs-th-left .gs-th-inner-wrap{border-top:solid 1px #ddd}[data-theme=dark]{background-color:#3f3f3f;color:#eee}[data-theme=dark] .gs-main{background-color:#3f3f3f;border-right:solid 1px #5a5a5a;border-bottom:solid 1px #5a5a5a}[data-theme=dark] .gs-tabular{background-color:#3f3f3f}[data-theme=dark] .gs-formula-bar{background-color:#4f4f4f}[data-theme=dark] .gs-formula-bar-editor-inner{color:#bbb}[data-theme=dark] .gs-cell{border-top:solid 1px #5a5a5a;border-left:solid 1px #5a5a5a}[data-theme=dark] .gs-adjuster{background-color:#5a5a5a}[data-theme=dark] .gs-tabular-inner{background-color:#212121}[data-theme=dark] .gs-editor.gs-editing textarea{caret-color:#eee}[data-theme=dark] .gs-editor.gs-editing .gs-editor-hl{background-color:#212121;color:#eee}[data-theme=dark] .gs-large-editor textarea{color:#eee;caret-color:#eee}[data-theme=dark] .gs-th{background-color:#4f4f4f;color:#eee}[data-theme=dark] .gs-th.gs-selecting{background-color:#606060}[data-theme=dark] .gs-th.gs-choosing{background-color:#777}[data-theme=dark] .gs-th.gs-th-selecting{background-color:#aaa;color:#444}[data-theme=dark] .gs-th-top .gs-th-inner{border-top:solid 1px #5a5a5a}[data-theme=dark] .gs-th-top .gs-th-inner-wrap{border-left:solid 1px #5a5a5a}[data-theme=dark] .gs-th-left .gs-th-inner{border-left:solid 1px #5a5a5a}[data-theme=dark] .gs-th-left .gs-th-inner-wrap{border-top:solid 1px #5a5a5a}.gs-cell{padding:0;margin:0;box-sizing:border-box;position:relative;font-size:13px;letter-spacing:1px;line-height:24px}.gs-cell .gs-cell-inner-wrap.gs-selecting{background-color:rgba(0,128,255,.2)}.gs-cell.gs-copying textarea:focus{outline:solid 1px #07f}.gs-cell.gs-selecting{z-index:1}.gs-cell.gs-selecting .gs-cell-inner{background-color:rgba(0,128,255,.2)}.gs-cell.gs-selecting .gs-cell-label{display:block}.gs-cell.gs-choosing{margin-top:-1px;margin-left:-1px;z-index:1}.gs-cell.gs-choosing.gs-editing{color:transparent}.gs-cell.gs-choosing .gs-cell-label{display:block}.gs-cell .gs-formula-error-triangle{position:absolute;top:0;right:0;border-top:3px solid rgba(200,0,0,.9);border-right:3px solid rgba(200,0,0,.9);border-bottom:3px solid transparent;border-left:3px solid transparent;z-index:1}.gs-cell .gs-cell-label{font-size:8px;font-weight:400;font-style:normal;font-family:math,monospace,serif;letter-spacing:1px;line-height:14px;position:absolute;top:0;right:0;background-color:rgba(0,128,255,.2);color:rgba(255,255,255,.6);padding:0 2px;display:none;opacity:.7}.gs-cell .gs-cell-inner-wrap{width:100%;height:100%;position:absolute;top:0;left:0}.gs-cell .gs-cell-inner{width:100%;height:100%;overflow:hidden;display:flex;box-sizing:border-box;border:none!important}.gs-cell .gs-cell-rendered{overflow:hidden;white-space:pre-wrap;cursor:auto;word-wrap:break-word;word-break:break-all;padding:0 2px}.gs-cell .gs-cell-rendered>*{position:relative}.gs-cell .gs-cell-rendered>.backface{z-index:0}.gs-cell .gs-autofill-drag{background-color:#07f;position:absolute;width:7px;height:7px;bottom:0;right:0;margin-right:-3.5px;margin-bottom:-3.5px;cursor:crosshair;z-index:1}.gs-th[data-x="1"] .gs-th-inner-wrap{border-left:none}.gs-th[data-y="1"] .gs-th-inner-wrap{border-top:none}.gs-cell[data-x="1"]{border-left:none}.gs-cell[data-y="1"]{border-top:none}.gs-contextmenu-modal{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:3}.gs-contextmenu{z-index:3;position:fixed;background-color:#fff;padding:5px 0;border-radius:5px;box-shadow:rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px}.gs-contextmenu ul{min-width:250px;color:#555;margin:0;padding:0}.gs-contextmenu li{padding:5px 10px;list-style-type:none;display:flex}.gs-contextmenu li.gs-enabled{cursor:pointer}.gs-contextmenu li.gs-enabled:hover{background-color:#eee}.gs-contextmenu li.gs-disabled{opacity:.5;cursor:not-allowed}.gs-contextmenu li.gs-menu-divider{background-color:#aaa;margin:10px 0;padding:0;height:1px}.gs-contextmenu li .gs-menu-name{flex:1;font-size:15px;letter-spacing:1px}.gs-contextmenu li .gs-menu-shortcut{font-size:10px;line-height:15px;color:#999;width:15px}.gs-contextmenu li .gs-menu-shortcut:before{content:"("}.gs-contextmenu li .gs-menu-shortcut:after{content:")"}.gs-contextmenu li .gs-menu-shortcut .gs-menu-underline{text-decoration:underline}.gs-editor-hl{padding:0 2px;position:absolute;font-family:monospace,Arial;font-size:12px;line-height:24px;letter-spacing:1px}.gs-formula-bar-editor-inner{position:relative;overflow-y:hidden}.gs-editor{position:fixed;opacity:0;z-index:-1}.gs-editor .gs-editor-inner{position:relative}.gs-editor .gs-editor-hl{box-sizing:content-box;border:solid 2px #07f;margin:-2px -1px}.gs-editor textarea{width:100%;padding:0 2px;position:absolute;font-size:12px;font-family:monospace,Arial;line-height:24px;letter-spacing:1px;top:0;left:0;border:none;outline:0;background-color:transparent;color:transparent;resize:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;overflow:hidden;cursor:default;white-space:pre;height:auto}.gs-editor.gs-editing{z-index:3;opacity:1}.gs-editor.gs-editing .gs-cell-label{pointer-events:none;font-family:math,monospace,serif;position:absolute;top:0;right:0;margin-top:-15px;margin-right:-2px;padding:0 2px;font-size:10px;background-color:rgba(0,119,255,.75);color:#fff;z-index:1}.gs-formula-bar{width:100%;display:table;align-items:center;justify-content:center;border-top:solid 1px rgba(128,128,128,.3);border-left:solid 1px rgba(128,128,128,.3);border-right:solid 1px rgba(128,128,128,.3);box-sizing:border-box}.gs-formula-bar .gs-selecting-address{display:table-cell;vertical-align:middle;width:50px;color:rgba(200,200,200);font-size:13px;padding-left:5px}.gs-formula-bar .gs-fx{display:table-cell;vertical-align:middle;width:30px;color:rgba(200,200,200);font-style:italic;font-family:cursive;text-align:center;border-left:solid 1px rgba(128,128,128,.5)}.gs-formula-bar .gs-editor-hl{z-index:0;box-sizing:border-box;white-space:pre-wrap;word-break:break-all}.gs-formula-bar textarea{display:table-cell;position:relative;z-index:1;width:100%;vertical-align:bottom;color:transparent;border:none;background-color:transparent;padding:0 2px;box-sizing:border-box;outline:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;font-size:12px;font-family:monospace,Arial;height:24px;line-height:24px;min-height:24px;letter-spacing:1px;resize:vertical;caret-color:rgba(128,128,128);white-space:pre-wrap;word-break:break-all}.gs-token-type-INVALID_REF{color:red}.gs-token-type-VALUE.gs-token-entity-type-boolean,.gs-token-type-VALUE.gs-token-entity-type-number{color:#39f}.gs-token-type-VALUE.gs-token-entity-type-string{color:#090}.gs-adjuster{padding:0}.gs-tabular{overflow:auto;display:block;box-sizing:border-box;overscroll-behavior-x:contain}.gs-tabular-inner>table{table-layout:fixed;border-collapse:collapse}.gs-th{z-index:2;padding:0;position:sticky;font-size:13px;font-weight:400;box-sizing:border-box;vertical-align:top}.gs-th .gs-resizer{position:absolute;border-color:transparent;box-sizing:border-box;z-index:2}.gs-th .gs-resizer:hover{background-color:#07f}.gs-th .gs-resizer.gs-protected{display:none}.gs-th-inner{height:100%;box-sizing:border-box;vertical-align:middle;overflow:hidden;display:flex;align-items:center;justify-content:center}.gs-th-inner-wrap{height:100%;box-sizing:border-box}.gs-th-top{top:0;overflow:hidden}.gs-th-top .gs-resizer{top:0;right:0;width:3px;cursor:e-resize}.gs-th-top .gs-resizer.gs-dragging{border-right-style:dotted;height:1000000px!important;cursor:e-resize}.gs-th-left{left:0;overflow:hidden;min-width:30px}.gs-th-left .gs-resizer{left:0;bottom:0;height:3px;cursor:n-resize}.gs-th-left .gs-resizer.gs-dragging{border-bottom-style:dotted;width:1000000px!important;cursor:n-resize}.gs-th-top.gs-th-left{top:0;left:0;z-index:3}.gs-search{width:300px;box-shadow:rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px;display:flex;background-color:#fdfdfd;border:solid 2px #eee;border-radius:5px;padding:10px;position:fixed;top:10px;right:10px;z-index:5}.gs-search .gs-searchbox{display:flex;position:relative;border:solid 2px #07f;border-radius:5px;flex:1}.gs-search .gs-searchbox input[type=text]{padding:5px;background-color:transparent;border:none;outline:0;z-index:1;flex:1}.gs-search .gs-search-progress{color:#999;padding:6px 3px;font-size:13px;text-align:right}.gs-search .gs-search-close{margin:6px 5px;cursor:pointer;color:#ddd;width:50px;text-align:center}`;
5
+ exports.LAST_MODIFIED = 1730618877;
6
+ exports.CSS = `.gs-root1{display:inline-block;max-width:100%;overflow:auto;font-family:"SF Pro Text","SF Pro Icons","Helvetica Neue",Helvetica,Arial,Meiryo,sans-serif}.gs-root1 .gs-main{overflow:hidden;position:relative;box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.gs-root1 .gs-resizing{width:100%;height:100%;position:absolute;background-color:rgba(0,127,255,.08);top:0;left:0;z-index:2}.gs-root1 .gs-line{position:relative;top:0;left:0;border:dotted 1px #07f;box-sizing:border-box}.gs-root1 .gs-line span{font-size:10px;padding:3px;background-color:#07f;color:#fff;margin:0;position:absolute;top:0;left:0}.gs-root1[data-theme=light]{background-color:#e2e2e2;color:#000}.gs-root1[data-theme=light] .gs-main{background-color:#e2e2e2;border-right:solid 1px #ddd;border-bottom:solid 1px #ddd}.gs-root1[data-theme=light] .gs-tabular{background-color:#e2e2e2}.gs-root1[data-theme=light] .gs-formula-bar{background-color:#efefef}.gs-root1[data-theme=light] .gs-formula-bar-editor-inner{color:#555}.gs-root1[data-theme=light] .gs-cell{border-top:solid 1px #ddd;border-left:solid 1px #ddd}.gs-root1[data-theme=light] .gs-adjuster{background-color:#ddd}.gs-root1[data-theme=light] .gs-tabular-inner{background-color:#f7f7f7}.gs-root1[data-theme=light] .gs-editor.gs-editing textarea{caret-color:#000}.gs-root1[data-theme=light] .gs-editor.gs-editing .gs-editor-hl{background-color:#f7f7f7;color:#000}.gs-root1[data-theme=light] .gs-th{background-color:#efefef;color:#666}.gs-root1[data-theme=light] .gs-th.gs-selecting{background-color:#d2d2d2}.gs-root1[data-theme=light] .gs-th.gs-choosing{background-color:#bbb}.gs-root1[data-theme=light] .gs-th.gs-th-selecting{background-color:#555;color:#fff}.gs-root1[data-theme=light] .gs-th-top .gs-th-inner{border-top:solid 1px #ddd}.gs-root1[data-theme=light] .gs-th-top .gs-th-inner-wrap{border-left:solid 1px #ddd}.gs-root1[data-theme=light] .gs-th-left .gs-th-inner{border-left:solid 1px #ddd}.gs-root1[data-theme=light] .gs-th-left .gs-th-inner-wrap{border-top:solid 1px #ddd}.gs-root1[data-theme=dark]{background-color:#3f3f3f;color:#eee}.gs-root1[data-theme=dark] .gs-main{background-color:#3f3f3f;border-right:solid 1px #5a5a5a;border-bottom:solid 1px #5a5a5a}.gs-root1[data-theme=dark] .gs-tabular{background-color:#3f3f3f}.gs-root1[data-theme=dark] .gs-formula-bar{background-color:#4f4f4f}.gs-root1[data-theme=dark] .gs-formula-bar-editor-inner{color:#bbb}.gs-root1[data-theme=dark] .gs-cell{border-top:solid 1px #5a5a5a;border-left:solid 1px #5a5a5a}.gs-root1[data-theme=dark] .gs-adjuster{background-color:#5a5a5a}.gs-root1[data-theme=dark] .gs-tabular-inner{background-color:#212121}.gs-root1[data-theme=dark] .gs-editor.gs-editing textarea{caret-color:#eee}.gs-root1[data-theme=dark] .gs-editor.gs-editing .gs-editor-hl{background-color:#212121;color:#eee}.gs-root1[data-theme=dark] .gs-large-editor textarea{color:#eee;caret-color:#eee}.gs-root1[data-theme=dark] .gs-th{background-color:#4f4f4f;color:#eee}.gs-root1[data-theme=dark] .gs-th.gs-selecting{background-color:#606060}.gs-root1[data-theme=dark] .gs-th.gs-choosing{background-color:#777}.gs-root1[data-theme=dark] .gs-th.gs-th-selecting{background-color:#aaa;color:#444}.gs-root1[data-theme=dark] .gs-th-top .gs-th-inner{border-top:solid 1px #5a5a5a}.gs-root1[data-theme=dark] .gs-th-top .gs-th-inner-wrap{border-left:solid 1px #5a5a5a}.gs-root1[data-theme=dark] .gs-th-left .gs-th-inner{border-left:solid 1px #5a5a5a}.gs-root1[data-theme=dark] .gs-th-left .gs-th-inner-wrap{border-top:solid 1px #5a5a5a}.gs-root1 .gs-cell{padding:0;margin:0;box-sizing:border-box;position:relative;font-size:13px;letter-spacing:1px;line-height:24px}.gs-root1 .gs-cell .gs-cell-inner-wrap.gs-selecting{background-color:rgba(0,128,255,.2)}.gs-root1 .gs-cell.gs-copying textarea:focus{outline:solid 1px #07f}.gs-root1 .gs-cell.gs-selecting{z-index:1}.gs-root1 .gs-cell.gs-selecting .gs-cell-inner{background-color:rgba(0,128,255,.2)}.gs-root1 .gs-cell.gs-selecting .gs-cell-label{display:block}.gs-root1 .gs-cell.gs-choosing{margin-top:-1px;margin-left:-1px;z-index:1}.gs-root1 .gs-cell.gs-choosing.gs-editing{color:transparent}.gs-root1 .gs-cell.gs-choosing .gs-cell-label{display:block}.gs-root1 .gs-cell .gs-formula-error-triangle{position:absolute;top:0;right:0;border-top:3px solid rgba(200,0,0,.9);border-right:3px solid rgba(200,0,0,.9);border-bottom:3px solid transparent;border-left:3px solid transparent;z-index:1}.gs-root1 .gs-cell .gs-cell-label{font-size:8px;font-weight:400;font-style:normal;font-family:math,monospace,serif;letter-spacing:1px;line-height:14px;position:absolute;top:0;right:0;background-color:rgba(0,128,255,.2);color:rgba(255,255,255,.6);padding:0 2px;display:none;opacity:.7}.gs-root1 .gs-cell .gs-cell-inner-wrap{width:100%;height:100%;position:absolute;top:0;left:0}.gs-root1 .gs-cell .gs-cell-inner{width:100%;height:100%;overflow:hidden;display:flex;box-sizing:border-box;border:none!important}.gs-root1 .gs-cell .gs-cell-rendered{overflow:hidden;white-space:pre-wrap;cursor:auto;word-wrap:break-word;word-break:break-all;padding:0 2px}.gs-root1 .gs-cell .gs-cell-rendered>*{position:relative}.gs-root1 .gs-cell .gs-cell-rendered>.backface{z-index:0}.gs-root1 .gs-cell .gs-autofill-drag{background-color:#07f;position:absolute;width:7px;height:7px;bottom:0;right:0;margin-right:-3.5px;margin-bottom:-3.5px;cursor:crosshair;z-index:1}.gs-root1 .gs-th[data-x="1"] .gs-th-inner-wrap{border-left:none}.gs-root1 .gs-th[data-y="1"] .gs-th-inner-wrap{border-top:none}.gs-root1 .gs-cell[data-x="1"]{border-left:none}.gs-root1 .gs-cell[data-y="1"]{border-top:none}.gs-root1 .gs-contextmenu-modal{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:3}.gs-root1 .gs-contextmenu{z-index:3;position:fixed;background-color:#fff;padding:5px 0;border-radius:5px;box-shadow:rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px}.gs-root1 .gs-contextmenu ul{min-width:250px;color:#555;margin:0;padding:0}.gs-root1 .gs-contextmenu li{padding:5px 10px;list-style-type:none;display:flex}.gs-root1 .gs-contextmenu li.gs-enabled{cursor:pointer}.gs-root1 .gs-contextmenu li.gs-enabled:hover{background-color:#eee}.gs-root1 .gs-contextmenu li.gs-disabled{opacity:.5;cursor:not-allowed}.gs-root1 .gs-contextmenu li.gs-menu-divider{background-color:#aaa;margin:10px 0;padding:0;height:1px}.gs-root1 .gs-contextmenu li .gs-menu-name{flex:1;font-size:15px;letter-spacing:1px}.gs-root1 .gs-contextmenu li .gs-menu-shortcut{font-size:10px;line-height:15px;color:#999;width:15px}.gs-root1 .gs-contextmenu li .gs-menu-shortcut:before{content:"("}.gs-root1 .gs-contextmenu li .gs-menu-shortcut:after{content:")"}.gs-root1 .gs-contextmenu li .gs-menu-shortcut .gs-menu-underline{text-decoration:underline}.gs-root1 .gs-editor-hl{padding:0 2px;position:absolute;font-family:monospace,Arial;font-size:12px;line-height:24px;letter-spacing:1px}.gs-root1 .gs-formula-bar-editor-inner{position:relative}.gs-root1 .gs-editor{position:fixed;opacity:0;z-index:-1}.gs-root1 .gs-editor .gs-editor-inner{position:relative}.gs-root1 .gs-editor .gs-editor-hl{box-sizing:content-box;border:solid 2px #07f;margin:-2px -1px}.gs-root1 .gs-editor textarea{width:100%;padding:0 2px;position:absolute;font-size:12px;font-family:monospace,Arial;line-height:24px;letter-spacing:1px;top:0;left:0;border:none;outline:0;background-color:transparent;color:transparent;resize:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;overflow:hidden;cursor:default;white-space:pre;height:auto}.gs-root1 .gs-editor.gs-editing{z-index:3;opacity:1}.gs-root1 .gs-editor.gs-editing .gs-cell-label{pointer-events:none;font-family:math,monospace,serif;position:absolute;top:0;right:0;margin-top:-15px;margin-right:-2px;padding:0 2px;font-size:10px;background-color:rgba(0,119,255,.75);color:#fff;z-index:1}.gs-root1 .gs-formula-bar{width:100%;display:table;align-items:center;justify-content:center;border-top:solid 1px rgba(128,128,128,.3);border-left:solid 1px rgba(128,128,128,.3);border-right:solid 1px rgba(128,128,128,.3);box-sizing:border-box}.gs-root1 .gs-formula-bar .gs-selecting-address{display:table-cell;vertical-align:middle;width:50px;color:rgba(200,200,200);font-size:13px;padding-left:5px}.gs-root1 .gs-formula-bar .gs-fx{display:table-cell;vertical-align:middle;width:30px;color:rgba(200,200,200);font-style:italic;font-family:cursive;text-align:center;border-left:solid 1px rgba(128,128,128,.5)}.gs-root1 .gs-formula-bar .gs-editor-hl{z-index:0;overflow-y:auto;box-sizing:border-box;white-space:pre-wrap;word-break:break-all}.gs-root1 .gs-formula-bar textarea{display:table-cell;position:relative;z-index:1;width:100%;vertical-align:bottom;color:transparent;border:none;background-color:transparent;padding:0 2px;box-sizing:border-box;outline:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;font-size:12px;font-family:monospace,Arial;height:24px;line-height:24px;min-height:24px;letter-spacing:1px;resize:vertical;caret-color:rgba(128,128,128);white-space:pre-wrap;word-break:break-all}.gs-root1 .gs-token-type-INVALID_REF{color:red}.gs-root1 .gs-token-type-VALUE.gs-token-entity-type-boolean,.gs-root1 .gs-token-type-VALUE.gs-token-entity-type-number{color:#39f}.gs-root1 .gs-token-type-VALUE.gs-token-entity-type-string{color:#090}.gs-root1 .gs-adjuster{padding:0}.gs-root1 .gs-tabular{overflow:auto;display:block;box-sizing:border-box;overscroll-behavior-x:contain}.gs-root1 .gs-tabular-inner>table{table-layout:fixed;border-collapse:collapse}.gs-root1 .gs-th{z-index:2;padding:0;position:sticky;font-size:13px;font-weight:400;box-sizing:border-box;vertical-align:top}.gs-root1 .gs-th .gs-resizer{position:absolute;border-color:transparent;box-sizing:border-box;z-index:2}.gs-root1 .gs-th .gs-resizer:hover{background-color:#07f}.gs-root1 .gs-th .gs-resizer.gs-protected{display:none}.gs-root1 .gs-th-inner{height:100%;box-sizing:border-box;vertical-align:middle;overflow:hidden;display:flex;align-items:center;justify-content:center}.gs-root1 .gs-th-inner-wrap{height:100%;box-sizing:border-box}.gs-root1 .gs-th-top{top:0;overflow:hidden}.gs-root1 .gs-th-top .gs-resizer{top:0;right:0;width:3px;cursor:e-resize}.gs-root1 .gs-th-top .gs-resizer.gs-dragging{border-right-style:dotted;height:1000000px!important;cursor:e-resize}.gs-root1 .gs-th-left{left:0;overflow:hidden;min-width:30px}.gs-root1 .gs-th-left .gs-resizer{left:0;bottom:0;height:3px;cursor:n-resize}.gs-root1 .gs-th-left .gs-resizer.gs-dragging{border-bottom-style:dotted;width:1000000px!important;cursor:n-resize}.gs-root1 .gs-th-top.gs-th-left{top:0;left:0;z-index:3}.gs-root1 .gs-search{width:300px;box-shadow:rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px;display:flex;background-color:#fdfdfd;border:solid 2px #eee;border-radius:5px;padding:10px;position:fixed;top:10px;right:10px;z-index:5}.gs-root1 .gs-search .gs-searchbox{display:flex;position:relative;border:solid 2px #07f;border-radius:5px;flex:1}.gs-root1 .gs-search .gs-searchbox input[type=text]{padding:5px;background-color:transparent;border:none;outline:0;z-index:1;flex:1}.gs-root1 .gs-search .gs-search-progress{color:#999;padding:6px 3px;font-size:13px;text-align:right}.gs-root1 .gs-search .gs-search-close{margin:6px 5px;cursor:pointer;color:#ddd;width:50px;text-align:center}`;
7
7
  //# sourceMappingURL=minified.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"minified.js","sourceRoot":"","sources":["../../src/styles/minified.ts"],"names":[],"mappings":";;;AAAA,sBAAsB;AACT,QAAA,aAAa,GAAG,UAAU,CAAC;AAC3B,QAAA,GAAG,GAAG,ggUAAggU,CAAC"}
1
+ {"version":3,"file":"minified.js","sourceRoot":"","sources":["../../src/styles/minified.ts"],"names":[],"mappings":";;;AAAA,sBAAsB;AACT,QAAA,aAAa,GAAG,UAAU,CAAC;AAC3B,QAAA,GAAG,GAAG,2hWAA2hW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsheet/react-core",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Spreadsheet component for React",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",