@byteluck-fe/model-driven-controls 7.0.0-props.39 → 7.0.0-props.40
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.
|
@@ -74,7 +74,7 @@ function _is_native_reflect_construct() {
|
|
|
74
74
|
})();
|
|
75
75
|
}
|
|
76
76
|
import SliderControl from './designer';
|
|
77
|
-
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
77
|
+
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initOptions } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
79
79
|
var SliderPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
80
80
|
"use strict";
|
|
@@ -146,17 +146,19 @@ var SliderProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
146
146
|
function SliderProperty(props) {
|
|
147
147
|
_class_call_check(this, SliderProperty);
|
|
148
148
|
var _this;
|
|
149
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
|
|
149
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
150
150
|
_this = _call_super(this, SliderProperty, [
|
|
151
151
|
props
|
|
152
|
-
]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "min", void 0), _define_property(_this, "max", void 0), _define_property(_this, "step", void 0), _define_property(_this, "showTooltip", void 0), _define_property(_this, "
|
|
152
|
+
]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "min", void 0), _define_property(_this, "max", void 0), _define_property(_this, "step", void 0), _define_property(_this, "showTooltip", void 0), _define_property(_this, "showInput", void 0), _define_property(_this, "showMarks", void 0), _define_property(_this, "marks", void 0);
|
|
153
153
|
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : SliderControl.controlName;
|
|
154
154
|
_this.defaultValue = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
155
155
|
_this.min = (_ref2 = props === null || props === void 0 ? void 0 : props.min) !== null && _ref2 !== void 0 ? _ref2 : 0;
|
|
156
156
|
_this.max = (_ref3 = props === null || props === void 0 ? void 0 : props.max) !== null && _ref3 !== void 0 ? _ref3 : 100;
|
|
157
157
|
_this.step = (_ref4 = props === null || props === void 0 ? void 0 : props.step) !== null && _ref4 !== void 0 ? _ref4 : 1;
|
|
158
158
|
_this.showTooltip = (_ref5 = props === null || props === void 0 ? void 0 : props.showTooltip) !== null && _ref5 !== void 0 ? _ref5 : true;
|
|
159
|
-
_this.
|
|
159
|
+
_this.showInput = (_ref6 = props === null || props === void 0 ? void 0 : props.showInput) !== null && _ref6 !== void 0 ? _ref6 : true;
|
|
160
|
+
_this.showMarks = (_ref7 = props === null || props === void 0 ? void 0 : props.showMarks) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
161
|
+
_this.marks = initOptions((_ref8 = props === null || props === void 0 ? void 0 : props.marks) !== null && _ref8 !== void 0 ? _ref8 : []);
|
|
160
162
|
return _this;
|
|
161
163
|
}
|
|
162
164
|
return SliderProperty;
|