igniteui-webcomponents-excel 4.3.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/bundles/igniteui-webcomponents-excel.umd.js +10268 -10084
  2. package/bundles/igniteui-webcomponents-excel.umd.min.js +1 -1
  3. package/esm2015/lib/DefaultStyleHelper_combined.js +6837 -6742
  4. package/esm2015/lib/ExternalEventWorkItem$1.js +1 -1
  5. package/esm2015/lib/ExternalEventWorkItem.js +1 -1
  6. package/esm2015/lib/SpreadsheetML2009Main_combined.js +21 -17
  7. package/esm2015/lib/UltraCalcConditionalFunctionBase_CriteriaEvaluator.js +7 -7
  8. package/esm2015/lib/UltraCalcConditionalFunctionBase_combined.js +7 -3
  9. package/esm2015/lib/UltraCalcFunctionCell.js +1 -1
  10. package/esm2015/lib/UltraCalcFunctionColumn.js +1 -1
  11. package/esm2015/lib/UltraCalcFunctionDateValue.js +1 -1
  12. package/esm2015/lib/UltraCalcFunctionDays.js +4 -4
  13. package/esm2015/lib/UltraCalcFunctionHLookup.js +15 -8
  14. package/esm2015/lib/UltraCalcFunctionIRR.js +1 -1
  15. package/esm2015/lib/UltraCalcFunctionIndirect.js +1 -1
  16. package/esm2015/lib/UltraCalcFunctionLookup.js +21 -12
  17. package/esm2015/lib/UltraCalcFunctionLookupBase.js +5 -5
  18. package/esm2015/lib/UltraCalcFunctionMatch.js +13 -4
  19. package/esm2015/lib/UltraCalcFunctionRow.js +1 -1
  20. package/esm2015/lib/UltraCalcFunctionSheet.js +1 -1
  21. package/esm2015/lib/UltraCalcFunctionText.js +2 -2
  22. package/esm2015/lib/UltraCalcFunctionTime.js +1 -1
  23. package/esm2015/lib/UltraCalcFunctionTimeValue.js +1 -1
  24. package/esm2015/lib/UltraCalcFunctionUSDollar.js +1 -1
  25. package/esm2015/lib/UltraCalcFunctionVLookup.js +15 -8
  26. package/esm2015/lib/UltraCalcFunctionYearFrac.js +2 -2
  27. package/esm2015/lib/WorkItem_combined.js +82 -32
  28. package/esm2015/lib/WorkbookLoadManagerExcel2007_combined.js +5 -5
  29. package/esm2015/lib/WorkbookSaveManagerExcel2003_combined.js +88 -86
  30. package/esm5/lib/DefaultStyleHelper_combined.js +9630 -9531
  31. package/esm5/lib/ExternalEventWorkItem$1.js +1 -1
  32. package/esm5/lib/ExternalEventWorkItem.js +1 -1
  33. package/esm5/lib/SpreadsheetML2009Main_combined.js +21 -17
  34. package/esm5/lib/UltraCalcConditionalFunctionBase_CriteriaEvaluator.js +7 -7
  35. package/esm5/lib/UltraCalcConditionalFunctionBase_combined.js +7 -3
  36. package/esm5/lib/UltraCalcFunctionCell.js +1 -1
  37. package/esm5/lib/UltraCalcFunctionColumn.js +1 -1
  38. package/esm5/lib/UltraCalcFunctionDateValue.js +1 -1
  39. package/esm5/lib/UltraCalcFunctionDays.js +4 -4
  40. package/esm5/lib/UltraCalcFunctionHLookup.js +15 -8
  41. package/esm5/lib/UltraCalcFunctionIRR.js +1 -1
  42. package/esm5/lib/UltraCalcFunctionIndirect.js +1 -1
  43. package/esm5/lib/UltraCalcFunctionLookup.js +21 -12
  44. package/esm5/lib/UltraCalcFunctionLookupBase.js +5 -5
  45. package/esm5/lib/UltraCalcFunctionMatch.js +13 -4
  46. package/esm5/lib/UltraCalcFunctionRow.js +1 -1
  47. package/esm5/lib/UltraCalcFunctionSheet.js +1 -1
  48. package/esm5/lib/UltraCalcFunctionText.js +2 -2
  49. package/esm5/lib/UltraCalcFunctionTime.js +1 -1
  50. package/esm5/lib/UltraCalcFunctionTimeValue.js +1 -1
  51. package/esm5/lib/UltraCalcFunctionUSDollar.js +1 -1
  52. package/esm5/lib/UltraCalcFunctionVLookup.js +15 -8
  53. package/esm5/lib/UltraCalcFunctionYearFrac.js +2 -2
  54. package/esm5/lib/WorkItem_combined.js +82 -32
  55. package/esm5/lib/WorkbookLoadManagerExcel2007_combined.js +5 -5
  56. package/esm5/lib/WorkbookSaveManagerExcel2003_combined.js +86 -84
  57. package/fesm2015/igniteui-webcomponents-excel.js +7355 -7175
  58. package/fesm5/igniteui-webcomponents-excel.js +10269 -10085
  59. package/lib/DefaultStyleHelper_combined.d.ts +1409 -1377
  60. package/lib/WorkItem_combined.d.ts +20 -8
  61. package/lib/WorkbookSaveManagerExcel2003_combined.d.ts +25 -24
  62. package/package.json +2 -2
@@ -37,7 +37,7 @@ export let ExternalEventWorkItem$1 = /*@__PURE__*/ (() => {
37
37
  }
38
38
  this.af = true;
39
39
  if (this.ae != null) {
40
- this.ae.e(this);
40
+ this.ae.f(this);
41
41
  }
42
42
  }
43
43
  }
@@ -33,7 +33,7 @@ export let ExternalEventWorkItem = /*@__PURE__*/ (() => {
33
33
  }
34
34
  this.ae = true;
35
35
  if (this.ad != null) {
36
- this.ad.e(this);
36
+ this.ad.f(this);
37
37
  }
38
38
  }
39
39
  }
@@ -3316,52 +3316,56 @@ export let SpreadsheetMLMain = /*@__PURE__*/ (() => {
3316
3316
  o = null;
3317
3317
  p = false;
3318
3318
  q = false;
3319
- for (let r of fromEnum(a.ab.u)) {
3320
- switch (r.a.e(a.d)) {
3319
+ let r = false;
3320
+ for (let s of fromEnum(a.ab.u)) {
3321
+ switch (s.a.e(a.d)) {
3321
3322
  case "name":
3322
- c = r.d;
3323
+ c = s.d;
3323
3324
  break;
3324
3325
  case "comment":
3325
- d = r.d;
3326
+ d = s.d;
3326
3327
  break;
3327
3328
  case "customMenu":
3328
- e = r.d;
3329
+ e = s.d;
3329
3330
  break;
3330
3331
  case "description":
3331
- f = r.d;
3332
+ f = s.d;
3332
3333
  break;
3333
3334
  case "help":
3334
- g = r.d;
3335
+ g = s.d;
3335
3336
  break;
3336
3337
  case "statusBar":
3337
- h = r.d;
3338
+ h = s.d;
3338
3339
  break;
3339
3340
  case "localSheetId":
3340
- i = toNullable(Number_$type, parseUInt32_1(r.d, CultureInfo.invariantCulture));
3341
+ i = toNullable(Number_$type, parseUInt32_1(s.d, CultureInfo.invariantCulture));
3341
3342
  break;
3342
3343
  case "hidden":
3343
- j = ST_OnOff.e(r.d);
3344
+ j = ST_OnOff.e(s.d);
3344
3345
  break;
3345
3346
  case "function":
3346
- k = ST_OnOff.e(r.d);
3347
+ k = ST_OnOff.e(s.d);
3347
3348
  break;
3348
3349
  case "vbProcedure":
3349
- l = ST_OnOff.e(r.d);
3350
+ l = ST_OnOff.e(s.d);
3350
3351
  break;
3351
3352
  case "xlm":
3352
- m = ST_OnOff.e(r.d);
3353
+ m = ST_OnOff.e(s.d);
3353
3354
  break;
3354
3355
  case "functionGroupId":
3355
- n = toNullable(Number_$type, parseUInt32_1(r.d, CultureInfo.invariantCulture));
3356
+ n = toNullable(Number_$type, parseUInt32_1(s.d, CultureInfo.invariantCulture));
3356
3357
  break;
3357
3358
  case "shortcutKey":
3358
- o = r.d;
3359
+ o = s.d;
3359
3360
  break;
3360
3361
  case "publishToServer":
3361
- p = ST_OnOff.e(r.d);
3362
+ p = ST_OnOff.e(s.d);
3362
3363
  break;
3363
3364
  case "workbookParameter":
3364
- q = ST_OnOff.e(r.d);
3365
+ q = ST_OnOff.e(s.d);
3366
+ break;
3367
+ case XmlNamespace.as:
3368
+ r = (s.d == "preserve");
3365
3369
  break;
3366
3370
  default: break;
3367
3371
  }
@@ -90,32 +90,32 @@ export let UltraCalcConditionalFunctionBase_CriteriaEvaluator = /*@__PURE__*/ ((
90
90
  d = b;
91
91
  }
92
92
  this.b = new ExcelCalcValue(d);
93
- this.b._n = new CalculationContext(1, a, 64);
93
+ this.b._q = new CalculationContext(1, a, 64);
94
94
  this.e = this.b._getResolvedValue3(false);
95
95
  this.a = typeCast(ExcelCalcErrorValue.$, d);
96
96
  }
97
97
  d(a) {
98
98
  let b = a._getResolvedValue3(false);
99
- if (ExcelCalcValue._ab(b)) {
99
+ if (ExcelCalcValue._ae(b)) {
100
100
  return this.a != null && this.a.code == b.code;
101
101
  }
102
- if (ExcelCalcValue._ad(b) != ExcelCalcValue._ad(this.e)) {
102
+ if (ExcelCalcValue._ag(b) != ExcelCalcValue._ag(this.e)) {
103
103
  return false;
104
104
  }
105
105
  let c = false;
106
- if (ExcelCalcValue._ah(b)) {
106
+ if (ExcelCalcValue._ak(b)) {
107
107
  if (this.f == null) {
108
108
  return false;
109
109
  }
110
110
  c = true;
111
111
  }
112
- if (ExcelCalcValue._v(b) != ExcelCalcValue._v(this.e)) {
112
+ if (ExcelCalcValue._y(b) != ExcelCalcValue._y(this.e)) {
113
113
  return false;
114
114
  }
115
115
  if (this.g != null) {
116
- return this.g.i(a._bq(b, a._a1)).i;
116
+ return this.g.i(a._bt(b, a._a4)).i;
117
117
  }
118
- let d = ExcelCalcValue._a5(a, b, this.b, c ? this.f : this.e);
118
+ let d = ExcelCalcValue._a8(a, b, this.b, c ? this.f : this.e);
119
119
  switch (this.c) {
120
120
  case 0: return d == 0;
121
121
  case 1: return d != 0;
@@ -11,6 +11,7 @@ import { UltraCalcConditionalFunctionBase_CriteriaEvaluator } from "./UltraCalcC
11
11
  import { ArrayProxy } from "./ArrayProxy";
12
12
  import { CellCalcReference } from "./CellCalcReference";
13
13
  import { ExcelCalcErrorValue } from "./ExcelCalcErrorValue";
14
+ import { RegionArrayProxyBase } from "./RegionArrayProxyBase";
14
15
  import { Base, typeCast, runOn, markType } from "igniteui-webcomponents-core";
15
16
  import { ErrorValue } from "./ErrorValue";
16
17
  import { List$1 } from "igniteui-webcomponents-core";
@@ -58,6 +59,9 @@ export let UltraCalcConditionalFunctionBase = /*@__PURE__*/ (() => {
58
59
  return new ExcelCalcValue(new ExcelCalcErrorValue(1));
59
60
  }
60
61
  }
62
+ if (typeCast(RegionArrayProxyBase.$, g) !== null) {
63
+ a._p._addDynamicReference1(g._s._c, a._r._w, true);
64
+ }
61
65
  let i = new UltraCalcConditionalFunctionBase_EvaluateHelper(this, f, g);
62
66
  if (h == null) {
63
67
  g._n(false, runOn(i, i.h));
@@ -72,8 +76,8 @@ export let UltraCalcConditionalFunctionBase = /*@__PURE__*/ (() => {
72
76
  let p = Math.min(o, k + g.getLength(1) - 1);
73
77
  let q = l._cx(k, j, p, n);
74
78
  let r = new ExcelCalcValue(q._c);
75
- r._n = c._n;
76
- r._z = true;
79
+ r._q = c._q;
80
+ r._ac = true;
77
81
  let s = r._d(false);
78
82
  s._n(false, runOn(i, i.h));
79
83
  }
@@ -185,7 +189,7 @@ export let UltraCalcConditionalFunctionBase = /*@__PURE__*/ (() => {
185
189
  let aa = z._getResolvedValue3(false);
186
190
  let ab;
187
191
  let ac;
188
- if (((() => { let ad = z._ap(aa, ac, o, ab); ac = ad.p1; ab = ad.p3; return ad.ret; })())) {
192
+ if (((() => { let ad = z._as(aa, ac, o, ab); ac = ad.p1; ab = ad.p3; return ad.ret; })())) {
189
193
  p++;
190
194
  q = e(q, ac);
191
195
  }
@@ -253,7 +253,7 @@ export let UltraCalcFunctionCell = /*@__PURE__*/ (() => {
253
253
  if (i == null) {
254
254
  i = new ExcelCalcValue(b);
255
255
  }
256
- let j = i._bk(false, false);
256
+ let j = i._bn(false, false);
257
257
  if (typeCast(FormattedString.$, j) !== null) {
258
258
  g = j.unformattedString;
259
259
  }
@@ -39,7 +39,7 @@ export let UltraCalcFunctionColumn = /*@__PURE__*/ (() => {
39
39
  return new ExcelCalcValue(c);
40
40
  }
41
41
  static _ak(a) {
42
- let b = ExcelCalcEngine.u(a);
42
+ let b = ExcelCalcEngine.af(a);
43
43
  let c = typeCast(CellCalcReference.$, b);
44
44
  if (c != null) {
45
45
  return c._ao + 1;
@@ -16,7 +16,7 @@ export let UltraCalcFunctionDateValue = /*@__PURE__*/ (() => {
16
16
  evaluate(a, b) {
17
17
  let c = a.pop();
18
18
  let d;
19
- if (((() => { let e = c._ak(c._a1, d); d = e.p1; return e.ret; })()) == false) {
19
+ if (((() => { let e = c._an(c._a4, d); d = e.p1; return e.ret; })()) == false) {
20
20
  return new ExcelCalcValue(new ExcelCalcErrorValue(1));
21
21
  }
22
22
  return new ExcelCalcValue(d);
@@ -20,20 +20,20 @@ export let UltraCalcFunctionDays = /*@__PURE__*/ (() => {
20
20
  let e, f;
21
21
  if (d.isString) {
22
22
  let g;
23
- if (((() => { let h = d._ak(d._a1, g); g = h.p1; return h.ret; })()) == false) {
23
+ if (((() => { let h = d._an(d._a4, g); g = h.p1; return h.ret; })()) == false) {
24
24
  return new ExcelCalcValue(new ExcelCalcErrorValue(1));
25
25
  }
26
- e = (((h) => !nullableIsNull(h) ? h.value : -1)(ExcelCalcValue._dateTimeToExcelDate(d._o, g)));
26
+ e = (((h) => !nullableIsNull(h) ? h.value : -1)(ExcelCalcValue._dateTimeToExcelDate(d._r, g)));
27
27
  }
28
28
  else {
29
29
  e = d._toDouble3();
30
30
  }
31
31
  if (c.isString) {
32
32
  let h;
33
- if (((() => { let i = c._ak(c._a1, h); h = i.p1; return i.ret; })()) == false) {
33
+ if (((() => { let i = c._an(c._a4, h); h = i.p1; return i.ret; })()) == false) {
34
34
  return new ExcelCalcValue(new ExcelCalcErrorValue(1));
35
35
  }
36
- f = (((i) => !nullableIsNull(i) ? i.value : -1)(ExcelCalcValue._dateTimeToExcelDate(c._o, h)));
36
+ f = (((i) => !nullableIsNull(i) ? i.value : -1)(ExcelCalcValue._dateTimeToExcelDate(c._r, h)));
37
37
  }
38
38
  else {
39
39
  f = c._toDouble3();
@@ -7,7 +7,8 @@ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOA
7
7
  import { UltraCalcFunctionLookupBase } from "./UltraCalcFunctionLookupBase";
8
8
  import { ExcelCalcValue } from "./ExcelCalcValue";
9
9
  import { ExcelCalcErrorValue } from "./ExcelCalcErrorValue";
10
- import { markType } from "igniteui-webcomponents-core";
10
+ import { RegionArrayProxyBase } from "./RegionArrayProxyBase";
11
+ import { typeCast, markType } from "igniteui-webcomponents-core";
11
12
  import { truncate } from "igniteui-webcomponents-core";
12
13
  /**
13
14
  * @hidden
@@ -51,17 +52,23 @@ export let UltraCalcFunctionHLookup = /*@__PURE__*/ (() => {
51
52
  return new ExcelCalcValue(new ExcelCalcErrorValue(1));
52
53
  }
53
54
  let k = g.getLength(0);
54
- let l = UltraCalcFunctionLookupBase._al(g._j(1, 0), f, j ? 1 : 0);
55
- if (l < 0 || k <= l) {
55
+ if (typeCast(RegionArrayProxyBase.$, g) !== null) {
56
+ let l = g._b(0, 0, 0, k - 1);
57
+ let m = l;
58
+ let n = m._s._c;
59
+ a._p._addDynamicReference1(n, a._r._w, true);
60
+ }
61
+ let o = UltraCalcFunctionLookupBase._al(g._j(1, 0), f, j ? 1 : 0);
62
+ if (o < 0 || k <= o) {
56
63
  return new ExcelCalcValue(new ExcelCalcErrorValue(3));
57
64
  }
58
- let m = g.getLength(1);
59
- if (m <= i) {
65
+ let p = g.getLength(1);
66
+ if (p <= i) {
60
67
  return new ExcelCalcValue(new ExcelCalcErrorValue(0));
61
68
  }
62
- let n = g.item(l, i);
63
- n._z = true;
64
- return new ExcelCalcValue(n._getResolvedValue());
69
+ let q = g.item(o, i);
70
+ q._ac = true;
71
+ return new ExcelCalcValue(q._getResolvedValue());
65
72
  }
66
73
  get_name() {
67
74
  return "hlookup";
@@ -27,7 +27,7 @@ export let UltraCalcFunctionIRR = /*@__PURE__*/ (() => {
27
27
  }
28
28
  d += 1;
29
29
  let f = a.pop();
30
- if (f._t == false) {
30
+ if (f._w == false) {
31
31
  return new ExcelCalcValue(new ExcelCalcErrorValue(1));
32
32
  }
33
33
  let g = 0;
@@ -31,7 +31,7 @@ export let UltraCalcFunctionIndirect = /*@__PURE__*/ (() => {
31
31
  let e = d.toString();
32
32
  let f = c == null ? true : c._toBoolean1();
33
33
  let g = f ? 1 : 0;
34
- let h = typeCast(RefBase.$, ExcelCalcEngine.b(a._k));
34
+ let h = typeCast(RefBase.$, ExcelCalcEngine.i(a._k));
35
35
  if (h == null) {
36
36
  return new ExcelCalcValue(ExcelReferenceError._a2);
37
37
  }
@@ -7,7 +7,8 @@ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOA
7
7
  import { UltraCalcFunctionLookupBase } from "./UltraCalcFunctionLookupBase";
8
8
  import { ExcelCalcValue } from "./ExcelCalcValue";
9
9
  import { ExcelCalcErrorValue } from "./ExcelCalcErrorValue";
10
- import { markType } from "igniteui-webcomponents-core";
10
+ import { RegionArrayProxyBase } from "./RegionArrayProxyBase";
11
+ import { typeCast, markType } from "igniteui-webcomponents-core";
11
12
  /**
12
13
  * @hidden
13
14
  */
@@ -55,35 +56,43 @@ export let UltraCalcFunctionLookup = /*@__PURE__*/ (() => {
55
56
  return new ExcelCalcValue(new ExcelCalcErrorValue(3));
56
57
  }
57
58
  }
58
- let o = UltraCalcFunctionLookupBase._al(f._j(i ? 1 : 0, 0), e, 1);
59
- if (o < 0 || j <= o) {
59
+ if (typeCast(RegionArrayProxyBase.$, f) !== null) {
60
+ let o = i ? 0 : f.getLength(1) - 1;
61
+ let p = i ? f.getLength(0) - 1 : 0;
62
+ let q = f._b(0, 0, o, p);
63
+ let r = q;
64
+ let s = r._s._c;
65
+ a._p._addDynamicReference1(s, a._r._w, true);
66
+ }
67
+ let t = UltraCalcFunctionLookupBase._al(f._j(i ? 1 : 0, 0), e, 1);
68
+ if (t < 0 || j <= t) {
60
69
  return new ExcelCalcValue(new ExcelCalcErrorValue(3));
61
70
  }
62
- let p;
71
+ let u;
63
72
  if (k != null) {
64
73
  if (n) {
65
- if (l <= o) {
74
+ if (l <= t) {
66
75
  return new ExcelCalcValue(new ExcelCalcErrorValue(3));
67
76
  }
68
- p = k.item(o, 0);
77
+ u = k.item(t, 0);
69
78
  }
70
79
  else {
71
- if (m <= o) {
80
+ if (m <= t) {
72
81
  return new ExcelCalcValue(new ExcelCalcErrorValue(3));
73
82
  }
74
- p = k.item(0, o);
83
+ u = k.item(0, t);
75
84
  }
76
85
  }
77
86
  else {
78
87
  if (i) {
79
- p = f.item(o, h - 1);
88
+ u = f.item(t, h - 1);
80
89
  }
81
90
  else {
82
- p = f.item(g - 1, o);
91
+ u = f.item(g - 1, t);
83
92
  }
84
93
  }
85
- p._z = true;
86
- return new ExcelCalcValue(p._getResolvedValue());
94
+ u._ac = true;
95
+ return new ExcelCalcValue(u._getResolvedValue());
87
96
  }
88
97
  get_minArgs() {
89
98
  return 2;
@@ -21,12 +21,12 @@ export let UltraCalcFunctionLookupBase = /*@__PURE__*/ (() => {
21
21
  return toNullable(Number_$type, null);
22
22
  }
23
23
  if (b) {
24
- if (ExcelCalcValue._ah(h) == false) {
24
+ if (ExcelCalcValue._ak(h) == false) {
25
25
  return toNullable(Number_$type, null);
26
26
  }
27
- let i = a._bq(h, a._a1);
27
+ let i = a._bt(h, a._a4);
28
28
  if (g == null) {
29
- return toNullable(Number_$type, StringUtilities.d(i, c, a._a1, 1));
29
+ return toNullable(Number_$type, StringUtilities.d(i, c, a._a4, 1));
30
30
  }
31
31
  let j = g.i(i);
32
32
  if (j.i && j.d == i.length) {
@@ -42,7 +42,7 @@ export let UltraCalcFunctionLookupBase = /*@__PURE__*/ (() => {
42
42
  }
43
43
  let k;
44
44
  let l;
45
- if (((() => { let m = a._ap(h, k, a._a1, l); k = m.p1; l = m.p3; return m.ret; })()) == false) {
45
+ if (((() => { let m = a._as(h, k, a._a4, l); k = m.p1; l = m.p3; return m.ret; })()) == false) {
46
46
  return toNullable(Number_$type, null);
47
47
  }
48
48
  return toNullable(Number_$type, Base.compareSimple(k, f));
@@ -69,7 +69,7 @@ export let UltraCalcFunctionLookupBase = /*@__PURE__*/ (() => {
69
69
  for (let l of fromEnum(a)) {
70
70
  let m = l.key;
71
71
  let n = l.value;
72
- n._z = true;
72
+ n._ac = true;
73
73
  let o = UltraCalcFunctionLookupBase._am(n, d, e, f, g, h, j);
74
74
  if (o.hasValue == false) {
75
75
  continue;
@@ -8,7 +8,8 @@ import { UltraCalcFunctionLookupBase } from "./UltraCalcFunctionLookupBase";
8
8
  import { ExcelCalcValue } from "./ExcelCalcValue";
9
9
  import { ExcelCalcErrorValue } from "./ExcelCalcErrorValue";
10
10
  import { MathUtilities } from "./MathUtilities";
11
- import { markType } from "igniteui-webcomponents-core";
11
+ import { RegionArrayProxyBase } from "./RegionArrayProxyBase";
12
+ import { typeCast, markType } from "igniteui-webcomponents-core";
12
13
  import { truncate } from "igniteui-webcomponents-core";
13
14
  /**
14
15
  * @hidden
@@ -47,11 +48,19 @@ export let UltraCalcFunctionMatch = /*@__PURE__*/ (() => {
47
48
  return new ExcelCalcValue(new ExcelCalcErrorValue(1));
48
49
  }
49
50
  let l = truncate(MathUtilities.j(k));
50
- let m = UltraCalcFunctionLookupBase._al(f._j(i ? 1 : 0, 0), e, l);
51
- if (m < 0 || j <= m) {
51
+ if (typeCast(RegionArrayProxyBase.$, f) !== null) {
52
+ let m = i ? 0 : f.getLength(1) - 1;
53
+ let n = i ? f.getLength(0) - 1 : 0;
54
+ let o = f._b(0, 0, m, n);
55
+ let p = o;
56
+ let q = p._s._c;
57
+ a._p._addDynamicReference1(q, a._r._w, true);
58
+ }
59
+ let r = UltraCalcFunctionLookupBase._al(f._j(i ? 1 : 0, 0), e, l);
60
+ if (r < 0 || j <= r) {
52
61
  return new ExcelCalcValue(new ExcelCalcErrorValue(3));
53
62
  }
54
- return new ExcelCalcValue(m + 1);
63
+ return new ExcelCalcValue(r + 1);
55
64
  }
56
65
  get_name() {
57
66
  return "match";
@@ -39,7 +39,7 @@ export let UltraCalcFunctionRow = /*@__PURE__*/ (() => {
39
39
  return new ExcelCalcValue(c);
40
40
  }
41
41
  static _ak(a) {
42
- let b = ExcelCalcEngine.u(a);
42
+ let b = ExcelCalcEngine.af(a);
43
43
  let c = typeCast(CellCalcReference.$, b);
44
44
  if (c != null) {
45
45
  return c._w.index + 1;
@@ -37,7 +37,7 @@ export let UltraCalcFunctionSheet = /*@__PURE__*/ (() => {
37
37
  if (!a._r._worksheets$i.exists(f)) {
38
38
  return new ExcelCalcValue(new ExcelCalcErrorValue(3));
39
39
  }
40
- d = c._o._worksheets$i._item1(f);
40
+ d = c._r._worksheets$i._item1(f);
41
41
  }
42
42
  else if (c.isError) {
43
43
  return new ExcelCalcValue(c.toErrorValue());
@@ -44,7 +44,7 @@ export let UltraCalcFunctionText = /*@__PURE__*/ (() => {
44
44
  else {
45
45
  let j;
46
46
  if (((() => { let k = dateTryParse(e, j); j = k.p1; return k.ret; })())) {
47
- let k = ExcelCalcValue._dateTimeToExcelDate(d._o, j);
47
+ let k = ExcelCalcValue._dateTimeToExcelDate(d._r, j);
48
48
  if (k.hasValue) {
49
49
  g = k.value;
50
50
  h = true;
@@ -56,7 +56,7 @@ export let UltraCalcFunctionText = /*@__PURE__*/ (() => {
56
56
  if (h) {
57
57
  l = g;
58
58
  }
59
- let m = new ValueFormatter(0, d._o, f, a._w);
59
+ let m = new ValueFormatter(0, d._r, f, a._w);
60
60
  let n;
61
61
  if (((() => { let o = m.v(l, e, n); n = o.p2; return o.ret; })()) == false) {
62
62
  return new ExcelCalcValue(new ExcelCalcErrorValue(1));
@@ -45,7 +45,7 @@ export let UltraCalcFunctionTime = /*@__PURE__*/ (() => {
45
45
  }
46
46
  if (true) {
47
47
  let j = timeSpanInit1(h, g, f);
48
- let k = ExcelCalcValue._az(j);
48
+ let k = ExcelCalcValue._a2(j);
49
49
  return new ExcelCalcValue(k);
50
50
  }
51
51
  else {
@@ -21,7 +21,7 @@ export let UltraCalcFunctionTimeValue = /*@__PURE__*/ (() => {
21
21
  }
22
22
  let d = dateGetTimeOfDay(c._toDateTime1());
23
23
  if (true) {
24
- let e = ExcelCalcValue._az(d);
24
+ let e = ExcelCalcValue._a2(d);
25
25
  return new ExcelCalcValue(e);
26
26
  }
27
27
  return new ExcelCalcValue(dateFromTicks(timeSpanTicks(d)));
@@ -35,7 +35,7 @@ export let UltraCalcFunctionUSDollar = /*@__PURE__*/ (() => {
35
35
  e = MathUtilities.g(e, f);
36
36
  }
37
37
  let g = f > 0 ? stringFormat("$#,##0.{0};($#,##0.{0})", stringCreateFromChar('0', f)) : "$#,##0;($#,##0)";
38
- let h = new ValueFormatter(0, d._o, g, a._w);
38
+ let h = new ValueFormatter(0, d._r, g, a._w);
39
39
  let i;
40
40
  if (((() => { let j = h.v(e, null, i); i = j.p2; return j.ret; })()) == false) {
41
41
  return new ExcelCalcValue(new ExcelCalcErrorValue(1));
@@ -7,7 +7,8 @@ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOA
7
7
  import { UltraCalcFunctionLookupBase } from "./UltraCalcFunctionLookupBase";
8
8
  import { ExcelCalcValue } from "./ExcelCalcValue";
9
9
  import { ExcelCalcErrorValue } from "./ExcelCalcErrorValue";
10
- import { markType } from "igniteui-webcomponents-core";
10
+ import { RegionArrayProxyBase } from "./RegionArrayProxyBase";
11
+ import { typeCast, markType } from "igniteui-webcomponents-core";
11
12
  import { truncate } from "igniteui-webcomponents-core";
12
13
  /**
13
14
  * @hidden
@@ -51,17 +52,23 @@ export let UltraCalcFunctionVLookup = /*@__PURE__*/ (() => {
51
52
  return new ExcelCalcValue(new ExcelCalcErrorValue(1));
52
53
  }
53
54
  let k = g.getLength(1);
54
- let l = UltraCalcFunctionLookupBase._al(g._j(0, 0), f, j ? 1 : 0);
55
- if (l < 0 || k <= l) {
55
+ if (typeCast(RegionArrayProxyBase.$, g) !== null) {
56
+ let l = g._b(0, 0, k - 1, 0);
57
+ let m = l;
58
+ let n = m._s._c;
59
+ a._p._addDynamicReference1(n, a._r._w, true);
60
+ }
61
+ let o = UltraCalcFunctionLookupBase._al(g._j(0, 0), f, j ? 1 : 0);
62
+ if (o < 0 || k <= o) {
56
63
  return new ExcelCalcValue(new ExcelCalcErrorValue(3));
57
64
  }
58
- let m = g.getLength(0);
59
- if (m <= i) {
65
+ let p = g.getLength(0);
66
+ if (p <= i) {
60
67
  return new ExcelCalcValue(new ExcelCalcErrorValue(0));
61
68
  }
62
- let n = g.item(i, l);
63
- n._z = true;
64
- return new ExcelCalcValue(n._getResolvedValue());
69
+ let q = g.item(i, o);
70
+ q._ac = true;
71
+ return new ExcelCalcValue(q._getResolvedValue());
65
72
  }
66
73
  get_name() {
67
74
  return "vlookup";
@@ -20,10 +20,10 @@ export let UltraCalcFunctionYearFrac = /*@__PURE__*/ (() => {
20
20
  let d = a.pop();
21
21
  let e = a.pop();
22
22
  let f, g;
23
- if (!((() => { let h = e._ak(a._w, f, false, true); f = h.p1; return h.ret; })())) {
23
+ if (!((() => { let h = e._an(a._w, f, false, true); f = h.p1; return h.ret; })())) {
24
24
  return new ExcelCalcValue(new ExcelCalcErrorValue(4));
25
25
  }
26
- if (!((() => { let h = d._ak(a._w, g, false, true); g = h.p1; return h.ret; })())) {
26
+ if (!((() => { let h = d._an(a._w, g, false, true); g = h.p1; return h.ret; })())) {
27
27
  return new ExcelCalcValue(new ExcelCalcErrorValue(4));
28
28
  }
29
29
  let h = c == null ? 0 : c._toInt321();