@byteluck-fe/model-driven-controls 2.7.0-alpha.15a → 2.7.0-alpha.16

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 (27) hide show
  1. package/dist/esm/columnControls/CustomColumn/designer.js +1 -1
  2. package/dist/esm/columnControls/CustomColumn/runtime.js +1 -1
  3. package/dist/esm/columnControls/OperationColumn/designer.js +1 -1
  4. package/dist/esm/columnControls/OperationColumn/runtime.js +1 -1
  5. package/dist/esm/formControls/Address/property.js +1 -3
  6. package/dist/esm/formControls/Amount/property.js +1 -3
  7. package/dist/esm/formControls/Attachment/property.js +1 -3
  8. package/dist/esm/formControls/Calc/property.js +1 -3
  9. package/dist/esm/formControls/Checkbox/property.js +1 -3
  10. package/dist/esm/formControls/DateRange/property.js +2 -4
  11. package/dist/esm/formControls/Department/property.js +1 -3
  12. package/dist/esm/formControls/Department2/property.js +1 -3
  13. package/dist/esm/formControls/Employee/property.js +1 -3
  14. package/dist/esm/formControls/Employee2/property.js +1 -3
  15. package/dist/esm/formControls/Number/property.js +1 -3
  16. package/dist/esm/formControls/OrganizationSelection/property.js +1 -3
  17. package/dist/esm/formControls/Score/property.js +1 -3
  18. package/dist/esm/formControls/SearchDateRange/property.js +15 -19
  19. package/dist/esm/formControls/SearchNumberRange/property.js +1 -3
  20. package/dist/esm/formControls/SelectMultiple/property.js +1 -3
  21. package/dist/esm/formControls/Tree/property.js +1 -3
  22. package/dist/esm/formControls/VueFormItem/property.js +1 -3
  23. package/dist/esm/formControls/WPS/property.js +1 -3
  24. package/dist/esm/listControls/GridTable/designer.js +1 -1
  25. package/dist/esm/listControls/SubTable/property.js +1 -1
  26. package/dist/index.umd.js +1 -1
  27. package/package.json +5 -5
@@ -155,7 +155,7 @@ var CustomColumnControl = /*#__PURE__*/ function _target(DesignerColumnControl1)
155
155
  _this = _super.call(this, props);
156
156
  var ref = _instanceof(this, CustomColumnControl) ? this.constructor : void 0, excludes = ref.excludes, childrenMaxLength = ref.childrenMaxLength;
157
157
  _this.props = new CustomColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
158
- defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Designer');
158
+ defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
159
159
  _this.excludes = JSONCopy(excludes);
160
160
  _this.childrenMaxLength = childrenMaxLength;
161
161
  return _this;
@@ -81,7 +81,7 @@ var CustomColumnControl = /*#__PURE__*/ function(RuntimeColumnControl1) {
81
81
  var _this;
82
82
  _this = _super.call(this, props);
83
83
  _this.props = new CustomColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
84
- defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Runtime');
84
+ defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
85
85
  return _this;
86
86
  }
87
87
  return CustomColumnControl;
@@ -176,7 +176,7 @@ var OperationColumnControl = /*#__PURE__*/ function(DesignerColumnControl1) {
176
176
  var _this;
177
177
  _this = _super.call(this, props);
178
178
  _this.props = new OperationColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
179
- defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Designer');
179
+ defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
180
180
  return _this;
181
181
  }
182
182
  _createClass(OperationColumnControl, [
@@ -81,7 +81,7 @@ var OperationColumnControl = /*#__PURE__*/ function(RuntimeColumnControl1) {
81
81
  var _this;
82
82
  _this = _super.call(this, props);
83
83
  _this.props = new OperationColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
84
- defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Runtime');
84
+ defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
85
85
  return _this;
86
86
  }
87
87
  return OperationColumnControl;
@@ -80,9 +80,7 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
80
80
  _classCallCheck(this, AddressControlPropertyRuntimeRules);
81
81
  var _this;
82
82
  _this = _super.call(this, props);
83
- if (_this[0] !== undefined) {
84
- _this[0].type = 'object';
85
- }
83
+ _this[0].type = 'object';
86
84
  if (props.required && !props.isHide) {
87
85
  var valueValidate = {
88
86
  type: 'object',
@@ -151,9 +151,7 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
151
151
  _classCallCheck(this, AmountPropertyRuntimeRules);
152
152
  var _this;
153
153
  _this = _super.call(this, props);
154
- if (_this[0] !== undefined) {
155
- _this[0].type = 'object';
156
- }
154
+ _this[0].type = 'object';
157
155
  var amountMax = props.rangeMax === '' ? undefined : props.rangeMax;
158
156
  var amountMin = props.rangeMin === '' ? undefined : props.rangeMin;
159
157
  _this.push({
@@ -101,9 +101,7 @@ var AttachmentControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPr
101
101
  _classCallCheck(this, AttachmentControlPropertyRuntimeRules);
102
102
  var _this;
103
103
  _this = _super.call(this, props);
104
- if (_this[0] !== undefined) {
105
- _this[0].type = 'array';
106
- }
104
+ _this[0].type = 'array';
107
105
  _this.push({
108
106
  type: 'array',
109
107
  max: props.maxLimit,
@@ -98,9 +98,7 @@ var CalcControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProperty
98
98
  _classCallCheck(this, CalcControlPropertyRuntimeRules);
99
99
  var _this;
100
100
  _this = _super.call(this, props);
101
- if (_this[0] !== undefined) {
102
- _this[0].type = 'object';
103
- }
101
+ _this[0].type = 'object';
104
102
  _this.push({
105
103
  type: 'object',
106
104
  message: RulesMessage.getMessage('isNotObject'),
@@ -105,9 +105,7 @@ var CheckboxPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRun
105
105
  _classCallCheck(this, CheckboxPropertyRuntimeRules);
106
106
  var _this;
107
107
  _this = _super.call(this, props);
108
- if (_this[0] !== undefined) {
109
- _this[0].type = 'array';
110
- }
108
+ _this[0].type = 'array';
111
109
  _this.push({
112
110
  type: 'array',
113
111
  max: typeof props.limitMax === 'number' ? props.limitMax : undefined,
@@ -81,10 +81,8 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
81
81
  _classCallCheck(this, DateRangePropertyRuntimeRules);
82
82
  var _this;
83
83
  _this = _super.call(this, props);
84
- if (_this[0] !== undefined) {
85
- _this[0].type = 'object';
86
- }
87
- if (props.required && !props.isHide) {
84
+ _this[0].type = 'object';
85
+ if (!props.isHide) {
88
86
  _this.push({
89
87
  type: 'object',
90
88
  fields: {
@@ -79,9 +79,7 @@ var DepartmentPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyR
79
79
  _classCallCheck(this, DepartmentPropertyRuntimeRules);
80
80
  var _this;
81
81
  _this = _super.call(this, props);
82
- if (_this[0] !== undefined) {
83
- _this[0].type = 'array';
84
- }
82
+ _this[0].type = 'array';
85
83
  return _this;
86
84
  }
87
85
  return DepartmentPropertyRuntimeRules;
@@ -110,9 +110,7 @@ var Department2PropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProperty
110
110
  _classCallCheck(this, Department2PropertyRuntimeRules);
111
111
  var _this;
112
112
  _this = _super.call(this, props);
113
- if (_this[0] !== undefined) {
114
- _this[0].type = 'array';
115
- }
113
+ _this[0].type = 'array';
116
114
  return _this;
117
115
  }
118
116
  return Department2PropertyRuntimeRules;
@@ -79,9 +79,7 @@ var EmployeeControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
79
79
  _classCallCheck(this, EmployeeControlPropertyRuntimeRules);
80
80
  var _this;
81
81
  _this = _super.call(this, props);
82
- if (_this[0] !== undefined) {
83
- _this[0].type = 'array';
84
- }
82
+ _this[0].type = 'array';
85
83
  return _this;
86
84
  }
87
85
  return EmployeeControlPropertyRuntimeRules;
@@ -110,9 +110,7 @@ var Employee2ControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPro
110
110
  _classCallCheck(this, Employee2ControlPropertyRuntimeRules);
111
111
  var _this;
112
112
  _this = _super.call(this, props);
113
- if (_this[0] !== undefined) {
114
- _this[0].type = 'array';
115
- }
113
+ _this[0].type = 'array';
116
114
  return _this;
117
115
  }
118
116
  return Employee2ControlPropertyRuntimeRules;
@@ -125,9 +125,7 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
125
125
  _classCallCheck(this, NumberControlPropertyRuntimeRules);
126
126
  var _this;
127
127
  _this = _super.call(this, props);
128
- if (_this[0] !== undefined) {
129
- _this[0].type = 'number';
130
- }
128
+ _this[0].type = 'number';
131
129
  var max = props.rangeMax !== '' ? props.rangeMax : undefined;
132
130
  var min = props.rangeMin !== '' ? props.rangeMin : undefined;
133
131
  _this.push({
@@ -110,9 +110,7 @@ var OrganizationSelectionPropertyRuntimeRules = /*#__PURE__*/ function(BaseContr
110
110
  _classCallCheck(this, OrganizationSelectionPropertyRuntimeRules);
111
111
  var _this;
112
112
  _this = _super.call(this, props);
113
- if (_this[0] !== undefined) {
114
- _this[0].type = 'array';
115
- }
113
+ _this[0].type = 'array';
116
114
  return _this;
117
115
  }
118
116
  return OrganizationSelectionPropertyRuntimeRules;
@@ -116,9 +116,7 @@ var ScoreControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
116
116
  _classCallCheck(this, ScoreControlPropertyRuntimeRules);
117
117
  var _this;
118
118
  _this = _super.call(this, props);
119
- if (_this[0] !== undefined) {
120
- _this[0].type = 'number';
121
- }
119
+ _this[0].type = 'number';
122
120
  // 如果是必填情况下,最小为1,非必填的情况下,最小为0
123
121
  var min = props.required ? 1 : 0;
124
122
  _this.push({
@@ -81,26 +81,22 @@ var SearchDateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
81
81
  _classCallCheck(this, SearchDateRangePropertyRuntimeRules);
82
82
  var _this;
83
83
  _this = _super.call(this, props);
84
- if (_this[0] !== undefined) {
85
- _this[0].type = 'array';
86
- }
87
- if (props.required && !props.isHide) {
88
- _this.push({
89
- type: 'array',
90
- fields: {
91
- 0: {
92
- type: 'string',
93
- required: props.required,
94
- message: _this[0].message
95
- },
96
- 1: {
97
- type: 'string',
98
- required: props.required,
99
- message: _this[0].message
100
- }
84
+ _this[0].type = 'array';
85
+ _this.push({
86
+ type: 'array',
87
+ fields: {
88
+ 0: {
89
+ type: 'string',
90
+ required: props.required,
91
+ message: _this[0].message
92
+ },
93
+ 1: {
94
+ type: 'string',
95
+ required: props.required,
96
+ message: _this[0].message
101
97
  }
102
- });
103
- }
98
+ }
99
+ });
104
100
  return _this;
105
101
  }
106
102
  return SearchDateRangePropertyRuntimeRules;
@@ -80,9 +80,7 @@ var SearchNumberRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPr
80
80
  _classCallCheck(this, SearchNumberRangePropertyRuntimeRules);
81
81
  var _this;
82
82
  _this = _super.call(this, props);
83
- if (_this[0] !== undefined) {
84
- _this[0].type = 'array';
85
- }
83
+ _this[0].type = 'array';
86
84
  _this.push({
87
85
  validator: function validator(rule, value) {
88
86
  if (props.required) {
@@ -89,9 +89,7 @@ var SelectMultipleControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseContr
89
89
  _classCallCheck(this, SelectMultipleControlPropertyRuntimeRules);
90
90
  var _this;
91
91
  _this = _super.call(this, props);
92
- if (_this[0] !== undefined) {
93
- _this[0].type = 'array';
94
- }
92
+ _this[0].type = 'array';
95
93
  return _this;
96
94
  }
97
95
  return SelectMultipleControlPropertyRuntimeRules;
@@ -129,9 +129,7 @@ var TreePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntime
129
129
  _classCallCheck(this, TreePropertyRuntimeRules);
130
130
  var _this;
131
131
  _this = _super.call(this, props);
132
- if (_this[0] !== undefined) {
133
- _this[0].type = 'array';
134
- }
132
+ _this[0].type = 'array';
135
133
  return _this;
136
134
  }
137
135
  return TreePropertyRuntimeRules;
@@ -94,9 +94,7 @@ var VueFormItemPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProperty
94
94
  _classCallCheck(this, VueFormItemPropertyRuntimeRules);
95
95
  var _this;
96
96
  _this = _super.call(this, props);
97
- if (_this[0] !== undefined) {
98
- _this[0].type = 'any';
99
- }
97
+ _this[0].type = 'any';
100
98
  return _this;
101
99
  }
102
100
  return VueFormItemPropertyRuntimeRules;
@@ -134,9 +134,7 @@ var WPSPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeR
134
134
  _classCallCheck(this, WPSPropertyRuntimeRules);
135
135
  var _this;
136
136
  _this = _super.call(this, props);
137
- if (_this[0] !== undefined) {
138
- _this[0].type = 'array';
139
- }
137
+ _this[0].type = 'array';
140
138
  return _this;
141
139
  }
142
140
  return WPSPropertyRuntimeRules;
@@ -178,7 +178,7 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl1) {
178
178
  var ref;
179
179
  _this = _super.call(this, props);
180
180
  _this.props = new GridTableControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
181
- defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Designer');
181
+ defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
182
182
  if ((props === null || props === void 0 ? void 0 : props.props.headers) === undefined) {
183
183
  _this.props.headers = [
184
184
  new DesignerOrderColumnControl(),
@@ -176,7 +176,7 @@ var SubTableControlProperty = /**
176
176
  function SubTableControlProperty(parent, props) {
177
177
  _classCallCheck(this, SubTableControlProperty);
178
178
  var _this;
179
- _this = _super.call(this, parent, props, SubTableControlProperty.mode);
179
+ _this = _super.call(this, parent, props);
180
180
  var ref;
181
181
  _this.caption = (ref = props === null || props === void 0 ? void 0 : props.caption) !== null && ref !== void 0 ? ref : SubTableControl.controlName;
182
182
  var ref1;