@hpcc-js/marshaller 2.28.11 → 3.1.0
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 +2 -18051
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +3 -0
- package/dist/index.umd.cjs.map +1 -0
- package/package.json +46 -46
- package/src/__package__.ts +3 -3
- package/src/dashy.css +45 -34
- package/src/dashy.ts +20 -18
- package/src/ddl1/FlyoutButton.ts +3 -2
- package/src/ddl1/Graph.ts +8 -5
- package/src/ddl1/HTML.ts +1 -1
- package/src/ddl1/HipieDDL.ts +5 -1
- package/src/ddl1/HipieDDLMixin.ts +31 -20
- package/src/ddl1/Tabbed.ts +1 -1
- package/src/ddl1/TargetMarshaller.ts +1 -1
- package/src/ddl2/PopupManager.ts +2 -2
- package/src/ddl2/activities/activity.ts +1 -1
- package/src/ddl2/activities/databomb.ts +3 -3
- package/src/ddl2/activities/datasource.ts +25 -18
- package/src/ddl2/activities/dspicker.ts +38 -29
- package/src/ddl2/activities/filter.ts +79 -56
- package/src/ddl2/activities/form.ts +29 -20
- package/src/ddl2/activities/groupby.ts +55 -37
- package/src/ddl2/activities/hipiepipeline.ts +61 -74
- package/src/ddl2/activities/limit.ts +8 -6
- package/src/ddl2/activities/logicalfile.ts +14 -10
- package/src/ddl2/activities/nullview.ts +1 -1
- package/src/ddl2/activities/project.ts +78 -50
- package/src/ddl2/activities/rest.ts +95 -70
- package/src/ddl2/activities/roxie.ts +55 -41
- package/src/ddl2/activities/sort.ts +23 -14
- package/src/ddl2/activities/wuresult.ts +78 -54
- package/src/ddl2/dashboard.css +8 -8
- package/src/ddl2/dashboard.ts +17 -17
- package/src/ddl2/dashboardDockPanel.ts +3 -3
- package/src/ddl2/dashboardGrid.ts +4 -4
- package/src/ddl2/ddl.ts +19 -21
- package/src/ddl2/dsTable.ts +22 -18
- package/src/ddl2/dvTable.ts +1 -1
- package/src/ddl2/graphadapter.ts +11 -11
- package/src/ddl2/javascriptadapter.ts +4 -4
- package/src/ddl2/model/element.ts +56 -42
- package/src/ddl2/model/visualization.ts +92 -70
- package/src/ddl2/pipelinePanel.ts +26 -18
- package/src/index.ts +25 -25
- package/types/__package__.d.ts +3 -4
- package/types/dashy.d.ts +9 -7
- package/types/ddl2/PopupManager.d.ts +2 -3
- package/types/ddl2/activities/activity.d.ts +0 -1
- package/types/ddl2/activities/databomb.d.ts +3 -4
- package/types/ddl2/activities/datasource.d.ts +12 -10
- package/types/ddl2/activities/dspicker.d.ts +11 -8
- package/types/ddl2/activities/filter.d.ts +45 -26
- package/types/ddl2/activities/form.d.ts +19 -10
- package/types/ddl2/activities/groupby.d.ts +29 -15
- package/types/ddl2/activities/hipiepipeline.d.ts +27 -20
- package/types/ddl2/activities/limit.d.ts +6 -5
- package/types/ddl2/activities/logicalfile.d.ts +10 -7
- package/types/ddl2/activities/nullview.d.ts +1 -2
- package/types/ddl2/activities/project.d.ts +42 -21
- package/types/ddl2/activities/rest.d.ts +49 -30
- package/types/ddl2/activities/roxie.d.ts +28 -18
- package/types/ddl2/activities/sort.d.ts +13 -7
- package/types/ddl2/activities/wuresult.d.ts +24 -16
- package/types/ddl2/dashboard.d.ts +3 -4
- package/types/ddl2/dashboardDockPanel.d.ts +2 -3
- package/types/ddl2/dashboardGrid.d.ts +3 -4
- package/types/ddl2/ddl.d.ts +11 -12
- package/types/ddl2/ddleditor.d.ts +2 -2
- package/types/ddl2/dsTable.d.ts +2 -3
- package/types/ddl2/dvTable.d.ts +1 -2
- package/types/ddl2/graphadapter.d.ts +4 -5
- package/types/ddl2/javascriptadapter.d.ts +2 -3
- package/types/ddl2/model/element.d.ts +22 -14
- package/types/ddl2/model/visualization.d.ts +28 -20
- package/types/ddl2/model/vizChartPanel.d.ts +0 -1
- package/types/ddl2/pipelinePanel.d.ts +5 -3
- package/types/index.d.ts +25 -26
- package/dist/index.es6.js +0 -17994
- package/dist/index.es6.js.map +0 -1
- package/dist/index.min.js +0 -3
- package/dist/index.min.js.map +0 -1
- package/types/__package__.d.ts.map +0 -1
- package/types/dashy.d.ts.map +0 -1
- package/types/ddl1/DDLApi.d.ts +0 -179
- package/types/ddl1/DDLApi.d.ts.map +0 -1
- package/types/ddl1/FlyoutButton.d.ts +0 -24
- package/types/ddl1/FlyoutButton.d.ts.map +0 -1
- package/types/ddl1/Graph.d.ts +0 -22
- package/types/ddl1/Graph.d.ts.map +0 -1
- package/types/ddl1/HTML.d.ts +0 -12
- package/types/ddl1/HTML.d.ts.map +0 -1
- package/types/ddl1/HipieDDL.d.ts +0 -100
- package/types/ddl1/HipieDDL.d.ts.map +0 -1
- package/types/ddl1/HipieDDLMixin.d.ts +0 -77
- package/types/ddl1/HipieDDLMixin.d.ts.map +0 -1
- package/types/ddl1/Tabbed.d.ts +0 -12
- package/types/ddl1/Tabbed.d.ts.map +0 -1
- package/types/ddl1/TargetMarshaller.d.ts +0 -5
- package/types/ddl1/TargetMarshaller.d.ts.map +0 -1
- package/types/ddl2/PopupManager.d.ts.map +0 -1
- package/types/ddl2/activities/activity.d.ts.map +0 -1
- package/types/ddl2/activities/databomb.d.ts.map +0 -1
- package/types/ddl2/activities/datasource.d.ts.map +0 -1
- package/types/ddl2/activities/dspicker.d.ts.map +0 -1
- package/types/ddl2/activities/filter.d.ts.map +0 -1
- package/types/ddl2/activities/form.d.ts.map +0 -1
- package/types/ddl2/activities/groupby.d.ts.map +0 -1
- package/types/ddl2/activities/hipiepipeline.d.ts.map +0 -1
- package/types/ddl2/activities/limit.d.ts.map +0 -1
- package/types/ddl2/activities/logicalfile.d.ts.map +0 -1
- package/types/ddl2/activities/nullview.d.ts.map +0 -1
- package/types/ddl2/activities/project.d.ts.map +0 -1
- package/types/ddl2/activities/rest.d.ts.map +0 -1
- package/types/ddl2/activities/roxie.d.ts.map +0 -1
- package/types/ddl2/activities/sort.d.ts.map +0 -1
- package/types/ddl2/activities/wuresult.d.ts.map +0 -1
- package/types/ddl2/dashboard.d.ts.map +0 -1
- package/types/ddl2/dashboardDockPanel.d.ts.map +0 -1
- package/types/ddl2/dashboardGrid.d.ts.map +0 -1
- package/types/ddl2/ddl.d.ts.map +0 -1
- package/types/ddl2/ddleditor.d.ts.map +0 -1
- package/types/ddl2/dsTable.d.ts.map +0 -1
- package/types/ddl2/dvTable.d.ts.map +0 -1
- package/types/ddl2/graphadapter.d.ts.map +0 -1
- package/types/ddl2/javascriptadapter.d.ts.map +0 -1
- package/types/ddl2/model/element.d.ts.map +0 -1
- package/types/ddl2/model/visualization.d.ts.map +0 -1
- package/types/ddl2/model/vizChartPanel.d.ts.map +0 -1
- package/types/ddl2/pipelinePanel.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/dashy.d.ts +0 -54
- package/types-3.4/ddl1/DDLApi.d.ts +0 -179
- package/types-3.4/ddl1/FlyoutButton.d.ts +0 -24
- package/types-3.4/ddl1/Graph.d.ts +0 -22
- package/types-3.4/ddl1/HTML.d.ts +0 -12
- package/types-3.4/ddl1/HipieDDL.d.ts +0 -100
- package/types-3.4/ddl1/HipieDDLMixin.d.ts +0 -77
- package/types-3.4/ddl1/Tabbed.d.ts +0 -12
- package/types-3.4/ddl1/TargetMarshaller.d.ts +0 -5
- package/types-3.4/ddl2/PopupManager.d.ts +0 -20
- package/types-3.4/ddl2/activities/activity.d.ts +0 -106
- package/types-3.4/ddl2/activities/databomb.d.ts +0 -46
- package/types-3.4/ddl2/activities/datasource.d.ts +0 -24
- package/types-3.4/ddl2/activities/dspicker.d.ts +0 -29
- package/types-3.4/ddl2/activities/filter.d.ts +0 -113
- package/types-3.4/ddl2/activities/form.d.ts +0 -40
- package/types-3.4/ddl2/activities/groupby.d.ts +0 -85
- package/types-3.4/ddl2/activities/hipiepipeline.d.ts +0 -37
- package/types-3.4/ddl2/activities/limit.d.ts +0 -15
- package/types-3.4/ddl2/activities/logicalfile.d.ts +0 -19
- package/types-3.4/ddl2/activities/nullview.d.ts +0 -6
- package/types-3.4/ddl2/activities/project.d.ts +0 -122
- package/types-3.4/ddl2/activities/rest.d.ts +0 -142
- package/types-3.4/ddl2/activities/roxie.d.ts +0 -112
- package/types-3.4/ddl2/activities/sort.d.ts +0 -38
- package/types-3.4/ddl2/activities/wuresult.d.ts +0 -87
- package/types-3.4/ddl2/dashboard.d.ts +0 -53
- package/types-3.4/ddl2/dashboardDockPanel.d.ts +0 -19
- package/types-3.4/ddl2/dashboardGrid.d.ts +0 -29
- package/types-3.4/ddl2/ddl.d.ts +0 -44
- package/types-3.4/ddl2/ddleditor.d.ts +0 -14
- package/types-3.4/ddl2/dsTable.d.ts +0 -21
- package/types-3.4/ddl2/dvTable.d.ts +0 -10
- package/types-3.4/ddl2/graphadapter.d.ts +0 -30
- package/types-3.4/ddl2/javascriptadapter.d.ts +0 -31
- package/types-3.4/ddl2/model/element.d.ts +0 -99
- package/types-3.4/ddl2/model/visualization.d.ts +0 -48
- package/types-3.4/ddl2/model/vizChartPanel.d.ts +0 -44
- package/types-3.4/ddl2/pipelinePanel.d.ts +0 -16
- package/types-3.4/index.d.ts +0 -27
package/package.json
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/marshaller",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "hpcc-js - Viz Marshaller",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.umd.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./types/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.umd.cjs"
|
|
13
|
+
},
|
|
14
|
+
"./dist/*": "./dist/*"
|
|
16
15
|
},
|
|
16
|
+
"browser": "./dist/index.umd.cjs",
|
|
17
|
+
"types": "./types/index.d.ts",
|
|
17
18
|
"files": [
|
|
18
19
|
"dist/*",
|
|
19
|
-
"
|
|
20
|
-
"types
|
|
21
|
-
"src/*"
|
|
20
|
+
"src/*",
|
|
21
|
+
"types/*"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"clean": "rimraf --glob lib* types dist *.tsbuildinfo",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"gen-legacy-types": "downlevel-dts ./types ./types-3.4",
|
|
33
|
-
"build": "npm run compile-es6 && npm run bundle",
|
|
34
|
-
"watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
|
|
35
|
-
"stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
|
|
24
|
+
"clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
|
|
25
|
+
"bundle": "vite build",
|
|
26
|
+
"bundle-watch": "vite build --watch",
|
|
27
|
+
"bundle-serve": "vite --port 5520",
|
|
28
|
+
"gen-types": "tsc --project tsconfig.json",
|
|
29
|
+
"gen-types-watch": "npm run gen-types -- --watch",
|
|
30
|
+
"build": "run-p gen-types bundle",
|
|
31
|
+
"watch": "run-p gen-types-watch bundle-watch",
|
|
36
32
|
"lint": "eslint ./src",
|
|
33
|
+
"lint-fix": "eslint --fix src/**/*.ts",
|
|
37
34
|
"docs": "typedoc --options tdoptions.json .",
|
|
38
|
-
"
|
|
35
|
+
"test-browser": "vitest run --project browser",
|
|
36
|
+
"test": "vitest run",
|
|
37
|
+
"coverage": "vitest run --coverage",
|
|
38
|
+
"update": "npx --yes npm-check-updates -u -t minor",
|
|
39
|
+
"update-major": "npx --yes npm-check-updates -u"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@hpcc-js/chart": "^
|
|
42
|
-
"@hpcc-js/codemirror": "^
|
|
43
|
-
"@hpcc-js/common": "^
|
|
44
|
-
"@hpcc-js/comms": "^
|
|
45
|
-
"@hpcc-js/composite": "^
|
|
46
|
-
"@hpcc-js/ddl-shim": "^
|
|
47
|
-
"@hpcc-js/dgrid": "^
|
|
48
|
-
"@hpcc-js/form": "^
|
|
49
|
-
"@hpcc-js/graph": "^
|
|
50
|
-
"@hpcc-js/layout": "^
|
|
51
|
-
"@hpcc-js/map": "^
|
|
52
|
-
"@hpcc-js/other": "^
|
|
53
|
-
"@hpcc-js/phosphor": "^
|
|
54
|
-
"@hpcc-js/util": "^
|
|
42
|
+
"@hpcc-js/chart": "^3.7.5",
|
|
43
|
+
"@hpcc-js/codemirror": "^3.7.5",
|
|
44
|
+
"@hpcc-js/common": "^3.7.6",
|
|
45
|
+
"@hpcc-js/comms": "^3.15.6",
|
|
46
|
+
"@hpcc-js/composite": "^3.5.7",
|
|
47
|
+
"@hpcc-js/ddl-shim": "^3.3.5",
|
|
48
|
+
"@hpcc-js/dgrid": "^3.7.6",
|
|
49
|
+
"@hpcc-js/form": "^3.4.5",
|
|
50
|
+
"@hpcc-js/graph": "^3.7.5",
|
|
51
|
+
"@hpcc-js/layout": "^3.5.11",
|
|
52
|
+
"@hpcc-js/map": "^3.5.5",
|
|
53
|
+
"@hpcc-js/other": "^3.5.5",
|
|
54
|
+
"@hpcc-js/phosphor": "^3.6.0",
|
|
55
|
+
"@hpcc-js/util": "^3.5.5"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
|
-
"@hpcc-js/
|
|
58
|
+
"@hpcc-js/esbuild-plugins": "^1.8.7",
|
|
58
59
|
"d3-array": "^1",
|
|
59
60
|
"d3-collection": "^1",
|
|
60
61
|
"d3-dsv": "^1",
|
|
61
62
|
"d3-fetch": "^1",
|
|
62
|
-
"d3-selection": "^1"
|
|
63
|
-
"tslib": "2.8.1"
|
|
63
|
+
"d3-selection": "^1"
|
|
64
64
|
},
|
|
65
65
|
"repository": {
|
|
66
66
|
"type": "git",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
74
74
|
},
|
|
75
75
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "5fcd2df494c2f457cf07c9100d6101b123e3ab40"
|
|
77
77
|
}
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const PKG_NAME = "
|
|
2
|
-
export const PKG_VERSION = "
|
|
3
|
-
export const BUILD_VERSION = "
|
|
1
|
+
export const PKG_NAME = "__PACKAGE_NAME__";
|
|
2
|
+
export const PKG_VERSION = "__PACKAGE_VERSION__";
|
|
3
|
+
export const BUILD_VERSION = "__BUILD_VERSION__";
|
package/src/dashy.css
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
body {
|
|
2
|
+
padding:0px;
|
|
3
|
+
margin:8px;
|
|
4
|
+
overflow:hidden;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
#placeholderXXX {
|
|
8
|
+
width:100%;
|
|
9
|
+
height:100vh;
|
|
10
|
+
}
|
|
11
|
+
|
|
1
12
|
.graph_Graph .graphVertex > .subgraph .title rect {
|
|
2
13
|
fill: #dcf1ff;
|
|
3
14
|
border-bottom-width:0px;
|
|
@@ -23,7 +34,7 @@
|
|
|
23
34
|
visibility: hidden;
|
|
24
35
|
}
|
|
25
36
|
|
|
26
|
-
.
|
|
37
|
+
.lm-MenuBar {
|
|
27
38
|
padding-left: 5px;
|
|
28
39
|
background: #FAFAFA;
|
|
29
40
|
color: rgba(0, 0, 0, 0.87);
|
|
@@ -31,23 +42,23 @@
|
|
|
31
42
|
font: 13px Helvetica, Arial, sans-serif;
|
|
32
43
|
}
|
|
33
44
|
|
|
34
|
-
.
|
|
45
|
+
.lm-MenuBar-menu {
|
|
35
46
|
transform: translateY(-1px);
|
|
36
47
|
}
|
|
37
48
|
|
|
38
|
-
.
|
|
49
|
+
.lm-MenuBar-item {
|
|
39
50
|
padding: 4px 8px;
|
|
40
51
|
border-left: 1px solid transparent;
|
|
41
52
|
border-right: 1px solid transparent;
|
|
42
53
|
}
|
|
43
54
|
|
|
44
55
|
|
|
45
|
-
.
|
|
56
|
+
.lm-MenuBar-item.lm-mod-active {
|
|
46
57
|
background: #E5E5E5;
|
|
47
58
|
}
|
|
48
59
|
|
|
49
60
|
|
|
50
|
-
.
|
|
61
|
+
.lm-MenuBar.lm-mod-active .lm-MenuBar-item.lm-mod-active {
|
|
51
62
|
z-index: 10001;
|
|
52
63
|
background: white;
|
|
53
64
|
border-left: 1px solid #C0C0C0;
|
|
@@ -55,7 +66,7 @@
|
|
|
55
66
|
box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
|
|
56
67
|
}
|
|
57
68
|
|
|
58
|
-
.
|
|
69
|
+
.lm-Menu {
|
|
59
70
|
padding: 3px 0px;
|
|
60
71
|
background: white;
|
|
61
72
|
color: rgba(0, 0, 0, 0.87);
|
|
@@ -65,50 +76,50 @@
|
|
|
65
76
|
}
|
|
66
77
|
|
|
67
78
|
|
|
68
|
-
.
|
|
79
|
+
.lm-Menu-item.lm-mod-active {
|
|
69
80
|
background: #E5E5E5;
|
|
70
81
|
}
|
|
71
82
|
|
|
72
83
|
|
|
73
|
-
.
|
|
84
|
+
.lm-Menu-item.lm-mod-disabled {
|
|
74
85
|
color: rgba(0, 0, 0, 0.25);
|
|
75
86
|
}
|
|
76
87
|
|
|
77
88
|
|
|
78
|
-
.
|
|
89
|
+
.lm-Menu-itemIcon {
|
|
79
90
|
width: 21px;
|
|
80
91
|
padding: 4px 2px;
|
|
81
92
|
}
|
|
82
93
|
|
|
83
94
|
|
|
84
|
-
.
|
|
95
|
+
.lm-Menu-itemLabel {
|
|
85
96
|
padding: 4px 35px 4px 2px;
|
|
86
97
|
}
|
|
87
98
|
|
|
88
99
|
|
|
89
|
-
.
|
|
100
|
+
.lm-Menu-itemMnemonic {
|
|
90
101
|
text-decoration: underline;
|
|
91
102
|
}
|
|
92
103
|
|
|
93
104
|
|
|
94
|
-
.
|
|
105
|
+
.lm-Menu-itemShortcut {
|
|
95
106
|
padding: 4px 0px;
|
|
96
107
|
}
|
|
97
108
|
|
|
98
109
|
|
|
99
|
-
.
|
|
110
|
+
.lm-Menu-itemSubmenuIcon {
|
|
100
111
|
width: 16px;
|
|
101
112
|
padding: 4px 0px;
|
|
102
113
|
}
|
|
103
114
|
|
|
104
115
|
|
|
105
|
-
.
|
|
116
|
+
.lm-Menu-item[data-type='separator'] > div {
|
|
106
117
|
padding: 0;
|
|
107
118
|
height: 9px;
|
|
108
119
|
}
|
|
109
120
|
|
|
110
121
|
|
|
111
|
-
.
|
|
122
|
+
.lm-Menu-item[data-type='separator'] > div::after {
|
|
112
123
|
content: '';
|
|
113
124
|
display: block;
|
|
114
125
|
position: relative;
|
|
@@ -117,18 +128,18 @@
|
|
|
117
128
|
}
|
|
118
129
|
|
|
119
130
|
|
|
120
|
-
.
|
|
121
|
-
.
|
|
131
|
+
.lm-Menu-itemIcon::before,
|
|
132
|
+
.lm-Menu-itemSubmenuIcon::before {
|
|
122
133
|
font-family: FontAwesome;
|
|
123
134
|
}
|
|
124
135
|
|
|
125
136
|
|
|
126
|
-
.
|
|
137
|
+
.lm-Menu-item.lm-mod-toggled > .lm-Menu-itemIcon::before {
|
|
127
138
|
content: '\f00c';
|
|
128
139
|
}
|
|
129
140
|
|
|
130
141
|
|
|
131
|
-
.
|
|
142
|
+
.lm-Menu-item[data-type='submenu'] > .lm-Menu-itemSubmenuIcon::before {
|
|
132
143
|
content: '\f0da';
|
|
133
144
|
}
|
|
134
145
|
|
|
@@ -141,25 +152,25 @@
|
|
|
141
152
|
|----------------------------------------------------------------------------*/
|
|
142
153
|
|
|
143
154
|
|
|
144
|
-
.
|
|
155
|
+
.lm-CommandPalette {
|
|
145
156
|
font-family: sans-serif;
|
|
146
157
|
background: #F5F5F5;
|
|
147
158
|
}
|
|
148
159
|
|
|
149
160
|
|
|
150
|
-
.
|
|
161
|
+
.lm-CommandPalette-search {
|
|
151
162
|
padding: 8px;
|
|
152
163
|
}
|
|
153
164
|
|
|
154
165
|
|
|
155
|
-
.
|
|
166
|
+
.lm-CommandPalette-wrapper {
|
|
156
167
|
padding: 4px 6px;
|
|
157
168
|
background: white;
|
|
158
169
|
border: 1px solid #E0E0E0;
|
|
159
170
|
}
|
|
160
171
|
|
|
161
172
|
|
|
162
|
-
.
|
|
173
|
+
.lm-CommandPalette-input {
|
|
163
174
|
width: 100%;
|
|
164
175
|
border: none;
|
|
165
176
|
outline: none;
|
|
@@ -167,7 +178,7 @@
|
|
|
167
178
|
}
|
|
168
179
|
|
|
169
180
|
|
|
170
|
-
.
|
|
181
|
+
.lm-CommandPalette-header {
|
|
171
182
|
padding: 4px;
|
|
172
183
|
color: #757575;
|
|
173
184
|
font-size: 12px;
|
|
@@ -177,20 +188,20 @@
|
|
|
177
188
|
}
|
|
178
189
|
|
|
179
190
|
|
|
180
|
-
.
|
|
191
|
+
.lm-CommandPalette-header:hover::before {
|
|
181
192
|
content: '\2026'; /* ellipsis */
|
|
182
193
|
float: right;
|
|
183
194
|
margin-right: 4px;
|
|
184
195
|
}
|
|
185
196
|
|
|
186
197
|
|
|
187
|
-
.
|
|
198
|
+
.lm-CommandPalette-header > mark {
|
|
188
199
|
background-color: transparent;
|
|
189
200
|
font-weight: bold;
|
|
190
201
|
}
|
|
191
202
|
|
|
192
203
|
|
|
193
|
-
.
|
|
204
|
+
.lm-CommandPalette-item {
|
|
194
205
|
padding: 4px 8px;
|
|
195
206
|
color: #757575;
|
|
196
207
|
font-size: 13px;
|
|
@@ -198,7 +209,7 @@
|
|
|
198
209
|
}
|
|
199
210
|
|
|
200
211
|
|
|
201
|
-
.
|
|
212
|
+
.lm-CommandPalette-emptyMessage {
|
|
202
213
|
padding: 4px;
|
|
203
214
|
color: #757575;
|
|
204
215
|
font-size: 12px;
|
|
@@ -207,33 +218,33 @@
|
|
|
207
218
|
}
|
|
208
219
|
|
|
209
220
|
|
|
210
|
-
.
|
|
221
|
+
.lm-CommandPalette-item.lm-mod-disabled {
|
|
211
222
|
color: rgba(0, 0, 0, 0.25);
|
|
212
223
|
}
|
|
213
224
|
|
|
214
225
|
|
|
215
|
-
.
|
|
226
|
+
.lm-CommandPalette-item.lm-mod-active {
|
|
216
227
|
background: #7FDBFF;
|
|
217
228
|
}
|
|
218
229
|
|
|
219
230
|
|
|
220
|
-
.
|
|
231
|
+
.lm-CommandPalette-item:hover:not(.lm-mod-active):not(.lm-mod-disabled) {
|
|
221
232
|
background: #E5E5E5;
|
|
222
233
|
}
|
|
223
234
|
|
|
224
235
|
|
|
225
|
-
.
|
|
236
|
+
.lm-CommandPalette-itemLabel > mark {
|
|
226
237
|
background-color: transparent;
|
|
227
238
|
font-weight: bold;
|
|
228
239
|
}
|
|
229
240
|
|
|
230
241
|
|
|
231
|
-
.
|
|
242
|
+
.lm-CommandPalette-item.lm-mod-disabled mark {
|
|
232
243
|
color: rgba(0, 0, 0, 0.4);
|
|
233
244
|
}
|
|
234
245
|
|
|
235
246
|
|
|
236
|
-
.
|
|
247
|
+
.lm-CommandPalette-itemCaption {
|
|
237
248
|
color: #9E9E9E;
|
|
238
249
|
font-size: 11px;
|
|
239
250
|
font-weight: 400;
|
package/src/dashy.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { JSEditor, JSONEditor } from "@hpcc-js/codemirror";
|
|
2
|
-
import { Button, PropertyExt,
|
|
2
|
+
import { Button, PropertyExt, Utility, Widget } from "@hpcc-js/common";
|
|
3
3
|
import { DDL1, DDL2, ddl2Schema, isDDL2Schema, upgrade } from "@hpcc-js/ddl-shim";
|
|
4
4
|
import { Graph } from "@hpcc-js/graph";
|
|
5
5
|
import { ChartPanel } from "@hpcc-js/layout";
|
|
6
6
|
import { CommandPalette, CommandRegistry, ContextMenu, SplitPanel, TabPanel, WidgetAdapter } from "@hpcc-js/phosphor";
|
|
7
7
|
import { scopedLogger } from "@hpcc-js/util";
|
|
8
|
-
import { Activity } from "./ddl2/activities/activity";
|
|
9
|
-
import { Databomb } from "./ddl2/activities/databomb";
|
|
10
|
-
import { DSPicker } from "./ddl2/activities/dspicker";
|
|
11
|
-
import { Dashboard } from "./ddl2/dashboard";
|
|
12
|
-
import { DSTable } from "./ddl2/dsTable";
|
|
13
|
-
import { DVTable } from "./ddl2/dvTable";
|
|
14
|
-
import { GraphAdapter, VertexData } from "./ddl2/graphadapter";
|
|
15
|
-
import { Element, ElementContainer, State } from "./ddl2/model/element";
|
|
16
|
-
import { Visualization } from "./ddl2/model/visualization";
|
|
17
|
-
import { VizChartPanel } from "./ddl2/model/vizChartPanel";
|
|
18
|
-
import { PipelineSplitPanel } from "./ddl2/pipelinePanel";
|
|
8
|
+
import { Activity } from "./ddl2/activities/activity.ts";
|
|
9
|
+
import { Databomb } from "./ddl2/activities/databomb.ts";
|
|
10
|
+
import { DSPicker } from "./ddl2/activities/dspicker.ts";
|
|
11
|
+
import { Dashboard } from "./ddl2/dashboard.ts";
|
|
12
|
+
import { DSTable } from "./ddl2/dsTable.ts";
|
|
13
|
+
import { DVTable } from "./ddl2/dvTable.ts";
|
|
14
|
+
import { GraphAdapter, VertexData } from "./ddl2/graphadapter.ts";
|
|
15
|
+
import { Element, ElementContainer, State } from "./ddl2/model/element.ts";
|
|
16
|
+
import { Visualization } from "./ddl2/model/visualization.ts";
|
|
17
|
+
import { VizChartPanel } from "./ddl2/model/vizChartPanel.ts";
|
|
18
|
+
import { PipelineSplitPanel } from "./ddl2/pipelinePanel.ts";
|
|
19
19
|
|
|
20
20
|
const logger = scopedLogger("marshaller/dashy");
|
|
21
21
|
|
|
@@ -127,9 +127,6 @@ export class Dashy extends SplitPanel {
|
|
|
127
127
|
|
|
128
128
|
private _rhsSplitView = new PipelineSplitPanel();
|
|
129
129
|
|
|
130
|
-
@publishProxy("_rhsSplitView")
|
|
131
|
-
disableActivities: publish<this, string[]>;
|
|
132
|
-
|
|
133
130
|
private _fileOpen;
|
|
134
131
|
|
|
135
132
|
static create(target: string, ddl?: DDL1.DDLSchema | DDL2.Schema, baseUrl?: string, wuid?: string): Promise<Dashy> {
|
|
@@ -491,8 +488,8 @@ export class Dashy extends SplitPanel {
|
|
|
491
488
|
.property("accept", ".dashy,.json")
|
|
492
489
|
.style("display", "none")
|
|
493
490
|
.on("change", function () {
|
|
494
|
-
|
|
495
|
-
|
|
491
|
+
const i = 0;
|
|
492
|
+
const f = this.files[i];
|
|
496
493
|
while (f) {
|
|
497
494
|
const reader = new FileReader();
|
|
498
495
|
reader.onload = (function (theFile) {
|
|
@@ -507,7 +504,6 @@ export class Dashy extends SplitPanel {
|
|
|
507
504
|
};
|
|
508
505
|
})(f);
|
|
509
506
|
reader.readAsText(f);
|
|
510
|
-
f = this.files[++i];
|
|
511
507
|
break;
|
|
512
508
|
}
|
|
513
509
|
})
|
|
@@ -519,3 +515,9 @@ export class Dashy extends SplitPanel {
|
|
|
519
515
|
}
|
|
520
516
|
}
|
|
521
517
|
Dashy.prototype._class += " composite_Dashy";
|
|
518
|
+
|
|
519
|
+
export interface Dashy {
|
|
520
|
+
disableActivities(): string[];
|
|
521
|
+
disableActivities(_: string[]): this;
|
|
522
|
+
}
|
|
523
|
+
Dashy.prototype.publishProxy("disableActivities", "_rhsSplitView");
|
package/src/ddl1/FlyoutButton.ts
CHANGED
|
@@ -103,8 +103,6 @@ export class FlyoutButton extends Button {
|
|
|
103
103
|
return this;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
autoClose: { (): boolean; (_: boolean): FlyoutButton };
|
|
107
|
-
autoClose_exists: () => boolean;
|
|
108
106
|
}
|
|
109
107
|
FlyoutButton.prototype._class += " marshaller_FlyoutButton";
|
|
110
108
|
|
|
@@ -113,6 +111,9 @@ export interface FlyoutButton {
|
|
|
113
111
|
title(_: string): this;
|
|
114
112
|
widget(): Widget;
|
|
115
113
|
widget(_: Widget): this;
|
|
114
|
+
autoClose(): boolean;
|
|
115
|
+
autoClose(_: boolean): this;
|
|
116
|
+
autoClose_exists: () => boolean;
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
FlyoutButton.prototype.publishProxy("title", "_popupSurface");
|
package/src/ddl1/Graph.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResizeSurface } from "@hpcc-js/common";
|
|
2
2
|
import { Edge, Graph as GraphWidget } from "@hpcc-js/graph";
|
|
3
|
-
import { HipieDDLMixin } from "./HipieDDLMixin";
|
|
3
|
+
import { HipieDDLMixin } from "./HipieDDLMixin.ts";
|
|
4
4
|
|
|
5
5
|
export class Graph extends GraphWidget {
|
|
6
6
|
_design_mode;
|
|
@@ -29,7 +29,7 @@ export class Graph extends GraphWidget {
|
|
|
29
29
|
const edges = [];
|
|
30
30
|
this._ddlVisualizations.concat(this._ddlPopupVisualizations).forEach(function (viz) {
|
|
31
31
|
if (viz.widget) {
|
|
32
|
-
let newSurface
|
|
32
|
+
let newSurface;
|
|
33
33
|
if (viz.widget instanceof ResizeSurface) {
|
|
34
34
|
newSurface = viz.widget
|
|
35
35
|
.size({ width: 210, height: 210 })
|
|
@@ -80,14 +80,17 @@ export class Graph extends GraphWidget {
|
|
|
80
80
|
alert("Comms Error:\n" + source + "\n" + error);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
content: { (): any[]; (_: any[]): Graph };
|
|
84
|
-
content_exists: () => boolean;
|
|
85
|
-
|
|
86
83
|
// HipieDDLMixin ---
|
|
87
84
|
_marshallerRender: (BaseClass, callback) => this;
|
|
88
85
|
}
|
|
89
86
|
Graph.prototype.mixin(HipieDDLMixin);
|
|
90
87
|
Graph.prototype._class += " marshaller_Graph";
|
|
91
88
|
|
|
89
|
+
export interface Graph {
|
|
90
|
+
content(): any[];
|
|
91
|
+
content(_: any[]): this;
|
|
92
|
+
content_exists: () => boolean;
|
|
93
|
+
}
|
|
94
|
+
|
|
92
95
|
// TODO Still Needed?: Graph.prototype.publish("visualizeRoxie", false, "boolean", "Show Roxie Data Sources", null, { tags: ["Private"] });
|
|
93
96
|
Graph.prototype.publish("content", [], "widgetArray", "widgets", null, { tags: ["Basic"] });
|
package/src/ddl1/HTML.ts
CHANGED
package/src/ddl1/HipieDDL.ts
CHANGED
|
@@ -1099,7 +1099,7 @@ export class Visualization extends Class {
|
|
|
1099
1099
|
.inputs(context.fields().map(function (field) {
|
|
1100
1100
|
|
|
1101
1101
|
const selectOptions = [];
|
|
1102
|
-
let options
|
|
1102
|
+
let options;
|
|
1103
1103
|
let inp;
|
|
1104
1104
|
if (!field.charttype() && field.type() === "range") {
|
|
1105
1105
|
// TODO - Verify with @DL
|
|
@@ -1648,16 +1648,20 @@ Filter.prototype.matches = function (row, value): boolean {
|
|
|
1648
1648
|
return rowValue >= value;
|
|
1649
1649
|
case "!=":
|
|
1650
1650
|
case "notequals":
|
|
1651
|
+
// tslint:disable-next-line:triple-equals
|
|
1651
1652
|
return rowValue != value; // jshint ignore:line
|
|
1652
1653
|
case "set":
|
|
1653
1654
|
if (value instanceof Array) {
|
|
1654
1655
|
return value.indexOf(rowValue) >= 0;
|
|
1655
1656
|
}
|
|
1657
|
+
// tslint:disable-next-line:triple-equals
|
|
1656
1658
|
return value == rowValue; // jshint ignore:line
|
|
1657
1659
|
case "==":
|
|
1660
|
+
// tslint:disable-next-line:triple-equals
|
|
1658
1661
|
return value == rowValue; // jshint ignore:line
|
|
1659
1662
|
default:
|
|
1660
1663
|
console.warn("Unknown filter rule: '" + this.rule + "'");
|
|
1664
|
+
// tslint:disable-next-line:triple-equals
|
|
1661
1665
|
return value == rowValue; // jshint ignore:line
|
|
1662
1666
|
}
|
|
1663
1667
|
};
|
|
@@ -3,8 +3,8 @@ import { Modal, Surface } from "@hpcc-js/layout";
|
|
|
3
3
|
import { Persist } from "@hpcc-js/other";
|
|
4
4
|
import { map as d3Map } from "d3-collection";
|
|
5
5
|
import { select as d3Select } from "d3-selection";
|
|
6
|
-
import { FlyoutButton } from "./FlyoutButton";
|
|
7
|
-
import * as HipieDDL from "./HipieDDL";
|
|
6
|
+
import { FlyoutButton } from "./FlyoutButton.ts";
|
|
7
|
+
import * as HipieDDL from "./HipieDDL.ts";
|
|
8
8
|
|
|
9
9
|
const tpl =
|
|
10
10
|
"<!doctype html><html><head><meta charset='utf-8'>" +
|
|
@@ -347,28 +347,39 @@ export class HipieDDLMixin extends PropertyExt {
|
|
|
347
347
|
content: () => this;
|
|
348
348
|
populateContent: () => this;
|
|
349
349
|
clearContent: (value?) => this;
|
|
350
|
-
|
|
351
|
-
ddlUrl: { (): string; (_: string): HipieDDLMixin };
|
|
352
|
-
ddlUrl_exists: () => boolean;
|
|
353
|
-
databomb: { (): string; (_: string): HipieDDLMixin };
|
|
354
|
-
databomb_exists: () => boolean;
|
|
355
|
-
proxyMappings: { (): object; (_: object): HipieDDLMixin };
|
|
356
|
-
proxyMappings_exists: () => boolean;
|
|
357
|
-
timeout: { (): number; (_: number): HipieDDLMixin };
|
|
358
|
-
timeout_exists: () => boolean;
|
|
359
|
-
clearDataOnUpdate: { (): boolean; (_: boolean): HipieDDLMixin };
|
|
360
|
-
clearDataOnUpdate_exists: () => boolean;
|
|
361
|
-
propogateClear: { (): boolean; (_: boolean): HipieDDLMixin };
|
|
362
|
-
propogateClear_exists: () => boolean;
|
|
363
|
-
missingDataString: { (): string; (_: string): HipieDDLMixin };
|
|
364
|
-
missingDataString_exists: () => boolean;
|
|
365
|
-
autoCloseFlyout: { (): boolean; (_: boolean): HipieDDLMixin };
|
|
366
|
-
autoCloseFlyout_exists: () => boolean;
|
|
367
|
-
disableModals: { (): boolean; (_: boolean): HipieDDLMixin };
|
|
368
350
|
}
|
|
369
351
|
HipieDDLMixin.prototype.mixin(PropertyExt);
|
|
370
352
|
HipieDDLMixin.prototype._class += " marshaller_HipieDDLMixin";
|
|
371
353
|
|
|
354
|
+
export interface HipieDDLMixin {
|
|
355
|
+
ddlUrl(): string;
|
|
356
|
+
ddlUrl(_: string): this;
|
|
357
|
+
ddlUrl_exists(): boolean;
|
|
358
|
+
databomb(): string;
|
|
359
|
+
databomb(_: string): this;
|
|
360
|
+
databomb_exists(): boolean;
|
|
361
|
+
proxyMappings(): object;
|
|
362
|
+
proxyMappings(_: object): this;
|
|
363
|
+
proxyMappings_exists(): boolean;
|
|
364
|
+
timeout(): number;
|
|
365
|
+
timeout(_: number): this;
|
|
366
|
+
timeout_exists(): boolean;
|
|
367
|
+
clearDataOnUpdate(): boolean;
|
|
368
|
+
clearDataOnUpdate(_: boolean): this;
|
|
369
|
+
clearDataOnUpdate_exists(): boolean;
|
|
370
|
+
propogateClear(): boolean;
|
|
371
|
+
propogateClear(_: boolean): this;
|
|
372
|
+
propogateClear_exists(): boolean;
|
|
373
|
+
missingDataString(): string;
|
|
374
|
+
missingDataString(_: string): this;
|
|
375
|
+
missingDataString_exists(): boolean;
|
|
376
|
+
autoCloseFlyout(): boolean;
|
|
377
|
+
autoCloseFlyout(_: boolean): this;
|
|
378
|
+
autoCloseFlyout_exists(): boolean;
|
|
379
|
+
disableModals(): boolean;
|
|
380
|
+
disableModals(_: boolean): this;
|
|
381
|
+
}
|
|
382
|
+
|
|
372
383
|
HipieDDLMixin.prototype.publish("ddlUrl", "", "string", "DDL URL", null, { tags: ["Private"] });
|
|
373
384
|
HipieDDLMixin.prototype.publish("databomb", "", "string", "Data Bomb", null, { tags: ["Private"] });
|
|
374
385
|
HipieDDLMixin.prototype.publish("proxyMappings", {}, "object", "Proxy Mappings", null, { tags: ["Private"] });
|
package/src/ddl1/Tabbed.ts
CHANGED
package/src/ddl2/PopupManager.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IMonitorHandle, Widget } from "@hpcc-js/common";
|
|
2
2
|
import { compare } from "@hpcc-js/util";
|
|
3
|
-
import { ElementContainer } from "./model/element";
|
|
4
|
-
import { IVizPopupPanelOwner, VizChartPanel, VizPopupPanel } from "./model/vizChartPanel";
|
|
3
|
+
import { ElementContainer } from "./model/element.ts";
|
|
4
|
+
import { IVizPopupPanelOwner, VizChartPanel, VizPopupPanel } from "./model/vizChartPanel.ts";
|
|
5
5
|
|
|
6
6
|
export class PopupManager extends Widget implements IVizPopupPanelOwner {
|
|
7
7
|
protected _ec: ElementContainer;
|
|
@@ -195,7 +195,7 @@ export abstract class Activity extends PropertyExt {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
referencedFields(refs: ReferencedFields): void {
|
|
198
|
-
this._sourceActivity
|
|
198
|
+
this._sourceActivity?.referencedFields(refs);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
exec(): Promise<void> {
|
|
@@ -2,9 +2,9 @@ import { DDL2 } from "@hpcc-js/ddl-shim";
|
|
|
2
2
|
import { IDatasource } from "@hpcc-js/dgrid";
|
|
3
3
|
import { isArray } from "@hpcc-js/util";
|
|
4
4
|
import { csvParse as d3CsvParse, tsvParse as d3TsvParse } from "d3-dsv";
|
|
5
|
-
import { Activity } from "./activity";
|
|
6
|
-
import { Datasource } from "./datasource";
|
|
7
|
-
import { FormField } from "./form";
|
|
5
|
+
import { Activity } from "./activity.ts";
|
|
6
|
+
import { Datasource } from "./datasource.ts";
|
|
7
|
+
import { FormField } from "./form.ts";
|
|
8
8
|
|
|
9
9
|
function fieldType(field: any): DDL2.IFieldType {
|
|
10
10
|
if (isArray(field)) {
|