@svgrid/enterprise 3.1.14 → 3.1.16
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 +5 -4
- package/dist/designer/assets/GridMenus-Dzwu7M9r.js +6 -0
- package/dist/designer/assets/SvListBox-fn160gSB.js +2 -0
- package/dist/designer/assets/index-BdL--HXH.css +1 -0
- package/dist/designer/assets/{index-B-jm2O73.js → index-C0GDyyFs.js} +321 -321
- package/dist/designer/index.html +3 -3
- package/dist/node/studio.js +6 -4
- package/dist/server/server-row-model.js +5 -1
- package/dist/studio/emit-project.js +7 -2
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/dist/wc/{GridMenus-jRuxbYD8.js → GridMenus-q9qYpzKh.js} +398 -377
- package/dist/wc/sv-sheet-element.js +6822 -6723
- package/dist/wc/{svelte-virtualizer.svelte-ehwOupl-.js → svelte-virtualizer.svelte-CkZaFakp.js} +7 -2
- package/package.json +3 -3
- package/dist/designer/assets/GridMenus-xnVGSn7N.js +0 -6
- package/dist/designer/assets/SvListBox-CS7oUAiX.js +0 -2
- package/dist/designer/assets/index-Bw8EYP1d.css +0 -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-C0GDyyFs.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">
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<link rel="modulepreload" crossorigin href="./assets/editor-contract-Bpoa7A5g.js">
|
|
14
14
|
<link rel="modulepreload" crossorigin href="./assets/date-format-B8JbEtIG.js">
|
|
15
15
|
<link rel="modulepreload" crossorigin href="./assets/list-option-BP_dWS66.js">
|
|
16
|
-
<link rel="modulepreload" crossorigin href="./assets/SvListBox-
|
|
16
|
+
<link rel="modulepreload" crossorigin href="./assets/SvListBox-fn160gSB.js">
|
|
17
17
|
<link rel="modulepreload" crossorigin href="./assets/grid-extension.svelte-BZ7AqyJI.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="./assets/editor-registry-BjP16H0v.js">
|
|
19
19
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-HclGiUj8.js">
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
<link rel="stylesheet" crossorigin href="./assets/SvMenuList-DJ47ba1h.css">
|
|
46
46
|
<link rel="stylesheet" crossorigin href="./assets/SvGridChart-BgLuPO7I.css">
|
|
47
47
|
<link rel="stylesheet" crossorigin href="./assets/SvGridChartPanel-4Pc8y5yO.css">
|
|
48
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
48
|
+
<link rel="stylesheet" crossorigin href="./assets/index-BdL--HXH.css">
|
|
49
49
|
</head>
|
|
50
50
|
<body>
|
|
51
51
|
<div id="app"></div>
|
package/dist/node/studio.js
CHANGED
|
@@ -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.16";
|
|
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.
|
|
@@ -16470,7 +16470,7 @@ var SVGRID_VERSION = "3.1.14";
|
|
|
16470
16470
|
*
|
|
16471
16471
|
* `version.test.ts` asserts this matches packages/grid/package.json.
|
|
16472
16472
|
*/
|
|
16473
|
-
var GRID_VERSION = "3.0.
|
|
16473
|
+
var GRID_VERSION = "3.0.17";
|
|
16474
16474
|
//#endregion
|
|
16475
16475
|
//#region src/studio/emit-project.ts
|
|
16476
16476
|
var has = (blocks, kind) => blocks.some((b) => b.config.kind === kind);
|
|
@@ -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": {
|
|
@@ -1030,7 +1030,11 @@ export function createServerRowModel(source, options) {
|
|
|
1030
1030
|
const previous = filterModel;
|
|
1031
1031
|
holdRows();
|
|
1032
1032
|
filterModel = Array.isArray(next.columns)
|
|
1033
|
-
? {
|
|
1033
|
+
? {
|
|
1034
|
+
global: next.global,
|
|
1035
|
+
columns: toServerFilterColumns(next),
|
|
1036
|
+
...(next.custom ? { custom: next.custom } : {}),
|
|
1037
|
+
}
|
|
1034
1038
|
: next;
|
|
1035
1039
|
if (!options.onlyRefreshFilteredGroups)
|
|
1036
1040
|
return rebuild();
|
|
@@ -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': {
|
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.16";
|
|
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 declare const SVGRID_VERSION = "3.1.14";
|
|
|
23
23
|
*
|
|
24
24
|
* `version.test.ts` asserts this matches packages/grid/package.json.
|
|
25
25
|
*/
|
|
26
|
-
export declare const GRID_VERSION = "3.0.
|
|
26
|
+
export declare const GRID_VERSION = "3.0.17";
|
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.16';
|
|
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.14';
|
|
|
23
23
|
*
|
|
24
24
|
* `version.test.ts` asserts this matches packages/grid/package.json.
|
|
25
25
|
*/
|
|
26
|
-
export const GRID_VERSION = '3.0.
|
|
26
|
+
export const GRID_VERSION = '3.0.17';
|