@hpcc-js/other 2.16.2 → 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.
Files changed (92) hide show
  1. package/dist/index.js +785 -6346
  2. package/dist/index.js.map +7 -1
  3. package/package.json +31 -34
  4. package/src/Audio.ts +6 -3
  5. package/src/AutoCompleteText.ts +22 -14
  6. package/src/CalendarHeatMap.ts +24 -17
  7. package/src/ESP.ts +1 -1
  8. package/src/HeatMap.ts +41 -26
  9. package/src/Html.ts +11 -7
  10. package/src/IconList.ts +1 -1
  11. package/src/Legend.ts +16 -9
  12. package/src/MorphText.ts +16 -9
  13. package/src/NestedTable.ts +1 -1
  14. package/src/Opportunity.ts +32 -20
  15. package/src/Paginator.ts +21 -13
  16. package/src/PropertyEditor.ts +28 -16
  17. package/src/RadioCheckbox.ts +18 -11
  18. package/src/Select.ts +24 -14
  19. package/src/Table.ts +109 -60
  20. package/src/ThemeEditor.ts +40 -26
  21. package/src/__package__.ts +2 -2
  22. package/src/index.ts +21 -21
  23. package/types/Audio.d.ts +6 -7
  24. package/types/AutoCompleteText.d.ts +20 -31
  25. package/types/CalendarHeatMap.d.ts +20 -33
  26. package/types/Comms.d.ts +0 -1
  27. package/types/ESP.d.ts +0 -1
  28. package/types/HPCCBadge.d.ts +0 -1
  29. package/types/HeatMap.d.ts +39 -62
  30. package/types/Html.d.ts +10 -16
  31. package/types/IconList.d.ts +0 -1
  32. package/types/Legend.d.ts +16 -23
  33. package/types/MorphText.d.ts +14 -18
  34. package/types/NestedTable.d.ts +1 -2
  35. package/types/Opportunity.d.ts +29 -47
  36. package/types/Paginator.d.ts +20 -31
  37. package/types/Persist.d.ts +0 -1
  38. package/types/PropertyEditor.d.ts +22 -38
  39. package/types/RadioCheckbox.d.ts +17 -26
  40. package/types/Select.d.ts +23 -36
  41. package/types/Table.d.ts +96 -187
  42. package/types/ThemeEditor.d.ts +38 -61
  43. package/types/__package__.d.ts +2 -3
  44. package/types/index.d.ts +21 -22
  45. package/dist/index.es6.js +0 -6313
  46. package/dist/index.es6.js.map +0 -1
  47. package/dist/index.min.js +0 -2
  48. package/dist/index.min.js.map +0 -1
  49. package/types/Audio.d.ts.map +0 -1
  50. package/types/AutoCompleteText.d.ts.map +0 -1
  51. package/types/CalendarHeatMap.d.ts.map +0 -1
  52. package/types/Comms.d.ts.map +0 -1
  53. package/types/ESP.d.ts.map +0 -1
  54. package/types/HPCCBadge.d.ts.map +0 -1
  55. package/types/HeatMap.d.ts.map +0 -1
  56. package/types/Html.d.ts.map +0 -1
  57. package/types/IconList.d.ts.map +0 -1
  58. package/types/Legend.d.ts.map +0 -1
  59. package/types/MorphText.d.ts.map +0 -1
  60. package/types/NestedTable.d.ts.map +0 -1
  61. package/types/Opportunity.d.ts.map +0 -1
  62. package/types/Paginator.d.ts.map +0 -1
  63. package/types/Persist.d.ts.map +0 -1
  64. package/types/PropertyEditor.d.ts.map +0 -1
  65. package/types/RadioCheckbox.d.ts.map +0 -1
  66. package/types/Select.d.ts.map +0 -1
  67. package/types/Table.d.ts.map +0 -1
  68. package/types/ThemeEditor.d.ts.map +0 -1
  69. package/types/__package__.d.ts.map +0 -1
  70. package/types/index.d.ts.map +0 -1
  71. package/types-3.4/Audio.d.ts +0 -19
  72. package/types-3.4/AutoCompleteText.d.ts +0 -46
  73. package/types-3.4/CalendarHeatMap.d.ts +0 -61
  74. package/types-3.4/Comms.d.ts +0 -112
  75. package/types-3.4/ESP.d.ts +0 -9
  76. package/types-3.4/HPCCBadge.d.ts +0 -30
  77. package/types-3.4/HeatMap.d.ts +0 -72
  78. package/types-3.4/Html.d.ts +0 -23
  79. package/types-3.4/IconList.d.ts +0 -26
  80. package/types-3.4/Legend.d.ts +0 -40
  81. package/types-3.4/MorphText.d.ts +0 -28
  82. package/types-3.4/NestedTable.d.ts +0 -5
  83. package/types-3.4/Opportunity.d.ts +0 -99
  84. package/types-3.4/Paginator.d.ts +0 -45
  85. package/types-3.4/Persist.d.ts +0 -10
  86. package/types-3.4/PropertyEditor.d.ts +0 -85
  87. package/types-3.4/RadioCheckbox.d.ts +0 -40
  88. package/types-3.4/Select.d.ts +0 -49
  89. package/types-3.4/Table.d.ts +0 -257
  90. package/types-3.4/ThemeEditor.d.ts +0 -97
  91. package/types-3.4/__package__.d.ts +0 -4
  92. package/types-3.4/index.d.ts +0 -24
package/package.json CHANGED
@@ -1,49 +1,47 @@
1
1
  {
2
2
  "name": "@hpcc-js/other",
3
- "version": "2.16.2",
3
+ "version": "3.1.0",
4
4
  "description": "hpcc-js - Viz Other",
5
- "main": "dist/index.js",
6
- "module": "dist/index.es6",
7
- "unpkg": "dist/index.min.js",
8
- "jsdelivr": "dist/index.min.js",
9
- "types": "types/index.d.ts",
10
- "typesVersions": {
11
- "<3.8": {
12
- "*": [
13
- "types-3.4/index.d.ts"
14
- ]
15
- }
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./types/index.d.ts",
9
+ "default": "./dist/index.js"
10
+ },
11
+ "./dist/*": "./dist/*"
16
12
  },
13
+ "module": "./dist/index.js",
14
+ "browser": "./dist/index.js",
15
+ "types": "./types/index.d.ts",
17
16
  "files": [
18
17
  "dist/*",
18
+ "src/*",
19
19
  "types/*",
20
- "types-3.4/*",
21
- "src/*"
20
+ "font-awesome/**/*"
22
21
  ],
23
22
  "scripts": {
24
- "clean": "rimraf --glob lib* types dist *.tsbuildinfo",
25
- "compile-es6": "tsc --module es6 --outDir ./lib-es6",
26
- "compile-es6-watch": "npm run compile-es6 -- -w",
27
- "compile-umd": "tsc --module umd --outDir ./lib-umd",
28
- "compile-umd-watch": "npm run compile-umd -- -w",
29
- "bundle": "rollup -c",
30
- "bundle-watch": "npm run bundle -- -w",
31
- "minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
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",
23
+ "clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
24
+ "bundle": "node esbuild.js",
25
+ "bundle-watch": "npm run bundle -- --development --watch",
26
+ "gen-types": "tsc --project tsconfig.json",
27
+ "gen-types-watch": "npm run gen-types -- --watch",
28
+ "build": "run-p gen-types bundle",
36
29
  "lint": "eslint ./src",
30
+ "lint-fix": "eslint --fix src/**/*.ts",
37
31
  "docs": "typedoc --options tdoptions.json .",
38
- "update": "npx --yes npm-check-updates -u -t minor"
32
+ "test-browser": "vitest run --project browser",
33
+ "test": "vitest run",
34
+ "coverage": "vitest run --coverage",
35
+ "update": "npx --yes npm-check-updates -u -t minor",
36
+ "update-major": "npx --yes npm-check-updates -u"
39
37
  },
40
38
  "dependencies": {
41
- "@hpcc-js/api": "^2.13.0",
42
- "@hpcc-js/common": "^2.72.0",
43
- "@hpcc-js/layout": "^2.50.2"
39
+ "@hpcc-js/api": "^3.2.0",
40
+ "@hpcc-js/common": "^3.2.0",
41
+ "@hpcc-js/layout": "^3.1.0"
44
42
  },
45
43
  "devDependencies": {
46
- "@hpcc-js/bundle": "^2.12.0",
44
+ "@hpcc-js/esbuild-plugins": "^1.3.0",
47
45
  "d3-array": "^1",
48
46
  "d3-collection": "^1",
49
47
  "d3-format": "^1",
@@ -55,8 +53,7 @@
55
53
  "d3-timer": "^1",
56
54
  "d3-zoom": "^1",
57
55
  "javascript-autocomplete": "1.0.5",
58
- "simpleheat": "0.4.0",
59
- "tslib": "2.6.3"
56
+ "simpleheat": "0.4.0"
60
57
  },
61
58
  "repository": {
62
59
  "type": "git",
@@ -69,5 +66,5 @@
69
66
  "url": "https://github.com/hpcc-systems/Visualization/issues"
70
67
  },
71
68
  "homepage": "https://github.com/hpcc-systems/Visualization",
72
- "gitHead": "9e1dd990858b6fb5dd0e46425def23c9609c147a"
69
+ "gitHead": "658c50fd965a7744ba8db675ba6878607c44d5e2"
73
70
  }
package/src/Audio.ts CHANGED
@@ -74,10 +74,13 @@ export class Audio extends HTMLWidget {
74
74
  });
75
75
  this.node().load();
76
76
  }
77
-
78
- source: { (): string; (_: string): Audio };
79
- source_exists: () => boolean;
80
77
  }
81
78
  Audio.prototype._class += " other_Audio";
82
79
 
80
+ export interface Audio {
81
+ source(): string;
82
+ source(_: string): this;
83
+ source_exists(): boolean;
84
+ }
85
+
83
86
  Audio.prototype.publish("source", "", "string", "Audio Source");
@@ -1,5 +1,5 @@
1
1
  import { HTMLWidget } from "@hpcc-js/common";
2
- import * as AutoComplete from "javascript-autocomplete";
2
+ import AutoComplete from "javascript-autocomplete";
3
3
 
4
4
  import "../src/AutoCompleteText.css";
5
5
 
@@ -100,22 +100,30 @@ export class AutoCompleteText extends HTMLWidget {
100
100
 
101
101
  click(row, column, selected) {
102
102
  }
103
-
104
- label: { (): string; (_: string): AutoCompleteText };
105
- label_exists: () => boolean;
106
- textboxWidth: { (): number; (_: number): AutoCompleteText };
107
- textboxWidth_exists: () => boolean;
108
- placeholder: { (): string; (_: string): AutoCompleteText };
109
- placeholder_exists: () => boolean;
110
- valueColumn: { (): string; (_: string): AutoCompleteText };
111
- valueColumn_exists: () => boolean;
112
- textColumn: { (): string; (_: string): AutoCompleteText };
113
- textColumn_exists: () => boolean;
114
- minCharsText: { (): number; (_: number): AutoCompleteText };
115
- minCharsText_exists: () => boolean;
116
103
  }
117
104
  AutoCompleteText.prototype._class += " other_AutoCompleteText";
118
105
 
106
+ export interface AutoCompleteText {
107
+ label(): string;
108
+ label(_: string): this;
109
+ label_exists(): boolean;
110
+ textboxWidth(): number;
111
+ textboxWidth(_: number): this;
112
+ textboxWidth_exists(): boolean;
113
+ placeholder(): string;
114
+ placeholder(_: string): this;
115
+ placeholder_exists(): boolean;
116
+ valueColumn(): string;
117
+ valueColumn(_: string): this;
118
+ valueColumn_exists(): boolean;
119
+ textColumn(): string;
120
+ textColumn(_: string): this;
121
+ textColumn_exists(): boolean;
122
+ minCharsText(): number;
123
+ minCharsText(_: number): this;
124
+ minCharsText_exists(): boolean;
125
+ }
126
+
119
127
  AutoCompleteText.prototype.publish("label", "Label: ", "string", "Label for AutoCompleteText");
120
128
  AutoCompleteText.prototype.publish("textboxWidth", null, "number", "width of textbox", null, { optional: true });
121
129
  AutoCompleteText.prototype.publish("placeholder", "Search...", "string", "Placeholder for AutoCompleteText");
@@ -199,29 +199,24 @@ export class CalendarHeatMap extends HTMLWidget {
199
199
 
200
200
  dblclick(row, column, selected) {
201
201
  }
202
-
203
- _palette;
204
- paletteID: { (): string; (_: string): CalendarHeatMap };
205
- paletteID_exists: () => boolean;
206
- dateColumn: { (): string; (_: string): CalendarHeatMap };
207
- dateColumn_exists: () => boolean;
208
- datePattern: { (): string; (_: string): CalendarHeatMap };
209
- datePattern_exists: () => boolean;
210
- aggrType: { (): string; (_: string): CalendarHeatMap };
211
- aggrType_exists: () => boolean;
212
- aggrColumn: { (): string; (_: string): CalendarHeatMap };
213
- aggrColumn_exists: () => boolean;
214
- aggrDeltaColumn: { (): string; (_: string): CalendarHeatMap };
215
- aggrDeltaColumn_exists: () => boolean;
216
-
217
- // SimpleSelectionMixin
218
- _selection;
219
202
  }
220
203
  CalendarHeatMap.prototype._class += " other_CalendarHeatMap";
221
204
  CalendarHeatMap.prototype.mixin(Utility.SimpleSelectionMixin);
222
205
  CalendarHeatMap.prototype._palette = Palette.rainbow("default");
223
206
 
224
207
  export interface CalendarHeatMap {
208
+ _palette;
209
+
210
+ // SimpleSelectionMixin ---
211
+ _selection
212
+
213
+ // Properties ---
214
+ paletteID(): string;
215
+ paletteID(_: string): this;
216
+ paletteID_exists(): boolean;
217
+ datePattern(): string;
218
+ datePattern(_: string): this;
219
+ datePattern_exists(): boolean;
225
220
  dayStrokeColor(): string;
226
221
  dayStrokeColor(_: string): this;
227
222
  monthStrokeColor(): string;
@@ -230,6 +225,18 @@ export interface CalendarHeatMap {
230
225
  dayStrokeWidth(_: number): this;
231
226
  monthStrokeWidth(): number;
232
227
  monthStrokeWidth(_: number): this;
228
+ dateColumn(): string;
229
+ dateColumn(_: string): this;
230
+ dateColumn_exists(): boolean;
231
+ aggrType(): string;
232
+ aggrType(_: string): this;
233
+ aggrType_exists(): boolean;
234
+ aggrColumn(): string;
235
+ aggrColumn(_: string): this;
236
+ aggrColumn_exists(): boolean;
237
+ aggrDeltaColumn(): string;
238
+ aggrDeltaColumn(_: string): this;
239
+ aggrDeltaColumn_exists(): boolean;
233
240
  }
234
241
  CalendarHeatMap.prototype.publish("paletteID", "YlOrRd", "set", "Color palette for this widget", CalendarHeatMap.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
235
242
  CalendarHeatMap.prototype.publish("dayStrokeColor", "#ccc", "html-color", "Color of day border");
package/src/ESP.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Utility } from "@hpcc-js/common";
2
- import * as Comms from "./Comms";
2
+ import * as Comms from "./Comms.ts";
3
3
 
4
4
  function nestedRowFix(row) {
5
5
  if (row.Row && row.Row instanceof Array) {
package/src/HeatMap.ts CHANGED
@@ -5,7 +5,6 @@ const simpleheat = (window as any).simpleheat || (_simpleheat && _simpleheat.def
5
5
 
6
6
  export class HeatMap extends CanvasWidget {
7
7
  _heat;
8
- _palette;
9
8
 
10
9
  constructor() {
11
10
  super();
@@ -88,35 +87,51 @@ export class HeatMap extends CanvasWidget {
88
87
 
89
88
  return retArr;
90
89
  }
91
-
92
- radius: { (): number; (_: number): HeatMap };
93
- radius_exists: () => boolean;
94
- blur: { (): number; (_: number): HeatMap };
95
- blur_exists: () => boolean;
96
- max: { (): number; (_: number): HeatMap };
97
- max_exists: () => boolean;
98
- gradient: { (): object; (_: object): HeatMap };
99
- gradient_exists: () => boolean;
100
- usePalette: { (): boolean; (_: boolean): HeatMap };
101
- usePalette_exists: () => boolean;
102
- colorCount: { (): number; (_: number): HeatMap };
103
- colorCount_exists: () => boolean;
104
- paletteID: { (): string; (_: string): HeatMap };
105
- paletteID_exists: () => boolean;
106
- useClonedPalette: { (): boolean; (_: boolean): HeatMap };
107
- useClonedPalette_exists: () => boolean;
108
- topLeftX: { (): number; (_: number): HeatMap };
109
- topLeftX_exists: () => boolean;
110
- topLeftY: { (): number; (_: number): HeatMap };
111
- topLeftY_exists: () => boolean;
112
- bottomRightX: { (): number; (_: number): HeatMap };
113
- bottomRightX_exists: () => boolean;
114
- bottomRightY: { (): number; (_: number): HeatMap };
115
- bottomRightY_exists: () => boolean;
116
90
  }
117
91
  HeatMap.prototype._class += " other_HeatMap";
118
92
  HeatMap.prototype._palette = Palette.rainbow("default");
119
93
 
94
+ export interface HeatMap {
95
+ _palette;
96
+
97
+ radius(): number;
98
+ radius(_: number): this;
99
+ radius_exists(): boolean;
100
+ blur(): number;
101
+ blur(_: number): this;
102
+ blur_exists(): boolean;
103
+ max(): number;
104
+ max(_: number): this;
105
+ max_exists(): boolean;
106
+ gradient(): object;
107
+ gradient(_: object): this;
108
+ gradient_exists(): boolean;
109
+ usePalette(): boolean;
110
+ usePalette(_: boolean): this;
111
+ usePalette_exists(): boolean;
112
+ colorCount(): number;
113
+ colorCount(_: number): this;
114
+ colorCount_exists(): boolean;
115
+ paletteID(): string;
116
+ paletteID(_: string): this;
117
+ paletteID_exists(): boolean;
118
+ useClonedPalette(): boolean;
119
+ useClonedPalette(_: boolean): this;
120
+ useClonedPalette_exists(): boolean;
121
+ topLeftX(): number;
122
+ topLeftX(_: number): this;
123
+ topLeftX_exists(): boolean;
124
+ topLeftY(): number;
125
+ topLeftY(_: number): this;
126
+ topLeftY_exists(): boolean;
127
+ bottomRightX(): number;
128
+ bottomRightX(_: number): this;
129
+ bottomRightX_exists(): boolean;
130
+ bottomRightY(): number;
131
+ bottomRightY(_: number): this;
132
+ bottomRightY_exists(): boolean;
133
+ }
134
+
120
135
  HeatMap.prototype.publish("radius", 15, "number", "Set point radius", null, { tags: ["Basic"] });
121
136
  HeatMap.prototype.publish("blur", 15, "number", "Set point blur", null, { tags: ["Basic"] });
122
137
  HeatMap.prototype.publish("max", 1, "number", "Set max data value", null, { tags: ["Basic"] });
package/src/Html.ts CHANGED
@@ -29,16 +29,20 @@ export class Html extends HTMLWidget {
29
29
  ;
30
30
  html.exit().remove();
31
31
  }
32
-
33
- html: { (): string; (_: string): Html };
34
- html_exists: () => boolean;
35
- overflowX: { (): string; (_: string): Html };
36
- overflowX_exists: () => boolean;
37
- overflowY: { (): string; (_: string): Html };
38
- overflowY_exists: () => boolean;
39
32
  }
40
33
  Html.prototype._class += " other_Html";
41
34
 
35
+ export interface Html {
36
+ html(): string;
37
+ html(_: string): Html;
38
+ overflowX(): string;
39
+ overflowX(_: string): Html;
40
+ overflowX_exists(): boolean;
41
+ overflowY(): string;
42
+ overflowY(_: string): Html;
43
+ overflowY_exists(): boolean;
44
+ }
45
+
42
46
  Html.prototype.publish("html", "", "string", "Html to render", null, { tags: ["Basic"] });
43
47
  Html.prototype.publish("overflowX", null, "set", "CSS overflow-x", ["", "visible", "hidden", "scroll", "auto", "initial", "inherit"], { tags: ["Basic"], optional: true });
44
48
  Html.prototype.publish("overflowY", null, "set", "CSS overflow-y", ["", "visible", "hidden", "scroll", "auto", "initial", "inherit"], { tags: ["Basic"], optional: true });
package/src/IconList.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Entity, HTMLWidget } from "@hpcc-js/common";
2
2
  import { HorizontalList, VerticalList } from "@hpcc-js/layout";
3
3
  import { select as d3Select } from "d3-selection";
4
- import { Html } from "./Html";
4
+ import { Html } from "./Html.ts";
5
5
 
6
6
  import "../src/IconList.css";
7
7
 
package/src/Legend.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Palette, Platform } from "@hpcc-js/common";
2
2
  import { format as d3Format } from "d3-format";
3
3
  import { select as d3Select } from "d3-selection";
4
- import { Table } from "./Table";
4
+ import { Table } from "./Table.ts";
5
5
 
6
6
  import "../src/Legend.css";
7
7
 
@@ -185,17 +185,24 @@ export class Legend extends Table {
185
185
  onMouseOver(rowData, rowIdx) {
186
186
  }
187
187
 
188
- dataFamily: { (): string; (_: string): Legend };
189
- dataFamily_exists: () => boolean;
190
- orientation: { (): string; (_: string): Legend };
191
- orientation_exists: () => boolean;
192
- rainbowFormat: { (): string; (_: string): Legend };
193
- rainbowFormat_exists: () => boolean;
194
- rainbowBins: { (): number; (_: number): Legend };
195
- rainbowBins_exists: () => boolean;
196
188
  }
197
189
  Legend.prototype._class += " other_Legend";
198
190
 
191
+ export interface Legend {
192
+ dataFamily(): string;
193
+ dataFamily(_: string): this;
194
+ dataFamily_exists(): boolean;
195
+ orientation(): string;
196
+ orientation(_: string): this;
197
+ orientation_exists(): boolean;
198
+ rainbowFormat(): string;
199
+ rainbowFormat(_: string): this;
200
+ rainbowFormat_exists(): boolean;
201
+ rainbowBins(): number;
202
+ rainbowBins(_: number): this;
203
+ rainbowBins_exists(): boolean;
204
+ }
205
+
199
206
  Legend.prototype.publish("dataFamily", "ND", "set", "Type of data", ["1D", "2D", "ND", "map", "any", "other"], { tags: ["Private"] });
200
207
  Legend.prototype.publish("orientation", "vertical", "set", "Orientation of Legend rows", ["vertical", "horizontal"], { tags: ["Private"] });
201
208
  Legend.prototype.publish("rainbowFormat", ",", "string", "Rainbow number formatting", null, { tags: ["Private"], optional: true, disable: w => !w.isRainbow() });
package/src/MorphText.ts CHANGED
@@ -67,24 +67,31 @@ export class MorphText extends SVGWidget {
67
67
  .remove()
68
68
  ;
69
69
  }
70
- anchor: { (): string; (_: string): MorphText };
71
- anchor_exists: () => boolean;
72
- fontSize: { (): number; (_: number): MorphText };
73
- fontSize_exists: () => boolean;
74
- reverse: { (): boolean; (_: boolean): MorphText };
75
- reverse_exists: () => boolean;
76
- text: (_?: string) => MorphText | this;
77
- text_exists: () => boolean;
78
70
  }
79
71
  MorphText.prototype._class += " other_MorphText";
80
72
 
73
+ export interface MorphText {
74
+ anchor(): string;
75
+ anchor(_: string): this;
76
+ anchor_exists(): boolean;
77
+ fontSize(): number;
78
+ fontSize(_: number): this;
79
+ fontSize_exists(): boolean;
80
+ reverse(): boolean;
81
+ reverse(_: boolean): this;
82
+ reverse_exists(): boolean;
83
+ text(): string;
84
+ text(_: string): this;
85
+ text_exists(): boolean;
86
+ }
87
+
81
88
  MorphText.prototype.publish("anchor", "middle", "set", "Sets anchor point", ["middle"], { tags: ["Basic"] });
82
89
  MorphText.prototype.publish("fontSize", 14, "number", "Sets fontsize", null, { tags: ["Basic"] });
83
90
  MorphText.prototype.publish("reverse", false, "boolean", "Reverse Animation", null, { tags: ["Basic"] });
84
91
  MorphText.prototype.publish("text", "", "string", "Sets text/data of widget", null, { tags: ["Basic"] });
85
92
 
86
93
  const _origText = MorphText.prototype.text;
87
- MorphText.prototype.text = function (_) {
94
+ MorphText.prototype.text = function (_?: string) {
88
95
  const retVal = _origText.apply(this, arguments);
89
96
  if (arguments.length) {
90
97
  const usedChars = {};
@@ -1,4 +1,4 @@
1
- import { Table } from "./Table";
1
+ import { Table } from "./Table.ts";
2
2
 
3
3
  export class NestedTable extends Table {
4
4
  constructor() {
@@ -424,32 +424,44 @@ export class Opportunity extends SVGWidget {
424
424
  dropdownList.unshift("default");
425
425
  return dropdownList;
426
426
  }
427
- previousGroup: { (): string; (_: string): Opportunity };
428
- previousGroup_exists: () => boolean;
429
- currentGroup: { (): string; (_: string): Opportunity };
430
- currentGroup_exists: () => boolean;
431
- opportunityId: { (): string; (_: string): Opportunity };
432
- opportunityId_exists: () => boolean;
433
- url: { (): string; (_: string): Opportunity };
434
- url_exists: () => boolean;
435
- // width: { (): number; (_: number): Opportunity };
436
- width_exists: () => boolean;
437
- addColumn: { (): string; (_: string): Opportunity };
438
- addColumn_exists: () => boolean;
439
- removeColumn: { (): string; (_: string): Opportunity };
440
- removeColumn_exists: () => boolean;
441
- headerLabels: { (): any[]; (_: any[]): Opportunity };
442
- headerLabels_exists: () => boolean;
443
- mouseHover: { (): any[]; (_: any[]): Opportunity };
444
- mouseHover_exists: () => boolean;
445
- columnData: { (): any[]; (_: any[]): Opportunity };
446
- columnData_exists: () => boolean;
447
427
  }
448
428
  Opportunity.prototype._class += " other_Opportunity";
449
429
  Opportunity.prototype.Column = Column;
450
430
  Opportunity.prototype.MouseHoverColumn = MouseHoverColumn;
451
431
  Opportunity.prototype.ColumnDropdown = ColumnDropdown;
452
432
 
433
+ export interface Opportunity {
434
+ previousGroup(): string;
435
+ previousGroup(_: string): this;
436
+ previousGroup_exists(): boolean;
437
+ currentGroup(): string;
438
+ currentGroup(_: string): this;
439
+ currentGroup_exists(): boolean;
440
+ opportunityId(): string;
441
+ opportunityId(_: string): this;
442
+ opportunityId_exists(): boolean
443
+ url(): string;
444
+ url(_: string): this;
445
+ url_exists(): boolean;
446
+ // width(): number;
447
+ // width(_: number): this;
448
+ addColumn(): string;
449
+ addColumn(_: string): this;
450
+ addColumn_exists(): boolean;
451
+ removeColumn(): string;
452
+ removeColumn(_: string): this;
453
+ removeColumn_exists(): boolean;
454
+ headerLabels(): any[];
455
+ headerLabels(_: any[]): this;
456
+ headerLabels_exists(): boolean;
457
+ mouseHover(): any[];
458
+ mouseHover(_: any[]): this;
459
+ mouseHover_exists(): boolean;
460
+ columnData(): any[];
461
+ columnData(_: any[]): this;
462
+ columnData_exists(): boolean;
463
+ }
464
+
453
465
  Opportunity.prototype.publish("previousGroup", "", "set", "label in Opportunity", function () { return this.getIds(); }, { tags: ["Basic", "Shared"] });
454
466
  Opportunity.prototype.publish("currentGroup", "", "set", "label in Opportunity", function () { return this.getIds(); }, { tags: ["Basic", "Shared"] });
455
467
  Opportunity.prototype.publish("opportunityId", "id", "set", "Id for label in Opportunity", function () { return this.getIds(); }, { tags: ["Basic", "Shared"] });
package/src/Paginator.ts CHANGED
@@ -139,22 +139,30 @@ export class Paginator extends HTMLWidget {
139
139
  exit(domNode, element) {
140
140
  super.exit(domNode, element);
141
141
  }
142
-
143
- itemsPerPage: { (): number; (_: number): Paginator };
144
- itemsPerPage_exists: () => boolean;
145
- numItems: { (): number; (_: number): Paginator };
146
- numItems_exists: () => boolean;
147
- pageNumber: { (): number; (_: number): Paginator };
148
- pageNumber_exists: () => boolean;
149
- adjacentPages: { (): number; (_: number): Paginator };
150
- adjacentPages_exists: () => boolean;
151
- bottom: { (): number; (_: number): Paginator };
152
- bottom_exists: () => boolean;
153
- right: { (): number; (_: number): Paginator };
154
- right_exists: () => boolean;
155
142
  }
156
143
  Paginator.prototype._class += " other_Paginator";
157
144
 
145
+ export interface Paginator {
146
+ itemsPerPage(): number;
147
+ itemsPerPage(_: number): this;
148
+ itemsPerPage_exists(): boolean;
149
+ numItems(): number;
150
+ numItems(_: number): this;
151
+ numItems_exists(): boolean;
152
+ pageNumber(): number;
153
+ pageNumber(_: number): this;
154
+ pageNumber_exists(): boolean;
155
+ adjacentPages(): number;
156
+ adjacentPages(_: number): this;
157
+ adjacentPages_exists(): boolean
158
+ bottom(): number;
159
+ bottom(_: number): this;
160
+ bottom_exists(): boolean;
161
+ right(): number;
162
+ right(_: number): this;
163
+ right_exists(): boolean;
164
+ }
165
+
158
166
  Paginator.prototype.publish("itemsPerPage", 2, "number", "Pagination items per page", null, { tags: ["Private"] });
159
167
 
160
168
  Paginator.prototype.publish("numItems", 10, "number", "Pagination total number of items", null, { tags: ["Private"] });
@@ -1,7 +1,7 @@
1
1
  import { HTMLWidget, Platform, PropertyExt, Widget } from "@hpcc-js/common";
2
2
  import { Grid } from "@hpcc-js/layout";
3
3
  import { local as d3Local, select as d3Select, selectAll as d3SelectAll } from "d3-selection";
4
- import * as Persist from "./Persist";
4
+ import * as Persist from "./Persist.ts";
5
5
 
6
6
  import "../src/PropertyEditor.css";
7
7
 
@@ -700,24 +700,36 @@ export class PropertyEditor extends HTMLWidget {
700
700
  break;
701
701
  }
702
702
  }
703
-
704
- showFields: { (): boolean; (_: boolean): PropertyEditor; };
705
- showData: { (): boolean; (_: boolean): PropertyEditor; };
706
-
707
- sorting: { (): string; (_: string): PropertyEditor; };
708
- sorting_options: () => string[];
709
-
710
- hideNonWidgets: { (): boolean; (_: boolean): PropertyEditor; };
711
-
712
- label: { (): string; (_: string): PropertyEditor; };
713
- filterTags: { (): string; (_: string): PropertyEditor; };
714
- excludeTags: { (): string[]; (_: string[]): PropertyEditor; };
715
- excludeParams: { (): string[]; (_: string[]): PropertyEditor; };
716
-
717
- widget: { (): PropertyExt; (_: PropertyExt): PropertyEditor };
718
703
  }
719
704
  PropertyEditor.prototype._class += " other_PropertyEditor";
720
705
 
706
+ export interface PropertyEditor {
707
+ showFields(): boolean;
708
+ showFields(_: boolean): this;
709
+ showData(): boolean;
710
+ showData(_: boolean): this;
711
+
712
+ sorting(): string;
713
+ sorting(_: string): this;
714
+ sorting_options(): string[];
715
+ sorting_options(_: string[]): this;
716
+
717
+ hideNonWidgets(): boolean;
718
+ hideNonWidgets(_: boolean): this;
719
+
720
+ label(): string;
721
+ label(_: string): this;
722
+ filterTags(): string;
723
+ filterTags(_: string): this;
724
+ excludeTags(): string[];
725
+ excludeTags(_: string[]): this;
726
+ excludeParams(): string[];
727
+ excludeParams(_: string[]): this;
728
+
729
+ widget(): PropertyExt;
730
+ widget(_: PropertyExt): this;
731
+ }
732
+
721
733
  PropertyEditor.prototype.publish("showFields", false, "boolean", "If true, widget.fields() will display as if it was a publish parameter.", null, { tags: ["Basic"] });
722
734
  PropertyEditor.prototype.publish("showData", false, "boolean", "If true, widget.data() will display as if it was a publish parameter.", null, { tags: ["Basic"] });
723
735
 
@@ -102,20 +102,27 @@ export class RadioCheckbox extends HTMLWidget {
102
102
 
103
103
  click(row, column, selected) {
104
104
  }
105
-
106
- label: { (): string; (_: string): RadioCheckbox };
107
- label_exists: () => boolean;
108
- valueColumn: { (): string; (_: string): RadioCheckbox };
109
- valueColumn_exists: () => boolean;
110
- textColumn: { (): string; (_: string): RadioCheckbox };
111
- textColumn_exists: () => boolean;
112
- sort: { (): string; (_: string): RadioCheckbox };
113
- sort_exists: () => boolean;
114
- multiple: { (): boolean; (_: boolean): RadioCheckbox };
115
- multiple_exists: () => boolean;
116
105
  }
117
106
  RadioCheckbox.prototype._class += " other_RadioCheckbox";
118
107
 
108
+ export interface RadioCheckbox {
109
+ label(): string;
110
+ label(_: string): this;
111
+ label_exists(): boolean;
112
+ valueColumn(): string;
113
+ valueColumn(_: string): this;
114
+ valueColumn_exists(): boolean;
115
+ textColumn(): string;
116
+ textColumn(_: string): this;
117
+ textColumn_exists(): boolean;
118
+ sort(): string;
119
+ sort(_: string): this;
120
+ sort_exists
121
+ multiple(): boolean;
122
+ multiple(_: boolean): this;
123
+ multiple_exists(): boolean;
124
+ }
125
+
119
126
  RadioCheckbox.prototype.publish("label", null, "string", "Label for RadioCheckbox");
120
127
  RadioCheckbox.prototype.publish("valueColumn", null, "set", "RadioCheckbox display value", function () { return this.columns(); }, { optional: true });
121
128
  RadioCheckbox.prototype.publish("textColumn", null, "set", "RadioCheckbox value(s)", function () { return this.columns(); }, { optional: true });