@byteluck-fe/model-driven-controls 2.6.0-alpha.5 → 2.6.0-alpha.8

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.
@@ -14,3 +14,4 @@ export { default as CustomColumn } from './CustomColumn';
14
14
  export { default as OrderColumn } from './OrderColumn';
15
15
  export { default as OperationColumn } from './OperationColumn';
16
16
  export { default as EmployeeColumn } from './EmployeeColumn';
17
+ export { default as ApprovalStatusColumn } from './ApprovalStatusColumn';
@@ -85,25 +85,27 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty1) {
85
85
  var ref1;
86
86
  _this.dateType = (ref1 = props === null || props === void 0 ? void 0 : props.dateType) !== null && ref1 !== void 0 ? ref1 : DateType.DATE;
87
87
  var ref2;
88
- _this.setValueType = (ref2 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && ref2 !== void 0 ? ref2 : 'custom';
88
+ _this.dateFormat = (ref2 = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && ref2 !== void 0 ? ref2 : '';
89
89
  var ref3;
90
- _this.caption = (ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref3 !== void 0 ? ref3 : DatePickerControl.controlName;
90
+ _this.setValueType = (ref3 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && ref3 !== void 0 ? ref3 : 'custom';
91
91
  var ref4;
92
- _this.placeholder = (ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && ref4 !== void 0 ? ref4 : '请输入日期';
92
+ _this.caption = (ref4 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref4 !== void 0 ? ref4 : DatePickerControl.controlName;
93
93
  var ref5;
94
- _this.defaultValue = (ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && ref5 !== void 0 ? ref5 : '';
94
+ _this.placeholder = (ref5 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && ref5 !== void 0 ? ref5 : '请输入日期';
95
95
  var ref6;
96
- _this.limitDateList = (ref6 = props === null || props === void 0 ? void 0 : (ref = props.limitDateList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
97
- return new LimitDate(item);
98
- })) !== null && ref6 !== void 0 ? ref6 : [];
96
+ _this.defaultValue = (ref6 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && ref6 !== void 0 ? ref6 : '';
99
97
  var ref7;
98
+ _this.limitDateList = (ref7 = props === null || props === void 0 ? void 0 : (ref = props.limitDateList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
99
+ return new LimitDate(item);
100
+ })) !== null && ref7 !== void 0 ? ref7 : [];
101
+ var ref8;
100
102
  // this.multiple = props?.multiple ?? false
101
- _this.allowDateRange = (ref7 = props === null || props === void 0 ? void 0 : props.allowDateRange) !== null && ref7 !== void 0 ? ref7 : [
103
+ _this.allowDateRange = (ref8 = props === null || props === void 0 ? void 0 : props.allowDateRange) !== null && ref8 !== void 0 ? ref8 : [
102
104
  '',
103
105
  ''
104
106
  ];
105
- var ref8;
106
- _this.filterWeekend = (ref8 = props === null || props === void 0 ? void 0 : props.filterWeekend) !== null && ref8 !== void 0 ? ref8 : false;
107
+ var ref9;
108
+ _this.filterWeekend = (ref9 = props === null || props === void 0 ? void 0 : props.filterWeekend) !== null && ref9 !== void 0 ? ref9 : false;
107
109
  return _this;
108
110
  }
109
111
  return DatePickerProperty;
@@ -188,6 +188,10 @@ DateRangeControl.setting = [
188
188
  key: 'date-type',
189
189
  visible: true
190
190
  },
191
+ {
192
+ key: 'date-common-time-setting',
193
+ visible: true
194
+ },
191
195
  {
192
196
  key: 'common-setting',
193
197
  visible: true,
@@ -117,21 +117,25 @@ var DateRangeProperty = /*#__PURE__*/ function(BaseControlProperty1) {
117
117
  var ref1;
118
118
  _this.dateType = (ref1 = props === null || props === void 0 ? void 0 : props.dateType) !== null && ref1 !== void 0 ? ref1 : DateType.DATE;
119
119
  var ref2;
120
- _this.setValueType = (ref2 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && ref2 !== void 0 ? ref2 : 'custom';
120
+ _this.dateFormat = (ref2 = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && ref2 !== void 0 ? ref2 : '';
121
121
  var ref3;
122
- _this.rangeMin = (ref3 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && ref3 !== void 0 ? ref3 : '';
122
+ _this.commonTimeSetting = (ref3 = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && ref3 !== void 0 ? ref3 : [];
123
123
  var ref4;
124
- _this.rangeMax = (ref4 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && ref4 !== void 0 ? ref4 : '';
124
+ _this.setValueType = (ref4 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && ref4 !== void 0 ? ref4 : 'custom';
125
125
  var ref5;
126
- _this.placeholderStart = (ref5 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && ref5 !== void 0 ? ref5 : '请选择开始日期';
126
+ _this.rangeMin = (ref5 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && ref5 !== void 0 ? ref5 : '';
127
127
  var ref6;
128
- _this.placeholderEnd = (ref6 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && ref6 !== void 0 ? ref6 : '请选择结束日期';
128
+ _this.rangeMax = (ref6 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && ref6 !== void 0 ? ref6 : '';
129
129
  var ref7;
130
- _this.caption = (ref7 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref7 !== void 0 ? ref7 : DateRangeControl.controlName;
130
+ _this.placeholderStart = (ref7 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && ref7 !== void 0 ? ref7 : '请选择开始日期';
131
131
  var ref8;
132
- _this.limitDateList = (ref8 = props === null || props === void 0 ? void 0 : (ref = props.limitDateList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
132
+ _this.placeholderEnd = (ref8 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && ref8 !== void 0 ? ref8 : '请选择结束日期';
133
+ var ref9;
134
+ _this.caption = (ref9 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref9 !== void 0 ? ref9 : DateRangeControl.controlName;
135
+ var ref10;
136
+ _this.limitDateList = (ref10 = props === null || props === void 0 ? void 0 : (ref = props.limitDateList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
133
137
  return new LimitDate(item);
134
- })) !== null && ref8 !== void 0 ? ref8 : [];
138
+ })) !== null && ref10 !== void 0 ? ref10 : [];
135
139
  return _this;
136
140
  }
137
141
  return DateRangeProperty;
@@ -157,6 +157,10 @@ SearchDateRangeControl.setting = [
157
157
  key: 'date-type',
158
158
  visible: true
159
159
  },
160
+ {
161
+ key: 'date-common-time-setting',
162
+ visible: true
163
+ },
160
164
  {
161
165
  key: 'common-setting',
162
166
  visible: true,
@@ -118,21 +118,25 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty1) {
118
118
  var ref2;
119
119
  _this.dateType = (ref2 = props === null || props === void 0 ? void 0 : props.dateType) !== null && ref2 !== void 0 ? ref2 : DateType.DATE;
120
120
  var ref3;
121
- _this.setValueType = (ref3 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && ref3 !== void 0 ? ref3 : 'custom';
121
+ _this.dateFormat = (ref3 = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && ref3 !== void 0 ? ref3 : '';
122
122
  var ref4;
123
- _this.rangeMin = (ref4 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && ref4 !== void 0 ? ref4 : '';
123
+ _this.commonTimeSetting = (ref4 = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && ref4 !== void 0 ? ref4 : [];
124
124
  var ref5;
125
- _this.rangeMax = (ref5 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && ref5 !== void 0 ? ref5 : '';
125
+ _this.setValueType = (ref5 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && ref5 !== void 0 ? ref5 : 'custom';
126
126
  var ref6;
127
- _this.placeholderStart = (ref6 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && ref6 !== void 0 ? ref6 : '开始日期';
127
+ _this.rangeMin = (ref6 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && ref6 !== void 0 ? ref6 : '';
128
128
  var ref7;
129
- _this.placeholderEnd = (ref7 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && ref7 !== void 0 ? ref7 : '结束日期';
129
+ _this.rangeMax = (ref7 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && ref7 !== void 0 ? ref7 : '';
130
130
  var ref8;
131
- _this.caption = (ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref8 !== void 0 ? ref8 : SearchDateRangeControl.controlName;
131
+ _this.placeholderStart = (ref8 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && ref8 !== void 0 ? ref8 : '开始日期';
132
132
  var ref9;
133
- _this.limitDateList = (ref9 = props === null || props === void 0 ? void 0 : (ref = props.limitDateList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
133
+ _this.placeholderEnd = (ref9 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && ref9 !== void 0 ? ref9 : '结束日期';
134
+ var ref10;
135
+ _this.caption = (ref10 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref10 !== void 0 ? ref10 : SearchDateRangeControl.controlName;
136
+ var ref11;
137
+ _this.limitDateList = (ref11 = props === null || props === void 0 ? void 0 : (ref = props.limitDateList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
134
138
  return new LimitDate(item);
135
- })) !== null && ref9 !== void 0 ? ref9 : [];
139
+ })) !== null && ref11 !== void 0 ? ref11 : [];
136
140
  return _this;
137
141
  }
138
142
  return SearchDateRangeProperty;