@svgrid/enterprise 3.1.6 → 3.1.8

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/dist/version.js CHANGED
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
12
12
  */
13
- export const SVGRID_VERSION = '3.1.6';
13
+ export const SVGRID_VERSION = '3.1.8';
14
14
  /**
15
15
  * The version of `@svgrid/grid`, which releases on its own line: enterprise is
16
16
  * on 3.1.x while the grid is on 3.0.x.
@@ -23,4 +23,4 @@ export const SVGRID_VERSION = '3.1.6';
23
23
  *
24
24
  * `version.test.ts` asserts this matches packages/grid/package.json.
25
25
  */
26
- export const GRID_VERSION = '3.0.10';
26
+ export const GRID_VERSION = '3.0.11';
@@ -6149,7 +6149,11 @@ function ta(e, t) {
6149
6149
  let J = D(G({
6150
6150
  left: [...s.initialColumnPinning?.left ?? []],
6151
6151
  right: [...s.initialColumnPinning?.right ?? []]
6152
- })), ue = D(0), de = D(0), fe = D(0), pe = q(() => s.rowNumberWidth ?? 56), Y = q(() => s.showDetailToggle === !0);
6152
+ })), ue = D(0), de = D(0), fe = D(0), pe = q(function() {
6153
+ if (s.rowNumberWidth != null) return s.rowNumberWidth;
6154
+ let e = Math.max(s.data?.length ?? 0, s.rowCount ?? 0);
6155
+ return Math.max(56, 18 + 9 * String(e).length);
6156
+ }), Y = q(() => s.showDetailToggle === !0);
6153
6157
  function me(e, t) {
6154
6158
  let n = e.original;
6155
6159
  if (s.isDetailRow?.(n, t)) return null;
@@ -34521,7 +34525,7 @@ function ij(e, t) {
34521
34525
  }
34522
34526
  //#endregion
34523
34527
  //#region src/upgrade-prompt.ts
34524
- var aj = "data-svgrid-enterprise-upgrade", oj = "https://svgrid.com/pricing", sj = "https://svgrid.com/pricing?ref=in-app&utm_source=svgrid-enterprise&utm_medium=upgrade-prompt", cj = !1;
34528
+ var aj = "data-svgrid-enterprise-upgrade", oj = "https://svgrid.com/pricing?ref=in-app&utm_source=svgrid-enterprise&utm_medium=upgrade-prompt", sj = "https://svgrid.com/docs/enterprise/evaluation/?utm_source=svgrid-enterprise&utm_medium=upgrade-prompt", cj = !1;
34525
34529
  function lj(e, t) {
34526
34530
  if (cj || typeof document > "u" || typeof window > "u" || RA() || document.querySelector(`[${aj}]`)) return;
34527
34531
  cj = !0;
@@ -34535,7 +34539,7 @@ function uj(e) {
34535
34539
  }
34536
34540
  function dj(e, t = !1) {
34537
34541
  let n = document.createElement("div");
34538
- n.setAttribute(aj, "1"), n.setAttribute("role", "dialog"), n.setAttribute("aria-label", t ? "Your trial has ended" : "Unlock SvGrid Pro"), Object.assign(n.style, {
34542
+ n.setAttribute(aj, "1"), n.setAttribute("role", "dialog"), n.setAttribute("aria-label", t ? "Your evaluation has ended" : "SvGrid Enterprise"), Object.assign(n.style, {
34539
34543
  position: "fixed",
34540
34544
  bottom: "16px",
34541
34545
  right: "16px",
@@ -34556,9 +34560,9 @@ function dj(e, t = !1) {
34556
34560
  transform: "translateY(8px)",
34557
34561
  transition: "opacity 220ms ease, transform 220ms ease"
34558
34562
  });
34559
- let r = e ? `<strong style="color:#fff">${fj(e ? String(e) : "This")}</strong> is a Pro feature.` : "You just used a <strong style=\"color:#fff\">Pro</strong> feature.", i = t ? "TRIAL ENDED" : "PRO", a = t ? "Your trial has ended" : "Unlock SvGrid Pro", o = t ? `${r} Your evaluation period is over - everything still works,
34560
- but this notice stays until a licence key is set.` : `${r} It runs in evaluation with a watermark - start a free trial
34561
- to remove it and ship to production.`;
34563
+ let r = e ? `<strong style="color:#fff">${fj(e ? String(e) : "This")}</strong> is part of SvGrid Enterprise.` : "You just used a <strong style=\"color:#fff\">SvGrid Enterprise</strong> feature.", i = t ? "EVALUATION ENDED" : "ENTERPRISE", a = t ? "Your evaluation has ended" : "SvGrid Enterprise", o = t ? `${r} Everything still works, but this notice stays until a
34564
+ license key is set.` : `${r} It keeps working as it is, here and in production. A
34565
+ license key removes the watermark and this notice.`;
34562
34566
  return n.innerHTML = `
34563
34567
  <button type="button" data-act="x" aria-label="Dismiss"
34564
34568
  style="position:absolute;top:8px;right:8px;width:24px;height:24px;display:flex;
@@ -34573,16 +34577,16 @@ function dj(e, t = !1) {
34573
34577
  ${o}
34574
34578
  </p>
34575
34579
  <div style="display:flex;gap:8px;align-items:center;">
34576
- <a data-act="trial" href="${sj}" target="_blank" rel="noopener noreferrer"
34580
+ <a data-act="plans" href="${oj}" target="_blank" rel="noopener noreferrer"
34577
34581
  style="flex:1;text-align:center;background:#6366f1;color:#fff;font-weight:600;
34578
- text-decoration:none;padding:8px 12px;border-radius:8px;">${t ? "Buy a licence" : "Start free trial"}</a>
34579
- <a data-act="pricing" href="${oj}" target="_blank" rel="noopener noreferrer"
34580
- style="color:#a5b4fc;text-decoration:none;padding:8px 6px;font-weight:600;">Pricing</a>
34582
+ text-decoration:none;padding:8px 12px;border-radius:8px;">${t ? "Buy a license" : "See plans"}</a>
34583
+ <a data-act="evaluation" href="${sj}" target="_blank" rel="noopener noreferrer"
34584
+ style="color:#a5b4fc;text-decoration:none;padding:8px 6px;font-weight:600;">How evaluation works</a>
34581
34585
  </div>
34582
34586
  <p style="margin:10px 0 0;font-size:11px;color:#64748b;">
34583
34587
  Already licensed? Call <code style="color:#94a3b8;">setLicenseKey()</code> at startup to hide this.
34584
34588
  </p>
34585
- `, n.querySelector("[data-act=\"x\"]")?.addEventListener("click", () => uj(n)), n.querySelector("[data-act=\"trial\"]")?.addEventListener("click", () => uj(n)), n.querySelector("[data-act=\"pricing\"]")?.addEventListener("click", () => uj(n)), n;
34589
+ `, n.querySelector("[data-act=\"x\"]")?.addEventListener("click", () => uj(n)), n.querySelector("[data-act=\"plans\"]")?.addEventListener("click", () => uj(n)), n.querySelector("[data-act=\"evaluation\"]")?.addEventListener("click", () => uj(n)), n;
34586
34590
  }
34587
34591
  function fj(e) {
34588
34592
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "commercial",
5
5
  "url": "https://svgrid.com/pricing"
6
6
  },
7
- "version": "3.1.6",
7
+ "version": "3.1.8",
8
8
  "description": "Enterprise feature pack for SvGrid: the server-side row model (lazy grouping, tree, pivot, transactions, selection across unloaded rows), Excel (xlsx) and PDF export, Excel/CSV/JSON import, pivot tables with a drag-and-drop designer, paginated print, Kanban board and scheduler renderers, no-code alerts and batch editing. CSV, TSV and JSON export are already free in @svgrid/grid. Requires a paid license key.",
9
9
  "license": "SEE LICENSE IN LICENSE",
10
10
  "author": "jQWidgets <sales@jqwidgets.com>",
@@ -105,7 +105,7 @@
105
105
  "jszip": "^3.10.0",
106
106
  "pdfmake": "^0.2.0",
107
107
  "svelte": "^5.0.0",
108
- "@svgrid/grid": "^3.0.10"
108
+ "@svgrid/grid": "^3.0.11"
109
109
  },
110
110
  "peerDependenciesMeta": {
111
111
  "jszip": {
@@ -123,7 +123,7 @@
123
123
  "svelte": "^5.55.5",
124
124
  "typescript": "6.0.3",
125
125
  "vite": "^8.2.1",
126
- "@svgrid/grid": "^3.0.10"
126
+ "@svgrid/grid": "^3.0.11"
127
127
  },
128
128
  "repository": {
129
129
  "type": "git",