@hpcc-js/marshaller 2.28.6 → 2.28.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.
Files changed (53) hide show
  1. package/LICENSE +43 -43
  2. package/dist/index.es6.js +19 -19
  3. package/dist/index.es6.js.map +1 -1
  4. package/dist/index.js +17 -17
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/package.json +16 -16
  9. package/src/__package__.ts +3 -3
  10. package/src/dashy.css +239 -239
  11. package/src/dashy.ts +521 -521
  12. package/src/ddl1/DDLApi.ts +229 -229
  13. package/src/ddl1/FlyoutButton.ts +120 -120
  14. package/src/ddl1/Graph.ts +93 -93
  15. package/src/ddl1/HTML.ts +77 -77
  16. package/src/ddl1/HipieDDL.ts +2437 -2437
  17. package/src/ddl1/HipieDDLMixin.ts +380 -380
  18. package/src/ddl1/Tabbed.ts +91 -91
  19. package/src/ddl1/TargetMarshaller.ts +57 -57
  20. package/src/ddl2/PopupManager.ts +89 -89
  21. package/src/ddl2/activities/activity.ts +431 -431
  22. package/src/ddl2/activities/databomb.ts +237 -237
  23. package/src/ddl2/activities/datasource.ts +52 -52
  24. package/src/ddl2/activities/dspicker.ts +106 -106
  25. package/src/ddl2/activities/filter.ts +542 -542
  26. package/src/ddl2/activities/form.ts +153 -153
  27. package/src/ddl2/activities/groupby.ts +439 -439
  28. package/src/ddl2/activities/hipiepipeline.ts +114 -114
  29. package/src/ddl2/activities/limit.ts +49 -49
  30. package/src/ddl2/activities/logicalfile.ts +62 -62
  31. package/src/ddl2/activities/nullview.ts +12 -12
  32. package/src/ddl2/activities/project.ts +764 -764
  33. package/src/ddl2/activities/rest.ts +568 -568
  34. package/src/ddl2/activities/roxie.ts +490 -490
  35. package/src/ddl2/activities/sampledata.json +16264 -16264
  36. package/src/ddl2/activities/sort.ts +176 -176
  37. package/src/ddl2/activities/wuresult.ts +395 -395
  38. package/src/ddl2/dashboard.css +13 -13
  39. package/src/ddl2/dashboard.ts +330 -330
  40. package/src/ddl2/dashboardDockPanel.ts +123 -123
  41. package/src/ddl2/dashboardGrid.ts +202 -202
  42. package/src/ddl2/ddl.ts +410 -410
  43. package/src/ddl2/ddleditor.ts +60 -60
  44. package/src/ddl2/dsTable.ts +238 -238
  45. package/src/ddl2/dvTable.ts +31 -31
  46. package/src/ddl2/graphadapter.ts +297 -297
  47. package/src/ddl2/javascriptadapter.ts +354 -354
  48. package/src/ddl2/model/element.ts +398 -398
  49. package/src/ddl2/model/visualization.ts +351 -351
  50. package/src/ddl2/model/vizChartPanel.ts +149 -149
  51. package/src/ddl2/pipelinePanel.css +4 -4
  52. package/src/ddl2/pipelinePanel.ts +465 -465
  53. package/src/index.ts +26 -26
@@ -1,229 +1,229 @@
1
- export type StringStringDict = { [key: string]: string; };
2
-
3
- // Datasource ===============================================================
4
- export interface IOutput {
5
- id: string;
6
- from: string;
7
- filter?: string[];
8
- notify?: string[];
9
- }
10
-
11
- export interface IDatasource {
12
- id: string;
13
- databomb?: boolean;
14
- WUID?: boolean;
15
- URL?: string;
16
- filter?: string[];
17
- outputs: IOutput[];
18
- }
19
-
20
- // Event ====================================================================
21
- export interface IEventUpdate {
22
- visualization: string;
23
- instance: string;
24
- datasource: string;
25
- col?: string;
26
- merge: boolean;
27
- mappings?: StringStringDict;
28
- }
29
-
30
- export interface IEvent {
31
- mappings: StringStringDict;
32
- updates: IEventUpdate[];
33
- }
34
-
35
- // Mappings =================================================================
36
- export interface IPieMapping {
37
- label: string;
38
- weight: string;
39
- }
40
-
41
- export interface ILineMapping {
42
- x: string[];
43
- y: string[];
44
- }
45
-
46
- export interface ITableMapping {
47
- value: string[];
48
- }
49
-
50
- export interface IChoroMapping {
51
- weight: string | string[];
52
- }
53
-
54
- export interface IChoroUSStateMapping extends IChoroMapping {
55
- state: string;
56
- }
57
-
58
- export interface IChoroUSCountyMapping extends IChoroMapping {
59
- county: string;
60
- }
61
-
62
- export interface IChoroGeohashMapping extends IChoroMapping {
63
- geohash: string;
64
- }
65
-
66
- export interface IGraphMapping {
67
- uid: string;
68
- label: string;
69
- weight: string;
70
- flags: string;
71
- }
72
-
73
- export interface IGraphLinkMapping {
74
- uid: string;
75
- }
76
-
77
- export interface IHeatMapMapping {
78
- x: string;
79
- y: string;
80
- weight: string;
81
- }
82
-
83
- // Source ===================================================================
84
- export interface ISource {
85
- id: string;
86
- output: string;
87
- sort?: string[];
88
- first?: number;
89
- reverse?: boolean;
90
- properties?: StringStringDict; // TODO Needed?
91
- }
92
-
93
- export interface IPieSource extends ISource {
94
- mappings: IPieMapping;
95
- }
96
-
97
- export interface ILineSource extends ISource {
98
- mappings: ILineMapping;
99
- }
100
-
101
- export interface ITableSource extends ISource {
102
- mappings: ITableMapping;
103
- }
104
-
105
- export interface IGraphLink {
106
- mappings: IGraphLinkMapping;
107
- childfile: string;
108
- }
109
-
110
- export interface IGraphSource extends ISource {
111
- mappings: IGraphMapping;
112
- link: IGraphLink;
113
- }
114
-
115
- export interface IHeatMapSource extends ISource {
116
- mappings: IHeatMapMapping;
117
- }
118
-
119
- export interface IChoroSource extends ISource {
120
- mappings: IAnyChoroMapping;
121
- }
122
-
123
- // Visualization ============================================================
124
- export type VisualizationType = "PIE" | "LINE" | "BAR" | "TABLE" | "CHORO" | "GRAPH" | "HEAT_MAP" | "SLIDER" | "FORM" | "2DCHART" | "WORD_CLOUD" | "BUBBLE";
125
- export type VisualizationFieldType = "bool" | "boolean" | "integer" | "unsigned" | "float" | "double" | "date" | "time" | "geohash" | "dataset" | "visualization";
126
-
127
- export interface IVisualizationField {
128
- id: any;
129
- label: string;
130
- properties: {
131
- type: VisualizationFieldType;
132
- charttype: string;
133
- label: string;
134
- enumvals: string[];
135
- default: string;
136
- localVisualizationID: string;
137
- };
138
- }
139
-
140
- export interface IVisualization {
141
- id: string;
142
- title: string;
143
- type: VisualizationType;
144
- properties?: {
145
- charttype: string,
146
-
147
- // TODO Split Known Properties ---
148
- [key: string]: string
149
- };
150
- events?: { [key: string]: IEvent };
151
- onSelect?: any; // legacy
152
-
153
- fields?: IVisualizationField[];
154
- color?: any; // legacy
155
- }
156
-
157
- export type PieType = "PIE";
158
- export interface IPieVisualization extends IVisualization {
159
- type: PieType;
160
- source: IPieSource;
161
- }
162
-
163
- export interface ILineVisualization extends IVisualization {
164
- source: ILineSource;
165
- }
166
-
167
- export type ChoroColor = "default" | "YlGn" | "YlGnBu" | "GnBu" | "BuGn" | "PuBuGn" | "PuBu" | "BuPu" | "RdPu" | "PuRd" | "OrRd" | "YlOrRd" | "YlOrBr" | "Purples" | "Blues" | "Greens" | "Oranges" | "Reds" | "Greys" | "PuOr" | "BrBG" | "PRGn" | "PiYG" | "RdBu" | "RdGy" | "RdYlBu" | "Spectral" | "RdYlGn" | "RdWhGr";
168
- export interface IChoroVisualization extends IVisualization {
169
- source: IChoroSource;
170
-
171
- visualizations?: IChoroVisualization[];
172
- color?: ChoroColor;
173
- }
174
-
175
- export interface ITableVisualization extends IVisualization {
176
- label: string[];
177
- source: ITableSource;
178
- }
179
-
180
- export interface ISliderVisualization extends IVisualization {
181
- range?: number[];
182
- }
183
-
184
- export interface IVisualizationIcon {
185
- faChar: string;
186
- fieldid?: string;
187
- valuemappings?: StringStringDict;
188
- }
189
-
190
- export interface IGraphVisualization extends IVisualization {
191
- source: IGraphSource;
192
-
193
- label: string[];
194
- icon: IVisualizationIcon;
195
- flag: IVisualizationIcon[];
196
- }
197
-
198
- export interface IHeatMapVisualization extends IVisualization {
199
- source: IHeatMapSource;
200
- }
201
-
202
- // Dashboard ================================================================
203
- export interface IDashboard {
204
- id: string;
205
- title: string;
206
- enable: string;
207
- label: string;
208
- primary: boolean;
209
- visualizations: IAnyVisualization[];
210
- datasources: IDatasource[];
211
- }
212
-
213
- // DDL ======================================================================
214
- export type DDLSchema = IDashboard[];
215
-
216
- // Helpers ==================================================================
217
- export type IAnyChoroMapping = IChoroUSStateMapping | IChoroUSCountyMapping | IChoroGeohashMapping;
218
- export function isUSStateMapping(mappings: IAnyChoroMapping) {
219
- return (mappings as IChoroUSStateMapping).state !== undefined;
220
- }
221
- export function isUSCountyMapping(mappings: IAnyChoroMapping) {
222
- return (mappings as IChoroUSCountyMapping).county !== undefined;
223
- }
224
- export function isGeohashMapping(mappings: IAnyChoroMapping) {
225
- return (mappings as IChoroGeohashMapping).geohash !== undefined;
226
- }
227
- export type IAnyMapping = IPieMapping | ILineMapping | IGraphMapping | IAnyChoroMapping | ITableMapping | IHeatMapMapping;
228
- export type IAnySource = IPieSource | ILineSource | ITableSource | IChoroSource | IGraphSource | IHeatMapSource;
229
- export type IAnyVisualization = IPieVisualization | ILineVisualization | ITableVisualization | IChoroVisualization | IGraphVisualization | IHeatMapVisualization;
1
+ export type StringStringDict = { [key: string]: string; };
2
+
3
+ // Datasource ===============================================================
4
+ export interface IOutput {
5
+ id: string;
6
+ from: string;
7
+ filter?: string[];
8
+ notify?: string[];
9
+ }
10
+
11
+ export interface IDatasource {
12
+ id: string;
13
+ databomb?: boolean;
14
+ WUID?: boolean;
15
+ URL?: string;
16
+ filter?: string[];
17
+ outputs: IOutput[];
18
+ }
19
+
20
+ // Event ====================================================================
21
+ export interface IEventUpdate {
22
+ visualization: string;
23
+ instance: string;
24
+ datasource: string;
25
+ col?: string;
26
+ merge: boolean;
27
+ mappings?: StringStringDict;
28
+ }
29
+
30
+ export interface IEvent {
31
+ mappings: StringStringDict;
32
+ updates: IEventUpdate[];
33
+ }
34
+
35
+ // Mappings =================================================================
36
+ export interface IPieMapping {
37
+ label: string;
38
+ weight: string;
39
+ }
40
+
41
+ export interface ILineMapping {
42
+ x: string[];
43
+ y: string[];
44
+ }
45
+
46
+ export interface ITableMapping {
47
+ value: string[];
48
+ }
49
+
50
+ export interface IChoroMapping {
51
+ weight: string | string[];
52
+ }
53
+
54
+ export interface IChoroUSStateMapping extends IChoroMapping {
55
+ state: string;
56
+ }
57
+
58
+ export interface IChoroUSCountyMapping extends IChoroMapping {
59
+ county: string;
60
+ }
61
+
62
+ export interface IChoroGeohashMapping extends IChoroMapping {
63
+ geohash: string;
64
+ }
65
+
66
+ export interface IGraphMapping {
67
+ uid: string;
68
+ label: string;
69
+ weight: string;
70
+ flags: string;
71
+ }
72
+
73
+ export interface IGraphLinkMapping {
74
+ uid: string;
75
+ }
76
+
77
+ export interface IHeatMapMapping {
78
+ x: string;
79
+ y: string;
80
+ weight: string;
81
+ }
82
+
83
+ // Source ===================================================================
84
+ export interface ISource {
85
+ id: string;
86
+ output: string;
87
+ sort?: string[];
88
+ first?: number;
89
+ reverse?: boolean;
90
+ properties?: StringStringDict; // TODO Needed?
91
+ }
92
+
93
+ export interface IPieSource extends ISource {
94
+ mappings: IPieMapping;
95
+ }
96
+
97
+ export interface ILineSource extends ISource {
98
+ mappings: ILineMapping;
99
+ }
100
+
101
+ export interface ITableSource extends ISource {
102
+ mappings: ITableMapping;
103
+ }
104
+
105
+ export interface IGraphLink {
106
+ mappings: IGraphLinkMapping;
107
+ childfile: string;
108
+ }
109
+
110
+ export interface IGraphSource extends ISource {
111
+ mappings: IGraphMapping;
112
+ link: IGraphLink;
113
+ }
114
+
115
+ export interface IHeatMapSource extends ISource {
116
+ mappings: IHeatMapMapping;
117
+ }
118
+
119
+ export interface IChoroSource extends ISource {
120
+ mappings: IAnyChoroMapping;
121
+ }
122
+
123
+ // Visualization ============================================================
124
+ export type VisualizationType = "PIE" | "LINE" | "BAR" | "TABLE" | "CHORO" | "GRAPH" | "HEAT_MAP" | "SLIDER" | "FORM" | "2DCHART" | "WORD_CLOUD" | "BUBBLE";
125
+ export type VisualizationFieldType = "bool" | "boolean" | "integer" | "unsigned" | "float" | "double" | "date" | "time" | "geohash" | "dataset" | "visualization";
126
+
127
+ export interface IVisualizationField {
128
+ id: any;
129
+ label: string;
130
+ properties: {
131
+ type: VisualizationFieldType;
132
+ charttype: string;
133
+ label: string;
134
+ enumvals: string[];
135
+ default: string;
136
+ localVisualizationID: string;
137
+ };
138
+ }
139
+
140
+ export interface IVisualization {
141
+ id: string;
142
+ title: string;
143
+ type: VisualizationType;
144
+ properties?: {
145
+ charttype: string,
146
+
147
+ // TODO Split Known Properties ---
148
+ [key: string]: string
149
+ };
150
+ events?: { [key: string]: IEvent };
151
+ onSelect?: any; // legacy
152
+
153
+ fields?: IVisualizationField[];
154
+ color?: any; // legacy
155
+ }
156
+
157
+ export type PieType = "PIE";
158
+ export interface IPieVisualization extends IVisualization {
159
+ type: PieType;
160
+ source: IPieSource;
161
+ }
162
+
163
+ export interface ILineVisualization extends IVisualization {
164
+ source: ILineSource;
165
+ }
166
+
167
+ export type ChoroColor = "default" | "YlGn" | "YlGnBu" | "GnBu" | "BuGn" | "PuBuGn" | "PuBu" | "BuPu" | "RdPu" | "PuRd" | "OrRd" | "YlOrRd" | "YlOrBr" | "Purples" | "Blues" | "Greens" | "Oranges" | "Reds" | "Greys" | "PuOr" | "BrBG" | "PRGn" | "PiYG" | "RdBu" | "RdGy" | "RdYlBu" | "Spectral" | "RdYlGn" | "RdWhGr";
168
+ export interface IChoroVisualization extends IVisualization {
169
+ source: IChoroSource;
170
+
171
+ visualizations?: IChoroVisualization[];
172
+ color?: ChoroColor;
173
+ }
174
+
175
+ export interface ITableVisualization extends IVisualization {
176
+ label: string[];
177
+ source: ITableSource;
178
+ }
179
+
180
+ export interface ISliderVisualization extends IVisualization {
181
+ range?: number[];
182
+ }
183
+
184
+ export interface IVisualizationIcon {
185
+ faChar: string;
186
+ fieldid?: string;
187
+ valuemappings?: StringStringDict;
188
+ }
189
+
190
+ export interface IGraphVisualization extends IVisualization {
191
+ source: IGraphSource;
192
+
193
+ label: string[];
194
+ icon: IVisualizationIcon;
195
+ flag: IVisualizationIcon[];
196
+ }
197
+
198
+ export interface IHeatMapVisualization extends IVisualization {
199
+ source: IHeatMapSource;
200
+ }
201
+
202
+ // Dashboard ================================================================
203
+ export interface IDashboard {
204
+ id: string;
205
+ title: string;
206
+ enable: string;
207
+ label: string;
208
+ primary: boolean;
209
+ visualizations: IAnyVisualization[];
210
+ datasources: IDatasource[];
211
+ }
212
+
213
+ // DDL ======================================================================
214
+ export type DDLSchema = IDashboard[];
215
+
216
+ // Helpers ==================================================================
217
+ export type IAnyChoroMapping = IChoroUSStateMapping | IChoroUSCountyMapping | IChoroGeohashMapping;
218
+ export function isUSStateMapping(mappings: IAnyChoroMapping) {
219
+ return (mappings as IChoroUSStateMapping).state !== undefined;
220
+ }
221
+ export function isUSCountyMapping(mappings: IAnyChoroMapping) {
222
+ return (mappings as IChoroUSCountyMapping).county !== undefined;
223
+ }
224
+ export function isGeohashMapping(mappings: IAnyChoroMapping) {
225
+ return (mappings as IChoroGeohashMapping).geohash !== undefined;
226
+ }
227
+ export type IAnyMapping = IPieMapping | ILineMapping | IGraphMapping | IAnyChoroMapping | ITableMapping | IHeatMapMapping;
228
+ export type IAnySource = IPieSource | ILineSource | ITableSource | IChoroSource | IGraphSource | IHeatMapSource;
229
+ export type IAnyVisualization = IPieVisualization | ILineVisualization | ITableVisualization | IChoroVisualization | IGraphVisualization | IHeatMapVisualization;