@svgrid/enterprise 2.3.0 → 2.3.2

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 (73) hide show
  1. package/dist/cdn/{pdfmake-C6pyKjX0.js → pdfmake-DVbZqKeD.js} +2297 -2327
  2. package/dist/cdn/rolldown-runtime-DtPi1Y-2.js +13 -0
  3. package/dist/cdn/{smart.export-CfW2zpyq.js → smart.export-D9FF4wAB.js} +54 -51
  4. package/dist/cdn/svgrid-enterprise.svelte-external.js +11308 -7898
  5. package/dist/cdn/{vfs_fonts-BktEULEs.js → vfs_fonts-iHMTEkpG.js} +1 -1
  6. package/dist/designer/assets/GridMenus-CW-rnHS9.js +7 -0
  7. package/dist/designer/assets/SvDateTimePicker-Cygij-dr.css +1 -0
  8. package/dist/designer/assets/SvDateTimePicker-DOBYyLeN.js +1 -0
  9. package/dist/designer/assets/SvGridChart-BEDNTdc5.js +2 -0
  10. package/dist/designer/assets/SvGridChart-Vu4Nvjiv.css +1 -0
  11. package/dist/designer/assets/SvGridChartPanel-x3lzSxuf.js +10 -0
  12. package/dist/designer/assets/SvGridChartView-CAKhPELi.js +1 -0
  13. package/dist/designer/assets/SvGridChartView-DX9HfkBR.css +1 -0
  14. package/dist/designer/assets/SvGridDropdown-CAYG7Y-O.js +1 -0
  15. package/dist/designer/assets/SvGridDropdown-Crwb2P3Q.css +1 -0
  16. package/dist/designer/assets/SvListBox-BMSfFJJT.css +1 -0
  17. package/dist/designer/assets/SvListBox-BVzVfCG3.js +1 -0
  18. package/dist/designer/assets/chart-DHEgt4lN.js +1 -0
  19. package/dist/designer/assets/disclose-version-CIm4S9xS.js +2 -0
  20. package/dist/designer/assets/dismissable-2EZKoens.js +1 -0
  21. package/dist/designer/assets/dismissable-BF-9TJSd.css +1 -0
  22. package/dist/designer/assets/easing-zaypKrr0.js +3 -0
  23. package/dist/designer/assets/export-format-DwjuTfrQ.js +6 -0
  24. package/dist/designer/assets/index-DVrv9dH6.js +75797 -0
  25. package/dist/designer/assets/index-DjPp1mn7.css +1 -0
  26. package/dist/designer/assets/js-scroller.svelte-tHanKJx0.js +110 -0
  27. package/dist/designer/assets/jszip.min-CX2fPs3O.js +2 -0
  28. package/dist/designer/assets/pdfmake-BpIYFHoG.js +242 -0
  29. package/dist/designer/assets/popover-CUkLsvRX.js +1 -0
  30. package/dist/designer/assets/rolldown-runtime-Dd_uD5pT.js +1 -0
  31. package/dist/designer/assets/smart.export-CDCwbFH4.js +37 -0
  32. package/dist/designer/assets/src-BRKu53tV.js +2842 -0
  33. package/dist/designer/assets/src-DseB1VRN.css +1 -0
  34. package/dist/designer/assets/vfs_fonts-BV-Ul9v2.js +1 -0
  35. package/dist/designer/index.html +32 -0
  36. package/dist/node/studio.js +16778 -12672
  37. package/package.json +10 -7
  38. package/src/SvGridBoard.svelte +4 -1
  39. package/src/SvGridScheduler.svelte +114 -90
  40. package/src/ai-export-pdf.dom.test.ts +77 -77
  41. package/src/ai-export-xlsx.dom.test.ts +90 -90
  42. package/src/ai-export.dom.test.ts +114 -114
  43. package/src/export-ooxml.ts +4 -0
  44. package/src/export-xls.ts +3 -0
  45. package/src/expressions/evaluate.ts +9 -0
  46. package/src/import.test.ts +1 -1
  47. package/src/import.ts +1 -1
  48. package/src/index.ts +12 -0
  49. package/src/pivot.test.ts +0 -1
  50. package/src/schema-designer.ts +1 -1
  51. package/src/sources/introspect-supabase.ts +2 -2
  52. package/src/studio/emit-project.test.ts +298 -7
  53. package/src/studio/emit-project.ts +484 -30
  54. package/src/studio/emit-schema.ts +20 -10
  55. package/src/studio/index.ts +34 -0
  56. package/src/studio/init-flow.test.ts +364 -0
  57. package/src/studio/init-flow.ts +409 -0
  58. package/src/studio/project.test.ts +0 -1
  59. package/src/studio/project.ts +109 -2
  60. package/src/studio/samples/datasets.test.ts +84 -0
  61. package/src/studio/samples/datasets.ts +340 -0
  62. package/src/studio/samples/live-data.test.ts +1 -1
  63. package/src/studio/samples/samples.test.ts +268 -268
  64. package/src/studio/samples/shared.ts +7 -150
  65. package/src/studio/screen-suites.test.ts +226 -0
  66. package/src/studio/screen-suites.ts +445 -0
  67. package/src/studio/ui-components-surface.test.ts +2 -2
  68. package/src/studio/ui-components.generated.ts +1643 -106
  69. package/src/studio/ui-components.ts +742 -641
  70. package/src/sveltekit/index.ts +1 -0
  71. package/src/sveltekit/sql-source.ts +1 -1
  72. package/src/sveltekit/transport-scope.test.ts +125 -0
  73. package/src/sveltekit/transport.ts +76 -2
@@ -0,0 +1,13 @@
1
+ //#region \0rolldown/runtime.js
2
+ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
3
+ if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
4
+ get: ((e) => i[e]).bind(null, d),
5
+ enumerable: !(s = n(i, d)) || s.enumerable
6
+ });
7
+ return e;
8
+ }, c = (n, r, o) => (o = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
9
+ value: n,
10
+ enumerable: !0
11
+ }) : o, n));
12
+ //#endregion
13
+ export { c as n, o as t };
@@ -1,29 +1,28 @@
1
1
  //#region src/smart.export.js
2
2
  (() => {
3
- var e = "\r\n";
4
- function t(e, t, n) {
3
+ function e(e, t, n) {
5
4
  if (!t && t !== "" && t !== 0) return "";
6
5
  let r = t;
7
6
  return typeof t == "boolean" && n && (r = n(t)), ` ${e}="${r}"`;
8
7
  }
9
- var n = class {
8
+ var t = class {
10
9
  static createHeader(e = {}) {
11
10
  let t = ["version"];
12
11
  return e.version ||= "1.0", e.encoding && t.push("encoding"), e.standalone && t.push("standalone"), `<?xml ${t.map(((t) => `${t}="${e[t]}"`)).join(" ")} ?>`;
13
12
  }
14
- static createXml(n, r) {
15
- let i = "";
16
- n.properties && (n.properties.prefixedAttributes && n.properties.prefixedAttributes.forEach(((e) => {
17
- Object.keys(e.map).forEach(((n) => {
18
- i += t(e.prefix + n, e.map[n], r);
13
+ static createXml(t, n) {
14
+ let r = "";
15
+ t.properties && (t.properties.prefixedAttributes && t.properties.prefixedAttributes.forEach(((t) => {
16
+ Object.keys(t.map).forEach(((i) => {
17
+ r += e(t.prefix + i, t.map[i], n);
19
18
  }));
20
- })), n.properties.rawMap && Object.keys(n.properties.rawMap).forEach(((e) => {
21
- i += t(e, n.properties.rawMap[e], r);
19
+ })), t.properties.rawMap && Object.keys(t.properties.rawMap).forEach(((i) => {
20
+ r += e(i, t.properties.rawMap[i], n);
22
21
  })));
23
- let a = "<" + n.name + i;
24
- return n.children || n.textNode != null ? n.textNode == null ? (a += ">\r\n", n.children && n.children.forEach(((e) => {
25
- a += this.createXml(e, r);
26
- })), a + "</" + n.name + ">" + e) : a + ">" + n.textNode + "</" + n.name + ">" + e : a + "/>" + e;
22
+ let i = "<" + t.name + r;
23
+ return t.children || t.textNode != null ? t.textNode == null ? (i += ">\r\n", t.children && t.children.forEach(((e) => {
24
+ i += this.createXml(e, n);
25
+ })), i + "</" + t.name + ">\r\n") : i + ">" + t.textNode + "</" + t.name + ">\r\n" : i + "/>\r\n";
27
26
  }
28
27
  };
29
28
  Smart.Utilities.Assign("DataExporter", class {
@@ -245,7 +244,7 @@
245
244
  let i = e[n].cells, a = {};
246
245
  for (let e = 0; e < r.datafields.length; e++) {
247
246
  let t = r.datafields[e];
248
- i[t] ? a[t] = i[t] : a[t] = null;
247
+ a[t] = i[t] ? i[t] : null;
249
248
  }
250
249
  t.push(a);
251
250
  }
@@ -257,7 +256,7 @@
257
256
  let i = t[e].cells, a = {};
258
257
  for (let e = 0; e < r.datafields.length; e++) {
259
258
  let t = r.datafields[e];
260
- i[t] ? a[t] = i[t] : a[t] = null;
259
+ a[t] = i[t] ? i[t] : null;
261
260
  }
262
261
  n.push(a);
263
262
  }
@@ -405,20 +404,23 @@
405
404
  };
406
405
  function s(t, r) {
407
406
  if (t) {
408
- for (let i in t) if (Object.prototype.hasOwnProperty.call(t, i)) if (n[i] === void 0) if (i === "height" && r === "header") for (let n = 0; n < e.headerRows; n++) o.heights[n] = parseInt(t[i], 10) / e.headerRows / 1.4;
409
- else e.storePDFStyle({
410
- prop: i,
411
- value: t[i],
412
- toUpdate: r
413
- });
414
- else for (let n in t[i]) {
415
- if (!isNaN(n) || !Object.prototype.hasOwnProperty.call(t[i], n)) continue;
416
- let a = t[i][n], s = e.datafields.indexOf(i);
417
- n === "width" && o.widths[s] === "*" ? o.widths[s] = a : e.storePDFStyle({
418
- prop: n,
419
- value: a,
420
- toUpdate: r + i
421
- });
407
+ for (let i in t) if (Object.prototype.hasOwnProperty.call(t, i)) {
408
+ if (n[i] === void 0) {
409
+ if (i === "height" && r === "header") for (let n = 0; n < e.headerRows; n++) o.heights[n] = parseInt(t[i], 10) / e.headerRows / 1.4;
410
+ else e.storePDFStyle({
411
+ prop: i,
412
+ value: t[i],
413
+ toUpdate: r
414
+ });
415
+ } else for (let n in t[i]) {
416
+ if (!isNaN(n) || !Object.prototype.hasOwnProperty.call(t[i], n)) continue;
417
+ let a = t[i][n], s = e.datafields.indexOf(i);
418
+ n === "width" && o.widths[s] === "*" ? o.widths[s] = a : e.storePDFStyle({
419
+ prop: n,
420
+ value: a,
421
+ toUpdate: r + i
422
+ });
423
+ }
422
424
  }
423
425
  }
424
426
  }
@@ -577,12 +579,12 @@
577
579
  index: this.workbookImageIds.size
578
580
  });
579
581
  }
580
- createXmlPart(e, t) {
581
- let r = n.createHeader({
582
+ createXmlPart(e, n) {
583
+ let r = t.createHeader({
582
584
  encoding: "UTF-8",
583
585
  standalone: "yes"
584
- }), i = n.createXml(e);
585
- return t ? i : `${r}${i}`;
586
+ }), i = t.createXml(e);
587
+ return n ? i : `${r}${i}`;
586
588
  }
587
589
  generateWorksheetImages(e, t, n) {
588
590
  let r = this;
@@ -885,7 +887,7 @@
885
887
  let i = t[e].cells, a = {};
886
888
  for (let e = 0; e < r.datafields.length; e++) {
887
889
  let t = r.datafields[e];
888
- i[t] ? a[t] = i[t] : a[t] = null;
890
+ a[t] = i[t] ? i[t] : null;
889
891
  }
890
892
  n.push(a);
891
893
  }
@@ -897,7 +899,7 @@
897
899
  let i = t[e].cells, a = {};
898
900
  for (let e = 0; e < r.datafields.length; e++) {
899
901
  let t = r.datafields[e];
900
- i[t] ? a[t] = i[t] : a[t] = null;
902
+ a[t] = i[t] ? i[t] : null;
901
903
  }
902
904
  n.push(a);
903
905
  }
@@ -1485,12 +1487,13 @@
1485
1487
  for (let e in t) {
1486
1488
  if (!Object.prototype.hasOwnProperty.call(t, e) || e === "alternationCount" || e === "alternationStart" || e === "alternationEnd") continue;
1487
1489
  let r = t[e];
1488
- if (e.indexOf("alt") === -1) if (isNaN(e)) n.row += Smart.Utilities.Core.toDash(e) + ": " + t[e] + "; ";
1489
- else {
1490
- n["row" + e] || (n["row" + e] = "");
1491
- for (let t in r) Object.prototype.hasOwnProperty.call(r, t) && (n["row" + e] += Smart.Utilities.Core.toDash(t) + ": " + r[t] + "; ");
1492
- }
1493
- else {
1490
+ if (e.indexOf("alt") === -1) {
1491
+ if (isNaN(e)) n.row += Smart.Utilities.Core.toDash(e) + ": " + t[e] + "; ";
1492
+ else {
1493
+ n["row" + e] || (n["row" + e] = "");
1494
+ for (let t in r) Object.prototype.hasOwnProperty.call(r, t) && (n["row" + e] += Smart.Utilities.Core.toDash(t) + ": " + r[t] + "; ");
1495
+ }
1496
+ } else {
1494
1497
  let t = e.slice(16, 17), i = e.slice(17);
1495
1498
  n["rowN" + t] || (n["rowN" + t] = ""), n["rowN" + t] += i === "Color" ? "color : " + r + "; " : i === "BorderColor" ? "border-color : " + r + "; " : "background-color : " + r + "; ";
1496
1499
  }
@@ -1564,13 +1567,15 @@
1564
1567
  let t = this, n = e.header, r = e.columns, i = t.data[0], a = t.xlsxStartIndex;
1565
1568
  if (t.columnWidth = [], a && n) for (let e = 0; e < t.columnsArray.length; e++) {
1566
1569
  let r = t.columnsArray[e], o = r + a, s = n[t.datafields[e]];
1567
- for (let e in n) if (Object.prototype.hasOwnProperty.call(n, e) && i[e] === void 0) if (t.complexHeader) for (let i = 0; i < t.complexHeader.length; i++) e === "height" ? t.rowHeight[i] = ` ht="${parseFloat(n.height) / t.complexHeader.length / 2}"` : t.storeCellStyle(r + (i + 1), e, n[e]);
1568
- else {
1569
- if (e === "height") {
1570
- t.rowHeight[a - 1] = ` ht="${parseFloat(n.height) / 2}"`;
1571
- continue;
1570
+ for (let e in n) if (Object.prototype.hasOwnProperty.call(n, e) && i[e] === void 0) {
1571
+ if (t.complexHeader) for (let i = 0; i < t.complexHeader.length; i++) e === "height" ? t.rowHeight[i] = ` ht="${parseFloat(n.height) / t.complexHeader.length / 2}"` : t.storeCellStyle(r + (i + 1), e, n[e]);
1572
+ else {
1573
+ if (e === "height") {
1574
+ t.rowHeight[a - 1] = ` ht="${parseFloat(n.height) / 2}"`;
1575
+ continue;
1576
+ }
1577
+ t.storeCellStyle(o, e, n[e]);
1572
1578
  }
1573
- t.storeCellStyle(o, e, n[e]);
1574
1579
  }
1575
1580
  if (s) {
1576
1581
  for (let n in s) if (Object.prototype.hasOwnProperty.call(s, n)) {
@@ -1990,9 +1995,7 @@
1990
1995
  }
1991
1996
  for (let e in l.fills) if (Object.prototype.hasOwnProperty.call(l.fills, e)) {
1992
1997
  let n = l.fills[e];
1993
- switch (e) {
1994
- case "fgColor": m[0] = n, d += `<fgColor rgb="${t.toARGB(n)}" />`;
1995
- }
1998
+ e === "fgColor" && (m[0] = n, d += `<fgColor rgb="${t.toARGB(n)}" />`);
1996
1999
  }
1997
2000
  for (let e in l.alignment) if (Object.prototype.hasOwnProperty.call(l.alignment, e)) {
1998
2001
  let t = l.alignment[e];