@byteluck-fe/model-driven-controls 2.7.0-alpha.28a → 2.7.0-alpha.29

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 (33) hide show
  1. package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +2 -2
  2. package/dist/esm/columnControls/ArrayColumn/designer.js +3 -3
  3. package/dist/esm/columnControls/AutoNumberColumn/designer.js +2 -2
  4. package/dist/esm/columnControls/CustomColumn/designer.js +1 -1
  5. package/dist/esm/columnControls/CustomColumn/runtime.js +1 -1
  6. package/dist/esm/columnControls/DecimalColumn/designer.js +3 -3
  7. package/dist/esm/columnControls/LocationColumn/designer.js +2 -2
  8. package/dist/esm/columnControls/OperationColumn/designer.js +1 -1
  9. package/dist/esm/columnControls/OperationColumn/runtime.js +1 -1
  10. package/dist/esm/columnControls/VarcharColumn/designer.js +3 -3
  11. package/dist/esm/formControls/Address/property.js +1 -3
  12. package/dist/esm/formControls/Amount/property.js +1 -3
  13. package/dist/esm/formControls/Attachment/property.js +1 -3
  14. package/dist/esm/formControls/Calc/property.js +1 -3
  15. package/dist/esm/formControls/Checkbox/property.js +1 -3
  16. package/dist/esm/formControls/DateRange/property.js +2 -4
  17. package/dist/esm/formControls/Department/property.js +1 -3
  18. package/dist/esm/formControls/Department2/property.js +1 -3
  19. package/dist/esm/formControls/Employee/property.js +1 -3
  20. package/dist/esm/formControls/Employee2/property.js +1 -3
  21. package/dist/esm/formControls/Number/property.js +1 -3
  22. package/dist/esm/formControls/OrganizationSelection/property.js +1 -3
  23. package/dist/esm/formControls/Score/property.js +1 -3
  24. package/dist/esm/formControls/SearchDateRange/property.js +15 -19
  25. package/dist/esm/formControls/SearchNumberRange/property.js +1 -3
  26. package/dist/esm/formControls/SelectMultiple/property.js +1 -3
  27. package/dist/esm/formControls/Tree/property.js +1 -3
  28. package/dist/esm/formControls/VueFormItem/property.js +1 -3
  29. package/dist/esm/formControls/WPS/property.js +1 -3
  30. package/dist/esm/listControls/GridTable/designer.js +1 -1
  31. package/dist/esm/listControls/SubTable/property.js +1 -1
  32. package/dist/index.umd.js +1 -1
  33. package/package.json +5 -5
@@ -125,11 +125,11 @@ _define_property(ApprovalStatusColumnControl, "setting", [
125
125
  visible: true
126
126
  },
127
127
  {
128
- key: "column-link-operation",
128
+ key: "column-fixed",
129
129
  visible: true
130
130
  },
131
131
  {
132
- key: "column-fixed",
132
+ key: "column-link-operation",
133
133
  visible: true
134
134
  },
135
135
  {
@@ -125,15 +125,15 @@ _define_property(ArrayColumnControl, "setting", [
125
125
  visible: true
126
126
  },
127
127
  {
128
- key: "column-link-operation",
128
+ key: "column-fixed",
129
129
  visible: true
130
130
  },
131
131
  {
132
- key: "column-fixed",
132
+ key: "column-options-setting",
133
133
  visible: true
134
134
  },
135
135
  {
136
- key: "column-options-setting",
136
+ key: "column-link-operation",
137
137
  visible: true
138
138
  },
139
139
  {
@@ -125,11 +125,11 @@ _define_property(AutoNumberColumnControl, "setting", [
125
125
  visible: true
126
126
  },
127
127
  {
128
- key: "column-link-operation",
128
+ key: "column-fixed",
129
129
  visible: true
130
130
  },
131
131
  {
132
- key: "column-fixed",
132
+ key: "column-link-operation",
133
133
  visible: true
134
134
  },
135
135
  {
@@ -184,7 +184,7 @@ var CustomColumnControl = /*#__PURE__*/ function _target(DesignerColumnControl)
184
184
  _define_property(_assert_this_initialized(_this), "children", void 0);
185
185
  var _ref = _instanceof(this, CustomColumnControl) ? this.constructor : void 0, excludes = _ref.excludes, childrenMaxLength = _ref.childrenMaxLength;
186
186
  _this.props = new CustomColumnControlProperty((_props = props) === null || _props === void 0 ? void 0 : _props.props);
187
- defineControlArrayToProperty(_assert_this_initialized(_this), "children", (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.children, undefined, "Designer");
187
+ defineControlArrayToProperty(_assert_this_initialized(_this), "children", (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.children);
188
188
  _this.excludes = JSONCopy(excludes);
189
189
  _this.childrenMaxLength = childrenMaxLength;
190
190
  return _this;
@@ -97,7 +97,7 @@ var CustomColumnControl = /*#__PURE__*/ function(RuntimeColumnControl) {
97
97
  _define_property(_assert_this_initialized(_this), "props", void 0);
98
98
  _define_property(_assert_this_initialized(_this), "children", void 0);
99
99
  _this.props = new CustomColumnControlProperty((_props = props) === null || _props === void 0 ? void 0 : _props.props);
100
- defineControlArrayToProperty(_assert_this_initialized(_this), "children", (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.children, undefined, "Runtime");
100
+ defineControlArrayToProperty(_assert_this_initialized(_this), "children", (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.children);
101
101
  return _this;
102
102
  }
103
103
  return CustomColumnControl;
@@ -172,15 +172,15 @@ _define_property(DecimalColumnControl, "setting", [
172
172
  visible: true
173
173
  },
174
174
  {
175
- key: "column-link-operation",
175
+ key: "column-fixed",
176
176
  visible: true
177
177
  },
178
178
  {
179
- key: "column-fixed",
179
+ key: "column-options-setting",
180
180
  visible: true
181
181
  },
182
182
  {
183
- key: "column-options-setting",
183
+ key: "column-link-operation",
184
184
  visible: true
185
185
  },
186
186
  {
@@ -125,11 +125,11 @@ _define_property(LocationColumnControl, "setting", [
125
125
  visible: true
126
126
  },
127
127
  {
128
- key: "column-link-operation",
128
+ key: "column-fixed",
129
129
  visible: true
130
130
  },
131
131
  {
132
- key: "column-fixed",
132
+ key: "column-link-operation",
133
133
  visible: true
134
134
  },
135
135
  {
@@ -297,7 +297,7 @@ var OperationColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
297
297
  _define_property(_assert_this_initialized(_this), "props", void 0);
298
298
  _define_property(_assert_this_initialized(_this), "children", void 0);
299
299
  _this.props = new OperationColumnControlProperty((_props = props) === null || _props === void 0 ? void 0 : _props.props);
300
- defineControlArrayToProperty(_assert_this_initialized(_this), "children", (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.children, undefined, "Designer");
300
+ defineControlArrayToProperty(_assert_this_initialized(_this), "children", (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.children);
301
301
  return _this;
302
302
  }
303
303
  _create_class(OperationColumnControl, [
@@ -97,7 +97,7 @@ var OperationColumnControl = /*#__PURE__*/ function(RuntimeColumnControl) {
97
97
  _define_property(_assert_this_initialized(_this), "props", void 0);
98
98
  _define_property(_assert_this_initialized(_this), "children", void 0);
99
99
  _this.props = new OperationColumnControlProperty((_props = props) === null || _props === void 0 ? void 0 : _props.props);
100
- defineControlArrayToProperty(_assert_this_initialized(_this), "children", (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.children, undefined, "Runtime");
100
+ defineControlArrayToProperty(_assert_this_initialized(_this), "children", (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.children);
101
101
  return _this;
102
102
  }
103
103
  return OperationColumnControl;
@@ -129,15 +129,15 @@ _define_property(VarcharColumnControl, "setting", [
129
129
  visible: true
130
130
  },
131
131
  {
132
- key: "column-link-operation",
132
+ key: "column-fixed",
133
133
  visible: true
134
134
  },
135
135
  {
136
- key: "column-fixed",
136
+ key: "column-options-setting",
137
137
  visible: true
138
138
  },
139
139
  {
140
- key: "column-options-setting",
140
+ key: "column-link-operation",
141
141
  visible: true
142
142
  },
143
143
  {
@@ -93,9 +93,7 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
93
93
  _class_call_check(this, AddressControlPropertyRuntimeRules);
94
94
  var _this;
95
95
  _this = _super.call(this, props);
96
- if (_this[0] !== undefined) {
97
- _this[0].type = "object";
98
- }
96
+ _this[0].type = "object";
99
97
  if (props.required && !props.isHide) {
100
98
  var valueValidate = {
101
99
  type: "object",
@@ -175,9 +175,7 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
175
175
  _class_call_check(this, AmountPropertyRuntimeRules);
176
176
  var _this;
177
177
  _this = _super.call(this, props);
178
- if (_this[0] !== undefined) {
179
- _this[0].type = "object";
180
- }
178
+ _this[0].type = "object";
181
179
  var amountMax = props.rangeMax === "" ? undefined : props.rangeMax;
182
180
  var amountMin = props.rangeMin === "" ? undefined : props.rangeMin;
183
181
  _this.push({
@@ -114,9 +114,7 @@ var AttachmentControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPr
114
114
  _class_call_check(this, AttachmentControlPropertyRuntimeRules);
115
115
  var _this;
116
116
  _this = _super.call(this, props);
117
- if (_this[0] !== undefined) {
118
- _this[0].type = "array";
119
- }
117
+ _this[0].type = "array";
120
118
  _this.push({
121
119
  type: "array",
122
120
  max: props.maxLimit,
@@ -111,9 +111,7 @@ var CalcControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProperty
111
111
  _class_call_check(this, CalcControlPropertyRuntimeRules);
112
112
  var _this;
113
113
  _this = _super.call(this, props);
114
- if (_this[0] !== undefined) {
115
- _this[0].type = "object";
116
- }
114
+ _this[0].type = "object";
117
115
  _this.push({
118
116
  type: "object",
119
117
  message: RulesMessage.getMessage("isNotObject"),
@@ -118,9 +118,7 @@ var CheckboxPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRun
118
118
  _class_call_check(this, CheckboxPropertyRuntimeRules);
119
119
  var _this;
120
120
  _this = _super.call(this, props);
121
- if (_this[0] !== undefined) {
122
- _this[0].type = "array";
123
- }
121
+ _this[0].type = "array";
124
122
  _this.push({
125
123
  type: "array",
126
124
  max: typeof props.limitMax === "number" ? props.limitMax : undefined,
@@ -94,10 +94,8 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
94
94
  _class_call_check(this, DateRangePropertyRuntimeRules);
95
95
  var _this;
96
96
  _this = _super.call(this, props);
97
- if (_this[0] !== undefined) {
98
- _this[0].type = "object";
99
- }
100
- if (props.required && !props.isHide) {
97
+ _this[0].type = "object";
98
+ if (!props.isHide) {
101
99
  _this.push({
102
100
  type: "object",
103
101
  fields: {
@@ -92,9 +92,7 @@ var DepartmentPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyR
92
92
  _class_call_check(this, DepartmentPropertyRuntimeRules);
93
93
  var _this;
94
94
  _this = _super.call(this, props);
95
- if (_this[0] !== undefined) {
96
- _this[0].type = "array";
97
- }
95
+ _this[0].type = "array";
98
96
  return _this;
99
97
  }
100
98
  return DepartmentPropertyRuntimeRules;
@@ -123,9 +123,7 @@ var Department2PropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProperty
123
123
  _class_call_check(this, Department2PropertyRuntimeRules);
124
124
  var _this;
125
125
  _this = _super.call(this, props);
126
- if (_this[0] !== undefined) {
127
- _this[0].type = "array";
128
- }
126
+ _this[0].type = "array";
129
127
  return _this;
130
128
  }
131
129
  return Department2PropertyRuntimeRules;
@@ -92,9 +92,7 @@ var EmployeeControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
92
92
  _class_call_check(this, EmployeeControlPropertyRuntimeRules);
93
93
  var _this;
94
94
  _this = _super.call(this, props);
95
- if (_this[0] !== undefined) {
96
- _this[0].type = "array";
97
- }
95
+ _this[0].type = "array";
98
96
  return _this;
99
97
  }
100
98
  return EmployeeControlPropertyRuntimeRules;
@@ -123,9 +123,7 @@ var Employee2ControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPro
123
123
  _class_call_check(this, Employee2ControlPropertyRuntimeRules);
124
124
  var _this;
125
125
  _this = _super.call(this, props);
126
- if (_this[0] !== undefined) {
127
- _this[0].type = "array";
128
- }
126
+ _this[0].type = "array";
129
127
  return _this;
130
128
  }
131
129
  return Employee2ControlPropertyRuntimeRules;
@@ -138,9 +138,7 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
138
138
  _class_call_check(this, NumberControlPropertyRuntimeRules);
139
139
  var _this;
140
140
  _this = _super.call(this, props);
141
- if (_this[0] !== undefined) {
142
- _this[0].type = "number";
143
- }
141
+ _this[0].type = "number";
144
142
  var max = props.rangeMax !== "" ? props.rangeMax : undefined;
145
143
  var min = props.rangeMin !== "" ? props.rangeMin : undefined;
146
144
  _this.push({
@@ -123,9 +123,7 @@ var OrganizationSelectionPropertyRuntimeRules = /*#__PURE__*/ function(BaseContr
123
123
  _class_call_check(this, OrganizationSelectionPropertyRuntimeRules);
124
124
  var _this;
125
125
  _this = _super.call(this, props);
126
- if (_this[0] !== undefined) {
127
- _this[0].type = "array";
128
- }
126
+ _this[0].type = "array";
129
127
  return _this;
130
128
  }
131
129
  return OrganizationSelectionPropertyRuntimeRules;
@@ -129,9 +129,7 @@ var ScoreControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
129
129
  _class_call_check(this, ScoreControlPropertyRuntimeRules);
130
130
  var _this;
131
131
  _this = _super.call(this, props);
132
- if (_this[0] !== undefined) {
133
- _this[0].type = "number";
134
- }
132
+ _this[0].type = "number";
135
133
  // 如果是必填情况下,最小为1,非必填的情况下,最小为0
136
134
  var min = props.required ? 1 : 0;
137
135
  _this.push({
@@ -94,26 +94,22 @@ var SearchDateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
94
94
  _class_call_check(this, SearchDateRangePropertyRuntimeRules);
95
95
  var _this;
96
96
  _this = _super.call(this, props);
97
- if (_this[0] !== undefined) {
98
- _this[0].type = "array";
99
- }
100
- if (props.required && !props.isHide) {
101
- _this.push({
102
- type: "array",
103
- fields: {
104
- 0: {
105
- type: "string",
106
- required: props.required,
107
- message: _this[0].message
108
- },
109
- 1: {
110
- type: "string",
111
- required: props.required,
112
- message: _this[0].message
113
- }
97
+ _this[0].type = "array";
98
+ _this.push({
99
+ type: "array",
100
+ fields: {
101
+ 0: {
102
+ type: "string",
103
+ required: props.required,
104
+ message: _this[0].message
105
+ },
106
+ 1: {
107
+ type: "string",
108
+ required: props.required,
109
+ message: _this[0].message
114
110
  }
115
- });
116
- }
111
+ }
112
+ });
117
113
  return _this;
118
114
  }
119
115
  return SearchDateRangePropertyRuntimeRules;
@@ -93,9 +93,7 @@ var SearchNumberRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPr
93
93
  _class_call_check(this, SearchNumberRangePropertyRuntimeRules);
94
94
  var _this;
95
95
  _this = _super.call(this, props);
96
- if (_this[0] !== undefined) {
97
- _this[0].type = "array";
98
- }
96
+ _this[0].type = "array";
99
97
  _this.push({
100
98
  validator: function validator(rule, value) {
101
99
  if (props.required) {
@@ -102,9 +102,7 @@ var SelectMultipleControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseContr
102
102
  _class_call_check(this, SelectMultipleControlPropertyRuntimeRules);
103
103
  var _this;
104
104
  _this = _super.call(this, props);
105
- if (_this[0] !== undefined) {
106
- _this[0].type = "array";
107
- }
105
+ _this[0].type = "array";
108
106
  return _this;
109
107
  }
110
108
  return SelectMultipleControlPropertyRuntimeRules;
@@ -142,9 +142,7 @@ var TreePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntime
142
142
  _class_call_check(this, TreePropertyRuntimeRules);
143
143
  var _this;
144
144
  _this = _super.call(this, props);
145
- if (_this[0] !== undefined) {
146
- _this[0].type = "array";
147
- }
145
+ _this[0].type = "array";
148
146
  return _this;
149
147
  }
150
148
  return TreePropertyRuntimeRules;
@@ -107,9 +107,7 @@ var VueFormItemPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProperty
107
107
  _class_call_check(this, VueFormItemPropertyRuntimeRules);
108
108
  var _this;
109
109
  _this = _super.call(this, props);
110
- if (_this[0] !== undefined) {
111
- _this[0].type = "any";
112
- }
110
+ _this[0].type = "any";
113
111
  return _this;
114
112
  }
115
113
  return VueFormItemPropertyRuntimeRules;
@@ -148,9 +148,7 @@ var WPSPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeR
148
148
  _class_call_check(this, WPSPropertyRuntimeRules);
149
149
  var _this;
150
150
  _this = _super.call(this, props);
151
- if (_this[0] !== undefined) {
152
- _this[0].type = "array";
153
- }
151
+ _this[0].type = "array";
154
152
  return _this;
155
153
  }
156
154
  return WPSPropertyRuntimeRules;
@@ -298,7 +298,7 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl) {
298
298
  _define_property(_assert_this_initialized(_this), "props", void 0);
299
299
  _define_property(_assert_this_initialized(_this), "children", void 0);
300
300
  _this.props = new GridTableControlProperty(_assert_this_initialized(_this), (_props = props) === null || _props === void 0 ? void 0 : _props.props);
301
- defineControlArrayToProperty(_assert_this_initialized(_this), "children", (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.children, undefined, "Designer");
301
+ defineControlArrayToProperty(_assert_this_initialized(_this), "children", (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.children);
302
302
  if (((_props2 = props) === null || _props2 === void 0 ? void 0 : _props2.props.headers) === undefined) {
303
303
  _this.props.headers = [
304
304
  new DesignerOrderColumnControl(),
@@ -190,7 +190,7 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
190
190
  _class_call_check(this, SubTableControlProperty);
191
191
  var _this;
192
192
  var _props, _props1, _props2, _props3, _props4, _props5, _props6, _props7, _props8, _props9, _props10, _props11, _props12, _props13, _props14, _props15, _props16, _props17, _props18, _props19, _props20, _props21, _props22, _props23, _props24, _props25, _props26, _props27, _props28, _props29;
193
- _this = _super.call(this, parent, props, SubTableControlProperty.mode);
193
+ _this = _super.call(this, parent, props);
194
194
  /**
195
195
  * 标题
196
196
  * */ _define_property(_assert_this_initialized(_this), "caption", void 0);