@hpcc-js/other 3.5.5 → 3.5.7
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +9 -7
- package/src/Legend.ts +1 -1
- package/src/Table.ts +1 -1
- package/src/ThemeEditor.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/other",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.7",
|
|
4
4
|
"description": "hpcc-js - Viz Other",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
@@ -23,10 +23,12 @@
|
|
|
23
23
|
"scripts": {
|
|
24
24
|
"clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
|
|
25
25
|
"bundle": "vite build",
|
|
26
|
-
"bundle-watch": "vite --
|
|
26
|
+
"bundle-watch": "vite build --watch",
|
|
27
|
+
"bundle-serve": "vite --port 5515",
|
|
27
28
|
"gen-types": "tsc --project tsconfig.json",
|
|
28
29
|
"gen-types-watch": "npm run gen-types -- --watch",
|
|
29
30
|
"build": "run-p gen-types bundle",
|
|
31
|
+
"watch": "run-p gen-types-watch bundle-watch",
|
|
30
32
|
"lint": "eslint ./src",
|
|
31
33
|
"lint-fix": "eslint --fix src/**/*.ts",
|
|
32
34
|
"docs": "typedoc --options tdoptions.json .",
|
|
@@ -37,12 +39,12 @@
|
|
|
37
39
|
"update-major": "npx --yes npm-check-updates -u"
|
|
38
40
|
},
|
|
39
41
|
"dependencies": {
|
|
40
|
-
"@hpcc-js/api": "^3.4.
|
|
41
|
-
"@hpcc-js/common": "^3.7.
|
|
42
|
-
"@hpcc-js/layout": "^3.5.
|
|
42
|
+
"@hpcc-js/api": "^3.4.18",
|
|
43
|
+
"@hpcc-js/common": "^3.7.8",
|
|
44
|
+
"@hpcc-js/layout": "^3.5.13"
|
|
43
45
|
},
|
|
44
46
|
"devDependencies": {
|
|
45
|
-
"@hpcc-js/esbuild-plugins": "^1.8.
|
|
47
|
+
"@hpcc-js/esbuild-plugins": "^1.8.9",
|
|
46
48
|
"d3-array": "^1",
|
|
47
49
|
"d3-collection": "^1",
|
|
48
50
|
"d3-format": "^1",
|
|
@@ -67,5 +69,5 @@
|
|
|
67
69
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
68
70
|
},
|
|
69
71
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
70
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "6695c9be7e44c9a4dd50e36fad2044b287685e2e"
|
|
71
73
|
}
|
package/src/Legend.ts
CHANGED
|
@@ -146,7 +146,7 @@ export class Legend extends Table {
|
|
|
146
146
|
const start = startIndex * itemsOnPage;
|
|
147
147
|
const end = startIndex * parseInt(itemsOnPage) + parseInt(itemsOnPage);
|
|
148
148
|
|
|
149
|
-
let tData
|
|
149
|
+
let tData;
|
|
150
150
|
if (this.pagination()) {
|
|
151
151
|
tData = this.data().slice(start, end);
|
|
152
152
|
} else {
|
package/src/Table.ts
CHANGED
|
@@ -260,7 +260,7 @@ export class Table extends HTMLWidget {
|
|
|
260
260
|
const start = startIndex * itemsOnPage;
|
|
261
261
|
const end = startIndex * parseInt(itemsOnPage) + parseInt(itemsOnPage);
|
|
262
262
|
|
|
263
|
-
let tData
|
|
263
|
+
let tData;
|
|
264
264
|
|
|
265
265
|
if (this.topN()) {
|
|
266
266
|
tData = data.slice(0, this.topN());
|
package/src/ThemeEditor.ts
CHANGED
|
@@ -308,7 +308,7 @@ export class ThemeEditor extends HTMLWidget {
|
|
|
308
308
|
return html;
|
|
309
309
|
}
|
|
310
310
|
buildTableObjects(targetElement, propObjs) {
|
|
311
|
-
let sectionObjs
|
|
311
|
+
let sectionObjs;
|
|
312
312
|
if (this.themeMode()) {
|
|
313
313
|
sectionObjs = {
|
|
314
314
|
chartColorSection: {
|
|
@@ -467,7 +467,7 @@ export class ThemeEditor extends HTMLWidget {
|
|
|
467
467
|
elm3 = elm3.parentElement.parentElement;
|
|
468
468
|
}
|
|
469
469
|
const parent = elm3.parentElement;
|
|
470
|
-
let tbodyClass
|
|
470
|
+
let tbodyClass;
|
|
471
471
|
if (parent.className.split(" ").indexOf("expanded") === -1) {
|
|
472
472
|
parent.className = "te-section-table expanded";
|
|
473
473
|
tbodyClass = "shown";
|
|
@@ -487,7 +487,7 @@ export class ThemeEditor extends HTMLWidget {
|
|
|
487
487
|
label[0].onclick = function (e) {
|
|
488
488
|
const elm3 = e.toElement;
|
|
489
489
|
const parent = elm3.parentElement;
|
|
490
|
-
let subRowClass
|
|
490
|
+
let subRowClass;
|
|
491
491
|
if (parent.className.split(" ").indexOf("expanded") === -1) {
|
|
492
492
|
parent.className = "sharedPropertyRow expanded";
|
|
493
493
|
subRowClass = "shown";
|