@svgrid/enterprise 3.1.13 → 3.1.15
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/cdn/svgrid-enterprise.svelte-external.js +3 -3
- package/dist/designer/assets/{index-CNbankAl.js → index-BECzQodW.js} +294 -294
- package/dist/designer/index.html +1 -1
- package/dist/node/studio.js +6 -4
- package/dist/studio/emit-project.js +7 -2
- package/dist/studio/scaffold.d.ts +1 -1
- package/dist/studio/scaffold.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/designer/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>SvGrid Studio - Designer</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/index-
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-BECzQodW.js"></script>
|
|
8
8
|
<link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-Dd_uD5pT.js">
|
|
9
9
|
<link rel="modulepreload" crossorigin href="./assets/disclose-version-CIm4S9xS.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="./assets/cell-formatting-JoxA0t65.js">
|
package/dist/node/studio.js
CHANGED
|
@@ -1547,7 +1547,7 @@ function themeStyleString(theme) {
|
|
|
1547
1547
|
//#region src/studio/scaffold.ts
|
|
1548
1548
|
/**
|
|
1549
1549
|
* scaffold - turn an `EntitySchema` into runnable SvelteKit files. The shared
|
|
1550
|
-
* code-emit core: both the AI generator (MCP `
|
|
1550
|
+
* code-emit core: both the AI generator (MCP `svgrid_scaffold` tool) and the
|
|
1551
1551
|
* visual designer's "Generate code" action call this one function, so there is
|
|
1552
1552
|
* a single source of truth for what generated code looks like.
|
|
1553
1553
|
*
|
|
@@ -16457,7 +16457,7 @@ function hasFieldConditions(schema) {
|
|
|
16457
16457
|
*
|
|
16458
16458
|
* `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
|
|
16459
16459
|
*/
|
|
16460
|
-
var SVGRID_VERSION = "3.1.
|
|
16460
|
+
var SVGRID_VERSION = "3.1.15";
|
|
16461
16461
|
/**
|
|
16462
16462
|
* The version of `@svgrid/grid`, which releases on its own line: enterprise is
|
|
16463
16463
|
* on 3.1.x while the grid is on 3.0.x.
|
|
@@ -16727,10 +16727,12 @@ ${gridIcons.decls}${exportBar} <SvGrid
|
|
|
16727
16727
|
}
|
|
16728
16728
|
case "gauge": {
|
|
16729
16729
|
const gexpr = `reduceValue(${rowsExpr}, { ${cfg.measure ? `measure: '${cfg.measure}', ` : ""}reduce: '${cfg.reduce}' })`;
|
|
16730
|
-
const
|
|
16730
|
+
const currency = !!cfg.unit && /^[$€£¥₹₩₽]$/.test(cfg.unit);
|
|
16731
|
+
const unit = cfg.unit && !currency ? ` unit=${JSON.stringify(cfg.unit)}` : "";
|
|
16732
|
+
const format = ` formatValue={(v) => ${currency ? `${JSON.stringify(cfg.unit)} + ` : ""}Math.round(v).toLocaleString()}`;
|
|
16731
16733
|
return ` <div ${span}${wrapperClass(block, "gaugecard")}>
|
|
16732
16734
|
<span class="kpi__label">${tLabel(cfg.label, block.id)}</span>
|
|
16733
|
-
<SvGauge value={${gexpr}} min={${cfg.min}} max={${cfg.max}}${unit} size={172} />
|
|
16735
|
+
<SvGauge value={${gexpr}} min={${cfg.min}} max={${cfg.max}}${unit}${format} size={172} />
|
|
16734
16736
|
</div>`;
|
|
16735
16737
|
}
|
|
16736
16738
|
case "tree": {
|
|
@@ -374,10 +374,15 @@ ${gridIcons.decls}${exportBar} <SvGrid
|
|
|
374
374
|
}
|
|
375
375
|
case 'gauge': {
|
|
376
376
|
const gexpr = `reduceValue(${rowsExpr}, { ${cfg.measure ? `measure: '${cfg.measure}', ` : ''}reduce: '${cfg.reduce}' })`;
|
|
377
|
-
|
|
377
|
+
// Grouped like the KPI tiles; a currency symbol reads before the number
|
|
378
|
+
// ($428,250), any other unit (%, d, km) after it. SvGauge on its own
|
|
379
|
+
// appends `unit`, which printed a money gauge as 428250$.
|
|
380
|
+
const currency = !!cfg.unit && /^[$€£¥₹₩₽]$/.test(cfg.unit);
|
|
381
|
+
const unit = cfg.unit && !currency ? ` unit=${JSON.stringify(cfg.unit)}` : '';
|
|
382
|
+
const format = ` formatValue={(v) => ${currency ? `${JSON.stringify(cfg.unit)} + ` : ''}Math.round(v).toLocaleString()}`;
|
|
378
383
|
return ` <div ${span}${wrapperClass(block, 'gaugecard')}>
|
|
379
384
|
<span class="kpi__label">${tLabel(cfg.label, block.id)}</span>
|
|
380
|
-
<SvGauge value={${gexpr}} min={${cfg.min}} max={${cfg.max}}${unit} size={172} />
|
|
385
|
+
<SvGauge value={${gexpr}} min={${cfg.min}} max={${cfg.max}}${unit}${format} size={172} />
|
|
381
386
|
</div>`;
|
|
382
387
|
}
|
|
383
388
|
case 'tree': {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* scaffold - turn an `EntitySchema` into runnable SvelteKit files. The shared
|
|
3
|
-
* code-emit core: both the AI generator (MCP `
|
|
3
|
+
* code-emit core: both the AI generator (MCP `svgrid_scaffold` tool) and the
|
|
4
4
|
* visual designer's "Generate code" action call this one function, so there is
|
|
5
5
|
* a single source of truth for what generated code looks like.
|
|
6
6
|
*
|
package/dist/studio/scaffold.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* scaffold - turn an `EntitySchema` into runnable SvelteKit files. The shared
|
|
3
|
-
* code-emit core: both the AI generator (MCP `
|
|
3
|
+
* code-emit core: both the AI generator (MCP `svgrid_scaffold` tool) and the
|
|
4
4
|
* visual designer's "Generate code" action call this one function, so there is
|
|
5
5
|
* a single source of truth for what generated code looks like.
|
|
6
6
|
*
|
package/dist/version.d.ts
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 declare const SVGRID_VERSION = "3.1.
|
|
13
|
+
export declare const SVGRID_VERSION = "3.1.15";
|
|
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.
|
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.
|
|
13
|
+
export const SVGRID_VERSION = '3.1.15';
|
|
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.
|
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.
|
|
7
|
+
"version": "3.1.15",
|
|
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>",
|