@hpcc-js/form 2.8.68 → 2.9.2
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.es6.js +14 -15
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +17 -18
- 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 +9 -25
- package/src/Form.ts +0 -1
- package/src/__package__.ts +2 -2
- package/types/Form.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.es6.js
CHANGED
|
@@ -2,8 +2,8 @@ import { IInput } from '@hpcc-js/api';
|
|
|
2
2
|
import { HTMLWidget, rgb, WidgetArray, d3Event, select, SVGWidget, scaleLinear, timeParse, drag, timeFormat, format } from '@hpcc-js/common';
|
|
3
3
|
|
|
4
4
|
var PKG_NAME = "@hpcc-js/form";
|
|
5
|
-
var PKG_VERSION = "2.
|
|
6
|
-
var BUILD_VERSION = "2.
|
|
5
|
+
var PKG_VERSION = "2.9.2";
|
|
6
|
+
var BUILD_VERSION = "2.102.11";
|
|
7
7
|
|
|
8
8
|
/*! *****************************************************************************
|
|
9
9
|
Copyright (c) Microsoft Corporation.
|
|
@@ -63,8 +63,8 @@ function styleInject(css, ref) {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
var css_248z = ".form_Input button,.form_Input input,.form_Input select,.form_Input textarea{padding:2px}.form_Input button{cursor:pointer}.form_Input input.color-text{width:120px}.form_Input input.color-text+input{width:57px
|
|
67
|
-
styleInject(css_248z);
|
|
66
|
+
var css_248z$3 = ".form_Input button,.form_Input input,.form_Input select,.form_Input textarea{padding:2px}.form_Input button{cursor:pointer}.form_Input input.color-text{width:120px}.form_Input input.color-text+input{position:absolute;width:57px}.form_Input input[type=textbox],.form_Input textarea{box-sizing:border-box;display:block;width:100%}.form_Input ul{float:left;list-style-type:none;margin:0;padding:0}.form_Input li{float:left;list-style-position:inside}";
|
|
67
|
+
styleInject(css_248z$3);
|
|
68
68
|
|
|
69
69
|
var Button = /** @class */ (function (_super) {
|
|
70
70
|
__extends(Button, _super);
|
|
@@ -226,8 +226,8 @@ var ColorInput = /** @class */ (function (_super) {
|
|
|
226
226
|
ColorInput.prototype._class += " form_ColorInput";
|
|
227
227
|
ColorInput.prototype.implements(IInput.prototype);
|
|
228
228
|
|
|
229
|
-
var css_248z$
|
|
230
|
-
styleInject(css_248z$
|
|
229
|
+
var css_248z$2 = ".form_Form{color:#404040}.form_Form tbody td{border:1px solid #e5e5e5;white-space:nowrap}.form_Form td.prompt{background-color:#e5e5e5;padding:2px;vertical-align:middle}.form_Form td.input{padding:2px;vertical-align:middle;width:100%}.form_Form td.input .common_HTMLWidget ul{margin:0}.form_Form tfoot button{margin:5px}.form_Form tbody tr:hover{background-color:#fafafa}.form_Form .form_Button button{word-wrap:break-word;background-position:-1px -1px;background:#eff3f6 linear-gradient(-180deg,#fafbfc,#eff3f6 90%) repeat-x scroll -1px -1px /110% 110% padding-box border-box;border:1px solid rgba(27,31,35,.2);border-radius:3px 3px 3px 3px;bottom:0;box-sizing:border-box;color:#24292e;column-rule-color:#24292e;cursor:pointer;height:28px;left:0;outline:0 none #24292e;overflow-wrap:break-word;padding:3px 10px;perspective-origin:57.2938px 14px;position:relative;right:0;text-decoration:none solid #24292e;top:0;transform-origin:57.2938px 14px;user-select:none;vertical-align:middle;white-space:nowrap}.form_Form .form_Button button[disabled=disabled]{background:#dbdfe2}.form_Form .form_Button button:focus{box-shadow:0 0 0 .2em rgba(3,102,214,.3)}.form_Form .form_Button button:hover{background:#dbdfe2}.form_Form .form_Button.default button{word-wrap:break-word;background:#28a745 linear-gradient(-180deg,#34d058,#28a745 90%) repeat-x scroll -1px -1px /110% 110% padding-box border-box;color:#fff;column-rule-color:#fff;outline:0 none #fff;perspective-origin:44.975px 17px;text-decoration:none solid #fff;transform-origin:44.975px 17px}.form_Form .form_Button.default button[disabled=disabled],.form_Form .form_Button.default button[disabled=disabled]:hover{background:#dbdfe2}.form_Form .form_Button.default button:hover{background:#149331}";
|
|
230
|
+
styleInject(css_248z$2);
|
|
231
231
|
|
|
232
232
|
var Form = /** @class */ (function (_super) {
|
|
233
233
|
__extends(Form, _super);
|
|
@@ -496,7 +496,6 @@ var Form = /** @class */ (function (_super) {
|
|
|
496
496
|
_super.prototype.exit.call(this, domNode, element);
|
|
497
497
|
};
|
|
498
498
|
Form.prototype.click = function (row, col, sel) {
|
|
499
|
-
console.log("Clicked Submit: " + JSON.stringify(row));
|
|
500
499
|
};
|
|
501
500
|
return Form;
|
|
502
501
|
}(HTMLWidget));
|
|
@@ -685,8 +684,8 @@ InputRange.prototype.publish("type", "text", "set", "InputRange type", ["number"
|
|
|
685
684
|
InputRange.prototype.publish("inlineLabel", null, "string", "InputRange Label", null, { optional: true });
|
|
686
685
|
InputRange.prototype.publish("value", ["", ""], "array", "Input Current Value", null, { override: true });
|
|
687
686
|
|
|
688
|
-
var css_248z$
|
|
689
|
-
styleInject(css_248z$
|
|
687
|
+
var css_248z$1 = ".onoffswitch-checkbox{display:none}.onoffswitch{height:20px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;width:100px}.onoffswitch-label{border:1px solid #999;cursor:pointer;display:block;height:20px;overflow:hidden}.onoffswitch-inner{display:block;position:relative;transition:margin .3s ease-in 0s}.onoffswitch-inner>.onoffswitch-offText,.onoffswitch-inner>.onoffswitch-onText{height:100%}.onoffswitch-inner>.onoffswitch-offText{font-weight:700;position:absolute;right:0;text-align:right;transition:all .3s ease-in 0s;width:100%}.onoffswitch-inner>.onoffswitch-onText{font-weight:700;left:-100%;position:absolute;text-align:left;transition:all .3s ease-in 0s;width:100%}.onoffswitch-switch{background:#fff;border:1px solid #999;bottom:0;display:block;left:4px;margin:-1px;position:absolute;right:78px;top:0;transition:all .3s ease-in 0s;width:20px}.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner>.onoffswitch-offText{right:-100%}.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner>.onoffswitch-onText{left:0}.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch{left:calc(100% - 20px)}";
|
|
688
|
+
styleInject(css_248z$1);
|
|
690
689
|
|
|
691
690
|
var OnOff = /** @class */ (function (_super) {
|
|
692
691
|
__extends(OnOff, _super);
|
|
@@ -733,7 +732,7 @@ var OnOff = /** @class */ (function (_super) {
|
|
|
733
732
|
inner.append("div")
|
|
734
733
|
.attr("class", "onoffswitch-onText")
|
|
735
734
|
.style("padding-left", (this.containerRadius() / 2) + "px")
|
|
736
|
-
.style("width", "calc(100% - "
|
|
735
|
+
.style("width", "calc(100% - ".concat((this.containerRadius() / 2), "px)"))
|
|
737
736
|
.text(this.onText());
|
|
738
737
|
label.append("div")
|
|
739
738
|
.attr("class", "onoffswitch-switch");
|
|
@@ -959,8 +958,8 @@ Select.prototype.implements(IInput.prototype);
|
|
|
959
958
|
Select.prototype.publish("selectOptions", [], "array", "Array of options used to fill a dropdown list");
|
|
960
959
|
Select.prototype.publish("maxWidth", 120, "number", "Width", null, { optional: true });
|
|
961
960
|
|
|
962
|
-
var css_248z
|
|
963
|
-
styleInject(css_248z
|
|
961
|
+
var css_248z = ".form_Slider .ticks{font:10px sans-serif}.form_Slider .track,.form_Slider .track-inset,.form_Slider .track-overlay{stroke-linecap:round}.form_Slider .track{stroke:#000;stroke-opacity:.3;stroke-width:10px}.form_Slider .track-inset{stroke:#ddd;stroke-width:8px}.form_Slider .track-overlay{stroke-width:50px;stroke:transparent;cursor:crosshair;pointer-events:stroke}.form_Slider .handle{fill:#fff;stroke:#000;stroke-opacity:.5;stroke-width:1.25px}.form_Slider .tick-line{stroke:#000;stroke-opacity:.5;stroke-width:1px;shape-rendering:crispEdges}";
|
|
962
|
+
styleInject(css_248z);
|
|
964
963
|
|
|
965
964
|
var Slider = /** @class */ (function (_super) {
|
|
966
965
|
__extends(Slider, _super);
|
|
@@ -1041,7 +1040,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
1041
1040
|
}));
|
|
1042
1041
|
this.slider.insert("g", ".track-overlay")
|
|
1043
1042
|
.attr("class", "ticks")
|
|
1044
|
-
.attr("transform", "translate(0, "
|
|
1043
|
+
.attr("transform", "translate(0, ".concat(this.fontSize() + (this.tickHeight() / 2), ")"));
|
|
1045
1044
|
this.handleRight = this.slider.insert("path", ".track-overlay")
|
|
1046
1045
|
.attr("class", "handle");
|
|
1047
1046
|
this.handleLeft = this.slider.insert("path", ".track-overlay")
|
|
@@ -1125,10 +1124,10 @@ var Slider = /** @class */ (function (_super) {
|
|
|
1125
1124
|
Slider.prototype.updateHandles = function () {
|
|
1126
1125
|
var _this = this;
|
|
1127
1126
|
this.handleLeft
|
|
1128
|
-
.attr("transform", "translate("
|
|
1127
|
+
.attr("transform", "translate(".concat(this.handleLeftPos, ", -28)"))
|
|
1129
1128
|
.attr("d", function (d) { return _this.handlePath("l"); });
|
|
1130
1129
|
this.handleRight
|
|
1131
|
-
.attr("transform", "translate("
|
|
1130
|
+
.attr("transform", "translate(".concat(this.handleRightPos, ", -28)"))
|
|
1132
1131
|
.attr("d", function (d) { return _this.handlePath("r"); });
|
|
1133
1132
|
};
|
|
1134
1133
|
Slider.prototype.lowPos = function () {
|