@byteluck-fe/model-driven-controls 7.0.0-props.32 → 7.0.0-props.34
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/esm/baseControls/Link/designer.js +0 -8
- package/dist/esm/baseControls/Link/property.js +9 -10
- package/dist/esm/baseControls/Text/designer.js +1 -1
- package/dist/esm/formControls/Department2/designer.js +0 -4
- package/dist/esm/formControls/Department2/property.js +14 -15
- package/dist/esm/formControls/Employee2/designer.js +0 -4
- package/dist/esm/formControls/Employee2/property.js +12 -13
- package/dist/esm/formControls/RichText/designer.js +2 -8
- package/dist/esm/formControls/RichText/property.js +23 -49
- package/dist/esm/formControls/Slider/designer.js +192 -0
- package/dist/esm/formControls/Slider/index.js +11 -0
- package/dist/esm/formControls/Slider/property.js +167 -0
- package/dist/esm/formControls/Slider/runtime.js +114 -0
- package/dist/esm/formControls/Slider/schema.json +186 -0
- package/dist/esm/formControls/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Link/property.d.ts +0 -21
- package/dist/types/formControls/Department2/property.d.ts +0 -7
- package/dist/types/formControls/Employee2/property.d.ts +0 -7
- package/dist/types/formControls/RichText/property.d.ts +0 -14
- package/dist/types/formControls/Slider/designer.d.ts +15 -0
- package/dist/types/formControls/Slider/index.d.ts +12 -0
- package/dist/types/formControls/Slider/property.d.ts +65 -0
- package/dist/types/formControls/Slider/runtime.d.ts +12 -0
- package/dist/types/formControls/index.d.ts +2 -0
- package/dist/types/type.d.ts +2 -1
- package/package.json +2 -2
|
@@ -133,10 +133,6 @@ _define_property(LinkControl, "setting", [
|
|
|
133
133
|
key: 'link-url',
|
|
134
134
|
visible: true
|
|
135
135
|
},
|
|
136
|
-
{
|
|
137
|
-
key: 'description',
|
|
138
|
-
visible: true
|
|
139
|
-
},
|
|
140
136
|
{
|
|
141
137
|
key: 'common-button-radio',
|
|
142
138
|
visible: true,
|
|
@@ -170,10 +166,6 @@ _define_property(LinkControl, "setting", [
|
|
|
170
166
|
name: 'icon',
|
|
171
167
|
label: getLocaleText('CMD.1a781774579044216')
|
|
172
168
|
},
|
|
173
|
-
{
|
|
174
|
-
key: 'script-setting',
|
|
175
|
-
visible: true
|
|
176
|
-
},
|
|
177
169
|
{
|
|
178
170
|
key: 'common-setting',
|
|
179
171
|
visible: true,
|
|
@@ -81,19 +81,18 @@ var LinkProperty = /*#__PURE__*/ function(Property) {
|
|
|
81
81
|
function LinkProperty(props) {
|
|
82
82
|
_class_call_check(this, LinkProperty);
|
|
83
83
|
var _this;
|
|
84
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5
|
|
84
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
85
85
|
_this = _call_super(this, LinkProperty, [
|
|
86
86
|
props
|
|
87
|
-
]), _define_property(_this, "content", void 0), _define_property(_this, "url", void 0),
|
|
87
|
+
]), _define_property(_this, "content", void 0), _define_property(_this, "url", void 0), // public description: string
|
|
88
|
+
_define_property(_this, "position", void 0), _define_property(_this, "color", void 0), _define_property(_this, "openMode", void 0), _define_property(_this, "icon", void 0);
|
|
88
89
|
_this.content = (_ref = props === null || props === void 0 ? void 0 : props.content) !== null && _ref !== void 0 ? _ref : getLocaleText('CMD.linkContent', null, '我是一个链接');
|
|
89
|
-
|
|
90
|
-
_this.position = (
|
|
91
|
-
_this.color = (
|
|
92
|
-
_this.
|
|
93
|
-
_this.
|
|
94
|
-
_this.
|
|
95
|
-
_this.openMode = (_ref7 = props === null || props === void 0 ? void 0 : props.openMode) !== null && _ref7 !== void 0 ? _ref7 : 'new';
|
|
96
|
-
_this.icon = (_ref8 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref8 !== void 0 ? _ref8 : '';
|
|
90
|
+
// this.description = props?.description ?? ''
|
|
91
|
+
_this.position = (_ref1 = props === null || props === void 0 ? void 0 : props.position) !== null && _ref1 !== void 0 ? _ref1 : 'left';
|
|
92
|
+
_this.color = (_ref2 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref2 !== void 0 ? _ref2 : 'primary';
|
|
93
|
+
_this.url = (_ref3 = props === null || props === void 0 ? void 0 : props.url) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
94
|
+
_this.openMode = (_ref4 = props === null || props === void 0 ? void 0 : props.openMode) !== null && _ref4 !== void 0 ? _ref4 : 'new';
|
|
95
|
+
_this.icon = (_ref5 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
97
96
|
return _this;
|
|
98
97
|
}
|
|
99
98
|
return LinkProperty;
|
|
@@ -127,11 +127,11 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
127
127
|
function Department2Property(props) {
|
|
128
128
|
_class_call_check(this, Department2Property);
|
|
129
129
|
var _this;
|
|
130
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16
|
|
130
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16;
|
|
131
131
|
var _props_disabledSelectedFilters;
|
|
132
132
|
_this = _call_super(this, Department2Property, [
|
|
133
133
|
props
|
|
134
|
-
]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "
|
|
134
|
+
]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "displayLevel", void 0), _define_property(_this, "showSubDept", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "datasourceType", void 0), _define_property(_this, "businessType", void 0), _define_property(_this, "businessScope", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "defaultShowOptions", void 0), /**
|
|
135
135
|
* 不可选中部门的配置条件
|
|
136
136
|
* */ _define_property(_this, "disabledSelectedFilters", void 0);
|
|
137
137
|
_this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
|
|
@@ -140,18 +140,17 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
140
140
|
_this.defaultValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref3 !== void 0 ? _ref3 : 'none';
|
|
141
141
|
_this.rangeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref4 !== void 0 ? _ref4 : [];
|
|
142
142
|
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
|
|
143
|
-
_this.
|
|
144
|
-
_this.
|
|
145
|
-
_this.
|
|
146
|
-
_this.
|
|
147
|
-
_this.
|
|
148
|
-
_this.datasourceBind = new SuperDataSourceBind((_ref11 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref11 !== void 0 ? _ref11 : {
|
|
143
|
+
_this.displayLevel = (_ref6 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref6 !== void 0 ? _ref6 : 1;
|
|
144
|
+
_this.showSubDept = (_ref7 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref7 !== void 0 ? _ref7 : true;
|
|
145
|
+
_this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : Department2Control.controlName;
|
|
146
|
+
_this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : getLocaleText('CMD.pleaseSelectDept', null, '请选择部门');
|
|
147
|
+
_this.datasourceBind = new SuperDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
|
|
149
148
|
attributes: Department2Control.controlCustomAttributes
|
|
150
149
|
});
|
|
151
|
-
_this.datasourceType = (
|
|
152
|
-
_this.businessScope = (
|
|
153
|
-
_this.businessType = (
|
|
154
|
-
_this.openMultistageFilling = (
|
|
150
|
+
_this.datasourceType = (_ref11 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref11 !== void 0 ? _ref11 : DepartmentType.INTERNAL;
|
|
151
|
+
_this.businessScope = (_ref12 = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _ref12 !== void 0 ? _ref12 : [];
|
|
152
|
+
_this.businessType = (_ref13 = props === null || props === void 0 ? void 0 : props.businessType) !== null && _ref13 !== void 0 ? _ref13 : AssignType.ALL;
|
|
153
|
+
_this.openMultistageFilling = (_ref14 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref14 !== void 0 ? _ref14 : false;
|
|
155
154
|
_this.multistageFilling = [];
|
|
156
155
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
157
156
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -159,13 +158,13 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
159
158
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
160
159
|
});
|
|
161
160
|
}
|
|
162
|
-
_this.defaultShowOptions = (
|
|
163
|
-
_this.disabledSelectedFilters = (
|
|
161
|
+
_this.defaultShowOptions = (_ref15 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref15 !== void 0 ? _ref15 : false;
|
|
162
|
+
_this.disabledSelectedFilters = (_ref16 = props === null || props === void 0 ? void 0 : (_props_disabledSelectedFilters = props.disabledSelectedFilters) === null || _props_disabledSelectedFilters === void 0 ? void 0 : _props_disabledSelectedFilters.map(function(item) {
|
|
164
163
|
if (item.children !== undefined) {
|
|
165
164
|
return new FieldFilterConditions(item);
|
|
166
165
|
}
|
|
167
166
|
return new FieldFilterCondition(item);
|
|
168
|
-
})) !== null &&
|
|
167
|
+
})) !== null && _ref16 !== void 0 ? _ref16 : [];
|
|
169
168
|
return _this;
|
|
170
169
|
}
|
|
171
170
|
return Department2Property;
|
|
@@ -127,28 +127,27 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
127
127
|
function Employee2Property(props) {
|
|
128
128
|
_class_call_check(this, Employee2Property);
|
|
129
129
|
var _this;
|
|
130
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15
|
|
130
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
|
|
131
131
|
_this = _call_super(this, Employee2Property, [
|
|
132
132
|
props
|
|
133
|
-
]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "
|
|
133
|
+
]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "datasourceType", void 0), _define_property(_this, "insideType", void 0), _define_property(_this, "externalType", void 0), _define_property(_this, "externalScope", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "mainDeptFlag", void 0), _define_property(_this, "defaultShowOptions", void 0);
|
|
134
134
|
_this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
|
|
135
135
|
_this.range = (_ref1 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref1 !== void 0 ? _ref1 : 'all';
|
|
136
136
|
_this.rangeOptions = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
137
137
|
_this.multiple = (_ref3 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
138
138
|
_this.defaultValueType = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref4 !== void 0 ? _ref4 : 'none';
|
|
139
139
|
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
|
|
140
|
-
_this.
|
|
141
|
-
_this.
|
|
142
|
-
_this.
|
|
143
|
-
_this.datasourceBind = new SuperDataSourceBind((_ref9 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref9 !== void 0 ? _ref9 : {
|
|
140
|
+
_this.caption = (_ref6 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref6 !== void 0 ? _ref6 : Employee2Control.controlName;
|
|
141
|
+
_this.placeholder = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref7 !== void 0 ? _ref7 : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
|
|
142
|
+
_this.datasourceBind = new SuperDataSourceBind((_ref8 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref8 !== void 0 ? _ref8 : {
|
|
144
143
|
attributes: Employee2Control.controlCustomAttributes
|
|
145
144
|
});
|
|
146
|
-
_this.datasourceType = (
|
|
147
|
-
_this.insideType = (
|
|
148
|
-
_this.externalType = (
|
|
149
|
-
_this.externalScope = (
|
|
150
|
-
_this.openMultistageFilling = (
|
|
151
|
-
_this.mainDeptFlag = (
|
|
145
|
+
_this.datasourceType = (_ref9 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref9 !== void 0 ? _ref9 : OrganizeType.INTERNAL; //默认内部组织 EXTERNAL 外部组织
|
|
146
|
+
_this.insideType = (_ref10 = props === null || props === void 0 ? void 0 : props.insideType) !== null && _ref10 !== void 0 ? _ref10 : InternalType.ADMIN;
|
|
147
|
+
_this.externalType = (_ref11 = props === null || props === void 0 ? void 0 : props.externalType) !== null && _ref11 !== void 0 ? _ref11 : AssignType.ALL;
|
|
148
|
+
_this.externalScope = (_ref12 = props === null || props === void 0 ? void 0 : props.externalScope) !== null && _ref12 !== void 0 ? _ref12 : [];
|
|
149
|
+
_this.openMultistageFilling = (_ref13 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref13 !== void 0 ? _ref13 : false;
|
|
150
|
+
_this.mainDeptFlag = (_ref14 = props === null || props === void 0 ? void 0 : props.mainDeptFlag) !== null && _ref14 !== void 0 ? _ref14 : false;
|
|
152
151
|
_this.multistageFilling = [];
|
|
153
152
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
154
153
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -156,7 +155,7 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
156
155
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
157
156
|
});
|
|
158
157
|
}
|
|
159
|
-
_this.defaultShowOptions = (
|
|
158
|
+
_this.defaultShowOptions = (_ref15 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref15 !== void 0 ? _ref15 : false;
|
|
160
159
|
return _this;
|
|
161
160
|
}
|
|
162
161
|
return Employee2Property;
|
|
@@ -201,14 +201,8 @@ _define_property(RichTextControl, "setting", [
|
|
|
201
201
|
key: 'min-length',
|
|
202
202
|
visible: true
|
|
203
203
|
},
|
|
204
|
-
{
|
|
205
|
-
|
|
206
|
-
visible: true
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
key: 'toolbar-options',
|
|
210
|
-
visible: true
|
|
211
|
-
},
|
|
204
|
+
// { key: 'height', visible: true },
|
|
205
|
+
// { key: 'toolbar-options', visible: true },
|
|
212
206
|
{
|
|
213
207
|
key: 'rich-text',
|
|
214
208
|
visible: true
|
|
@@ -138,57 +138,31 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
138
138
|
function RichTextProperty(props) {
|
|
139
139
|
_class_call_check(this, RichTextProperty);
|
|
140
140
|
var _this;
|
|
141
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9
|
|
141
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
142
142
|
_this = _call_super(this, RichTextProperty, [
|
|
143
143
|
props
|
|
144
|
-
]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0),
|
|
144
|
+
]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), // public height: number
|
|
145
|
+
// public toolbarOptions: Array<string>
|
|
146
|
+
_define_property(_this, "defaultValue", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "aiGeneration", void 0), _define_property(_this, "aiOptions", void 0), _define_property(_this, "autoHeight", void 0), _define_property(_this, "lineEllipsis", void 0);
|
|
145
147
|
_this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 50000;
|
|
146
148
|
_this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
'outdent',
|
|
165
|
-
'indent',
|
|
166
|
-
'|',
|
|
167
|
-
'styles',
|
|
168
|
-
'fontfamily',
|
|
169
|
-
'fontsize',
|
|
170
|
-
'|',
|
|
171
|
-
'bullist',
|
|
172
|
-
'numlist',
|
|
173
|
-
'|',
|
|
174
|
-
'blockquote',
|
|
175
|
-
'subscript',
|
|
176
|
-
'superscript',
|
|
177
|
-
'removeformat',
|
|
178
|
-
'|',
|
|
179
|
-
'table',
|
|
180
|
-
'image',
|
|
181
|
-
'hr',
|
|
182
|
-
'preview',
|
|
183
|
-
'|',
|
|
184
|
-
'fullscreen'
|
|
185
|
-
];
|
|
186
|
-
_this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
187
|
-
_this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : RichTextControl.controlName;
|
|
188
|
-
_this.placeholder = (_ref6 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref6 !== void 0 ? _ref6 : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
189
|
-
_this.aiContentSearch = (_ref7 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
190
|
-
_this.aiGeneration = (_ref8 = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
191
|
-
_this.aiOptions = initAiOptions((_ref9 = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _ref9 !== void 0 ? _ref9 : [
|
|
149
|
+
// this.height = props?.height ?? 400
|
|
150
|
+
// this.toolbarOptions = props?.toolbarOptions ?? [
|
|
151
|
+
// 'undo', 'redo', '|',
|
|
152
|
+
// 'forecolor', 'backcolor', 'bold', 'italic', 'underline', 'strikethrough', 'link', '|',
|
|
153
|
+
// 'alignleft', 'aligncenter', 'alignright', 'alignjustify', 'outdent', 'indent', '|',
|
|
154
|
+
// 'styles', 'fontfamily', 'fontsize', '|',
|
|
155
|
+
// 'bullist', 'numlist', '|',
|
|
156
|
+
// 'blockquote', 'subscript', 'superscript', 'removeformat', '|',
|
|
157
|
+
// 'table', 'image', 'hr', 'preview', '|',
|
|
158
|
+
// 'fullscreen'
|
|
159
|
+
// ]
|
|
160
|
+
_this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
161
|
+
_this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : RichTextControl.controlName;
|
|
162
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
163
|
+
_this.aiContentSearch = (_ref5 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
164
|
+
_this.aiGeneration = (_ref6 = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
165
|
+
_this.aiOptions = initAiOptions((_ref7 = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _ref7 !== void 0 ? _ref7 : [
|
|
192
166
|
{
|
|
193
167
|
label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
|
|
194
168
|
cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
|
|
@@ -205,8 +179,8 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
205
179
|
checked: false
|
|
206
180
|
}
|
|
207
181
|
]);
|
|
208
|
-
_this.autoHeight = (
|
|
209
|
-
_this.lineEllipsis = (
|
|
182
|
+
_this.autoHeight = (_ref8 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
183
|
+
_this.lineEllipsis = (_ref9 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref9 !== void 0 ? _ref9 : 1;
|
|
210
184
|
return _this;
|
|
211
185
|
}
|
|
212
186
|
return RichTextProperty;
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _defineProperties(target, props) {
|
|
17
|
+
for(var i = 0; i < props.length; i++){
|
|
18
|
+
var descriptor = props[i];
|
|
19
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
20
|
+
descriptor.configurable = true;
|
|
21
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
22
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
26
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
27
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
28
|
+
return Constructor;
|
|
29
|
+
}
|
|
30
|
+
function _define_property(obj, key, value) {
|
|
31
|
+
if (key in obj) {
|
|
32
|
+
Object.defineProperty(obj, key, {
|
|
33
|
+
value: value,
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
obj[key] = value;
|
|
40
|
+
}
|
|
41
|
+
return obj;
|
|
42
|
+
}
|
|
43
|
+
function _get_prototype_of(o) {
|
|
44
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
45
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46
|
+
};
|
|
47
|
+
return _get_prototype_of(o);
|
|
48
|
+
}
|
|
49
|
+
function _inherits(subClass, superClass) {
|
|
50
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
51
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
52
|
+
}
|
|
53
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
54
|
+
constructor: {
|
|
55
|
+
value: subClass,
|
|
56
|
+
writable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
|
+
}
|
|
62
|
+
function _possible_constructor_return(self, call) {
|
|
63
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
64
|
+
return call;
|
|
65
|
+
}
|
|
66
|
+
return _assert_this_initialized(self);
|
|
67
|
+
}
|
|
68
|
+
function _set_prototype_of(o, p) {
|
|
69
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
70
|
+
o.__proto__ = p;
|
|
71
|
+
return o;
|
|
72
|
+
};
|
|
73
|
+
return _set_prototype_of(o, p);
|
|
74
|
+
}
|
|
75
|
+
function _type_of(obj) {
|
|
76
|
+
"@swc/helpers - typeof";
|
|
77
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
|
+
}
|
|
79
|
+
function _is_native_reflect_construct() {
|
|
80
|
+
try {
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
86
|
+
}
|
|
87
|
+
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
|
+
import SliderProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
91
|
+
var SliderControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
92
|
+
"use strict";
|
|
93
|
+
_inherits(SliderControl, DesignerFormControl);
|
|
94
|
+
function SliderControl(props) {
|
|
95
|
+
_class_call_check(this, SliderControl);
|
|
96
|
+
var _this;
|
|
97
|
+
_this = _call_super(this, SliderControl, [
|
|
98
|
+
props
|
|
99
|
+
]), _define_property(_this, "props", void 0);
|
|
100
|
+
_this.props = new SliderProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
101
|
+
return _this;
|
|
102
|
+
}
|
|
103
|
+
_create_class(SliderControl, null, [
|
|
104
|
+
{
|
|
105
|
+
key: "controlName",
|
|
106
|
+
get: function get() {
|
|
107
|
+
return getLocaleText('CMD.slider', null, '滑块');
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
key: "controlType",
|
|
112
|
+
get: function get() {
|
|
113
|
+
return 'slider';
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
key: "controlIcon",
|
|
118
|
+
get: function get() {
|
|
119
|
+
return 'iconjishuqi';
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
]);
|
|
123
|
+
return SliderControl;
|
|
124
|
+
}(DesignerFormControl);
|
|
125
|
+
_define_property(SliderControl, "controlEventKeys", [
|
|
126
|
+
'on_change',
|
|
127
|
+
'on_focus',
|
|
128
|
+
'on_blur'
|
|
129
|
+
]);
|
|
130
|
+
_define_property(SliderControl, "controlFieldType", FieldTypes.DECIMAL);
|
|
131
|
+
_define_property(SliderControl, "setting", [
|
|
132
|
+
{
|
|
133
|
+
key: 'data-bind',
|
|
134
|
+
visible: true
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
key: 'caption',
|
|
138
|
+
showItems: [
|
|
139
|
+
COMMON_SETTING_TYPE.CAPTION,
|
|
140
|
+
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
141
|
+
],
|
|
142
|
+
visible: true
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
key: 'caption-style',
|
|
146
|
+
showItems: [
|
|
147
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
148
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
149
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
150
|
+
],
|
|
151
|
+
visible: true
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
key: 'label-position',
|
|
155
|
+
visible: true
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
key: 'default-state',
|
|
159
|
+
visible: true
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
key: 'common-setting',
|
|
163
|
+
visible: true,
|
|
164
|
+
showItems: [
|
|
165
|
+
COMMON_SETTING_TYPE.REQUIRED,
|
|
166
|
+
COMMON_SETTING_TYPE.IS_HIDE,
|
|
167
|
+
COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
|
|
168
|
+
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
key: 'default-value',
|
|
173
|
+
visible: true
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
key: 'counter-setting',
|
|
177
|
+
visible: true
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
key: 'common-switch',
|
|
181
|
+
visible: true,
|
|
182
|
+
name: 'showTooltip',
|
|
183
|
+
label: getLocaleText('CMD.showPromptLabel', null, '是否显示提示标签'),
|
|
184
|
+
default: true
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
key: 'super-setting',
|
|
188
|
+
visible: true
|
|
189
|
+
}
|
|
190
|
+
]);
|
|
191
|
+
export default SliderControl;
|
|
192
|
+
export { SliderControl as DesignerSliderControl };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
export default {
|
|
5
|
+
Designer: Designer,
|
|
6
|
+
Runtime: Runtime,
|
|
7
|
+
Property: Property
|
|
8
|
+
};
|
|
9
|
+
export * from './designer';
|
|
10
|
+
export * from './runtime';
|
|
11
|
+
export * from './property';
|