@sheetxl/sdk 0.8.0-beta.11 → 0.8.0-beta.12

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.
Files changed (191) hide show
  1. package/browser/esm/{BpgskG1Er_lGQ_yS.mjs → -Jx-jNHmtIQQfLvK.mjs} +1 -1
  2. package/browser/esm/{BLoUBId2xZpXAK_H.mjs → 2WuhYrIpYmOR5H73.mjs} +15 -15
  3. package/browser/esm/{Ctjb0SsxV4K4MMqG.mjs → 2mIwPy2D2JUX-9wx.mjs} +2 -2
  4. package/browser/esm/{CkxWugaJFjDGZNZ-.mjs → B3wf5vZCsWfWsDbj.mjs} +1 -1
  5. package/browser/esm/{BjkCiv5Jz6WYKZeu.mjs → BIHrHjRGWVlJglcp.mjs} +2 -2
  6. package/browser/esm/{BtvLTTfSBdAKplVG.mjs → BTFBedJMRWGvZyCE.mjs} +1 -1
  7. package/browser/esm/{C4MqfLn9Dm-l3OIk.mjs → BdCJNawfifyPupCP.mjs} +1 -1
  8. package/browser/esm/{CV5EGEjG5_-CPpP0.mjs → Bg5Di9GLNAkbqQ1P.mjs} +3 -3
  9. package/browser/esm/{C2VbEI_XVAoseAwa.mjs → BnC4-27Igwb8oDf2.mjs} +2 -2
  10. package/browser/esm/{CQYjO777cmAznUzK.mjs → Bt8_m94tBdks209L.mjs} +1 -1
  11. package/browser/esm/{C16ycKja6zG0crV_.mjs → BudSIfXBAsTxvu-K.mjs} +17836 -15712
  12. package/browser/esm/{DvAaxH6z_tGvrRzl.mjs → C9u8FUewte5ugUjH.mjs} +686 -686
  13. package/browser/esm/{DEiPS3Dr-s4fPbVZ.mjs → CBYMTDzMf1Vh7pkw.mjs} +1 -1
  14. package/browser/esm/{Dyq_ivuHvlXLwPCl.mjs → CNdjyofiRu6CYOrr.mjs} +1106 -1102
  15. package/browser/esm/{PcHFjNzQsE54POri.mjs → CRkYR-siY2C994KV.mjs} +1 -1
  16. package/browser/esm/{C5E6zSGAALWf61n4.mjs → CTe2qfmIUEad6FJv.mjs} +2 -2
  17. package/browser/esm/{BoV6zPBnfqCBCqZ7.mjs → CUzYuYTTGsChC_kZ.mjs} +3841 -3148
  18. package/browser/esm/CdEO8CEee6lEhabA.mjs +117 -0
  19. package/browser/esm/{S2dNNx1a5ydRnARM.mjs → CfRqiPDg6RBTg1EN.mjs} +2 -2
  20. package/browser/esm/{ClbvFbFzFzXLBKNN.mjs → CndRBvVfQUJIYRRj.mjs} +50 -50
  21. package/browser/esm/{BnG31I6Oj_HEtSPS.mjs → CwOPLXU3-9ZHGyOT.mjs} +1 -1
  22. package/browser/esm/{CHU6iu_WGlm7fLET.mjs → Cxjxk0ncRKx80I-w.mjs} +1 -1
  23. package/browser/esm/D2RZh0O9neOsyLAE.mjs +281 -0
  24. package/browser/esm/{BkBhLS0l6z8sxI6D.mjs → D64dM68B1pKYFzdP.mjs} +2 -2
  25. package/browser/esm/{BVDiOXGMc5_FMGfy.mjs → D9xNz46kAfXMZzp4.mjs} +2 -2
  26. package/browser/esm/{zlLuW405RSguy4Kn.mjs → DK899HhWX1HINMC1.mjs} +53 -53
  27. package/browser/esm/{B7aUIvgUjncMMD_i.mjs → DPhGQLNGmDZwODwJ.mjs} +5 -4
  28. package/browser/esm/{gssVX_FH1XFN-twD.mjs → DVroRnhi-5IDXNgM.mjs} +1 -1
  29. package/{node/esm/CZICGK_ss0HoGHCP.mjs → browser/esm/DZiivy0NmO1Vnyzk.mjs} +2 -2
  30. package/browser/esm/{ClPfI4lODvCece29.mjs → DgrAuRD2qr2DvFeJ.mjs} +61 -61
  31. package/browser/esm/{CU3DmJ-YnVVrC1_k.mjs → DobHLF6VjHr7Xi40.mjs} +1 -1
  32. package/browser/esm/{CaB7J-xgfKO2uAkG.mjs → DwZCT7DZiiXoTweg.mjs} +2 -2
  33. package/browser/esm/{BMyDRQ716j79h_bH.mjs → DwwR3O2sEZApPSTF.mjs} +6 -6
  34. package/browser/esm/{DLLE0FZNsKxbBzRn.mjs → Tah7cnFb_HNZdLtj.mjs} +45 -45
  35. package/browser/esm/{Dlmig06rIo7cInRk.mjs → fXWUMDhZ5yMSO629.mjs} +1 -1
  36. package/browser/esm/{DWNzqw7DUKwoxjri.mjs → hCQJcmIzPDxDEv2q.mjs} +2 -2
  37. package/browser/esm/index.mjs +679 -542
  38. package/browser/esm/{BFagR2JeWs74iAG3.mjs → qO-ujUrgq6H3TQix.mjs} +1 -1
  39. package/browser/esm/w6Jea0TiclPrYZ2M.mjs +1703 -0
  40. package/browser/esm/yuhcOYw6SHQ-RCm3.mjs +114 -0
  41. package/node/esm/-TA0MneBDKdGhsib.mjs +8668 -0
  42. package/node/esm/{B21JjOLghRoDOrkx.mjs → B-HUPAcqvK0eeeCz.mjs} +1 -1
  43. package/node/esm/{DNRhGK-8Tr9xcRyc.mjs → BL2iiEoqxDEV2Xrg.mjs} +3 -3
  44. package/node/esm/{D1TKBVmoKGAXf37B.mjs → BNXLOEddJ6O9gYws.mjs} +2 -2
  45. package/node/esm/{BrCKGFRsX_ezFJ4B.mjs → BSvOluusoDM4z_dx.mjs} +15 -15
  46. package/node/esm/{BIwObuhTJYf0jpUa.mjs → BskP3b8vUoIOGLY6.mjs} +2 -2
  47. package/node/esm/{2Kihw_-5lVTEnwMa.mjs → Btw4148Ot8ifhNc1.mjs} +1 -1
  48. package/node/esm/{BqiexuA89caYnAPz.mjs → C14-R6tifRh7pc0p.mjs} +1 -1
  49. package/node/esm/{DUTskXCXref-IJnI.mjs → C99zzq8DImQXi4BQ.mjs} +47 -47
  50. package/node/esm/{D8zEN-6ZdDqDvTxM.mjs → CBuEu5Jk-LfaDy-H.mjs} +61 -61
  51. package/node/esm/{yavzZOiZW_EjG9lE.mjs → CG-qBU5BAaVz7e-P.mjs} +1 -1
  52. package/node/esm/CPI58duc0j0a-HpJ.mjs +115 -0
  53. package/node/esm/{CCN5vD410obwdz38.mjs → CRt3vXe6YmXzqk3H.mjs} +15 -14
  54. package/node/esm/{CzXT00vrQa1_gvW9.mjs → C_aL7CGS1lrNn1Ng.mjs} +1 -1
  55. package/node/esm/{CZiqiay42tFTrLI4.mjs → C_xf5Bz30VqiJjXn.mjs} +1 -1
  56. package/node/esm/{BIRq1kT7lLRzns9t.mjs → CiIymQN6aJCul62g.mjs} +9 -9
  57. package/node/esm/{CNCNJNg890KdgkWh.mjs → Ci_zLYmCD7e-C79O.mjs} +1 -1
  58. package/{browser/esm/D5np__Jb1euAyaLw.mjs → node/esm/CkRYLed8Mmn3giNg.mjs} +2 -2
  59. package/node/esm/D3ptRKzASqBut1DE.mjs +117 -0
  60. package/node/esm/{cGwrLA1RCE-WhJ7w.mjs → D4ROK9UwDpS6jO3Z.mjs} +1 -1
  61. package/node/esm/{mFiBSM7XgBHV9AY7.mjs → D8hO07ToAibIuniw.mjs} +1535 -1531
  62. package/node/esm/{CDHdgJXH2vS71WMc.mjs → DUTmDHbFbhLDT4F3.mjs} +1 -1
  63. package/node/esm/{CGp6VZL-gZa9Uezx.mjs → DV5CU37aEbFbWFL0.mjs} +1 -1
  64. package/node/esm/{De2IONBxQhz-Qbyh.mjs → DdoiuKg9BKubtF1V.mjs} +1 -1
  65. package/node/esm/{Db0v7zXNnyjBIjjI.mjs → DggQ23jKMpwhENfa.mjs} +2 -2
  66. package/node/esm/{CwePQwTILHHjGDkZ.mjs → DhS6yWjrrSNIJMsn.mjs} +204 -204
  67. package/node/esm/{D_t5AUxSm7_icjzq.mjs → DhTya_mhmN53vskv.mjs} +1 -1
  68. package/node/esm/{DOU54VsOjG-m-NyQ.mjs → Dn1M7YWi25DeeYUb.mjs} +1 -1
  69. package/node/esm/{DkwIPzKc3UwdUIfM.mjs → DrCf6ITcBhVOFpRj.mjs} +6 -6
  70. package/node/esm/{D2KBymQJd1XhpeQD.mjs → DxazKtROyaI51dWl.mjs} +1 -1
  71. package/node/esm/{D6e2z7eZpxOJXHc7.mjs → Q_S1g46ZOTrdhTae.mjs} +1 -1
  72. package/node/esm/{OVfaSb506tNSIvbv.mjs → Vocy-I9dKzZMr0Ct.mjs} +19038 -16822
  73. package/node/esm/ZXPFcsT2zrALCZux.mjs +289 -0
  74. package/node/esm/{857CIBgQgGpnqrXk.mjs → eimUGjiIP-b8HiM6.mjs} +55 -55
  75. package/node/esm/{Bbf1Pm9Gk7YpLTvg.mjs → icn2nX5Z8e_3mNAv.mjs} +1 -1
  76. package/node/esm/index.mjs +740 -603
  77. package/node/esm/{Ct3h15sCus4Tgt6M.mjs → lGJ42sHqg5if2bba.mjs} +624 -616
  78. package/node/esm/{CdJHUJSBRHZoryPe.mjs → pYtP7wPyS96NQyXS.mjs} +59 -59
  79. package/package.json +6 -6
  80. package/resources/locales/de/model.msg.json +8 -2
  81. package/resources/locales/en/model.msg.json +9 -2
  82. package/types/scripting-api.json +10619 -10446
  83. package/types/scripting-enums.json +20 -1
  84. package/types/scripting.d.ts +1233 -296
  85. package/types/src/{sheet → anomalies}/_Anomalies.d.ts +3 -3
  86. package/types/src/anomalies/_FocusTable.d.ts +11 -0
  87. package/types/src/{sheet/_AnomalyFormulaChecks.d.ts → anomalies/_FormulaChecks.d.ts} +10 -2
  88. package/types/src/{sheet/_AnomalyLabelChecks.d.ts → anomalies/_LabelChecks.d.ts} +1 -1
  89. package/types/src/anomalies/_LiteralChecks.d.ts +35 -0
  90. package/types/src/anomalies/_SeriesChecks.d.ts +13 -0
  91. package/types/src/calculation/Calculation.d.ts +47 -9
  92. package/types/src/calculation/ExternalBookBindings.d.ts +2 -3
  93. package/types/src/calculation/ICalculation.d.ts +96 -9
  94. package/types/src/calculation/NamedFormulaCollection.d.ts +104 -8
  95. package/types/src/calculation/_CloneBoundary.d.ts +1 -1
  96. package/types/src/calculation/compiler/ASTTypes.d.ts +6 -2
  97. package/types/src/calculation/compiler/Types.d.ts +8 -0
  98. package/types/src/calculation/engine/CalcBackend.d.ts +104 -6
  99. package/types/src/calculation/executor/CalcExecutor.d.ts +73 -22
  100. package/types/src/calculation/executor/CalcExecutorUtils.d.ts +17 -1
  101. package/types/src/calculation/executor/_WhatIf.d.ts +50 -0
  102. package/types/src/calculation/formula/FormulaBlock.d.ts +4 -3
  103. package/types/src/calculation/formula/IFormulaBlock.d.ts +5 -0
  104. package/types/src/calculation/functions/_DataTableFunction.d.ts +14 -0
  105. package/types/src/calculation/grid/CalcGrid.d.ts +4 -6
  106. package/types/src/calculation/grid/CalcGridBackend.d.ts +5 -27
  107. package/types/src/calculation/grid/CalcGridProxy.d.ts +0 -2
  108. package/types/src/calculation/grid/CalcGridUtils.d.ts +4 -2
  109. package/types/src/calculation/grid/ICalcGrid.d.ts +16 -12
  110. package/types/src/calculation/grid/_CalcRequest.d.ts +17 -5
  111. package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +2 -0
  112. package/types/src/calculation/spatial/SpillEntry.d.ts +16 -2
  113. package/types/src/calculation/state/CalcNode.d.ts +0 -1
  114. package/types/src/calculation/state/CalcScope.d.ts +29 -0
  115. package/types/src/calculation/state/CalcState.d.ts +26 -4
  116. package/types/src/calculation/state/CalculationContext.d.ts +28 -1
  117. package/types/src/calculation/state/DeferredCalls.d.ts +260 -0
  118. package/types/src/calculation/state/IContextContainer.d.ts +20 -0
  119. package/types/src/calculation/state/_PendingOverlayGrid.d.ts +6 -0
  120. package/types/src/calculation/state/_WhatIfLayer.d.ts +91 -0
  121. package/types/src/cell/ICell.d.ts +53 -34
  122. package/types/src/cellControl/CellControl.d.ts +67 -0
  123. package/types/src/cellControl/CellControlCollection.d.ts +29 -0
  124. package/types/src/cellControl/CellControlRegistry.d.ts +47 -0
  125. package/types/src/cellControl/ICellControl.d.ts +99 -0
  126. package/types/src/cellControl/ICellControlCollection.d.ts +67 -0
  127. package/types/src/cellControl/index.d.ts +4 -0
  128. package/types/src/cellRange/ICellRange.d.ts +207 -59
  129. package/types/src/cellRange/ICellRanges.d.ts +4 -3
  130. package/types/src/chart/layout/ChartLayout.d.ts +5 -1
  131. package/types/src/chart/resolve/_Resolve.d.ts +10 -0
  132. package/types/src/chart/resolve/_ResolvedChart.d.ts +5 -2
  133. package/types/src/collections/ISparseGrid.d.ts +11 -2
  134. package/types/src/collections/MixedTypedArrayList.d.ts +8 -2
  135. package/types/src/collections/SparseGrid.d.ts +3 -8
  136. package/types/src/condition/AnchoredConditional.d.ts +2 -2
  137. package/types/src/externalBook/IExternalBook.d.ts +3 -4
  138. package/types/src/fetch/Fetcher.d.ts +15 -0
  139. package/types/src/fetch/IFetcher.d.ts +47 -0
  140. package/types/src/fetch/_WorkbookFetch.d.ts +43 -0
  141. package/types/src/fetch/index.d.ts +3 -0
  142. package/types/src/fill/PaintUtils.d.ts +3 -1
  143. package/types/src/hyperlink/IHyperlink.d.ts +10 -0
  144. package/types/src/hyperlink/_Hyperlink.d.ts +4 -1
  145. package/types/src/index.d.ts +2 -1
  146. package/types/src/named/INamedCollection.d.ts +36 -0
  147. package/types/src/named/NamedCollection.d.ts +18 -0
  148. package/types/src/primitives/AsyncValue.d.ts +58 -0
  149. package/types/src/resource/IResource.d.ts +9 -0
  150. package/types/src/resource/IResourceCollection.d.ts +4 -0
  151. package/types/src/resource/Resource.d.ts +2 -0
  152. package/types/src/resource/_AddResource.d.ts +13 -0
  153. package/types/src/richData/CellImage.d.ts +95 -0
  154. package/types/src/richData/Hyperlink.d.ts +49 -0
  155. package/types/src/richData/IRichDataCollection.d.ts +76 -0
  156. package/types/src/richData/IRichDataKind.d.ts +55 -11
  157. package/types/src/richData/RichArray.d.ts +42 -0
  158. package/types/src/richData/RichDataCollection.d.ts +23 -0
  159. package/types/src/richData/RichDataRegistry.d.ts +46 -14
  160. package/types/src/richData/RichDataValues.d.ts +20 -0
  161. package/types/src/richData/RichRecord.d.ts +68 -0
  162. package/types/src/richData/RichText.d.ts +5 -5
  163. package/types/src/richData/index.d.ts +6 -0
  164. package/types/src/scripting/FunctionArguments.d.ts +17 -1
  165. package/types/src/scripting/FunctionCollection.d.ts +8 -0
  166. package/types/src/scripting/Scripts.d.ts +10 -0
  167. package/types/src/scripting/TypedFunction.d.ts +2 -0
  168. package/types/src/sheet/ICellContainerOptions.d.ts +6 -0
  169. package/types/src/sheet/IWorksheet.d.ts +24 -17
  170. package/types/src/sheet/SheetCell.d.ts +17 -1
  171. package/types/src/sheet/SheetRange.d.ts +8 -2
  172. package/types/src/sheet/SheetRanges.d.ts +2 -2
  173. package/types/src/sheet/Worksheet.d.ts +110 -56
  174. package/types/src/sheet/_ListenerAnchor.d.ts +7 -1
  175. package/types/src/sheet/_ScalarListFactory.d.ts +54 -6
  176. package/types/src/sheet/_SheetMutations.d.ts +4 -1
  177. package/types/src/sheet/_SheetStateTypes.d.ts +23 -11
  178. package/types/src/workbook/IWorkbook.d.ts +40 -1
  179. package/types/src/workbook/Workbook.d.ts +25 -3
  180. package/types/src/workbook/WorkbookRanges.d.ts +1 -1
  181. package/browser/esm/BGOFfpxr2jPIdqmV.mjs +0 -40
  182. package/browser/esm/f1IoRb7tEb0QmCSt.mjs +0 -110
  183. package/browser/esm/nvU0ClAbf0g94YBK.mjs +0 -1695
  184. package/node/esm/B084DssTcdBheTp_.mjs +0 -7966
  185. package/node/esm/Df1bL6VFvrqIdSLB.mjs +0 -40
  186. package/node/esm/DrTZbfemSLq2mseG.mjs +0 -111
  187. package/types/src/dataTable/DataTable.d.ts +0 -67
  188. package/types/src/dataTable/DataTableCollection.d.ts +0 -19
  189. package/types/src/dataTable/IDataTable.d.ts +0 -99
  190. package/types/src/dataTable/IDataTableCollection.d.ts +0 -18
  191. package/types/src/dataTable/index.d.ts +0 -6
@@ -1,18 +1,18 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { t } from "./2Kihw_-5lVTEnwMa.mjs";
8
- import { _n as e, bn as s, hr as n, li as r, vn as i, vr as o, xn as a, yn as l } from "./OVfaSb506tNSIvbv.mjs";
7
+ import { t } from "./Btw4148Ot8ifhNc1.mjs";
8
+ import { An as e, Dn as s, En as n, Mr as r, On as i, ji as o, kn as a, kr as l } from "./Vocy-I9dKzZMr0Ct.mjs";
9
9
  import { ExpectedError as u, messageKey as h, t as c } from "@sheetxl/utils";
10
- var d = "SlicerStyleLight1", g = "ascending", m = "showItemsWithDataAtTop", _ = h("op.setSlicerCaption"), f = h("op.setSlicerStyle"), p = h("op.setSlicerLayout"), S = h("op.setSlicerSort"), b = h("op.selectSlicerItems"), C = n.BuiltInSelectorNames.Display, v = Object.freeze({
11
- selector: C,
10
+ var d = "SlicerStyleLight1", g = "ascending", m = "showItemsWithDataAtTop", _ = h("op.setSlicerCaption"), f = h("op.setSlicerStyle"), p = h("op.setSlicerLayout"), S = h("op.setSlicerSort"), C = h("op.selectSlicerItems"), b = l.BuiltInSelectorNames.Display, k = Object.freeze({
11
+ selector: b,
12
12
  scope: "column"
13
- }), k = Object.freeze({ transactional: !1 }), y = class extends t {
13
+ }), v = Object.freeze({ transactional: !1 }), y = class extends t {
14
14
  constructor(t) {
15
- const e = l(t.json?.source)?.column ?? "";
15
+ const e = i(t.json?.source)?.column ?? "";
16
16
  let s = t.name;
17
17
  !s && t.getMovable && (s = e || null), super({
18
18
  ...t,
@@ -30,7 +30,7 @@ var d = "SlicerStyleLight1", g = "ascending", m = "showItemsWithDataAtTop", _ =
30
30
  return "Slicer";
31
31
  }
32
32
  getDefaultAnchorType() {
33
- return o.Type.Absolute;
33
+ return r.Type.Absolute;
34
34
  }
35
35
  getSource() {
36
36
  const t = this._data()?.source ?? "", e = this._formula?.getExpression() ?? null;
@@ -43,8 +43,8 @@ var d = "SlicerStyleLight1", g = "ascending", m = "showItemsWithDataAtTop", _ =
43
43
  return this._resolve()?.column ?? null;
44
44
  }
45
45
  setName(t) {
46
- const e = this._getWorkbook();
47
- if (e && a(e, t, this) !== t) throw new u(c("error.slicer.nameTaken", { name: t }));
46
+ const s = this._getWorkbook();
47
+ if (s && e(s, t, this) !== t) throw new u(c("error.slicer.nameTaken", { name: t }));
48
48
  return super.setName(t);
49
49
  }
50
50
  getCaption() {
@@ -60,7 +60,7 @@ var d = "SlicerStyleLight1", g = "ascending", m = "showItemsWithDataAtTop", _ =
60
60
  return this._set({ hiddenCaption: !t || void 0 }, _, e);
61
61
  }
62
62
  getCacheName() {
63
- return this._data()?.cacheName || (s(this._getWorkbook()).get(this) ?? e(this._getColumnName()));
63
+ return this._data()?.cacheName || (a(this._getWorkbook()).get(this) ?? n(this._getColumnName()));
64
64
  }
65
65
  getStyle() {
66
66
  return this._data()?.style ?? d;
@@ -106,65 +106,65 @@ var d = "SlicerStyleLight1", g = "ascending", m = "showItemsWithDataAtTop", _ =
106
106
  async getItems() {
107
107
  const t = this.getColumn()?.getFilter();
108
108
  if (!t) return w;
109
- const e = await t.getItems(v), s = t.getCondition(), i = s ? function(t, e) {
109
+ const e = await t.getItems(k), s = t.getCondition(), n = s ? function(t, e) {
110
110
  const s = t.toJSON();
111
- if (s.operator !== n.BuiltInOperatorNames.InSet) return () => !1;
112
- const r = s.param ?? {}, i = /* @__PURE__ */ new Set(), o = r.items ?? [];
113
- for (let t = 0; t < o.length; t++) null !== o[t] && i.add(String(o[t]).toLowerCase());
114
- const a = r.dateGroups ?? [], l = e.dates?.[e.dates.length - 1] ?? null;
111
+ if (s.operator !== l.BuiltInOperatorNames.InSet) return () => !1;
112
+ const n = s.param ?? {}, r = /* @__PURE__ */ new Set(), i = n.items ?? [];
113
+ for (let t = 0; t < i.length; t++) null !== i[t] && r.add(String(i[t]).toLowerCase());
114
+ const o = n.dateGroups ?? [], a = e.dates?.[e.dates.length - 1] ?? null;
115
115
  return (t) => {
116
- if (t < 0) return !0 === r.blank;
117
- if (i.has(e.items[t].text.toLowerCase())) return !0;
118
- if (!l || 0 === a.length) return !1;
116
+ if (t < 0) return !0 === n.blank;
117
+ if (r.has(e.items[t].text.toLowerCase())) return !0;
118
+ if (!a || 0 === o.length) return !1;
119
119
  let s = null;
120
- for (let e = 0; e < l.runs.length && !s; e++) {
121
- const n = l.runs[e];
120
+ for (let e = 0; e < a.runs.length && !s; e++) {
121
+ const n = a.runs[e];
122
122
  n.min <= t && t <= n.max && (s = n.value ?? null);
123
123
  }
124
124
  if (!s) return !1;
125
- for (let t = 0; t < a.length; t++) if (I(a[t], s)) return !0;
125
+ for (let t = 0; t < o.length; t++) if (I(o[t], s)) return !0;
126
126
  return !1;
127
127
  };
128
- }(s, e) : null, o = [];
128
+ }(s, e) : null, r = [];
129
129
  for (let t = 0; t < e.items.length; t++) {
130
- const s = e.items[t], n = !0 === s.passesOthers;
131
- o.push({
130
+ const s = e.items[t], i = !0 === s.passesOthers;
131
+ r.push({
132
132
  item: {
133
133
  key: s.text,
134
134
  name: s.text,
135
135
  value: s.value,
136
- hasData: n,
137
- isSelected: !i || (n ? s.checked : i(t))
136
+ hasData: i,
137
+ isSelected: !n || (i ? s.checked : n(t))
138
138
  },
139
139
  firstRow: s.firstRow
140
140
  });
141
141
  }
142
- const a = this.getSortOrder();
143
- if ("dataSource" === a) o.sort((t, e) => t.firstRow - e.firstRow);
142
+ const i = this.getSortOrder();
143
+ if ("dataSource" === i) r.sort((t, e) => t.firstRow - e.firstRow);
144
144
  else {
145
- const e = t.getRange().getWorksheet().getRuntime().getLocaleProfile(), s = "descending" === a ? -1 : 1;
146
- o.sort((t, n) => s * (r.compare(t.item.value, n.item.value, e) || r.compare(t.item.key, n.item.key, e)));
145
+ const e = t.getRange().getWorksheet().getRuntime().getLocaleProfile(), s = "descending" === i ? -1 : 1;
146
+ r.sort((t, n) => s * (o.compare(t.item.value, n.item.value, e) || o.compare(t.item.key, n.item.key, e)));
147
147
  }
148
- let l = null;
148
+ let a = null;
149
149
  if (e.hasBlanks) {
150
150
  const t = !0 === e.blanksPassOthers;
151
- l = {
151
+ a = {
152
152
  key: R,
153
153
  name: c("slicer.blankItem"),
154
154
  value: null,
155
155
  hasData: t,
156
- isSelected: !i || (t ? e.blanksChecked : i(-1))
156
+ isSelected: !n || (t ? e.blanksChecked : n(-1))
157
157
  };
158
158
  }
159
159
  const u = [], h = this.getCrossFilter();
160
160
  if ("showItemsWithNoData" === h) {
161
- for (let t = 0; t < o.length; t++) u.push(o[t].item);
162
- return l && u.push(l), u;
161
+ for (let t = 0; t < r.length; t++) u.push(r[t].item);
162
+ return a && u.push(a), u;
163
163
  }
164
- for (let t = 0; t < o.length; t++) o[t].item.hasData && u.push(o[t].item);
165
- if (l?.hasData && u.push(l), "none" === h) return u;
166
- for (let t = 0; t < o.length; t++) o[t].item.hasData || u.push(o[t].item);
167
- return l && !l.hasData && u.push(l), u;
164
+ for (let t = 0; t < r.length; t++) r[t].item.hasData && u.push(r[t].item);
165
+ if (a?.hasData && u.push(a), "none" === h) return u;
166
+ for (let t = 0; t < r.length; t++) r[t].item.hasData || u.push(r[t].item);
167
+ return a && !a.hasData && u.push(a), u;
168
168
  }
169
169
  async getItem(t) {
170
170
  const e = await this.getItems();
@@ -175,30 +175,30 @@ var d = "SlicerStyleLight1", g = "ascending", m = "showItemsWithDataAtTop", _ =
175
175
  const s = this.getColumn()?.getFilter();
176
176
  if (!s) return this;
177
177
  if (!t || 0 === t.length) return this.clearFilters(e);
178
- const r = await s.getItems(v), i = new Set(t), o = r.dates?.[r.dates.length - 1] ?? null, a = o && o.runs.length > 0 ? o.runs[o.runs.length - 1].max : -1, l = [], u = [];
178
+ const n = await s.getItems(k), r = new Set(t), i = n.dates?.[n.dates.length - 1] ?? null, o = i && i.runs.length > 0 ? i.runs[i.runs.length - 1].max : -1, a = [], u = [];
179
179
  let h = !0, c = 0;
180
- for (let t = 0; t < r.items.length; t++) {
181
- if (!i.has(r.items[t].text)) {
180
+ for (let t = 0; t < n.items.length; t++) {
181
+ if (!r.has(n.items[t].text)) {
182
182
  h = !1;
183
183
  continue;
184
184
  }
185
- if (t > a) {
186
- l.push(r.items[t].text);
185
+ if (t > o) {
186
+ a.push(n.items[t].text);
187
187
  continue;
188
188
  }
189
- for (; o.runs[c].max < t;) c++;
190
- const e = o.runs[c].value;
189
+ for (; i.runs[c].max < t;) c++;
190
+ const e = i.runs[c].value;
191
191
  e && u[u.length - 1] !== e && u.push(e);
192
192
  }
193
- const d = r.hasBlanks && i.has(R);
194
- if (r.hasBlanks && !d && (h = !1), h && !r.truncated) return this.clearFilters(e);
195
- const g = { items: l };
193
+ const d = n.hasBlanks && r.has(R);
194
+ if (n.hasBlanks && !d && (h = !1), h && !n.truncated) return this.clearFilters(e);
195
+ const g = { items: a };
196
196
  return u.length > 0 && (g.dateGroups = u), d && (g.blank = !0), await s.setCondition({
197
- selector: C,
198
- operator: n.BuiltInOperatorNames.InSet,
197
+ selector: b,
198
+ operator: l.BuiltInOperatorNames.InSet,
199
199
  param: g
200
200
  }, !1, {
201
- description: b,
201
+ description: C,
202
202
  ...e
203
203
  }), this;
204
204
  }
@@ -246,12 +246,12 @@ var d = "SlicerStyleLight1", g = "ascending", m = "showItemsWithDataAtTop", _ =
246
246
  }
247
247
  _resolve() {
248
248
  if (this._closed) return null;
249
- const t = l(this.getSource());
249
+ const t = i(this.getSource());
250
250
  if (!t) return null;
251
- const e = i(this._getWorkbook(), t.table), s = e?.getColumnByName(t.column) ?? null;
252
- return s ? (this._columnName = s.getName(), {
251
+ const e = s(this._getWorkbook(), t.table), n = e?.getColumnByName(t.column) ?? null;
252
+ return n ? (this._columnName = n.getName(), {
253
253
  table: e,
254
- column: s
254
+ column: n
255
255
  }) : null;
256
256
  }
257
257
  _getColumnName() {
@@ -290,7 +290,7 @@ var d = "SlicerStyleLight1", g = "ascending", m = "showItemsWithDataAtTop", _ =
290
290
  this._bindRange(!0);
291
291
  },
292
292
  onDelete: t
293
- }, k),
293
+ }, v),
294
294
  coords: null,
295
295
  removeRange: null
296
296
  };
@@ -305,7 +305,7 @@ var d = "SlicerStyleLight1", g = "ascending", m = "showItemsWithDataAtTop", _ =
305
305
  this._notify("onItemsChange");
306
306
  }, {
307
307
  ignoreAddressChanges: !0,
308
- ...k
308
+ ...v
309
309
  }) ?? null, e.coords = n, t && this._notify("onItemsChange"));
310
310
  }
311
311
  _unbind() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/sdk",
3
3
  "description": "SDK - A high-performance, embeddable spreadsheet engine.",
4
- "version": "0.8.0-beta.11",
4
+ "version": "0.8.0-beta.12",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -42,11 +42,11 @@
42
42
  "automation"
43
43
  ],
44
44
  "dependencies": {
45
- "@sheetxl/formulas": "^0.8.0-beta.11",
46
- "@sheetxl/formulas-extended": "^0.8.0-beta.11",
47
- "@sheetxl/primitives": "^0.8.0-beta.11",
48
- "@sheetxl/scripting": "^0.8.0-beta.11",
49
- "@sheetxl/utils": "^0.8.0-beta.11",
45
+ "@sheetxl/formulas": "^0.8.0-beta.12",
46
+ "@sheetxl/formulas-extended": "^0.8.0-beta.12",
47
+ "@sheetxl/primitives": "^0.8.0-beta.12",
48
+ "@sheetxl/scripting": "^0.8.0-beta.12",
49
+ "@sheetxl/utils": "^0.8.0-beta.12",
50
50
  "bahttext": "^2.4.0",
51
51
  "bessel": "^1.0.2",
52
52
  "chalk": "^6.0.1",
@@ -121,6 +121,7 @@
121
121
  "error.address.textToColumnsOverwrite": "Der Zielbereich enthält Daten.",
122
122
  "error.address.thisRowNotInTable": "''{address}'' benötigt die aktive Zelle in einer Datenzeile der Tabelle ''{table}''.",
123
123
  "error.anchor.protected": "{description} nicht möglich. Das Element ist geschützt.",
124
+ "error.cellControl.noType": "Ein Zellsteuerelement braucht einen Typ, zum Beispiel checkbox.",
124
125
  "error.chart.noData": "Die Auswahl enthält keine Zellen für ein Diagramm.",
125
126
  "error.chart.notValidForType": "''{type}'' ist hier für dieses Diagramm nicht gültig.",
126
127
  "error.chart.pivotNotEditable": "Ein PivotChart ändert sich mit seiner PivotTable und kann noch nicht direkt bearbeitet werden.",
@@ -128,7 +129,6 @@
128
129
  "error.chart.typeNotEditable": "Ein Diagramm vom Typ ''{type}'' kann noch nicht bearbeitet werden.",
129
130
  "error.chart.typeNotSupported": "Ein neues Diagramm vom Typ ''{type}'' wird noch nicht unterstützt.",
130
131
  "error.condition.unsupportedOperator": "Der Operator ''{operator}'' kann nicht ausgewertet werden.",
131
- "error.dataTable.changePart": "Ein Teil einer Datentabelle kann nicht geändert werden.",
132
132
  "error.function.builtInName": "''{name}'' ist eine integrierte Funktion. Wählen Sie einen anderen Namen.",
133
133
  "error.hyperlink.invalidHyperlink": "Ungültiger Link.",
134
134
  "error.io.encryptionUnavailable": "Kennwortschutz ist nicht verfügbar, daher kann diese Arbeitsmappe nicht mit einem Kennwort gespeichert werden.",
@@ -332,6 +332,7 @@
332
332
  "op.cutNamed": "{name} ausschneiden",
333
333
  "op.darkerPercent": "{percent} % dunkler",
334
334
  "op.delete": "Löschen",
335
+ "op.deleteCellControl": "Zellsteuerelement löschen",
335
336
  "op.deleteCells": "Zellen löschen",
336
337
  "op.deleteChartSeries": "Datenreihe löschen",
337
338
  "op.deleteChartTrendline": "Trendlinie löschen",
@@ -339,7 +340,6 @@
339
340
  "op.deleteColumns": "Spalten löschen",
340
341
  "op.deleteConditionalFormat": "Bedingte Formatierung löschen",
341
342
  "op.deleteConditionalFormatNamed": "Bedingte Formatierung ''{name}'' löschen",
342
- "op.deleteDataTable": "Datentabelle löschen",
343
343
  "op.deleteDataValidation": "Datenüberprüfung löschen",
344
344
  "op.deleteDataValidationNamed": "Datenüberprüfung ''{name}'' löschen",
345
345
  "op.deleteDrawing": "Zeichnung löschen",
@@ -379,11 +379,13 @@
379
379
  "op.hideTotals": "Ergebnisse ausblenden",
380
380
  "op.ignoreError": "Fehler ignorieren",
381
381
  "op.initialize": "Initialisieren",
382
+ "op.initializeCellControl": "Zellsteuerelement initialisieren",
382
383
  "op.initializeConditionalFormat": "Bedingte Formatierung initialisieren",
383
384
  "op.initializeDataValidation": "Datenüberprüfung initialisieren",
384
385
  "op.initializeProtectedRange": "Geschützten Bereich initialisieren",
385
386
  "op.initializeTable": "Tabelle initialisieren",
386
387
  "op.insertAutoTable": "AutoTabelle einfügen",
388
+ "op.insertCellControl": "Zellsteuerelement einfügen",
387
389
  "op.insertCells": "Zellen einfügen",
388
390
  "op.insertChart": "Diagramm einfügen",
389
391
  "op.insertColumns": "Spalten einfügen",
@@ -415,11 +417,13 @@
415
417
  "op.rangesUpdate": "Bereiche aktualisieren",
416
418
  "op.refreshExternalLink": "Verknüpfung zu ''{name}'' aktualisieren",
417
419
  "op.refreshSortsAndFilters": "Sortierungen und Filter aktualisieren",
420
+ "op.removeCellControl": "Zellsteuerelement entfernen",
418
421
  "op.removeDuplicates": "Duplikate entfernen",
419
422
  "op.removeExternalBook": "Verknüpfung zu ''{name}'' entfernen",
420
423
  "op.removeNamedFormula": "Benannte Formel entfernen",
421
424
  "op.removePicture": "Bild entfernen",
422
425
  "op.removeScript": "Skript entfernen",
426
+ "op.removeUnusedNames": "{count, plural, one{# nicht verwendeten Namen} other{# nicht verwendete Namen}} entfernen",
423
427
  "op.renameSheet": "Arbeitsblatt umbenennen",
424
428
  "op.reorderConditionalFormat": "Bedingte Formatierung neu anordnen",
425
429
  "op.reorderDataValidations": "Datenüberprüfungen neu anordnen",
@@ -448,6 +452,7 @@
448
452
  "op.setBottomBorderColor": "Untere Rahmenfarbe festlegen",
449
453
  "op.setBottomBorderStyle": "Unteren Rahmenstil festlegen",
450
454
  "op.setCellAddress": "Zelle {address} festlegen",
455
+ "op.setCellControl": "Zellsteuerelement festlegen",
451
456
  "op.setChartArea": "Diagrammbereich formatieren",
452
457
  "op.setChartAxis": "Achse formatieren",
453
458
  "op.setChartAxisTitle": "Achsentitel formatieren",
@@ -631,6 +636,7 @@
631
636
  "op.update": "Aktualisieren",
632
637
  "op.updateAnchor": "Verankerung aktualisieren",
633
638
  "op.updateCalculations": "Berechnungen aktualisieren",
639
+ "op.updateCellControl": "Zellsteuerelement aktualisieren",
634
640
  "op.updateCells": "Zellen aktualisieren",
635
641
  "op.updateChart": "Diagramm formatieren",
636
642
  "op.updateColumnNamed": "Spalte ''{name}'' aktualisieren",
@@ -121,6 +121,7 @@
121
121
  "error.address.textToColumnsOverwrite": "The destination range has data.",
122
122
  "error.address.thisRowNotInTable": "''{address}'' needs the active cell in a data row of table ''{table}''.",
123
123
  "error.anchor.protected": "Unable to {description}. The item is protected.",
124
+ "error.cellControl.noType": "A cell control needs a type, such as checkbox.",
124
125
  "error.chart.noData": "The selection holds no cells to chart.",
125
126
  "error.chart.notValidForType": "''{type}'' is not valid here for this chart.",
126
127
  "error.chart.pivotNotEditable": "A pivot chart changes with its pivot table and cannot be edited directly yet.",
@@ -132,8 +133,8 @@
132
133
  "error.comment.replyDeleted": "The reply has been deleted.",
133
134
  "error.comment.singleCell": "A comment is added to a single cell.",
134
135
  "error.condition.unsupportedOperator": "The ''{operator}'' operator can not be evaluated.",
135
- "error.dataTable.changePart": "Can't change part of a data table.",
136
136
  "error.function.builtInName": "''{name}'' is a built-in function. Choose a different name.",
137
+ "error.hyperlink.fromValue": "The link is the cell's value; change its formula to remove it.",
137
138
  "error.hyperlink.invalidHyperlink": "Invalid hyperlink",
138
139
  "error.hyperlink.notAttached": "The hyperlink is not attached to a cell",
139
140
  "error.io.encryptionUnavailable": "Password protection is not available, so this workbook cannot be saved with a password.",
@@ -340,6 +341,7 @@
340
341
  "op.cutNamed": "Cut {name}",
341
342
  "op.darkerPercent": "Darker {percent}%",
342
343
  "op.delete": "Delete",
344
+ "op.deleteCellControl": "Delete Cell Control",
343
345
  "op.deleteCells": "Delete Cells",
344
346
  "op.deleteChartSeries": "Delete Series",
345
347
  "op.deleteChartTrendline": "Delete Trendline",
@@ -349,7 +351,6 @@
349
351
  "op.deleteCommentReply": "Delete Reply",
350
352
  "op.deleteConditionalFormat": "Delete Conditional Format",
351
353
  "op.deleteConditionalFormatNamed": "Delete Conditional Format ''{name}''",
352
- "op.deleteDataTable": "Delete Data Table",
353
354
  "op.deleteDataValidation": "Delete Data Validation",
354
355
  "op.deleteDataValidationNamed": "Delete Data Validation ''{name}''",
355
356
  "op.deleteDrawing": "Delete Drawing",
@@ -390,12 +391,14 @@
390
391
  "op.hideTotals": "Hide Totals",
391
392
  "op.ignoreError": "Ignore Error",
392
393
  "op.initialize": "Initialize",
394
+ "op.initializeCellControl": "Initialize Cell Control",
393
395
  "op.initializeComment": "Initialize Comment",
394
396
  "op.initializeConditionalFormat": "Initialize Conditional Format",
395
397
  "op.initializeDataValidation": "Initialize Data Validation",
396
398
  "op.initializeProtectedRange": "Initialize Protected Range",
397
399
  "op.initializeTable": "Initialize Table",
398
400
  "op.insertAutoTable": "Insert AutoTable",
401
+ "op.insertCellControl": "Insert Cell Control",
399
402
  "op.insertCells": "Insert Cells",
400
403
  "op.insertChart": "Insert Chart",
401
404
  "op.insertColumns": "Insert Columns",
@@ -427,11 +430,13 @@
427
430
  "op.rangeUpdate": "Range Update",
428
431
  "op.refreshExternalLink": "Refresh Link to ''{name}''",
429
432
  "op.refreshSortsAndFilters": "Refresh Sorts and Filters",
433
+ "op.removeCellControl": "Remove Cell Control",
430
434
  "op.removeDuplicates": "Remove Duplicates",
431
435
  "op.removeExternalBook": "Remove Link to ''{name}''",
432
436
  "op.removeNamedFormula": "Remove Named Formula",
433
437
  "op.removePicture": "Remove Picture",
434
438
  "op.removeScript": "Remove Script",
439
+ "op.removeUnusedNames": "Remove {count, plural, one{# Unused Name} other{# Unused Names}}",
435
440
  "op.renameSheet": "Rename Sheet",
436
441
  "op.reopenComment": "Reopen Comment",
437
442
  "op.reorderConditionalFormat": "Reorder Conditional Format",
@@ -462,6 +467,7 @@
462
467
  "op.setBottomBorderColor": "Set Bottom Border Color",
463
468
  "op.setBottomBorderStyle": "Set Bottom Border Style",
464
469
  "op.setCellAddress": "Set Cell {address}",
470
+ "op.setCellControl": "Set Cell Control",
465
471
  "op.setChartArea": "Format Chart Area",
466
472
  "op.setChartAxis": "Format Axis",
467
473
  "op.setChartAxisTitle": "Format Axis Title",
@@ -652,6 +658,7 @@
652
658
  "op.update": "Update",
653
659
  "op.updateAnchor": "Update Anchor",
654
660
  "op.updateCalculations": "Update Calculations",
661
+ "op.updateCellControl": "Update Cell Control",
655
662
  "op.updateCells": "Update Cells",
656
663
  "op.updateChart": "Format Chart",
657
664
  "op.updateColumnNamed": "Update Column ''{name}''",