@sheetxl/react 0.6.14 → 0.6.16
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/browser/cjs/{CqKiYXeK3thq_HDv.cjs → BpcQUJZeAVY6ZwMu.cjs} +1 -1
- package/browser/cjs/{DXqIAzEiq18KW_px.cjs → BplkvNn8Q7iWuskg.cjs} +1 -1
- package/browser/cjs/{DrMr49kuwB3rlwsg.cjs → QaJ17JzOP3OrKint.cjs} +1 -1
- package/browser/cjs/index.cjs +5 -5
- package/browser/esm/{Cr-HaYs-zMtQ3Avd.mjs → BLIy6HCgmk8915mF.mjs} +1 -1
- package/browser/esm/{BrQJ2yurmysU6Qhb.mjs → C815-fT5rIHhkkxG.mjs} +1 -1
- package/browser/esm/{CqV_BHcGlglNHpl7.mjs → DSpvQDaRemczwWXK.mjs} +1 -1
- package/browser/esm/index.mjs +160 -160
- package/node/esm/index.mjs +90 -90
- package/node/esm/{DeGsGLAxQ77ij6lX.mjs → o_uHh5YJmhI3MMQ3.mjs} +1 -1
- package/package.json +5 -5
package/browser/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6{pointer-events:none}._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6 *{pointer-events:initial}._sheetxl-sheet_1qeq6_5 .cell-container>*{overflow:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .text-box{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .text-line{text-rendering:optimizespeed;position:absolute;vertical-align:baseline;white-space:pre}._sheetxl-sheet_1qeq6_5 .cell-container .filter-button{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:row;margin-bottom:4px}._sheetxl-sheet_1qeq6_5 .cell-container .text-debug-bounds{position:absolute;background:green;pointer-events:none;opacity:.2}._sheetxl-sheet_1qeq6_5 .cell-container .fill{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .pending{width:6px;height:6px;top:5px;left:4px;position:absolute;border:var(--sxl-app-color-primary-dark, grey) .5px;border-style:double;border-radius:50%;background-color:var(--sxl-app-color-button-surface, grey);opacity:1;animation:_pulse_1qeq6_1 1.5s infinite alternate}@keyframes _pulse_1qeq6_1{0%{transform:scale(1);opacity:1}50%{transform:scale(1.2);opacity:.8}to{transform:scale(1);opacity:1}}._sheetxl-sheet_1qeq6_5 .cell-container .slider{position:absolute;width:130%;height:2px;bottom:1px;opacity:0;animation:_fadeIn_1qeq6_1 0s .5s forwards;overflow-x:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .line{position:absolute;opacity:.3;background:var(--sxl-app-color-primary-light, rgb(173, 173, 173)) .5px;width:100%;height:2px}._sheetxl-sheet_1qeq6_5 .cell-container .subline{position:absolute;background:var(--sxl-app-color-primary, rgb(77, 77, 77)) .5px;opacity:.9;height:3px}._sheetxl-sheet_1qeq6_5 .cell-container .inc{animation-delay:0s;animation:_increase_1qeq6_1 3s infinite}@keyframes _fadeIn_1qeq6_1{0%{opacity:0;height:0px}to{opacity:1;height:2px}}@keyframes _increase_1qeq6_1{0%{left:-150%;width:30%;animation-timing-function:ease}to{left:100%;width:30%}}._sheet-selection_12wyx_5 .fill-handle .dragging,._movable-area_314c6_5 .moveable-control-box .dragging{opacity:0}._movable-area_314c6_5 .moveable-control-box .moveable-control{width:11px;height:11px;margin-top:-5.5px;margin-left:-5.5px;background-color:var(--sxl-app-color-background, white);background-image:var(--sxl-app-image-background);border:2px solid var(--sxl-app-color-primary-dark, grey)}._movable-area_314c6_5 .moveable-control-box .moveable-line{background:var(--sxl-app-color-grey, grey)}@media (pointer: coarse){._movable-area_314c6_5 .moveable-control-box .moveable-control{width:22px;height:22px;margin-top:-11px;margin-left:-11px}}._editable-input_1bqx6_6{position:absolute;left:0;top:0;width:100%;min-height:calc(100% + 1px);border:none;padding:0;outline:none;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.2;letter-spacing:inherit;text-transform:inherit;background:transparent}@keyframes _pop_1wyun_1{0%{transform:scale(1)}to{transform:scale(var(--scale))}}@keyframes _fadeIn_1wyun_33{0%{opacity:0}to{opacity:1}}._Wrapper_1wyun_25{display:flex;box-sizing:border-box;transform:translate3d(var(--translate-x, 0),var(--translate-y, 0),0) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));transform-origin:0 0;touch-action:manipulation}._Wrapper_1wyun_25._dragOverlay_1wyun_37{z-index:999}._Item_1wyun_47{position:relative;display:flex;align-items:center;outline:none;box-sizing:border-box;transform-origin:50% 50%;-webkit-tap-highlight-color:transparent;transform:scale(var(--scale, 1))}._Item_1wyun_47:not(._withHandle_1wyun_61){touch-action:manipulation}._Item_1wyun_47._dragging_1wyun_66:not(._dragOverlay_1wyun_37){z-index:999}._Item_1wyun_47._dragOverlay_1wyun_37{cursor:inherit;animation:_pop_1wyun_1 .2s cubic-bezier(.18,.67,.6,1.22);transform:scale(var(--scale));opacity:1}._Row_1kr10_1{display:flex;box-sizing:border-box}._TabStrip_3x0dp_1::-webkit-scrollbar{display:none;height:0px}._TabStrip_3x0dp_1{overflow-y:auto;overflow-x:hidden;position:relative}._script-editor_iy654_5 .monaco-editor{position:absolute}._script-editor_iy654_5 .monaco-editor .margin-icon{display:block;width:16px;height:16px;background-size:16px;background-repeat:no-repeat;background-position:center;background-size:contain}._script-editor_iy654_5 .monaco-editor .formula{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="m 12.106007,8.1692949 c 0.124174,-0.1578352 0.181773,-0.3565642 0.283755,-0.5271169 0.10273,-0.1715492 0.04413,-0.2027176 -0.129161,-0.2014713 -0.685452,0.00576 -1.371152,-0.00277 -2.056604,0.00501 C 10.021228,7.4479573 9.9586414,7.407817 9.9935503,7.2080883 10.145401,6.3413623 10.291269,5.4736396 10.51219,4.6213758 10.642847,4.1167002 10.782479,3.6117747 11.061498,3.1622046 11.339518,2.7138809 11.726751,2.5974365 12.2035,2.829328 c 0.398455,0.1934923 0.722604,0.4827333 0.990152,0.8340617 0.116944,0.1535968 0.27079,0.2740306 0.449073,0.1715499 0.343348,-0.1974819 0.644807,-0.4383502 0.819599,-0.826332 0.100985,-0.2244112 0.157836,-0.476001 0.04039,-0.7058977 C 14.339646,1.9840253 14.038187,1.7618584 13.707056,1.6394296 13.156999,1.4362128 12.562559,1.4840872 12.017239,1.6758341 11.38789,1.8970037 10.783727,2.2625445 10.259602,2.6724688 10.066109,2.8238217 9.8783519,2.9839017 9.7013165,3.1547035 9.0502751,3.7823067 8.5657962,4.529097 8.2246919,5.3651534 7.9823276,5.9595939 7.7888351,6.5660026 7.6913412,7.2015842 7.673637,7.318528 7.6357391,7.423253 7.5065759,7.4432009 7.3472438,7.4678879 7.1592376,7.4436995 6.9974121,7.4441728 6.6351128,7.4451447 6.2598478,7.3676233 5.9915515,7.6815496 5.8721151,7.8211835 5.7461952,7.9840062 5.6439635,8.1371045 c -0.1009847,0.1518511 -0.093255,0.3002122 0.085027,0.367535 0.1957362,0.073561 0.4528118,0.026182 0.6530361,0.0197 0.2645558,-0.00847 0.5291116,0.00501 0.7936674,-7.476e-4 0.1820229,-0.00374 0.2413669,0.030421 0.2064588,0.2358807 C 7.3487406,8.9587006 7.3095941,9.1492003 7.2804197,9.3464333 7.1804317,10.024404 7.0667304,10.700629 6.9525298,11.376606 6.7936963,12.314146 6.6371075,13.252434 6.4655575,14.188478 6.3017374,15.082631 6.1855427,15.985013 5.983074,16.873433 5.8249883,17.568607 5.7240037,18.277248 5.5556954,18.969682 5.4145655,19.550158 5.293882,20.143601 4.9722259,20.665731 4.7380909,21.045734 4.3959882,21.206312 3.9663652,21.104829 3.5778849,21.012322 3.2115961,20.866205 2.8951763,20.608631 2.6862246,20.438328 2.4473513,20.31141 2.1920214,20.458026 1.9519014,20.595915 1.7791048,20.851743 1.646453,21.088123 1.2205704,21.847879 1.915497,22.569984 2.6655289,22.684434 3.1692071,22.760986 3.666153,22.580208 4.1087416,22.356046 4.6996913,22.056582 5.2103511,21.635437 5.6387269,21.13874 5.9898058,20.731558 6.3575906,20.343327 6.6500737,19.890016 6.8450616,19.58756 7.0238427,19.274881 7.1866655,18.954471 7.7639005,17.817206 8.1227091,16.589926 8.4189318,15.354418 8.5613081,14.760227 8.716401,14.169777 8.8478064,13.572843 9.0268365,12.760724 9.1741996,11.934891 9.3083481,11.114294 9.3749255,10.707112 9.4310263,10.300679 9.5160532,9.8967389 9.5861222,9.5636133 9.6442168,9.2185186 9.6890985,8.8814035 9.7414633,8.4891827 9.990308,8.5136187 10.329668,8.4762164 c 0.286249,-0.03167 0.574492,-0.046376 0.861739,-0.067571 0.230395,-0.016703 0.494951,0.00396 0.711881,-0.088019 0.07754,-0.032911 0.147613,-0.080788 0.202719,-0.1513533 z"/><path d="M 22.473802,7.8481382 C 22.426924,7.6912996 22.341898,7.5501696 22.231437,7.4294861 22.130452,7.3192756 21.987827,7.1749046 21.851933,7.1098255 21.411589,6.8988785 20.817398,7.0838898 20.436149,7.3422154 20.23343,7.479854 20.052405,7.6519026 19.871131,7.8167201 19.691352,7.9802913 19.517061,8.1488492 19.35723,8.3321177 19.025101,8.7128687 18.724639,9.1210479 18.436396,9.5354601 18.296263,9.7374301 17.901549,10.472252 17.781115,10.399942 17.654198,10.323892 17.495365,9.5905657 17.435023,9.3843566 17.351243,9.0978583 17.29539,8.8016361 17.161741,8.5323425 16.97922,8.1643081 16.865268,7.7623629 16.608941,7.4307332 16.325934,7.0639457 16.001036,6.9584722 15.558946,7.092371 c -0.43436,0.1314054 -0.78469,0.4049374 -1.128539,0.6819608 -0.503927,0.4056851 -0.879442,0.926319 -1.256951,1.4439609 -0.28226,0.387483 -0.284753,0.3857373 0.04488,0.7380631 0.206458,0.2211702 0.202718,0.2184272 0.389229,-0.00847 0.2663,-0.3251469 0.524872,-0.6595196 0.882433,-0.8934057 0.261315,-0.1713009 0.417904,-0.1368908 0.57948,0.1326518 0.07929,0.1326517 0.146866,0.2752777 0.200225,0.4208957 0.335619,0.9141014 0.590201,1.8541344 0.89191,2.7784594 0.03815,0.117691 -0.01122,0.193991 -0.06707,0.278519 -0.356565,0.538837 -0.719363,1.074182 -1.123054,1.578607 -0.320409,0.401198 -0.643312,0.803891 -1.073932,1.097621 -0.187757,0.128912 -0.40768,0.217679 -0.635831,0.156839 -0.233887,-0.06283 -0.37377,-0.27478 -0.587459,-0.373521 -0.006,-0.003 -0.01272,-0.0052 -0.01895,-0.0079 -0.09974,-0.04064 -0.249845,-0.0389 -0.353074,-0.01571 -0.454059,0.102482 -0.697669,0.614139 -0.790177,1.023813 -0.08379,0.371776 -0.0013,0.778209 0.261315,1.062463 0.228899,0.24785 0.572248,0.351327 0.901634,0.356315 0.189003,0.0028 0.39995,-0.04663 0.57549,-0.11445 0.670241,-0.262062 1.181649,-0.887172 1.605038,-1.441717 0.285501,-0.374517 0.550555,-0.763994 0.829573,-1.143499 0.230645,-0.313677 0.68595,-1.247726 0.81586,-1.250718 0.07854,-0.0017 0.09924,0.185762 0.114199,0.241117 0.03341,0.123675 0.06658,0.247351 0.102232,0.370279 0.167561,0.578481 0.343848,1.156464 0.525122,1.730458 0.120934,0.384242 0.315921,0.782697 0.560779,1.103356 0.07431,0.09749 0.167311,0.190749 0.26306,0.266799 0.371276,0.296972 0.838799,0.27453 1.266177,0.123177 0.191498,-0.06757 0.370029,-0.163071 0.539335,-0.275527 0.781948,-0.519886 1.340732,-1.244235 1.868598,-2.002495 0.124423,-0.178781 0.107467,-0.278769 -0.03441,-0.428127 -0.367286,-0.386237 -0.357062,-0.389727 -0.705149,0.01995 -0.261066,0.306446 -0.527117,0.612643 -0.879442,0.818851 -0.245855,0.144621 -0.413416,0.103229 -0.592696,-0.118439 -0.14861,-0.183518 -0.246353,-0.396709 -0.33138,-0.614886 -0.349831,-0.901136 -0.588954,-1.838675 -0.885177,-2.757515 -0.21743,-0.674231 -0.223414,-0.680464 0.20945,-1.248723 0.447575,-0.587708 0.875703,-1.1968602 1.462163,-1.6613914 0.431119,-0.3416031 0.73183,-0.3226534 1.129037,0.059094 0.0788,0.075801 0.207456,0.1388856 0.316919,0.1476127 0.369781,0.029674 0.691187,-0.3024566 0.880939,-0.5792304 0.188006,-0.2727835 0.259319,-0.6183768 0.163072,-0.9392845 z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .macro{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M 5.1933594,1.4433594 6.3417969,2.5234375 6.2109375,2.6621094 c -3.466072,3.6769426 -3.467641,9.6565186 0,13.3339846 l 0.1308594,0.136718 -1.1484375,1.082032 -0.1328125,-0.140625 c -4.0371886,-4.28224 -4.0373752,-11.2077961 0,-15.4902346 z m 14.4726566,0 0.132812,0.140625 c 4.03717,4.2822197 4.037356,11.2058636 0,15.4882816 l -0.132812,0.140625 -1.148438,-1.080079 0.130859,-0.138671 c 3.465532,-3.675243 3.466902,-9.6542123 0,-13.3320316 L 18.517578,2.5234375 Z M 7.7597656,4.4335937 8.8769531,5.5488281 8.7421875,5.6816406 c -2.0366665,2.0366662 -2.037411,5.3404354 0,7.3769534 L 8.8769531,13.191406 7.7597656,14.310547 7.625,14.173828 C 4.9718615,11.520692 4.9723209,7.222936 7.6269531,4.5683594 Z m 9.3398434,0 0.132813,0.1347657 c 2.653779,2.6537788 2.65545,6.9500666 0,9.6054686 l -0.132813,0.136719 -1.117187,-1.119141 0.134765,-0.132812 c 2.036637,-2.035554 2.037534,-5.3391996 0,-7.3769534 L 15.982422,5.5488281 Z m -4.669921,1.7011719 c 0.811773,0 1.627703,0.304374 2.25,0.90625 1.260638,1.2198223 1.260413,3.1986104 0,4.4179684 -0.355144,0.343115 -0.779063,0.585007 -1.226563,0.732422 l -0.234375,0.07617 v 3.386719 h 0.002 v 6.048828 c 0,0.436615 -0.351565,0.791016 -0.789062,0.791016 -0.43763,0 -0.791016,-0.354618 -0.791016,-0.791016 v -3.308594 -6.126953 l -0.234375,-0.07617 c -0.448339,-0.147699 -0.871819,-0.38969 -1.226562,-0.732422 -1.2608671,-1.22004 -1.2605877,-3.1984433 0,-4.4179684 0.62227,-0.6019293 1.438264,-0.90625 2.25,-0.90625 z m 0,1.5820313 c -0.417461,0 -0.829931,0.1510762 -1.146485,0.4570312 -0.615751,0.5967629 -0.616877,1.5583713 0,2.1562499 0.314469,0.303373 0.726552,0.455078 1.146485,0.455078 0.421182,0 0.833304,-0.153008 1.148437,-0.457031 0.61548,-0.5965047 0.616739,-1.5585025 0,-2.15625 C 13.261859,7.8661993 12.846121,7.7167969 12.429688,7.7167969 Z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .autorun{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M10 15h5.88c.27-.31.67-.5 1.12-.5.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.44 0-.84-.19-1.12-.5H11.9c-.46 2.28-2.48 4-4.9 4-2.76 0-5-2.24-5-5 0-2.42 1.72-4.44 4-4.9v2.07c-1.16.41-2 1.53-2 2.83 0 1.65 1.35 3 3 3s3-1.35 3-3zm2.5-11c1.65 0 3 1.35 3 3h2c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.43.6 2.71 1.55 3.62l-2.35 3.9c-.68.14-1.2.75-1.2 1.48 0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.16-.02-.31-.07-.45l3.38-5.63C10.49 9.61 9.5 8.42 9.5 7c0-1.65 1.35-3 3-3m4.5 9c-.64 0-1.23.2-1.72.54l-3.05-5.07C11.53 8.35 11 7.74 11 7c0-.83.67-1.5 1.5-1.5S14 6.17 14 7c0 .15-.02.29-.06.43l2.19 3.65c.28-.05.57-.08.87-.08 2.76 0 5 2.24 5 5s-2.24 5-5 5c-1.85 0-3.47-1.01-4.33-2.5h2.67c.48.32 1.05.5 1.66.5 1.65 0 3-1.35 3-3s-1.35-3-3-3"/></svg>');cursor:pointer}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { FormulaError as ti, NumberFormat as Yt, ICell as Xt, IBorder as Dt, ITextFrame as
|
|
2
|
+
import { FormulaError as ti, NumberFormat as Yt, ICell as Xt, IBorder as Dt, ITextFrame as pe, GeomUtils as Rt, ScalarType as Gn, IFont as ut, IRange as qe, LicenseManager as ni, IColor as tl, AutoFill as nl, ISheetView as en, Color as oi, IFill as ho, RangeClipboardItem as ol, ExternalRangeClipboardItem as rl, TextUtils as tr, IAnchored as an, CoordUtils as il, ThemeCollection as ll } from "@sheetxl/sdk";
|
|
3
3
|
import { LicenseManager as Ld } from "@sheetxl/sdk";
|
|
4
4
|
import { ReactUtils as at, useImperativeElement as Zt, useCallbackRef as le, KeyCodes as At, SimpleCommand as je, Command as Y, KeyModifiers as ne, CommandGroup as Co, useCopyPaste as ri, useEditMode as gn, useGlobalClipboard as al, NotificationType as nr, useCommands as ii, ScrollbarOrientation as sn, VirtualScrollbar as sl, MouseButtonCodes as li, ToolTipPlacement as Ln, DefaultNotifier as dl, HorizontalAlignment as cl, ScrollPane as ul, useFullscreenPortal as gl, defaultCreateScrollStartButton as hl, defaultCreateScrollEndButton as ml, defaultCreateScrollEdgeButton as pl, ScrollUtils as hr } from "@sheetxl/utils-react";
|
|
5
5
|
export * from "@sheetxl/utils-react";
|
|
@@ -9,7 +9,7 @@ import ot, { memo as ft, useMemo as Ce, useState as me, forwardRef as yt, useRef
|
|
|
9
9
|
import { STANDARD_KEY_CHARS as bl, useSelection as si, useHeaderSelection as ql, HeaderRenderer as Cl, Grid as di, HeaderDivider as Sl, SELECTION_CLIP_INSETS as _o, defaultSelectionRenderer as xl, useKeyboardEditorOverlay as kl, Selection as ci, SVGLine as ao } from "@sheetxl/grid-react";
|
|
10
10
|
import { unstable_batchedUpdates as Hn, createPortal as ui } from "react-dom";
|
|
11
11
|
/**
|
|
12
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.
|
|
12
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.16
|
|
13
13
|
*
|
|
14
14
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
15
15
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -71,7 +71,7 @@ const Zn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Qs = Object.fr
|
|
|
71
71
|
}
|
|
72
72
|
const ye = q.getFont();
|
|
73
73
|
let Z = x?.conditionalColor;
|
|
74
|
-
const K = q.getAlignment(), ee = K.getHorizontal() ===
|
|
74
|
+
const K = q.getAlignment(), ee = K.getHorizontal() === pe.HorizontalAlignment.Fill, re = K.getHorizontal() === pe.HorizontalAlignment.CenterContinuous || ee, he = re || L ? 0 : K.getRotation(), Me = v.getInsets(), de = Me.top + Me.bottom;
|
|
75
75
|
let Se = Me.left, Ie = Me.right;
|
|
76
76
|
const Ne = { ...o, left: o.left - 1, top: o.top - 1, width: o.width + 1 + Ae, height: o.height + 1 + Je }, u = v.getColumnFilter(), Be = u && !u?.hasHiddenButton();
|
|
77
77
|
let st = null;
|
|
@@ -95,12 +95,12 @@ const Zn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Qs = Object.fr
|
|
|
95
95
|
D = y.layout().bounds;
|
|
96
96
|
const ke = { x: 0, y: 0, width: P - 1, height: R };
|
|
97
97
|
if (ae) {
|
|
98
|
-
let
|
|
98
|
+
let fe = ae.width;
|
|
99
99
|
if (x.repeatPlaceholder || x.repeatChars.length > 0) {
|
|
100
|
-
const
|
|
101
|
-
|
|
100
|
+
const ve = Rt.boundsToPoints(ke), Te = Rt.rotatePoints(ve, -he);
|
|
101
|
+
fe = Rt.minBoundingRect(Te).width;
|
|
102
102
|
}
|
|
103
|
-
D = { ...D, width:
|
|
103
|
+
D = { ...D, width: fe };
|
|
104
104
|
}
|
|
105
105
|
F = Rt.clipToOuterRect({ ...D, width: D.width + 1 + Se + Ie }, ke, he), M = F.width - 1 - (Se + Ie) + 0.01;
|
|
106
106
|
}
|
|
@@ -110,20 +110,20 @@ const Zn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Qs = Object.fr
|
|
|
110
110
|
const B = y.layout(g);
|
|
111
111
|
if (D = B.bounds, L ? D = { ...D, width: 0 } : ae && (D = { ...D, width: x.repeatPlaceholder || x.repeatChars.length > 0 ? M : ae.width }), he && Oe) {
|
|
112
112
|
let ce = null;
|
|
113
|
-
B.visitLines({ visitTextLine: (ke,
|
|
114
|
-
let
|
|
115
|
-
const Te = Rt.boundsToPoints(
|
|
116
|
-
|
|
113
|
+
B.visitLines({ visitTextLine: (ke, fe) => {
|
|
114
|
+
let ve = ke.bounds;
|
|
115
|
+
const Te = Rt.boundsToPoints(ve), We = Rt.rotatePoints(Te, he), He = Rt.minBoundingRect(We);
|
|
116
|
+
ve = { ...ve, x: (He.width - ve.width) / 2, y: (He.height - ve.height) / 2 }, ce = ce ? Rt.unionBounds(ce, ve) : ve;
|
|
117
117
|
} }), D = { ...ce, width: ce.width + Se + Ie };
|
|
118
118
|
}
|
|
119
119
|
if (!h && v.getType() !== Gn.String && Math.floor(D.width) > M) {
|
|
120
120
|
if (q.getNumberFormat() === "General" && v.getType() === Gn.Number) {
|
|
121
|
-
const ce = q.measureText("0"), ke = Math.floor(M / ce.width),
|
|
121
|
+
const ce = q.measureText("0"), ke = Math.floor(M / ce.width), fe = w, ve = Xe.splitNumber(fe), Te = Math.min(10, ke - (Math.max(1, ve.ipLength) + 1) - (fe < 0 ? 1 : 0));
|
|
122
122
|
if (Te >= -1) {
|
|
123
123
|
const We = `0${Te > 0 ? "." : ""}${"#".repeat(Math.max(0, Te))}`;
|
|
124
|
-
z = v.getNumberFormat(We).displayText, z === "0" &&
|
|
125
|
-
} else if (Math.abs(
|
|
126
|
-
const We = ke - 5 - (
|
|
124
|
+
z = v.getNumberFormat(We).displayText, z === "0" && fe < 0 && (z = "-0");
|
|
125
|
+
} else if (Math.abs(fe) >= Math.pow(10, 5) || Math.abs(fe) <= Math.pow(10, -5)) {
|
|
126
|
+
const We = ke - 5 - (fe < 0 ? 1 : 0);
|
|
127
127
|
if (We >= 0) {
|
|
128
128
|
const He = `0.${"0".repeat(Math.max(0, We - 1))}E+00`;
|
|
129
129
|
z = v.getNumberFormat(He).displayText;
|
|
@@ -134,23 +134,23 @@ const Zn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Qs = Object.fr
|
|
|
134
134
|
}
|
|
135
135
|
if (!h && ae?.lastRepeatIndex >= 0 && ae?.width > M && (h = "#"), h && M > 0) {
|
|
136
136
|
const ce = q.measureText(h), ke = Math.floor((M || 1) / (ce?.width || 1));
|
|
137
|
-
z = ke > 0 ? h.repeat(ke) : "";
|
|
137
|
+
z = ke > 0 ? h.repeat(ke) : "", we = pe.HorizontalAlignment.Center;
|
|
138
138
|
}
|
|
139
|
-
if (L && (we =
|
|
139
|
+
if (L && (we = pe.HorizontalAlignment.Left), z) {
|
|
140
140
|
const ce = q.measureText(z).width;
|
|
141
141
|
ce && (D = { ...D, width: ce });
|
|
142
142
|
}
|
|
143
143
|
if (X = { ...D, width: D.width + Se + Ie, height: D.height }, he && !Oe) {
|
|
144
|
-
const ce = Rt.boundsToPoints(X), ke = Rt.rotatePoints(ce, he),
|
|
145
|
-
X.width =
|
|
144
|
+
const ce = Rt.boundsToPoints(X), ke = Rt.rotatePoints(ce, he), fe = Rt.minBoundingRect(ke);
|
|
145
|
+
X.width = fe.width, X.height = fe.height;
|
|
146
146
|
}
|
|
147
|
-
we ===
|
|
147
|
+
we === pe.HorizontalAlignment.Center || we === pe.HorizontalAlignment.CenterContinuous ? X.x = (P - X.width) / 2 : we === pe.HorizontalAlignment.Right ? X.x = P - X.width - 0.5 : X.x = 0.5, K.getVertical() === pe.VerticalAlignment.Center ? X.y = (R - X.height) / 2 : K.getVertical() === pe.VerticalAlignment.Bottom ? X.y = R - X.height - de : X.y = de;
|
|
148
148
|
const G = Ke ? { ...H } : void 0, J = { style: { left: o.left - 1, top: o.top - 1, width: o.width + 1, height: o.height + 1, transform: he ? `rotate(${he}deg)` : void 0, cursor: b ? "pointer" : void 0, pointerEvents: b ? "auto" : void 0, zIndex: Qe ? 1 : void 0, ...ue }, onMouseDown: b, onDoubleClick: b ? (ce) => {
|
|
149
149
|
ce.stopPropagation(), ce.preventDefault();
|
|
150
150
|
} : null, ...G };
|
|
151
151
|
U && (J.style.textDecorationStyle = "wavy", J.style.textDecorationColor = N ? "rgb(0, 255, 255)" : "red", J.style.textDecorationLine = "underline");
|
|
152
|
-
const ie = ye.getSize(), se = (ce, ke,
|
|
153
|
-
let $e = ie * c, rt =
|
|
152
|
+
const ie = ye.getSize(), se = (ce, ke, fe, ve, Te, We, He, tt = null) => {
|
|
153
|
+
let $e = ie * c, rt = fe, Pe = He?.runs ? He.runs : [{ type: Yt.ParseRunType.Text, text: ce, width: q.measureText(ce, $e).width }];
|
|
154
154
|
He && He?.width !== D.width && (D = { ...D, width: He?.width });
|
|
155
155
|
let dt = Se;
|
|
156
156
|
if (He?.lastRepeatIndex >= 0 && M > He?.width) {
|
|
@@ -167,10 +167,10 @@ const Zn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Qs = Object.fr
|
|
|
167
167
|
}
|
|
168
168
|
const St = (it, wt, Ft, Ht, Nt, Mt, qt, Qt, hn, Dn = null) => {
|
|
169
169
|
let on, En = rt.width;
|
|
170
|
-
Te ===
|
|
170
|
+
Te === pe.HorizontalAlignment.Justify ? (En = Nt, We || (on = "justify")) : Te === pe.HorizontalAlignment.Distributed && (En = Nt, on = We || it.text.split(" ").length - 1 == 0 ? "center" : "justify");
|
|
171
171
|
const { style: Kt, className: to, ...Lt } = Dn;
|
|
172
172
|
let mn = it.text;
|
|
173
|
-
if (Te ===
|
|
173
|
+
if (Te === pe.HorizontalAlignment.Fill && x?.repeatChars.length === 0) {
|
|
174
174
|
const xt = Math.max(1, Math.floor((rt?.width ?? 0) / (qt?.width ?? 1)));
|
|
175
175
|
mn = mn.repeat(xt);
|
|
176
176
|
}
|
|
@@ -200,28 +200,28 @@ const Zn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Qs = Object.fr
|
|
|
200
200
|
const In = Ke ? void 0 : "text-line";
|
|
201
201
|
_.push(f("div", { className: to ? `${to} ${In}` : In, style: ht, ...Lt, children: mn }, `text-${rt.y}-${Ht}-${Ft}`));
|
|
202
202
|
};
|
|
203
|
-
if (K.getOverflow() ===
|
|
203
|
+
if (K.getOverflow() === pe.Overflow.Shrink && M > 0) {
|
|
204
204
|
let it = D?.width ?? 0, wt = 0;
|
|
205
205
|
for (; it > 1 && it > M && $e > 2 && wt < 100; )
|
|
206
206
|
$e *= M / it, it = q.measureText(ce, $e).width, wt++;
|
|
207
207
|
D = { ...D, width: it };
|
|
208
208
|
}
|
|
209
209
|
let zt = rt.x;
|
|
210
|
-
Te ===
|
|
210
|
+
Te === pe.HorizontalAlignment.Right ? zt += D.width - rt.width : Te !== pe.HorizontalAlignment.Center && Te !== pe.HorizontalAlignment.CenterContinuous || (zt += (D.width - rt.width) / 2), He?.lastRepeatIndex >= 0 && (zt = rt.x);
|
|
211
211
|
const Pt = Pe.length;
|
|
212
212
|
for (let it = 0; it < Pt; it++) {
|
|
213
213
|
const wt = Pe[it];
|
|
214
|
-
(wt.type === Yt.ParseRunType.Text || wt.type === Yt.ParseRunType.Repeat) && (wt.type, Yt.ParseRunType.Repeat, St(wt, zt, it, ke, Te ===
|
|
214
|
+
(wt.type === Yt.ParseRunType.Text || wt.type === Yt.ParseRunType.Repeat) && (wt.type, Yt.ParseRunType.Repeat, St(wt, zt, it, ke, Te === pe.HorizontalAlignment.Justify || Te === pe.HorizontalAlignment.Distributed || He?.lastRepeatIndex >= 0 ? M : rt.width, Ke, { x: X.x + te, y: X.y, width: wt.width, height: D.height }, 0, ve, tt)), zt += wt.width;
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
|
-
z ? se(z, 0, { x: 0, y: 0, ...D }, B.lines[0].baseline, we, !0, null, J) : B.visitLines({ visitTextLine: (ce, ke,
|
|
218
|
-
const
|
|
219
|
-
let We = we ===
|
|
220
|
-
`)) ?
|
|
221
|
-
ke > 0 && (K.getVertical() ===
|
|
217
|
+
z ? se(z, 0, { x: 0, y: 0, ...D }, B.lines[0].baseline, we, !0, null, J) : B.visitLines({ visitTextLine: (ce, ke, fe) => {
|
|
218
|
+
const ve = ce.runs[0].text.replace(/\s+$/, ""), Te = ke === fe - 1;
|
|
219
|
+
let We = we === pe.HorizontalAlignment.Justify && (Te || ce.runs[0].text.endsWith(`
|
|
220
|
+
`)) ? pe.HorizontalAlignment.Left : we, He = 0;
|
|
221
|
+
ke > 0 && (K.getVertical() === pe.VerticalAlignment.Distributed || K.getVertical() === pe.VerticalAlignment.Justify) && (He = Math.max(0, (R - (de + 3) - ce.bounds.height * fe) / (fe - 1) * ke)), K.getVertical() === pe.VerticalAlignment.Distributed && he && he % 90 == 0 && he % 180 != 0 && (We = pe.HorizontalAlignment.Distributed), We !== pe.HorizontalAlignment.Justify && We !== pe.HorizontalAlignment.Distributed && We !== pe.HorizontalAlignment.Fill || (D = { ...D, width: M });
|
|
222
222
|
let tt = ee || x && (x.repeatChars.length > 0 || x.spacingChars.length > 0) ? D.width : ce.bounds.width;
|
|
223
223
|
const $e = { ...ce.bounds, y: ce.bounds.y + He + 0, width: tt };
|
|
224
|
-
se(
|
|
224
|
+
se(ve, ke, $e, y.lines[0].baseline, We, Te, fe === 1 ? ae : null, Ke && ke > 0 ? { ...J, style: { ...J.style, background: void 0 } } : J);
|
|
225
225
|
} });
|
|
226
226
|
}
|
|
227
227
|
_.length > 0 && (Ee = _);
|
|
@@ -250,7 +250,7 @@ const Zn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Qs = Object.fr
|
|
|
250
250
|
const D = P.clean();
|
|
251
251
|
let X = D.getStyle();
|
|
252
252
|
a || (X = X.createTemporaryStyle({ font: { size: p?.fontSize } }));
|
|
253
|
-
const F = D.getFormula(), _ = X.getAlignment(), s = F ?
|
|
253
|
+
const F = D.getFormula(), _ = X.getAlignment(), s = F ? pe.HorizontalAlignment.Left : _.getHorizontal(), y = _.getVertical(), M = _.getOverflow() === pe.Overflow.Wrap || D.getType() === Gn.String && (s === pe.HorizontalAlignment.Justify || s === pe.HorizontalAlignment.Distributed || y === pe.VerticalAlignment.Justify || y === pe.VerticalAlignment.Distributed), g = ((B) => {
|
|
254
254
|
if (!B) return pr;
|
|
255
255
|
const G = B.clean();
|
|
256
256
|
if (!G) return pr;
|
|
@@ -262,14 +262,14 @@ const Zn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Qs = Object.fr
|
|
|
262
262
|
if (!B.editMode && G.isSpillOverflow()) {
|
|
263
263
|
const ke = G.getSpill();
|
|
264
264
|
if (ke) {
|
|
265
|
-
const
|
|
266
|
-
|
|
265
|
+
const fe = ke.getCell(), ve = fe.getFormulaText();
|
|
266
|
+
fe.isEqual(G) || (ce = ve);
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
return J && (ie = "'" + ie), { text: ie, placeholder: ce };
|
|
270
270
|
}
|
|
271
271
|
return { text: B.dirty ?? "", placeholder: "" };
|
|
272
|
-
})(P), z = g.text, h =
|
|
272
|
+
})(P), z = g.text, h = pe.toCSSHorizontalTextAlign(a && !F ? P.clean()?.getRenderHorizontalAlignment() : pe.HorizontalAlignment.Left);
|
|
273
273
|
return { style: X, isWrapped: M, textValue: z, formula: F, frameVertAlign: y, placeholder: g.placeholder, insets: a ? D.getInsets() : _n.EmptyRect, textAlign: h };
|
|
274
274
|
}, [P, p, x, R, a]), A = Re(null), ae = Zt(t, () => ({ startEdit: (D) => {
|
|
275
275
|
k.current = D?.initialSelection;
|
|
@@ -417,7 +417,7 @@ const Zn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Qs = Object.fr
|
|
|
417
417
|
let st = Be.left + 1;
|
|
418
418
|
const Ke = Be.left + Be.right + 2 - 1, Qe = we?.bounds.height ?? 0;
|
|
419
419
|
let oe, De = Be.top;
|
|
420
|
-
I.frameVertAlign ===
|
|
420
|
+
I.frameVertAlign === pe.VerticalAlignment.Center ? De = Math.max(0, (q - (Be.top + Be.bottom) - Qe) / 2) : I.frameVertAlign === pe.VerticalAlignment.Bottom && (De = Math.max(0, q - (Be.top + Be.bottom) - Qe)), O !== void 0 && we?.lines[0]?.bounds && (oe = we?.lines[0]?.bounds.height * O);
|
|
421
421
|
const Ve = I.style.getFont();
|
|
422
422
|
let xe = Ve.getSize();
|
|
423
423
|
Ve.isSuperSub() && (xe *= Ve.getSuperSubScale()), xe *= ut.getDeviceScale() * R;
|
|
@@ -829,11 +829,11 @@ function Ul(e) {
|
|
|
829
829
|
ie.colEnd = z.colIndex - 1;
|
|
830
830
|
}
|
|
831
831
|
if (g.size !== 1 && h) {
|
|
832
|
-
const se = g.getCoords(), ce = g.startIncrementalUpdates({ orientation: qe.Orientation.Column }), ke = { ...ie },
|
|
832
|
+
const se = g.getCoords(), ce = g.startIncrementalUpdates({ orientation: qe.Orientation.Column }), ke = { ...ie }, fe = se.rowStart, ve = se.rowEnd, Te = se.colStart, We = se.colEnd, He = h === qe.Direction.Up;
|
|
833
833
|
for (let tt = Te; tt <= We; tt++) {
|
|
834
834
|
ke.colStart = He ? tt : ie.colStart + (tt - Te), ke.colEnd = He ? tt : ie.colEnd + (tt - Te);
|
|
835
|
-
for (let $e =
|
|
836
|
-
ke.rowStart = He ? ie.rowStart + ($e -
|
|
835
|
+
for (let $e = fe; $e <= ve; $e++) {
|
|
836
|
+
ke.rowStart = He ? ie.rowStart + ($e - fe) : $e, ke.rowEnd = He ? ie.rowEnd + ($e - fe) : $e;
|
|
837
837
|
const rt = M.getRange(ke).toString();
|
|
838
838
|
ce.pushAt($e, tt, `=${y}(${rt})`);
|
|
839
839
|
}
|
|
@@ -852,12 +852,12 @@ function Ul(e) {
|
|
|
852
852
|
const J = z.getSelectedRanges().getFixed(!0), ie = z.getSelectedRange().getDefaultSortCriteria();
|
|
853
853
|
let se = { ranges: J, hasHeader: ie?.options?.hasHeader ?? !1 };
|
|
854
854
|
h = g ? new Promise((ce, ke) => {
|
|
855
|
-
const
|
|
855
|
+
const fe = { tableOptions: se, onCancel: () => {
|
|
856
856
|
ke();
|
|
857
|
-
}, onDone: (
|
|
858
|
-
ce(
|
|
857
|
+
}, onDone: (ve) => {
|
|
858
|
+
ce(ve);
|
|
859
859
|
}, context: { getNames: () => z.getNames() } };
|
|
860
|
-
l.showWindow?.("tableNew",
|
|
860
|
+
l.showWindow?.("tableNew", fe);
|
|
861
861
|
}) : { option: "Ok", tableOptions: se };
|
|
862
862
|
}
|
|
863
863
|
const B = await Promise.resolve(h);
|
|
@@ -933,8 +933,8 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" }) !== "Con
|
|
|
933
933
|
if (M && (J = new Promise((se, ce) => {
|
|
934
934
|
const ke = { range: h, options: G.options, cell: B, onCancel: () => {
|
|
935
935
|
ce();
|
|
936
|
-
}, onDone: (
|
|
937
|
-
|
|
936
|
+
}, onDone: (fe) => {
|
|
937
|
+
fe ? se(fe.options) : ce();
|
|
938
938
|
} };
|
|
939
939
|
l.showWindow?.("sort", ke);
|
|
940
940
|
})), J = await Promise.resolve(J), !J) return;
|
|
@@ -1204,7 +1204,7 @@ The values and the formatting are preserved.` }, function(s) {
|
|
|
1204
1204
|
}), new je("formatIndentIncrease", o, { label: "Increase Indent", description: "Move your content further from the border." }, function() {
|
|
1205
1205
|
return L(this, (s) => {
|
|
1206
1206
|
const y = { alignment: { indent: s.getAlignment().getIndent() + 1 } };
|
|
1207
|
-
return s.getAlignment().getHorizontal() ===
|
|
1207
|
+
return s.getAlignment().getHorizontal() === pe.HorizontalAlignment.General && (y.alignment.horizontal = pe.HorizontalAlignment.Left), y;
|
|
1208
1208
|
});
|
|
1209
1209
|
}), new Y("mergeToggle", o, { label: "Merge", description: "Combine and center the contents into a single cell.", shortcut: { key: "m", modifiers: [ne.Ctrl] } }), new je("mergeHorizontal", o, { label: "Merge Horizontally", description: "Combine the contents into horizontal rows." }), new je("mergeVertical", o, { label: "Merge Vertically", description: "Combine the contents into vertical columns." }), new je("unmerge", o, { label: "Unmerge", description: "Split merged cells into multiple cells." }), new je("clearContents", o, { label: "Clear Contents", scopedLabels: { clear: "Contents" }, description: `Clear only the contents in the cells.
|
|
1210
1210
|
|
|
@@ -1379,107 +1379,107 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1379
1379
|
}).update({ state: xe.getVerticalAlignment() === ut.VerticalAlignment.Super }), u.getCommand("formatSubscriptToggle").updateCallback(function() {
|
|
1380
1380
|
L(this, { font: { verticalAlign: xe.getVerticalAlignment() !== ut.VerticalAlignment.Sub ? ut.VerticalAlignment.Sub : ut.VerticalAlignment.Baseline } });
|
|
1381
1381
|
}).update({ state: xe.getVerticalAlignment() === ut.VerticalAlignment.Sub });
|
|
1382
|
-
const M = () => F ===
|
|
1382
|
+
const M = () => F === pe.Overflow.Visible;
|
|
1383
1383
|
u.getCommand("formatTextOverflowVisibleToggle").updateCallback(function() {
|
|
1384
|
-
L(this, { alignment: { overflow: (M(),
|
|
1384
|
+
L(this, { alignment: { overflow: (M(), pe.Overflow.Visible) } });
|
|
1385
1385
|
}).update({ state: M });
|
|
1386
|
-
const g = () => F ===
|
|
1386
|
+
const g = () => F === pe.Overflow.Wrap;
|
|
1387
1387
|
u.getCommand("formatTextOverflowWrapToggle").updateCallback(function() {
|
|
1388
|
-
L(this, { alignment: { overflow: g() ?
|
|
1388
|
+
L(this, { alignment: { overflow: g() ? pe.Overflow.Visible : pe.Overflow.Wrap } });
|
|
1389
1389
|
}).update({ state: g });
|
|
1390
1390
|
const z = function() {
|
|
1391
|
-
return F ===
|
|
1391
|
+
return F === pe.Overflow.Clip;
|
|
1392
1392
|
};
|
|
1393
1393
|
u.getCommand("formatTextOverflowClipToggle").updateCallback(function() {
|
|
1394
|
-
L(this, { alignment: { overflow: z() ?
|
|
1394
|
+
L(this, { alignment: { overflow: z() ? pe.Overflow.Visible : pe.Overflow.Clip } });
|
|
1395
1395
|
}).update({ state: z });
|
|
1396
1396
|
const h = function() {
|
|
1397
|
-
return F ===
|
|
1397
|
+
return F === pe.Overflow.Shrink;
|
|
1398
1398
|
};
|
|
1399
1399
|
u.getCommand("formatTextOverflowShrinkToggle").updateCallback(function() {
|
|
1400
|
-
L(this, { alignment: { overflow: h() ?
|
|
1400
|
+
L(this, { alignment: { overflow: h() ? pe.Overflow.Visible : pe.Overflow.Shrink } });
|
|
1401
1401
|
}).update({ state: h });
|
|
1402
1402
|
const B = function() {
|
|
1403
|
-
return F ===
|
|
1403
|
+
return F === pe.Overflow.Shrink;
|
|
1404
1404
|
};
|
|
1405
1405
|
u.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function() {
|
|
1406
|
-
L(this, { alignment: { overflow: B() ?
|
|
1406
|
+
L(this, { alignment: { overflow: B() ? pe.Overflow.Visible : pe.Overflow.Ellipsis } });
|
|
1407
1407
|
}).update({ state: B, disabled: !0 });
|
|
1408
1408
|
const G = function() {
|
|
1409
|
-
return X ===
|
|
1409
|
+
return X === pe.VerticalAlignment.Top;
|
|
1410
1410
|
};
|
|
1411
1411
|
u.getCommand("formatAlignTopToggle").updateCallback(function() {
|
|
1412
|
-
L(this, { alignment: { vertical: G() ?
|
|
1412
|
+
L(this, { alignment: { vertical: G() ? pe.VerticalAlignment.Bottom : pe.VerticalAlignment.Top } });
|
|
1413
1413
|
}).update({ state: G });
|
|
1414
1414
|
const J = function() {
|
|
1415
|
-
return X ===
|
|
1415
|
+
return X === pe.VerticalAlignment.Center;
|
|
1416
1416
|
};
|
|
1417
1417
|
u.getCommand("formatAlignMiddleToggle").updateCallback(function() {
|
|
1418
|
-
L(this, { alignment: { vertical: J() ?
|
|
1418
|
+
L(this, { alignment: { vertical: J() ? pe.VerticalAlignment.Bottom : pe.VerticalAlignment.Center } });
|
|
1419
1419
|
}).update({ state: J });
|
|
1420
1420
|
const ie = function() {
|
|
1421
|
-
return X ===
|
|
1421
|
+
return X === pe.VerticalAlignment.Bottom;
|
|
1422
1422
|
};
|
|
1423
1423
|
u.getCommand("formatAlignBottomToggle").updateCallback(function() {
|
|
1424
|
-
L(this, { alignment: { vertical: (ie(),
|
|
1424
|
+
L(this, { alignment: { vertical: (ie(), pe.VerticalAlignment.Bottom) } });
|
|
1425
1425
|
}).update({ state: ie });
|
|
1426
1426
|
const se = function() {
|
|
1427
|
-
return X ===
|
|
1427
|
+
return X === pe.VerticalAlignment.Justify;
|
|
1428
1428
|
};
|
|
1429
1429
|
u.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function() {
|
|
1430
|
-
L(this, { alignment: { vertical: se() ?
|
|
1430
|
+
L(this, { alignment: { vertical: se() ? pe.VerticalAlignment.Bottom : pe.VerticalAlignment.Justify } });
|
|
1431
1431
|
}).update({ state: se });
|
|
1432
1432
|
const ce = function() {
|
|
1433
|
-
return X ===
|
|
1433
|
+
return X === pe.VerticalAlignment.Distributed;
|
|
1434
1434
|
};
|
|
1435
1435
|
u.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function() {
|
|
1436
|
-
L(this, { alignment: { vertical: ce() ?
|
|
1436
|
+
L(this, { alignment: { vertical: ce() ? pe.VerticalAlignment.Bottom : pe.VerticalAlignment.Distributed } });
|
|
1437
1437
|
}).update({ state: ce });
|
|
1438
1438
|
const ke = function() {
|
|
1439
|
-
return D ===
|
|
1439
|
+
return D === pe.HorizontalAlignment.Left;
|
|
1440
1440
|
};
|
|
1441
1441
|
u.getCommand("formatAlignLeftToggle").updateCallback(function() {
|
|
1442
|
-
L(this, { alignment: { horizontal: ke() ?
|
|
1442
|
+
L(this, { alignment: { horizontal: ke() ? pe.HorizontalAlignment.General : pe.HorizontalAlignment.Left } });
|
|
1443
1443
|
}).update({ state: ke });
|
|
1444
|
-
const
|
|
1445
|
-
return D ===
|
|
1444
|
+
const fe = function() {
|
|
1445
|
+
return D === pe.HorizontalAlignment.Center;
|
|
1446
1446
|
};
|
|
1447
1447
|
u.getCommand("formatAlignCenterToggle").updateCallback(function() {
|
|
1448
|
-
L(this, { alignment: { horizontal:
|
|
1449
|
-
}).update({ state:
|
|
1450
|
-
const
|
|
1451
|
-
return D ===
|
|
1448
|
+
L(this, { alignment: { horizontal: fe() ? pe.HorizontalAlignment.General : pe.HorizontalAlignment.Center } });
|
|
1449
|
+
}).update({ state: fe });
|
|
1450
|
+
const ve = function() {
|
|
1451
|
+
return D === pe.HorizontalAlignment.CenterContinuous;
|
|
1452
1452
|
};
|
|
1453
1453
|
u.getCommand("formatAlignCenterContinuousToggle").updateCallback(function() {
|
|
1454
|
-
const Pe = { alignment: { horizontal:
|
|
1454
|
+
const Pe = { alignment: { horizontal: ve() ? pe.HorizontalAlignment.General : pe.HorizontalAlignment.CenterContinuous, rotation: null } };
|
|
1455
1455
|
L(this, Pe);
|
|
1456
|
-
}).update({ state:
|
|
1456
|
+
}).update({ state: ve });
|
|
1457
1457
|
const Te = function() {
|
|
1458
|
-
return D ===
|
|
1458
|
+
return D === pe.HorizontalAlignment.Fill;
|
|
1459
1459
|
};
|
|
1460
1460
|
u.getCommand("formatAlignFillToggle").updateCallback(function() {
|
|
1461
|
-
const Pe = { alignment: { horizontal: Te() ?
|
|
1461
|
+
const Pe = { alignment: { horizontal: Te() ? pe.HorizontalAlignment.General : pe.HorizontalAlignment.Fill, rotation: null } };
|
|
1462
1462
|
L(this, Pe);
|
|
1463
1463
|
}).update({ state: Te });
|
|
1464
1464
|
const We = function() {
|
|
1465
|
-
return D ===
|
|
1465
|
+
return D === pe.HorizontalAlignment.Distributed;
|
|
1466
1466
|
};
|
|
1467
1467
|
u.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function() {
|
|
1468
|
-
L(this, { alignment: { horizontal: We() ?
|
|
1468
|
+
L(this, { alignment: { horizontal: We() ? pe.HorizontalAlignment.General : pe.HorizontalAlignment.Distributed } });
|
|
1469
1469
|
}).update({ state: We });
|
|
1470
1470
|
const He = function() {
|
|
1471
|
-
return D ===
|
|
1471
|
+
return D === pe.HorizontalAlignment.Right;
|
|
1472
1472
|
};
|
|
1473
1473
|
u.getCommand("formatAlignRightToggle").updateCallback(function() {
|
|
1474
|
-
L(this, { alignment: { horizontal: He() ?
|
|
1474
|
+
L(this, { alignment: { horizontal: He() ? pe.HorizontalAlignment.General : pe.HorizontalAlignment.Right } });
|
|
1475
1475
|
}).update({ state: He });
|
|
1476
1476
|
const tt = function() {
|
|
1477
|
-
return D ===
|
|
1477
|
+
return D === pe.HorizontalAlignment.Justify;
|
|
1478
1478
|
};
|
|
1479
1479
|
u.getCommand("formatAlignJustifyToggle").updateCallback(function() {
|
|
1480
|
-
L(this, { alignment: { horizontal: tt() ?
|
|
1480
|
+
L(this, { alignment: { horizontal: tt() ? pe.HorizontalAlignment.General : pe.HorizontalAlignment.Justify } });
|
|
1481
1481
|
}).update({ state: tt });
|
|
1482
|
-
const $e = !t.getProtection().isFormatCellsAllowed(), rt = D ===
|
|
1482
|
+
const $e = !t.getProtection().isFormatCellsAllowed(), rt = D === pe.HorizontalAlignment.CenterContinuous || D === pe.HorizontalAlignment.Fill;
|
|
1483
1483
|
u.getCommand("formatTextRotate0").updateCallback(function(Pe) {
|
|
1484
1484
|
L(this, { alignment: { rotation: 0 } });
|
|
1485
1485
|
}).update({ disabled: $e || rt, state: _ === 0 }), u.getCommand("formatTextRotate45").updateCallback(function(Pe) {
|
|
@@ -1501,7 +1501,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1501
1501
|
try {
|
|
1502
1502
|
const Qt = Ft.getSelectedRanges();
|
|
1503
1503
|
if (Qt.merge({ orientations: it, discardMultipleValues: Mt }), it === qe.Orientations.Both) {
|
|
1504
|
-
const hn = { alignment: { horizontal:
|
|
1504
|
+
const hn = { alignment: { horizontal: pe.HorizontalAlignment.Center } };
|
|
1505
1505
|
Qt.updateStyle(hn);
|
|
1506
1506
|
}
|
|
1507
1507
|
} catch (Qt) {
|
|
@@ -1573,10 +1573,10 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1573
1573
|
!d || s || Ke || (h = d.isEntireColumnsAny(), h && !d.isEntireColumns() ? G = !0 : B = d.getColumnCount(), J = d.isEntireRowsAny(), J && !d.isEntireRows() ? se = !0 : ie = d.getRowCount());
|
|
1574
1574
|
const ce = { disabled: s || d && d.getCount() !== 1 };
|
|
1575
1575
|
u.getCommand("sortAscending").update(ce), u.getCommand("sortDescending").update(ce);
|
|
1576
|
-
const ke = { disabled: h || J || s || Ke },
|
|
1577
|
-
|
|
1578
|
-
const
|
|
1579
|
-
|
|
1576
|
+
const ke = { disabled: h || J || s || Ke }, fe = h || s || Ke || se;
|
|
1577
|
+
fe && (B = 1);
|
|
1578
|
+
const ve = J || s || Ke || G;
|
|
1579
|
+
ve && (ie = 1);
|
|
1580
1580
|
let Te = "", We = "", He = "", tt = "", $e = "", rt = "", Pe = "", dt = "", St = "";
|
|
1581
1581
|
B > 1 && (rt = We = B + " ", Pe = He = "s"), ie > 1 && (dt = tt = ie + " ", St = $e = "s"), w.getMode()?.key === "copy" ? (Te = tt = We = "Copied ", He = $e = "s") : w.getMode()?.key === "cut" && (Te = tt = We = "Cut ", He = $e = "s");
|
|
1582
1582
|
let zt = "", Pt = "";
|
|
@@ -1584,7 +1584,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1584
1584
|
const it = d.getDefaultShiftOrientation() === qe.Orientation.Column;
|
|
1585
1585
|
zt = ` (${it ? "Shift Right" : "Shift Down"})`, Pt = ` (${it ? "Shift Left" : "Shift up"})`, u.getCommand("deleteCells").update({ label: `Delete Cells${Pt}` });
|
|
1586
1586
|
}
|
|
1587
|
-
u.getCommand("insertCells").update({ label: `Insert ${Te}Cells${zt}`, scopedLabels: { insertCells: `${Te}At Selection` } }), u.getCommand("insertCellsShiftRight").update(ke), u.getCommand("insertCellsShiftDown").update(ke), u.getCommand("deleteCellsShiftUp").update(ke), u.getCommand("deleteCellsShiftLeft").update(ke), u.getCommand("insertRows").update({ label: `Insert ${tt}Row${$e}`, scopedLabels: { insertCells: `${tt}Row${$e}` }, disabled:
|
|
1587
|
+
u.getCommand("insertCells").update({ label: `Insert ${Te}Cells${zt}`, scopedLabels: { insertCells: `${Te}At Selection` } }), u.getCommand("insertCellsShiftRight").update(ke), u.getCommand("insertCellsShiftDown").update(ke), u.getCommand("deleteCellsShiftUp").update(ke), u.getCommand("deleteCellsShiftLeft").update(ke), u.getCommand("insertRows").update({ label: `Insert ${tt}Row${$e}`, scopedLabels: { insertCells: `${tt}Row${$e}` }, disabled: ve }), u.getCommand("insertRowsAfter").update({ label: `Insert ${tt}Row${$e} Below`, disabled: ve }), u.getCommand("insertColumns").update({ label: `Insert ${We}Column${He}`, scopedLabels: { insertCells: `${We}Column${He}` }, disabled: fe }), u.getCommand("insertColumnsAfter").update({ label: `Insert ${We}Column${He} After`, disabled: fe }), u.getCommand("deleteRows").update({ label: `Delete ${dt}Row${St}`, scopedLabels: { deleteCells: `${dt}Row${St}` }, disabled: ve }), u.getCommand("deleteColumns").update({ label: `Delete ${rt}Column${Pe}`, scopedLabels: { deleteCells: `${rt}Column${Pe}` }, disabled: fe });
|
|
1588
1588
|
}, [Se, Be, Ke, d, w, l, Me]), be(() => {
|
|
1589
1589
|
const s = t.getProtection(), y = t.getProtection().isLocked(), M = !s.isFormatCellsAllowed(), g = { disabled: M };
|
|
1590
1590
|
u.getCommand("protectionSheetToggle").updateCallback(async (B, G) => {
|
|
@@ -1604,7 +1604,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1604
1604
|
J?.(), l?.showError?.(ie);
|
|
1605
1605
|
}
|
|
1606
1606
|
}).update({ state: y, label: () => y ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: y ? "Unprotect" : "Protect" } }), u.getCommand("deleteTable").update(g), u.getCommand("sortAscending").update(g), u.getCommand("sortDescending").update(g), u.getCommand("sortCustom")?.update(g), u.getCommand("updateComments").update(g), u.getCommand("deleteComments").update(g), u.getCommand("insertChart")?.update(g), u.getCommand("insertImageFromFile").update(g), u.getCommand("insertImageFromURL").update(g), u.getCommand("formatBorder").update(g), u.getCommand("formatFillColor").update(g), u.getCommand("formatFontColor").update(g), u.getCommand("formatBoldToggle").update(g), u.getCommand("formatItalicToggle").update(g), u.getCommand("formatUnderlinedToggle").update(g), u.getCommand("formatStrikeThroughToggle").update(g), u.getCommand("formatSuperscriptToggle").update(g), u.getCommand("formatSubscriptToggle").update(g), u.getCommand("formatAlignTopToggle").update(g), u.getCommand("formatTextOverflowVisibleToggle").update(g), u.getCommand("formatTextOverflowWrapToggle").update(g), u.getCommand("formatTextOverflowClipToggle").update(g), u.getCommand("formatTextOverflowShrinkToggle").update(g), u.getCommand("formatAlignMiddleToggle").update(g), u.getCommand("formatAlignBottomToggle").update(g), u.getCommand("formatAlignDistributedVerticalToggle").update(g), u.getCommand("formatAlignJustifyVerticalToggle").update(g), u.getCommand("formatAlignLeftToggle").update(g), u.getCommand("formatAlignCenterToggle").update(g), u.getCommand("formatAlignRightToggle").update(g), u.getCommand("formatAlignJustifyToggle").update(g), u.getCommand("formatAlignCenterContinuousToggle").update(g), u.getCommand("formatAlignDistributedHorizontalToggle").update(g), u.getCommand("formatAlignFillToggle").update(g), u.getCommand("formatFontSizeIncrease").update(g), u.getCommand("formatFontSizeDecrease").update(g), u.getCommand("formatFontFamily").update(g), u.getCommand("formatFontSize").update(g), u.getCommand("formatNumberFormat").update(g), u.getCommand("formatNumberFormatGeneralStyle").update(g), u.getCommand("formatNumberFormatNumberStyle").update(g), u.getCommand("formatNumberFormatTimeStyle").update(g), u.getCommand("formatNumberFormatDateStyle").update(g), u.getCommand("formatNumberFormatAccountingStyle").update(g), u.getCommand("formatNumberFormatPercentStyle").update(g), u.getCommand("formatNumberFormatScientificStyle").update(g), u.getCommand("formatNumberFormatCommaStyle").update(g), u.getCommand("formatNumberFormatIncreaseDecimal").update(g), u.getCommand("formatNumberFormatDecreaseDecimal").update(g), u.getCommand("hideColumns").update(g), u.getCommand("unhideColumns").update(g), u.getCommand("hideRows").update(g), u.getCommand("unhideRows").update(g), u.getCommand("insertFunctionSum").update(g), u.getCommand("insertFunctionAverage").update(g), u.getCommand("insertFunctionCount").update(g), u.getCommand("insertFunctionMax").update(g), u.getCommand("insertFunctionMin").update(g), u.getCommand("insertFunction").update(g), u.getCommand("startEditCurrentTime").update(g), u.getCommand("startEditCurrentDate").update(g), u.getCommand("startEditValueAbove").update(g), u.getCommand("fillDown").update(g), u.getCommand("fillRight").update(g), u.getCommand("fillUp").update(g), u.getCommand("fillLeft").update(g), u.getCommand("formatCellStyle").update(g), u.getCommand("formatTableStyle").update(g), u.getCommand("formatPainterToggle").update(g), u.getCommand("formatBorderAddOutline").update(g), u.getCommand("formatBorderClearOutline").update(g), u.getCommand("formatIndentDecrease").update(g), u.getCommand("formatIndentIncrease").update(g), u.getCommand("clearContents").update(g), u.getCommand("clearFormats").update(g), u.getCommand("clearAll").update(g), u.getCommand("clearComments").update(g), u.getCommand("clearHyperlinks").update(g), u.getCommand("autoFilterClear").update(g), u.getCommand("autoFilterReapply").update(g);
|
|
1607
|
-
const z = D ===
|
|
1607
|
+
const z = D === pe.HorizontalAlignment.CenterContinuous || D === pe.HorizontalAlignment.Fill, h = { disabled: M || z };
|
|
1608
1608
|
u.getCommand("formatTextRotate0").update(h), u.getCommand("formatTextRotate45").update(h), u.getCommand("formatTextRotate90").update(h), u.getCommand("formatTextRotate270").update(h), u.getCommand("formatTextRotate315").update(h), u.getCommand("formatTextRotateCustom").update(h), u.getCommand("formatTextRotateVertical").update(h);
|
|
1609
1609
|
}, [Se]), u;
|
|
1610
1610
|
}
|
|
@@ -1919,8 +1919,8 @@ const Mr = (e, t, n = null) => {
|
|
|
1919
1919
|
B.length > 0 && B[0] > G && (B = [B[0] - 1, ...B]);
|
|
1920
1920
|
let J = [];
|
|
1921
1921
|
const ie = [];
|
|
1922
|
-
for (let
|
|
1923
|
-
const Te = B[
|
|
1922
|
+
for (let ve = 0; ve < B.length; ve++) {
|
|
1923
|
+
const Te = B[ve], We = ve < B.length - 1 ? B[ve + 1] : Te + Ye(Te + 1, !1) + 1, He = Te + 1 !== We;
|
|
1924
1924
|
if (!h || h.max < Te) if (_.length > 0 && _[_.length - 1].max >= Te) {
|
|
1925
1925
|
const rt = Xe.findEqualOrGreater(_, Te, (Pe) => Pe.max);
|
|
1926
1926
|
h = _[rt];
|
|
@@ -1930,7 +1930,7 @@ const Mr = (e, t, n = null) => {
|
|
|
1930
1930
|
let rt = !1, Pe = !1;
|
|
1931
1931
|
h?.value && h.min <= Te && (rt = !0, Pe = h.value.isSelectedAll), Te > 0 && ie.push({ index: Te - 1, isNextHidden: He, isSelected: rt, isSelectedAll: Pe, disabledResize: !0 });
|
|
1932
1932
|
}
|
|
1933
|
-
if ($e && J.push(ie.length), ie.push({ index: Te, isHidden:
|
|
1933
|
+
if ($e && J.push(ie.length), ie.push({ index: Te, isHidden: ve === 0 && Ye(Te, !1) > 0, isNextHidden: He, isSelected: tt, isSelectedAll: $e, onDividerMouseDown: H, onDividerResizeStart: K, onDividerResize: s, onDividerMouseUp: R, onDividerResizeEnd: Z, onDividerAutoFit: ee }), He) {
|
|
1934
1934
|
let rt = !1, Pe = !1;
|
|
1935
1935
|
if (h && h.min >= Te && h.max <= We - 1 && h.value.isSelectedAll && J.push(ie.length), !(h?.value && h.max >= We)) if (_.length > 0 && _[_.length - 1].max >= We) {
|
|
1936
1936
|
const dt = Xe.findEqualOrGreater(_, We, (St) => St.max);
|
|
@@ -1940,20 +1940,20 @@ const Mr = (e, t, n = null) => {
|
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
1942
|
if (J.length > 0) {
|
|
1943
|
-
let
|
|
1943
|
+
let ve = J.length - 1;
|
|
1944
1944
|
if (J.length > 0) {
|
|
1945
|
-
const He = ie[J[
|
|
1945
|
+
const He = ie[J[ve]].index;
|
|
1946
1946
|
let tt = null;
|
|
1947
|
-
F ? (tt = g.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: He, colEnd: He }), tt.x + tt.width > g.getBounds().width && (
|
|
1947
|
+
F ? (tt = g.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: He, colEnd: He }), tt.x + tt.width > g.getBounds().width && (ve -= 1, ve === 0 && (ve = -1))) : (tt = g.getRangeCoordsBounds({ rowStart: He, rowEnd: He, colStart: 0, colEnd: 0 }), tt.y + tt.height > g.getBounds().height && (ve -= 1, ve === 0 && (ve = -1)));
|
|
1948
1948
|
}
|
|
1949
1949
|
const Te = _?.[_.length - 1], We = g.getAnchor();
|
|
1950
1950
|
if (We === "t" || We === "l") {
|
|
1951
1951
|
const He = ie[J[Math.max(0, J.length - 1)]];
|
|
1952
1952
|
He.showTouchDivider = Te && Te.max <= He.index;
|
|
1953
|
-
} else
|
|
1953
|
+
} else ve >= 0 && (ie[J[ve]].showTouchDivider = !0);
|
|
1954
1954
|
}
|
|
1955
|
-
const { header: se, headerSelect: ce, headerSelectAll: ke, headerHover:
|
|
1956
|
-
for (let
|
|
1955
|
+
const { header: se, headerSelect: ce, headerSelectAll: ke, headerHover: fe } = d ?? {};
|
|
1956
|
+
for (let ve = 0; ve < ie.length; ve++) z.push(f(Sl, { orientation: q, view: g, headerStyle: se, headerStyleSelect: ce, headerStyleSelectAll: ke, headerStyleHover: fe, disabled: n.isProtected(), ...ie[ve] }, `divider${ve}`));
|
|
1957
1957
|
return z;
|
|
1958
1958
|
}, (g) => {
|
|
1959
1959
|
const z = [];
|
|
@@ -2358,7 +2358,7 @@ The content is not applied.` }), new Y("pasteFormulas", w, { label: "Paste Formu
|
|
|
2358
2358
|
Be.current = !0;
|
|
2359
2359
|
const oe = ot.lazy(async () => {
|
|
2360
2360
|
try {
|
|
2361
|
-
const De = await import("./
|
|
2361
|
+
const De = await import("./DSpvQDaRemczwWXK.mjs");
|
|
2362
2362
|
return Be.current = !1, st.current = !0, w([...v]), De;
|
|
2363
2363
|
} catch (De) {
|
|
2364
2364
|
return console.warn(De), Je.current?.(!1), null;
|
|
@@ -2842,7 +2842,7 @@ const od = ft(yt((e, t) => {
|
|
|
2842
2842
|
if (!Q || Q.coords.colIndex === 0 && Q.coords.rowIndex === 0) return null;
|
|
2843
2843
|
const ze = {};
|
|
2844
2844
|
return Q.coords.colIndex > 0 && (ze[bt.Left] = { index: Q.coords.colIndex, scrollOffset: Q.topLeft.left }), Q.coords.rowIndex > 0 && (ze[bt.Top] = { index: Q.coords.rowIndex, scrollOffset: Q.topLeft.top }), ze;
|
|
2845
|
-
}, [
|
|
2845
|
+
}, [fe, ve] = me(() => ke(n.getView().getFreezePanes())), Te = gn(), We = Ze(() => ee.current, []), He = le((Q) => {
|
|
2846
2846
|
Te.setMode((ze) => ze?.key === "edit" ? { ...ze, args: { ...ze.args } } : { key: "edit", args: { stateAndCoords: null, start: Q } });
|
|
2847
2847
|
}, []), tt = le(() => h, [h]), $e = Ul({ sheet: n, commands: S, target: We, onRepeatCommandChange: b, bodyStyle: $, notifier: N, onStartEdit: He, getViewport: tt }), [rt, Pe] = me(n.getSelection().isEntire()), [dt, St] = me(re?.getMovableSelection().length > 0), zt = s !== null || dt, Pt = null, [it, wt] = me(!1);
|
|
2848
2848
|
be(() => {
|
|
@@ -2859,7 +2859,7 @@ const od = ft(yt((e, t) => {
|
|
|
2859
2859
|
}, [ie?.left]), be(() => {
|
|
2860
2860
|
to({ left: 0, top: ie?.top });
|
|
2861
2861
|
}, [ie?.top]), gt(n?.getView(), { onFreezeSplitChange: () => {
|
|
2862
|
-
|
|
2862
|
+
ve(ke(n.getView().getFreezePanes()));
|
|
2863
2863
|
}, onTopLeftChange: () => {
|
|
2864
2864
|
se(n.getView().getTopLeft());
|
|
2865
2865
|
}, onMovableSelectionChange: () => {
|
|
@@ -2989,7 +2989,7 @@ const od = ft(yt((e, t) => {
|
|
|
2989
2989
|
be(() => {
|
|
2990
2990
|
hn(null), Dn.current = null, qt.current = !1, Mt(null);
|
|
2991
2991
|
const Q = n?.getView().getTopLeft();
|
|
2992
|
-
In(Q), ee.current?.scrollTo(Q), se(Q), he(n.getView()),
|
|
2992
|
+
In(Q), ee.current?.scrollTo(Q), se(Q), he(n.getView()), ve(ke(n.getView().getFreezePanes())), X(Oe()), I();
|
|
2993
2993
|
}, [n?.getView()]);
|
|
2994
2994
|
const zn = le((Q) => {
|
|
2995
2995
|
const ze = Q.getVisibleRangeCoords();
|
|
@@ -3018,7 +3018,7 @@ const od = ft(yt((e, t) => {
|
|
|
3018
3018
|
}, [Te]), Do = le(async (Q) => {
|
|
3019
3019
|
const ze = Te.getMode();
|
|
3020
3020
|
return Q.keyCode === At.Escape && ze ? (Q.preventDefault(), void Te.setMode(null)) : Q.keyCode === At.Enter && Mo ? (Q.preventDefault(), await $e?.getCommand("paste")?.execute(), void Te.setMode(null)) : void $e?.dispatchToFocusedCommand(Q);
|
|
3021
|
-
}, [$e, Te]), vn = Re(null), ro = Ce(() => f("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Qe + 1}px`, width: `${Ke + ye.edgeStrokeWidth}px`, minWidth: `${Ke + ye.edgeStrokeWidth}px`, borderRight: `solid ${ye.edgeStrokeWidth}px ${ye.edgeStrokeFill}`, height: `calc(100% - ${Qe}px)`, boxSizing: "border-box", zIndex: "2" }, children: f(Dr, { ref: vn, sheetElement: Gt.current, gridRef: ee, freezeStart:
|
|
3021
|
+
}, [$e, Te]), vn = Re(null), ro = Ce(() => f("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Qe + 1}px`, width: `${Ke + ye.edgeStrokeWidth}px`, minWidth: `${Ke + ye.edgeStrokeWidth}px`, borderRight: `solid ${ye.edgeStrokeWidth}px ${ye.edgeStrokeFill}`, height: `calc(100% - ${Qe}px)`, boxSizing: "border-box", zIndex: "2" }, children: f(Dr, { ref: vn, sheetElement: Gt.current, gridRef: ee, freezeStart: fe?.[bt.Top], oppositeSize: Ke, containerWidth: Ke, containerHeight: De, sheetHeader: n.getRowHeaders(), gridStyle: ge, verticalPadding: Math.max(0, Math.floor(n.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Kt, onSheetContextMenu: o, tabIndex: -1, style: { position: "relative", flex: "0", top: `${Qe + 1}px`, width: `${Ke + ye.edgeStrokeWidth}px`, minWidth: `${Ke + ye.edgeStrokeWidth}px`, borderRight: `solid ${ye.edgeStrokeWidth}px ${ye.edgeStrokeFill}`, height: `calc(100% - ${Qe}px)`, boxSizing: "border-box", zIndex: "2", ...An?.style }, ...An }) }), [Ke, Qe, De, n, Kt, fe?.[bt.Top], Fe, M, o, ye.fill, a]), wn = Re(null), _i = Ce(() => f("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${Qe + ye.edgeStrokeWidth}px`, minHeight: `${Qe + ye.edgeStrokeWidth}px`, borderBottom: `solid ${ye.edgeStrokeWidth}px ${ye.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: f(Dr, { ref: wn, sheetElement: Gt.current, gridRef: ee, freezeStart: fe?.[bt.Left], oppositeSize: Qe, containerWidth: oe, containerHeight: Qe, sheetHeader: n.getColumnHeaders(), gridStyle: ge, scrollPoint: on, onSheetContextMenu: o, ...mn, style: { ...mn?.style, position: "relative", left: "0px", width: "100%", height: `${Qe + ye.edgeStrokeWidth}px`, minHeight: `${Qe + ye.edgeStrokeWidth}px`, borderBottom: `solid ${ye.edgeStrokeWidth}px ${ye.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [Qe, oe, n, on, fe?.[bt.Left], Fe, ye.fill, M, o, c]), Zi = le((Q) => {
|
|
3022
3022
|
const { value: ze, key: _e, ...Ue } = Q;
|
|
3023
3023
|
let lt = ze, nt = s;
|
|
3024
3024
|
if (!nt || nt.colIndex === Q.coords.colIndex && nt.rowIndex === Q.coords.rowIndex || (nt = null), !lt) {
|
|
@@ -3052,13 +3052,13 @@ const od = ft(yt((e, t) => {
|
|
|
3052
3052
|
let mt = re?.getGridLineColor()?.toRGBA($.darkMode).toString() ?? $.strokeFill;
|
|
3053
3053
|
return lt || (vt = pt(Ue.getBottom(), vt, !0), vt = pt(Ue.getTop(), vt, !0), nt = pt(Ue.getRight(), nt, !0), nt = pt(Ue.getLeft(), nt, !0)), f(di, { className: "sheetxl-sheet-primary", style: { ...ba, ..._e.toCSS($.darkMode), ...ze.toCSS($.darkMode, Me), "--sxl-app-color-background": $.fill, "--sxl-app-color-shadow": Fe.colorShadow, "--sxl-app-color-grey": Fe.colorGrey, "--sxl-app-color-button-fill": Le.fill, "--sxl-app-color-button-text": Le.text?.fill, "--sxl-app-color-button-border": Le.edgeStrokeFill, "--sxl-app-color-primary-dark": Fe.selection.strokeFill }, ref: ee, zoom: Me, ...V, onFirstRender: (Ot) => {
|
|
3054
3054
|
Yi(!0), V?.onFirstRender?.(Ot), $e?.activate();
|
|
3055
|
-
}, showGridLines: de, gridLineColor: mt, gridLineColumnsProps: nt, gridLineRowsProps: vt, freezeLeft:
|
|
3055
|
+
}, showGridLines: de, gridLineColor: mt, gridLineColumnsProps: nt, gridLineRowsProps: vt, freezeLeft: fe?.[bt.Left], freezeLeftProps: Fn, freezeTop: fe?.[bt.Top], freezeTopProps: Fn, width: oe, height: De, columnCount: u.width, rowCount: u.height, cursor: Ht ?? Pt ?? "cell", clipCells: !0, layout: D, cellRenderer: Zi, overlayRenderer: Ki, getCellCoordsAsRangeCoords: ce, getVisibleCells: zn, onWheelScroll: Et, onPointerDown: fn, onKeyDown: Do, onViewportChange: G, onImmediateScroll: In, scrollPoint: ie, stageProps: { onFocus: () => {
|
|
3056
3056
|
$e?.activate();
|
|
3057
3057
|
} }, overlays: Qt });
|
|
3058
3058
|
}, [te]);
|
|
3059
3059
|
be(() => {
|
|
3060
3060
|
Je.current || I();
|
|
3061
|
-
}, [D,
|
|
3061
|
+
}, [D, fe, Me, $e, ie?.left, ie?.top, $, V, oe, De, Ht, Qt, M, Pt]);
|
|
3062
3062
|
let Eo = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
|
|
3063
3063
|
C || (Eo = { ...Eo, ...q });
|
|
3064
3064
|
const Ji = Ce(() => {
|
|
@@ -3996,8 +3996,8 @@ const is = ft(function(e) {
|
|
|
3996
3996
|
var Ee;
|
|
3997
3997
|
const { droppableRects: ue, measureDroppableContainers: Ae, measuringScheduled: Je } = (function(h, B) {
|
|
3998
3998
|
let { dragging: G, dependencies: J, config: ie } = B;
|
|
3999
|
-
const [se, ce] = me(null), { frequency: ke, measure:
|
|
4000
|
-
switch (
|
|
3999
|
+
const [se, ce] = me(null), { frequency: ke, measure: fe, strategy: ve } = ie, Te = Re(h), We = (function() {
|
|
4000
|
+
switch (ve) {
|
|
4001
4001
|
case Xn.Always:
|
|
4002
4002
|
return !1;
|
|
4003
4003
|
case Xn.BeforeDragging:
|
|
@@ -4017,13 +4017,13 @@ const is = ft(function(e) {
|
|
|
4017
4017
|
dt.set(St.id, St.rect.current);
|
|
4018
4018
|
continue;
|
|
4019
4019
|
}
|
|
4020
|
-
const zt = St.node.current, Pt = zt ? new Yo(
|
|
4020
|
+
const zt = St.node.current, Pt = zt ? new Yo(fe(zt), zt) : null;
|
|
4021
4021
|
St.rect.current = Pt, Pt && dt.set(St.id, Pt);
|
|
4022
4022
|
}
|
|
4023
4023
|
return dt;
|
|
4024
4024
|
}
|
|
4025
4025
|
return Pe;
|
|
4026
|
-
}, [h, se, G, We,
|
|
4026
|
+
}, [h, se, G, We, fe]);
|
|
4027
4027
|
return be(() => {
|
|
4028
4028
|
Te.current = h;
|
|
4029
4029
|
}, [h]), be(() => {
|
|
@@ -4053,28 +4053,28 @@ const is = ft(function(e) {
|
|
|
4053
4053
|
Ut(() => {
|
|
4054
4054
|
if (!ce && !ke || !B) return void (se.current = !1);
|
|
4055
4055
|
if (se.current || !J) return;
|
|
4056
|
-
const
|
|
4057
|
-
if (!
|
|
4058
|
-
const
|
|
4059
|
-
if (ce || (
|
|
4060
|
-
const Te = Ri(
|
|
4061
|
-
Te && Te.scrollBy({ top:
|
|
4056
|
+
const fe = B?.node.current;
|
|
4057
|
+
if (!fe || fe.isConnected === !1) return;
|
|
4058
|
+
const ve = Br(G(fe), J);
|
|
4059
|
+
if (ce || (ve.x = 0), ke || (ve.y = 0), se.current = !0, Math.abs(ve.x) > 0 || Math.abs(ve.y) > 0) {
|
|
4060
|
+
const Te = Ri(fe);
|
|
4061
|
+
Te && Te.scrollBy({ top: ve.y, left: ve.x });
|
|
4062
4062
|
}
|
|
4063
4063
|
}, [B, ce, ke, J, G]);
|
|
4064
4064
|
})({ activeNode: w != null ? q.get(w) : null, config: ge.layoutShiftCompensation, initialRect: $, measure: Ge.draggable.measure });
|
|
4065
4065
|
const Le = Ur(Ye, Ge.draggable.measure, $), ye = Ur(Ye ? Ye.parentElement : null), Z = Re({ activatorEvent: null, active: null, activeNode: Ye, collisionRect: null, collisions: null, droppableRects: ue, draggableNodes: q, draggingNode: null, draggingNodeRect: null, droppableContainers: x, over: null, scrollableAncestors: [], scrollAdjustedTranslate: null }), K = x.getNodeFor((t = Z.current.over) == null ? void 0 : t.id), ee = (function(h) {
|
|
4066
4066
|
let { measure: B } = h;
|
|
4067
|
-
const [G, J] = me(null), ie = bo({ callback: Ze((
|
|
4068
|
-
for (const { target:
|
|
4067
|
+
const [G, J] = me(null), ie = bo({ callback: Ze((fe) => {
|
|
4068
|
+
for (const { target: ve } of fe) if (Jn(ve)) {
|
|
4069
4069
|
J((Te) => {
|
|
4070
|
-
const We = B(
|
|
4070
|
+
const We = B(ve);
|
|
4071
4071
|
return Te ? { ...Te, width: We.width, height: We.height } : We;
|
|
4072
4072
|
});
|
|
4073
4073
|
break;
|
|
4074
4074
|
}
|
|
4075
|
-
}, [B]) }), se = Ze((
|
|
4076
|
-
const
|
|
4077
|
-
ie?.disconnect(),
|
|
4075
|
+
}, [B]) }), se = Ze((fe) => {
|
|
4076
|
+
const ve = Oi(fe);
|
|
4077
|
+
ie?.disconnect(), ve && ie?.observe(ve), J(ve ? B(ve) : null);
|
|
4078
4078
|
}, [B, ie]), [ce, ke] = po(se);
|
|
4079
4079
|
return Ce(() => ({ nodeRef: ce, rect: G, setRef: ke }), [G, ce, ke]);
|
|
4080
4080
|
})({ measure: Ge.dragOverlay.measure }), re = (n = ee.nodeRef.current) != null ? n : Ye, he = v ? (r = ee.rect) != null ? r : Le : null, Me = !!(ee.nodeRef.current && ee.rect), de = Br(Se = Me ? null : Le, Qo(Se));
|
|
@@ -4088,11 +4088,11 @@ const is = ft(function(e) {
|
|
|
4088
4088
|
B === void 0 && (B = Mn);
|
|
4089
4089
|
const [G] = h, J = _r(G ? It(G) : null), [ie, se] = me(Zr);
|
|
4090
4090
|
function ce() {
|
|
4091
|
-
se(() => h.length ? h.map((
|
|
4091
|
+
se(() => h.length ? h.map((fe) => Di(fe) ? J : new Yo(B(fe), fe)) : Zr);
|
|
4092
4092
|
}
|
|
4093
4093
|
const ke = bo({ callback: ce });
|
|
4094
4094
|
return Ut(() => {
|
|
4095
|
-
ke?.disconnect(), ce(), h.forEach((
|
|
4095
|
+
ke?.disconnect(), ce(), h.forEach((fe) => ke?.observe(fe));
|
|
4096
4096
|
}, [h]), ie;
|
|
4097
4097
|
})(Ne), Be = Hi(m, { transform: { x: N.x - de.x, y: N.y - de.y, scaleX: 1, scaleY: 1 }, activatorEvent: te, active: U, activeNodeRect: Le, containerNodeRect: ye, draggingNodeRect: he, over: Z.current.over, overlayNodeRect: ee.rect, scrollableAncestors: Ne, scrollableAncestorRects: u, windowRect: Ie }), st = Fe ? Cn(Fe, N) : null, Ke = (function(h) {
|
|
4098
4098
|
const [B, G] = me(null), J = Re(h), ie = Ze((se) => {
|
|
@@ -4103,19 +4103,19 @@ const is = ft(function(e) {
|
|
|
4103
4103
|
const se = J.current;
|
|
4104
4104
|
if (h !== se) {
|
|
4105
4105
|
ce(se);
|
|
4106
|
-
const ke = h.map((
|
|
4107
|
-
const
|
|
4108
|
-
return
|
|
4109
|
-
}).filter((
|
|
4106
|
+
const ke = h.map((fe) => {
|
|
4107
|
+
const ve = Uo(fe);
|
|
4108
|
+
return ve ? (ve.addEventListener("scroll", ie, { passive: !0 }), [ve, Ko(ve)]) : null;
|
|
4109
|
+
}).filter((fe) => fe != null);
|
|
4110
4110
|
G(ke.length ? new Map(ke) : null), J.current = h;
|
|
4111
4111
|
}
|
|
4112
4112
|
return () => {
|
|
4113
4113
|
ce(h), ce(se);
|
|
4114
4114
|
};
|
|
4115
4115
|
function ce(ke) {
|
|
4116
|
-
ke.forEach((
|
|
4117
|
-
const
|
|
4118
|
-
|
|
4116
|
+
ke.forEach((fe) => {
|
|
4117
|
+
const ve = Uo(fe);
|
|
4118
|
+
ve?.removeEventListener("scroll", ie);
|
|
4119
4119
|
});
|
|
4120
4120
|
}
|
|
4121
4121
|
}, [ie, h]), Ce(() => h.length ? B ? Array.from(B.values()).reduce((se, ce) => Cn(se, ce), jt) : Ai(h) : jt, [h, B]);
|
|
@@ -4126,37 +4126,37 @@ const is = ft(function(e) {
|
|
|
4126
4126
|
if (V.current == null) return;
|
|
4127
4127
|
const ie = q.get(V.current);
|
|
4128
4128
|
if (!ie) return;
|
|
4129
|
-
const se = h.nativeEvent, ce = new G({ active: V.current, activeNode: ie, event: se, options: J, context: Z, onAbort(
|
|
4130
|
-
if (!q.get(
|
|
4131
|
-
const { onDragAbort:
|
|
4132
|
-
|
|
4133
|
-
}, onPending(
|
|
4134
|
-
if (!q.get(
|
|
4135
|
-
const { onDragPending: He } = A.current, tt = { id:
|
|
4129
|
+
const se = h.nativeEvent, ce = new G({ active: V.current, activeNode: ie, event: se, options: J, context: Z, onAbort(fe) {
|
|
4130
|
+
if (!q.get(fe)) return;
|
|
4131
|
+
const { onDragAbort: ve } = A.current, Te = { id: fe };
|
|
4132
|
+
ve?.(Te), j({ type: "onDragAbort", event: Te });
|
|
4133
|
+
}, onPending(fe, ve, Te, We) {
|
|
4134
|
+
if (!q.get(fe)) return;
|
|
4135
|
+
const { onDragPending: He } = A.current, tt = { id: fe, constraint: ve, initialCoordinates: Te, offset: We };
|
|
4136
4136
|
He?.(tt), j({ type: "onDragPending", event: tt });
|
|
4137
|
-
}, onStart(
|
|
4138
|
-
const
|
|
4139
|
-
if (
|
|
4140
|
-
const Te = q.get(
|
|
4137
|
+
}, onStart(fe) {
|
|
4138
|
+
const ve = V.current;
|
|
4139
|
+
if (ve == null) return;
|
|
4140
|
+
const Te = q.get(ve);
|
|
4141
4141
|
if (!Te) return;
|
|
4142
|
-
const { onDragStart: We } = A.current, He = { activatorEvent: se, active: { id:
|
|
4142
|
+
const { onDragStart: We } = A.current, He = { activatorEvent: se, active: { id: ve, data: Te.data, rect: W } };
|
|
4143
4143
|
Hn(() => {
|
|
4144
|
-
We?.(He), O(nn.Initializing), E({ type: kt.DragStart, initialCoordinates:
|
|
4144
|
+
We?.(He), O(nn.Initializing), E({ type: kt.DragStart, initialCoordinates: fe, active: ve }), j({ type: "onDragStart", event: He }), P(_.current), I(se);
|
|
4145
4145
|
});
|
|
4146
|
-
}, onMove(
|
|
4147
|
-
E({ type: kt.DragMove, coordinates:
|
|
4146
|
+
}, onMove(fe) {
|
|
4147
|
+
E({ type: kt.DragMove, coordinates: fe });
|
|
4148
4148
|
}, onEnd: ke(kt.DragEnd), onCancel: ke(kt.DragCancel) });
|
|
4149
|
-
function ke(
|
|
4149
|
+
function ke(fe) {
|
|
4150
4150
|
return async function() {
|
|
4151
|
-
const { active:
|
|
4151
|
+
const { active: ve, collisions: Te, over: We, scrollAdjustedTranslate: He } = Z.current;
|
|
4152
4152
|
let tt = null;
|
|
4153
|
-
if (
|
|
4153
|
+
if (ve && He) {
|
|
4154
4154
|
const { cancelDrop: $e } = A.current;
|
|
4155
|
-
tt = { activatorEvent: se, active:
|
|
4155
|
+
tt = { activatorEvent: se, active: ve, collisions: Te, delta: He, over: We }, fe === kt.DragEnd && typeof $e == "function" && await Promise.resolve($e(tt)) && (fe = kt.DragCancel);
|
|
4156
4156
|
}
|
|
4157
4157
|
V.current = null, Hn(() => {
|
|
4158
|
-
E({ type:
|
|
4159
|
-
const $e =
|
|
4158
|
+
E({ type: fe }), O(nn.Uninitialized), X(null), P(null), I(null), _.current = null;
|
|
4159
|
+
const $e = fe === kt.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
4160
4160
|
if (tt) {
|
|
4161
4161
|
const rt = A.current[$e];
|
|
4162
4162
|
rt?.(tt), j({ type: $e, event: tt });
|
|
@@ -4202,9 +4202,9 @@ const is = ft(function(e) {
|
|
|
4202
4202
|
}, [De.x, De.y]), be(() => {
|
|
4203
4203
|
const { active: h, activatorEvent: B, collisions: G, droppableContainers: J, scrollAdjustedTranslate: ie } = Z.current;
|
|
4204
4204
|
if (!h || V.current == null || !B || !ie) return;
|
|
4205
|
-
const { onDragOver: se } = A.current, ce = J.get(Oe), ke = ce && ce.rect.current ? { id: ce.id, rect: ce.rect.current, data: ce.data, disabled: ce.disabled } : null,
|
|
4205
|
+
const { onDragOver: se } = A.current, ce = J.get(Oe), ke = ce && ce.rect.current ? { id: ce.id, rect: ce.rect.current, data: ce.data, disabled: ce.disabled } : null, fe = { active: h, activatorEvent: B, collisions: G, delta: { x: ie.x, y: ie.y }, over: ke };
|
|
4206
4206
|
Hn(() => {
|
|
4207
|
-
X(ke), se?.(
|
|
4207
|
+
X(ke), se?.(fe), j({ type: "onDragOver", event: fe });
|
|
4208
4208
|
});
|
|
4209
4209
|
}, [Oe]), Ut(() => {
|
|
4210
4210
|
Z.current = { activatorEvent: te, active: U, activeNode: Ye, collisionRect: Ve, collisions: xe, droppableRects: ue, draggableNodes: q, draggingNode: re, draggingNodeRect: he, droppableContainers: x, over: D, scrollableAncestors: Ne, scrollAdjustedTranslate: De }, W.current = { initial: he, translated: Ve };
|
|
@@ -4588,7 +4588,7 @@ const Ad = (e) => {
|
|
|
4588
4588
|
}, Id = () => {
|
|
4589
4589
|
const e = Jt(dr), [t] = me(() => new ll());
|
|
4590
4590
|
return Ce(() => e || t, [e]);
|
|
4591
|
-
}, Ps = "_script-editor_iy654_5", Ws = ot.lazy(() => import("./
|
|
4591
|
+
}, Ps = "_script-editor_iy654_5", Ws = ot.lazy(() => import("./BLIy6HCgmk8915mF.mjs")), $s = { lightbulb: { enabled: !1 }, tabSize: 2, acceptSuggestionOnCommitCharacter: !0, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: !0, autoIndent: !1, codeLens: !0, colorDecorators: !0, contextmenu: !0, cursorBlinking: "blink", cursorSmoothCaretAnimation: !1, cursorStyle: "line", disableLayerHinting: !1, disableMonospaceOptimizations: !1, dragAndDrop: !0, glyphMargin: !0, fixedOverflowWidgets: !1, folding: !0, foldingStrategy: "auto", fontLigatures: !1, formatOnPaste: !0, formatOnType: !1, hideCursorInOverviewRuler: !1, highlightActiveIndentGuide: !0, links: !0, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: !1, multiCursorMergeOverlapping: !0, multiCursorModifier: "alt", overviewRulerBorder: !0, overviewRulerLanes: 2, quickSuggestions: !0, quickSuggestionsDelay: 100, readOnly: !1, renderControlCharacters: !1, renderFinalNewline: !0, renderIndentGuides: !0, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: !0, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: !0, selectOnLineNumbers: !0, selectionClipboard: !0, selectionHighlight: !0, showLightbulbIconMode: !1, showFoldingControls: "mouseover", smoothScrolling: !0, suggestOnTriggerCharacters: !0, wordBasedSuggestions: !0, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: !0, wrappingIndent: "none" };
|
|
4592
4592
|
let Bn, Vn, tn = ["define", "require"], Qr = !1;
|
|
4593
4593
|
const ei = async (e, t, n) => {
|
|
4594
4594
|
const r = e.getModel();
|
|
@@ -4800,7 +4800,7 @@ const zd = ft(yt((e, t) => {
|
|
|
4800
4800
|
Bn = void 0, Qr = !0;
|
|
4801
4801
|
})(), ae("Loading Types");
|
|
4802
4802
|
const Le = v.getScripts().getModules().getItems()[0]?.getSource() ?? "";
|
|
4803
|
-
ge.setValue(Le), import("./
|
|
4803
|
+
ge.setValue(Le), import("./C815-fT5rIHhkkxG.mjs").then((Z) => Z.c).then(async (Z) => {
|
|
4804
4804
|
ae(""), Z.AutoTypings.create(ge, { shareCache: !0, dontAdaptEditorOptions: !0, monaco: $, onUpdate: (K, ee) => {
|
|
4805
4805
|
if (K.type === "LookedUpPackage" && K.success !== void 0) {
|
|
4806
4806
|
const re = $.languages.typescript.typescriptDefaults.getDiagnosticsOptions();
|