@hpcc-js/form 2.12.0 → 3.2.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 (69) hide show
  1. package/dist/index.js +727 -1282
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.cjs +4 -0
  4. package/dist/index.umd.cjs.map +1 -0
  5. package/package.json +33 -35
  6. package/src/Button.ts +11 -10
  7. package/src/CheckBox.ts +21 -13
  8. package/src/ColorInput.ts +16 -10
  9. package/src/FieldForm.ts +2 -2
  10. package/src/Form.ts +20 -13
  11. package/src/Input.ts +39 -24
  12. package/src/InputRange.ts +24 -15
  13. package/src/OnOff.ts +15 -10
  14. package/src/Radio.ts +21 -13
  15. package/src/Range.ts +33 -21
  16. package/src/Select.ts +24 -15
  17. package/src/Slider.ts +7 -3
  18. package/src/TextArea.ts +19 -12
  19. package/src/__package__.ts +2 -2
  20. package/src/index.ts +14 -14
  21. package/types/Button.d.ts +10 -21
  22. package/types/CheckBox.d.ts +17 -26
  23. package/types/ColorInput.d.ts +14 -21
  24. package/types/FieldForm.d.ts +1 -2
  25. package/types/Form.d.ts +18 -27
  26. package/types/Input.d.ts +28 -42
  27. package/types/InputRange.d.ts +20 -31
  28. package/types/OnOff.d.ts +12 -21
  29. package/types/Radio.d.ts +17 -26
  30. package/types/Range.d.ts +29 -46
  31. package/types/Select.d.ts +20 -31
  32. package/types/Slider.d.ts +3 -3
  33. package/types/TextArea.d.ts +18 -31
  34. package/types/__package__.d.ts +2 -3
  35. package/types/index.d.ts +14 -15
  36. package/dist/index.es6.js +0 -1271
  37. package/dist/index.es6.js.map +0 -1
  38. package/dist/index.min.js +0 -2
  39. package/dist/index.min.js.map +0 -1
  40. package/types/Button.d.ts.map +0 -1
  41. package/types/CheckBox.d.ts.map +0 -1
  42. package/types/ColorInput.d.ts.map +0 -1
  43. package/types/FieldForm.d.ts.map +0 -1
  44. package/types/Form.d.ts.map +0 -1
  45. package/types/Input.d.ts.map +0 -1
  46. package/types/InputRange.d.ts.map +0 -1
  47. package/types/OnOff.d.ts.map +0 -1
  48. package/types/Radio.d.ts.map +0 -1
  49. package/types/Range.d.ts.map +0 -1
  50. package/types/Select.d.ts.map +0 -1
  51. package/types/Slider.d.ts.map +0 -1
  52. package/types/TextArea.d.ts.map +0 -1
  53. package/types/__package__.d.ts.map +0 -1
  54. package/types/index.d.ts.map +0 -1
  55. package/types-3.4/Button.d.ts +0 -29
  56. package/types-3.4/CheckBox.d.ts +0 -35
  57. package/types-3.4/ColorInput.d.ts +0 -29
  58. package/types-3.4/FieldForm.d.ts +0 -11
  59. package/types-3.4/Form.d.ts +0 -53
  60. package/types-3.4/Input.d.ts +0 -51
  61. package/types-3.4/InputRange.d.ts +0 -41
  62. package/types-3.4/OnOff.d.ts +0 -58
  63. package/types-3.4/Radio.d.ts +0 -34
  64. package/types-3.4/Range.d.ts +0 -55
  65. package/types-3.4/Select.d.ts +0 -40
  66. package/types-3.4/Slider.d.ts +0 -86
  67. package/types-3.4/TextArea.d.ts +0 -37
  68. package/types-3.4/__package__.d.ts +0 -4
  69. package/types-3.4/index.d.ts +0 -15
package/src/Input.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IInput } from "@hpcc-js/api";
2
- import { HTMLWidget } from "@hpcc-js/common";
2
+ import { Database, HTMLWidget } from "@hpcc-js/common";
3
3
 
4
4
  import "../src/Input.css";
5
5
 
@@ -90,32 +90,47 @@ export class Input extends HTMLWidget {
90
90
  }
91
91
  }
92
92
 
93
- type: { (): string; (_: string): Input };
94
- type_exists: () => boolean;
95
- type_default: { (): string; (_: string): Input };
96
- inlineLabel: { (): string; (_: string): Input };
97
- inlineLabel_exists: () => boolean;
98
-
99
- // IInput ---
100
- name: { (): string; (_: string): Input };
101
- name_exists: () => boolean;
102
- label: { (): string; (_: string): Input };
103
- label_exists: () => boolean;
104
- value: { (): any; (_: any): Input };
105
- value_exists: () => boolean;
106
- validate: { (): string; (_: string): Input };
107
- validate_exists: () => boolean;
108
-
109
93
  // IInput Events ---
110
- blur: (w: Input) => void;
111
- keyup: (w: Input) => void;
112
- focus: (w: Input) => void;
113
- click: (w: Input) => void;
114
- dblclick: (w: Input) => void;
115
- change: (w: Input, complete: boolean) => void;
94
+ blur(w: Input) {
95
+ }
96
+ keyup(w: Input) {
97
+ }
98
+ focus(w: Input) {
99
+ }
100
+ click(w: Input) {
101
+ }
102
+ dblclick(w: Input) {
103
+ }
104
+ change(w: Input, complete: boolean) {
105
+ }
116
106
  }
117
107
  Input.prototype._class += " form_Input";
118
108
  Input.prototype.implements(IInput.prototype);
119
109
 
120
- Input.prototype.publish("type", "text", "set", "Input type", ["number", "button", "checkbox", "date", "text", "textarea", "search", "email", "time", "datetime", "hidden"]);
110
+ export interface Input {
111
+ // IInput ---
112
+ name(): string;
113
+ name(_: string): this;
114
+ name_exists(): boolean;
115
+ label(): string;
116
+ label(_: string): this;
117
+ label_exists(): boolean;
118
+ value(): any;
119
+ value(_: any): this;
120
+ value_exists(): boolean;
121
+ validate(): string;
122
+ validate(_: string): this;
123
+ validate_exists(): boolean;
124
+
125
+ // Properties ---
126
+ type(): Database.FieldType | "button" | "checkbox" | "text" | "textarea" | "search" | "email" | "datetime";
127
+ type(_: Database.FieldType | "button" | "checkbox" | "text" | "textarea" | "search" | "email" | "datetime"): this;
128
+ type_exists(): boolean;
129
+ type_default(): string;
130
+ inlineLabel(): string;
131
+ inlineLabel(_: string): this;
132
+ inlineLabel_exists(): boolean;
133
+ }
134
+
135
+ Input.prototype.publish("type", "text", "set", "Input type", ["string", "number", "boolean", "date", "time", "hidden", "nested", "button", "checkbox", "text", "textarea", "search", "email", "datetime"]);
121
136
  Input.prototype.publish("inlineLabel", null, "string", "Input Label", null, { optional: true });
package/src/InputRange.ts CHANGED
@@ -62,25 +62,34 @@ export class InputRange extends HTMLWidget {
62
62
  .property("value", this._rangeData.length > idx ? this._rangeData[idx] : "");
63
63
  }, this);
64
64
  }
65
-
66
- type: { (): string; (_: string): InputRange };
67
- type_exists: () => boolean;
68
- inlineLabel: { (): string; (_: string): InputRange };
69
- inlineLabel_exists: () => boolean;
70
- value: { (): any[]; (_: any[]): InputRange };
71
- value_exists: () => boolean;
72
-
73
- // IInput ---
74
- name: { (): string; (_: string): InputRange };
75
- name_exists: () => boolean;
76
- label: { (): string; (_: string): InputRange };
77
- label_exists: () => boolean;
78
- validate: { (): string; (_: string): InputRange };
79
- validate_exists: () => boolean;
80
65
  }
81
66
  InputRange.prototype._class += " form_InputRange";
82
67
  InputRange.prototype.implements(IInput.prototype);
83
68
 
69
+ export interface InputRange {
70
+ // IInput ---
71
+ name(): string;
72
+ name(_: string): this;
73
+ name_exists(): boolean;
74
+ label(): string;
75
+ label(_: string): this;
76
+ label_exists(): boolean;
77
+ value(): any[];
78
+ value(_: any[]): this;
79
+ value_exists(): boolean;
80
+ validate(): string;
81
+ validate(_: string): this;
82
+ validate_exists(): boolean;
83
+
84
+ // Properties ---
85
+ type(): string;
86
+ type(_: string): this;
87
+ type_exists(): boolean;
88
+ inlineLabel(): string;
89
+ inlineLabel(_: string): this;
90
+ inlineLabel_exists(): boolean;
91
+ }
92
+
84
93
  InputRange.prototype.publish("type", "text", "set", "InputRange type", ["number", "date", "text", "time", "datetime", "hidden"]);
85
94
  InputRange.prototype.publish("inlineLabel", null, "string", "InputRange Label", null, { optional: true });
86
95
  InputRange.prototype.publish("value", ["", ""], "array", "Input Current Value", null, { override: true });
package/src/OnOff.ts CHANGED
@@ -96,19 +96,24 @@ export class OnOff extends HTMLWidget {
96
96
  .style("background-color", this.onColor())
97
97
  ;
98
98
  }
99
-
100
- // IInput ---
101
- name: { (): string; (_: string): OnOff };
102
- name_exists: () => boolean;
103
- label: { (): string; (_: string): OnOff };
104
- label_exists: () => boolean;
105
- value: { (): any; (_: any): OnOff };
106
- value_exists: () => boolean;
107
- validate: { (): string; (_: string): OnOff };
108
- validate_exists: () => boolean;
109
99
  }
110
100
  OnOff.prototype._class += " form_OnOff";
111
101
  export interface OnOff {
102
+ // IInput ---
103
+ name(): string;
104
+ name(_: string): this;
105
+ name_exists(): boolean;
106
+ label(): string;
107
+ label(_: string): this;
108
+ label_exists(): boolean;
109
+ value(): any;
110
+ value(_: any): this;
111
+ value_exists(): boolean;
112
+ validate(): string;
113
+ validate(_: string): this;
114
+ validate_exists(): boolean;
115
+
116
+ // Properties ---
112
117
  marginLeft(): number;
113
118
  marginLeft(_: number): this;
114
119
  marginBottom(): number;
package/src/Radio.ts CHANGED
@@ -55,21 +55,29 @@ export class Radio extends HTMLWidget {
55
55
  }
56
56
  });
57
57
  }
58
-
59
- selectOptions: { (): any[]; (_: any[]): Radio };
60
- selectOptions_exists: () => boolean;
61
-
62
- // IInput ---
63
- name: { (): string; (_: string): Radio };
64
- name_exists: () => boolean;
65
- label: { (): string; (_: string): Radio };
66
- label_exists: () => boolean;
67
- value: { (): any; (_: any): Radio };
68
- value_exists: () => boolean;
69
- validate: { (): string; (_: string): Radio };
70
- validate_exists: () => boolean;
71
58
  }
72
59
  Radio.prototype._class += " form_Radio";
73
60
  Radio.prototype.implements(IInput.prototype);
74
61
 
62
+ export interface Radio {
63
+ // IInput ---
64
+ name(): string;
65
+ name(_: string): this;
66
+ name_exists(): boolean;
67
+ label(): string;
68
+ label(_: string): this;
69
+ label_exists(): boolean;
70
+ value(): any;
71
+ value(_: any): this;
72
+ value_exists(): boolean;
73
+ validate(): string;
74
+ validate(_: string): this;
75
+ validate_exists(): boolean;
76
+
77
+ // Properties ---
78
+ selectOptions(): any[];
79
+ selectOptions(_: any[]): this;
80
+ selectOptions_exists(): boolean;
81
+ }
82
+
75
83
  Radio.prototype.publish("selectOptions", [], "array", "Array of options used to fill a dropdown list");
package/src/Range.ts CHANGED
@@ -72,31 +72,43 @@ export class Range extends HTMLWidget {
72
72
  }
73
73
  this._inputElement[0].html(optionHTML);
74
74
  }
75
-
76
- type: { (): string; (_: string): Range };
77
- type_exists: () => boolean;
78
- selectOptions: { (): any[]; (_: any[]): Range };
79
- selectOptions_exists: () => boolean;
80
- low: { (): number; (_: number): Range };
81
- low_exists: () => boolean;
82
- high: { (): number; (_: number): Range };
83
- high_exists: () => boolean;
84
- step: { (): number; (_: number): Range };
85
- step_exists: () => boolean;
86
-
87
- // IInput ---
88
- name: { (): string; (_: string): Range };
89
- name_exists: () => boolean;
90
- label: { (): string; (_: string): Range };
91
- label_exists: () => boolean;
92
- value: { (): any; (_: any): Range };
93
- value_exists: () => boolean;
94
- validate: { (): string; (_: string): Range };
95
- validate_exists: () => boolean;
96
75
  }
97
76
  Range.prototype._class += " form_Range";
98
77
  Range.prototype.implements(IInput.prototype);
99
78
 
79
+ export interface Range {
80
+ // IInput ---
81
+ name(): string;
82
+ name(_: string): this;
83
+ name_exists(): boolean;
84
+ label(): string;
85
+ label(_: string): this;
86
+ label_exists(): boolean;
87
+ value(): any;
88
+ value(_: any): this;
89
+ value_exists(): boolean;
90
+ validate(): string;
91
+ validate(_: string): this;
92
+ validate_exists(): boolean;
93
+
94
+ // Properties ---
95
+ type(): string;
96
+ type(_: string): this;
97
+ type_exists(): boolean;
98
+ selectOptions(): any[];
99
+ selectOptions(_: any[]): this;
100
+ selectOptions_exists(): boolean;
101
+ low(): number;
102
+ low(_: number): this;
103
+ low_exists(): boolean;
104
+ high(): number;
105
+ high(_: number): this;
106
+ high_exists(): boolean;
107
+ step(): number;
108
+ step(_: number): this;
109
+ step_exists(): boolean;
110
+ }
111
+
100
112
  Range.prototype.publish("type", "text", "set", "Input type", ["html-color", "number", "checkbox", "button", "select", "textarea", "date", "text", "range", "search", "email", "time", "datetime"]);
101
113
  Range.prototype.publish("selectOptions", [], "array", "Array of options used to fill a dropdown list");
102
114
  Range.prototype.publish("low", null, "number", "Minimum value for Range input");
package/src/Select.ts CHANGED
@@ -57,24 +57,33 @@ export class Select extends HTMLWidget {
57
57
  }
58
58
  this._inputElement[0].html(optionHTML);
59
59
  }
60
-
61
- selectOptions: { (): any[]; (_: any[]): Select };
62
- selectOptions_exists: () => boolean;
63
- maxWidth: { (): number; (_: number): Select };
64
- maxWidth_exists: () => boolean;
65
-
66
- // IInput ---
67
- name: { (): string; (_: string): Select };
68
- name_exists: () => boolean;
69
- label: { (): string; (_: string): Select };
70
- label_exists: () => boolean;
71
- value: { (): any; (_: any): Select };
72
- value_exists: () => boolean;
73
- validate: { (): string; (_: string): Select };
74
- validate_exists: () => boolean;
75
60
  }
76
61
  Select.prototype._class += " form_Select";
77
62
  Select.prototype.implements(IInput.prototype);
78
63
 
64
+ export interface Select {
65
+ // IInput ---
66
+ name(): string;
67
+ name(_: string): this;
68
+ name_exists(): boolean;
69
+ label(): string;
70
+ label(_: string): this;
71
+ label_exists(): boolean;
72
+ value(): any;
73
+ value(_: any): this;
74
+ value_exists(): boolean;
75
+ validate(): string;
76
+ validate(_: string): this;
77
+ validate_exists(): boolean;
78
+
79
+ // Properties ---
80
+ selectOptions(): any[];
81
+ selectOptions(_: any[]): this;
82
+ selectOptions_exists(): boolean;
83
+ maxWidth(): number;
84
+ maxWidth(_: number): this;
85
+ maxWidth_exists(): boolean;
86
+ }
87
+
79
88
  Select.prototype.publish("selectOptions", [], "array", "Array of options used to fill a dropdown list");
80
89
  Select.prototype.publish("maxWidth", 120, "number", "Width", null, { optional: true });
package/src/Slider.ts CHANGED
@@ -270,13 +270,17 @@ export class Slider extends SVGWidget {
270
270
  return retVal;
271
271
  };
272
272
 
273
- name: (_?: string) => string | this;
274
- change: (_: Slider) => void;
275
273
  }
276
274
  Slider.prototype._class += " form_Slider";
277
275
  Slider.prototype.implements(IInput.prototype);
278
276
 
279
277
  export interface Slider {
278
+ // IInput ---
279
+ name(): string;
280
+ name(_: string): this;
281
+ change(_: Slider): void;
282
+
283
+ // Properties ---
280
284
  padding(): number;
281
285
  padding(_: number): this;
282
286
  fontSize(): number;
@@ -357,7 +361,7 @@ Slider.prototype.publish("tickDateFormat", null, "string");
357
361
  Slider.prototype.publish("tickValueFormat", ",.0f", "string");
358
362
 
359
363
  const name = Slider.prototype.name;
360
- Slider.prototype.name = function (_: any): any {
364
+ Slider.prototype.name = function (_?: any): any {
361
365
  const retVal = name.apply(this, arguments);
362
366
  if (arguments.length) {
363
367
  const val = _ instanceof Array ? _ : [_];
package/src/TextArea.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Input } from "./Input";
1
+ import { Input } from "./Input.ts";
2
2
 
3
3
  export class TextArea extends Input {
4
4
  constructor() {
@@ -27,20 +27,27 @@ export class TextArea extends Input {
27
27
  ;
28
28
  }
29
29
 
30
- rows: { (): number; (_: number): TextArea };
31
- rows_exists: () => boolean;
32
- cols: { (): number; (_: number): TextArea };
33
- cols_exists: () => boolean;
34
- wrap: { (): string; (_: string): TextArea };
35
- wrap_exists: () => boolean;
36
- minHeight: { (): number; (_: number): TextArea };
37
- minHeight_exists: () => boolean;
38
- spellcheck: { (): boolean; (_: boolean): TextArea };
39
- spellcheck_exists: () => boolean;
40
- value: { (): any; (_: any): TextArea };
41
30
  }
42
31
  TextArea.prototype._class += " form_TextArea";
43
32
 
33
+ export interface TextArea {
34
+ rows(): number;
35
+ rows(_: number): this;
36
+ rows_exists(): boolean;
37
+ cols(): number;
38
+ cols(_: number): this;
39
+ cols_exists(): boolean;
40
+ wrap(): string;
41
+ wrap(_: string): this;
42
+ wrap_exists(): boolean;
43
+ minHeight(): number;
44
+ minHeight(_: number): this;
45
+ minHeight_exists(): boolean;
46
+ spellcheck(): boolean;
47
+ spellcheck(_: boolean): this;
48
+ spellcheck_exists(): boolean;
49
+ }
50
+
44
51
  TextArea.prototype.publish("rows", null, "number", "Rows", null, { optional: true });
45
52
  TextArea.prototype.publish("cols", null, "number", "Columns", null, { optional: true });
46
53
  TextArea.prototype.publish("wrap", "off", "set", "Wrap", ["off", "on"]);
@@ -1,3 +1,3 @@
1
1
  export const PKG_NAME = "@hpcc-js/form";
2
- export const PKG_VERSION = "2.12.0";
3
- export const BUILD_VERSION = "2.107.0";
2
+ export const PKG_VERSION = "3.1.0";
3
+ export const BUILD_VERSION = "3.2.1";
package/src/index.ts CHANGED
@@ -1,14 +1,14 @@
1
- export * from "./__package__";
2
- export * from "./Button";
3
- export * from "./CheckBox";
4
- export * from "./ColorInput";
5
- export * from "./Form";
6
- export * from "./FieldForm";
7
- export * from "./Input";
8
- export * from "./InputRange";
9
- export * from "./OnOff";
10
- export * from "./Radio";
11
- export * from "./Range";
12
- export * from "./Select";
13
- export * from "./Slider";
14
- export * from "./TextArea";
1
+ export * from "./__package__.ts";
2
+ export * from "./Button.ts";
3
+ export * from "./CheckBox.ts";
4
+ export * from "./ColorInput.ts";
5
+ export * from "./Form.ts";
6
+ export * from "./FieldForm.ts";
7
+ export * from "./Input.ts";
8
+ export * from "./InputRange.ts";
9
+ export * from "./OnOff.ts";
10
+ export * from "./Radio.ts";
11
+ export * from "./Range.ts";
12
+ export * from "./Select.ts";
13
+ export * from "./Slider.ts";
14
+ export * from "./TextArea.ts";
package/types/Button.d.ts CHANGED
@@ -5,25 +5,14 @@ export declare class Button extends HTMLWidget {
5
5
  constructor();
6
6
  enter(domNode: any, element: any): void;
7
7
  update(domNode: any, element: any): void;
8
- name: {
9
- (): string;
10
- (_: string): Button;
11
- };
12
- name_exists: () => boolean;
13
- label: {
14
- (): string;
15
- (_: string): Button;
16
- };
17
- label_exists: () => boolean;
18
- value: {
19
- (): any;
20
- (_: any): Button;
21
- };
22
- value_exists: () => boolean;
23
- validate: {
24
- (): string;
25
- (_: string): Button;
26
- };
27
- validate_exists: () => boolean;
28
8
  }
29
- //# sourceMappingURL=Button.d.ts.map
9
+ export interface Button {
10
+ name(): string;
11
+ name(_: string): Button;
12
+ label(): string;
13
+ label(_: string): Button;
14
+ value(): any;
15
+ value(_: any): Button;
16
+ validate(): string;
17
+ validate(_: string): Button;
18
+ }
@@ -6,30 +6,21 @@ export declare class CheckBox extends HTMLWidget {
6
6
  enter(domNode: any, element: any): void;
7
7
  update(domNode: any, element: any): void;
8
8
  insertSelectOptions(optionsArr: any): void;
9
- selectOptions: {
10
- (): any[];
11
- (_: any[]): CheckBox;
12
- };
13
- selectOptions_exists: () => boolean;
14
- name: {
15
- (): string;
16
- (_: string): CheckBox;
17
- };
18
- name_exists: () => boolean;
19
- label: {
20
- (): string;
21
- (_: string): CheckBox;
22
- };
23
- label_exists: () => boolean;
24
- value: {
25
- (): any;
26
- (_: any): CheckBox;
27
- };
28
- value_exists: () => boolean;
29
- validate: {
30
- (): string;
31
- (_: string): CheckBox;
32
- };
33
- validate_exists: () => boolean;
34
9
  }
35
- //# sourceMappingURL=CheckBox.d.ts.map
10
+ export interface CheckBox {
11
+ name(): string;
12
+ name(_: string): this;
13
+ name_exists(): boolean;
14
+ label(): string;
15
+ label(_: string): this;
16
+ label_exists(): boolean;
17
+ value(): any;
18
+ value(_: any): this;
19
+ value_exists(): boolean;
20
+ validate(): string;
21
+ validate(_: string): this;
22
+ validate_exists(): boolean;
23
+ selectOptions(): any[];
24
+ selectOptions(_: any[]): this;
25
+ selectOptions_exists(): boolean;
26
+ }
@@ -5,25 +5,18 @@ export declare class ColorInput extends HTMLWidget {
5
5
  constructor();
6
6
  enter(domNode: any, element: any): void;
7
7
  update(domNode: any, element: any): void;
8
- name: {
9
- (): string;
10
- (_: string): ColorInput;
11
- };
12
- name_exists: () => boolean;
13
- label: {
14
- (): string;
15
- (_: string): ColorInput;
16
- };
17
- label_exists: () => boolean;
18
- value: {
19
- (): any;
20
- (_: any): ColorInput;
21
- };
22
- value_exists: () => boolean;
23
- validate: {
24
- (): string;
25
- (_: string): ColorInput;
26
- };
27
- validate_exists: () => boolean;
28
8
  }
29
- //# sourceMappingURL=ColorInput.d.ts.map
9
+ export interface ColorInput {
10
+ name(): string;
11
+ name(_: string): this;
12
+ name_exists(): boolean;
13
+ label(): string;
14
+ label(_: string): this;
15
+ label_exists(): boolean;
16
+ value(): any;
17
+ value(_: any): this;
18
+ value_exists(): boolean;
19
+ validate(): string;
20
+ validate(_: string): this;
21
+ validate_exists(): boolean;
22
+ }
@@ -1,5 +1,5 @@
1
1
  import { Database } from "@hpcc-js/common";
2
- import { Form } from "./Form";
2
+ import { Form } from "./Form.ts";
3
3
  import "../src/Form.css";
4
4
  export declare class FieldForm extends Form {
5
5
  constructor();
@@ -8,4 +8,3 @@ export declare class FieldForm extends Form {
8
8
  data(): any;
9
9
  data(_: any): this;
10
10
  }
11
- //# sourceMappingURL=FieldForm.d.ts.map
package/types/Form.d.ts CHANGED
@@ -23,31 +23,22 @@ export declare class Form extends HTMLWidget {
23
23
  update(domNode: any, element: any): void;
24
24
  exit(domNode: any, element: any): void;
25
25
  click(row: any, col: any, sel: any): void;
26
- validate: {
27
- (): boolean;
28
- (_: boolean): Form;
29
- };
30
- validate_exists: () => boolean;
31
- inputs: {
32
- (): any[];
33
- (_: any[]): Form;
34
- };
35
- inputs_exists: () => boolean;
36
- inputs_reset: () => void;
37
- showSubmit: {
38
- (): boolean;
39
- (_: boolean): Form;
40
- };
41
- showSubmit_exists: () => boolean;
42
- omitBlank: {
43
- (): boolean;
44
- (_: boolean): Form;
45
- };
46
- omitBlank_exists: () => boolean;
47
- allowEmptyRequest: {
48
- (): boolean;
49
- (_: boolean): Form;
50
- };
51
- allowEmptyRequest_exists: () => boolean;
52
26
  }
53
- //# sourceMappingURL=Form.d.ts.map
27
+ export interface Form {
28
+ validate(): boolean;
29
+ validate(_: boolean): this;
30
+ validate_exists(): boolean;
31
+ inputs(): any[];
32
+ inputs(_: any[]): this;
33
+ inputs_exists(): boolean;
34
+ inputs_reset(): void;
35
+ showSubmit(): boolean;
36
+ showSubmit(_: boolean): this;
37
+ showSubmit_exists(): boolean;
38
+ omitBlank(): boolean;
39
+ omitBlank(_: boolean): this;
40
+ omitBlank_exists(): boolean;
41
+ allowEmptyRequest(): boolean;
42
+ allowEmptyRequest(_: boolean): this;
43
+ allowEmptyRequest_exists(): boolean;
44
+ }