@hpcc-js/form 2.12.1 → 2.12.3
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/LICENSE +43 -43
- package/dist/index.es6.js +2 -2
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +5 -5
- package/src/Button.ts +51 -51
- package/src/CheckBox.ts +95 -95
- package/src/ColorInput.ts +75 -75
- package/src/FieldForm.ts +49 -49
- package/src/Form.css +92 -92
- package/src/Form.ts +330 -330
- package/src/Input.css +41 -41
- package/src/Input.ts +121 -121
- package/src/InputRange.ts +86 -86
- package/src/OnOff.css +54 -54
- package/src/OnOff.ts +154 -154
- package/src/Radio.ts +75 -75
- package/src/Range.ts +104 -104
- package/src/Select.ts +80 -80
- package/src/Slider.css +40 -40
- package/src/Slider.ts +381 -381
- package/src/TextArea.ts +48 -48
- package/src/__package__.ts +3 -3
- package/src/index.ts +14 -14
- package/types/Slider.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/src/TextArea.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { Input } from "./Input";
|
|
2
|
-
|
|
3
|
-
export class TextArea extends Input {
|
|
4
|
-
constructor() {
|
|
5
|
-
super();
|
|
6
|
-
|
|
7
|
-
this._tag = "div";
|
|
8
|
-
this.type("textarea");
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
enter(domNode, element) {
|
|
12
|
-
super.enter(domNode, element);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
calcHeight() {
|
|
16
|
-
return Math.max(this.minHeight_exists() ? this.minHeight() : 0, this.height());
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
update(domNode, element) {
|
|
20
|
-
super.update(domNode, element);
|
|
21
|
-
this._inputElement[0]
|
|
22
|
-
.attr("rows", this.rows())
|
|
23
|
-
.attr("cols", this.cols())
|
|
24
|
-
.attr("wrap", this.wrap())
|
|
25
|
-
.attr("spellcheck", this.spellcheck())
|
|
26
|
-
.style("height", this.calcHeight() + "px")
|
|
27
|
-
;
|
|
28
|
-
}
|
|
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
|
-
}
|
|
42
|
-
TextArea.prototype._class += " form_TextArea";
|
|
43
|
-
|
|
44
|
-
TextArea.prototype.publish("rows", null, "number", "Rows", null, { optional: true });
|
|
45
|
-
TextArea.prototype.publish("cols", null, "number", "Columns", null, { optional: true });
|
|
46
|
-
TextArea.prototype.publish("wrap", "off", "set", "Wrap", ["off", "on"]);
|
|
47
|
-
TextArea.prototype.publish("minHeight", null, "number", "Minimum Height", null, { optional: true });
|
|
48
|
-
TextArea.prototype.publish("spellcheck", null, "boolean", "Input spell checking", { optional: true });
|
|
1
|
+
import { Input } from "./Input";
|
|
2
|
+
|
|
3
|
+
export class TextArea extends Input {
|
|
4
|
+
constructor() {
|
|
5
|
+
super();
|
|
6
|
+
|
|
7
|
+
this._tag = "div";
|
|
8
|
+
this.type("textarea");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
enter(domNode, element) {
|
|
12
|
+
super.enter(domNode, element);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
calcHeight() {
|
|
16
|
+
return Math.max(this.minHeight_exists() ? this.minHeight() : 0, this.height());
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
update(domNode, element) {
|
|
20
|
+
super.update(domNode, element);
|
|
21
|
+
this._inputElement[0]
|
|
22
|
+
.attr("rows", this.rows())
|
|
23
|
+
.attr("cols", this.cols())
|
|
24
|
+
.attr("wrap", this.wrap())
|
|
25
|
+
.attr("spellcheck", this.spellcheck())
|
|
26
|
+
.style("height", this.calcHeight() + "px")
|
|
27
|
+
;
|
|
28
|
+
}
|
|
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
|
+
}
|
|
42
|
+
TextArea.prototype._class += " form_TextArea";
|
|
43
|
+
|
|
44
|
+
TextArea.prototype.publish("rows", null, "number", "Rows", null, { optional: true });
|
|
45
|
+
TextArea.prototype.publish("cols", null, "number", "Columns", null, { optional: true });
|
|
46
|
+
TextArea.prototype.publish("wrap", "off", "set", "Wrap", ["off", "on"]);
|
|
47
|
+
TextArea.prototype.publish("minHeight", null, "number", "Minimum Height", null, { optional: true });
|
|
48
|
+
TextArea.prototype.publish("spellcheck", null, "boolean", "Input spell checking", { optional: true });
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const PKG_NAME = "@hpcc-js/form";
|
|
2
|
-
export const PKG_VERSION = "2.12.
|
|
3
|
-
export const BUILD_VERSION = "2.108.
|
|
1
|
+
export const PKG_NAME = "@hpcc-js/form";
|
|
2
|
+
export const PKG_VERSION = "2.12.2";
|
|
3
|
+
export const BUILD_VERSION = "2.108.6";
|
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__";
|
|
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";
|
package/types/Slider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../src/Slider.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAMzE,OAAO,mBAAmB,CAAC;AAE3B,qBAAa,MAAO,SAAQ,SAAS;IACjC,MAAM,MAAC;IAEP,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACpC,YAAY,EAAE,MAAM,CAAC;IAErB,SAAS,MAAC;IAEV,MAAM,MAAC;IAEP,UAAU,MAAC;IACX,aAAa,EAAE,MAAM,CAAK;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAE3B,WAAW,MAAC;I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are const BUILD_VERSION = "2.108.
|
|
2
|
+
export declare const PKG_VERSION = "2.12.2";
|
|
3
|
+
export declare const BUILD_VERSION = "2.108.6";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/form";
|
|
2
|
-
export declare const PKG_VERSION = "2.12.
|
|
3
|
-
export declare const BUILD_VERSION = "2.108.
|
|
2
|
+
export declare const PKG_VERSION = "2.12.2";
|
|
3
|
+
export declare const BUILD_VERSION = "2.108.6";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|