@byteluck-fe/model-driven-controls 6.2.0-2-beta.2 → 6.2.0-beta.11

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.
@@ -1,4 +1,3 @@
1
- // 线条样式类名
2
1
  function _assert_this_initialized(self) {
3
2
  if (self === void 0) {
4
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -71,6 +70,7 @@ function _is_native_reflect_construct() {
71
70
  return !!result;
72
71
  })();
73
72
  }
73
+ // 线条样式类名
74
74
  import { Property } from '@byteluck-fe/model-driven-core';
75
75
  import { LINE_STYLE } from '../../framework';
76
76
  var DividerProperty = /*#__PURE__*/ function(Property) {
@@ -72,6 +72,7 @@ function _is_native_reflect_construct() {
72
72
  }
73
73
  import { DesignerColumnControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
74
74
  import GroupColumnControlProperty from './property';
75
+ import { getLocaleText } from '@byteluck-fe/locale-message';
75
76
  var GroupColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
76
77
  "use strict";
77
78
  _inherits(GroupColumnControl, DesignerColumnControl);
@@ -87,7 +88,7 @@ var GroupColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
87
88
  return GroupColumnControl;
88
89
  }(DesignerColumnControl);
89
90
  _define_property(GroupColumnControl, "controlType", 'group-column');
90
- _define_property(GroupColumnControl, "controlName", '合并列');
91
+ _define_property(GroupColumnControl, "controlName", getLocaleText('CMD.43541769566517351'));
91
92
  _define_property(GroupColumnControl, "controlIcon", 'group-column');
92
93
  _define_property(GroupColumnControl, "setting", [
93
94
  {
@@ -1,10 +1,4 @@
1
- /*
2
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
- * @Date: 2023-09-14 18:31:51
4
- * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-09-19 15:49:31
6
- * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
7
- */ function _assert_this_initialized(self) {
1
+ function _assert_this_initialized(self) {
8
2
  if (self === void 0) {
9
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
10
4
  }
@@ -76,7 +70,13 @@ function _is_native_reflect_construct() {
76
70
  return !!result;
77
71
  })();
78
72
  }
79
- import { getLocaleText } from '@byteluck-fe/locale-message';
73
+ /*
74
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
75
+ * @Date: 2023-09-14 18:31:51
76
+ * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
77
+ * @LastEditTime: 2023-09-19 15:49:31
78
+ * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
79
+ */ import { getLocaleText } from '@byteluck-fe/locale-message';
80
80
  import AttachmentControl from './designer';
81
81
  import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
82
82
  var MB10 = 10485760;
@@ -201,6 +201,10 @@ _define_property(DatePickerControl, "setting", [
201
201
  key: 'date-type',
202
202
  visible: true
203
203
  },
204
+ {
205
+ key: 'custom-date-format',
206
+ visible: true
207
+ },
204
208
  {
205
209
  key: 'date-common-time-setting',
206
210
  visible: true
@@ -93,6 +93,8 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
93
93
  _define_property(_this, "allowDateRange", void 0 // 允许选中多个日期范围
94
94
  ), _define_property(_this, "filterWeekend", void 0 // 是否过滤周末
95
95
  ), _define_property(_this, "isInternational", void 0 //是否国际化
96
+ ), _define_property(_this, "isShowCustomDateFormat", void 0 //是否使用自定义格式化显示时间
97
+ ), _define_property(_this, "customDateFormat", void 0 //自定义格式化显示时间
96
98
  );
97
99
  var _props_dateType;
98
100
  _this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
@@ -122,6 +124,10 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
122
124
  _this.filterWeekend = (_props_filterWeekend = props === null || props === void 0 ? void 0 : props.filterWeekend) !== null && _props_filterWeekend !== void 0 ? _props_filterWeekend : false;
123
125
  var _props_isInternational;
124
126
  _this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
127
+ var _props_isShowCustomDateFormat;
128
+ _this.isShowCustomDateFormat = (_props_isShowCustomDateFormat = props === null || props === void 0 ? void 0 : props.isShowCustomDateFormat) !== null && _props_isShowCustomDateFormat !== void 0 ? _props_isShowCustomDateFormat : false;
129
+ var _props_customDateFormat;
130
+ _this.customDateFormat = (_props_customDateFormat = props === null || props === void 0 ? void 0 : props.customDateFormat) !== null && _props_customDateFormat !== void 0 ? _props_customDateFormat : '';
125
131
  return _this;
126
132
  }
127
133
  return DatePickerProperty;
@@ -220,6 +220,10 @@ _define_property(Department2Control, "setting", [
220
220
  key: 'department-datasource-setting',
221
221
  visible: true
222
222
  },
223
+ {
224
+ key: 'department-disabled-filter',
225
+ visible: true
226
+ },
223
227
  {
224
228
  key: 'department-defaultval',
225
229
  visible: true
@@ -71,7 +71,7 @@ function _is_native_reflect_construct() {
71
71
  })();
72
72
  }
73
73
  import Department2Control from './designer';
74
- import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initSuperDataSourceRules, MultistageFillingItem, SuperDataSourceBind } from '@byteluck-fe/model-driven-core';
74
+ import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initSuperDataSourceRules, MultistageFillingItem, SuperDataSourceBind, FieldFilterCondition, FieldFilterConditions } from '@byteluck-fe/model-driven-core';
75
75
  import { DepartmentType, AssignType } from '../../framework';
76
76
  import { getLocaleText } from '@byteluck-fe/locale-message';
77
77
  var Department2PropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
@@ -124,6 +124,7 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
124
124
  function Department2Property(props) {
125
125
  _class_call_check(this, Department2Property);
126
126
  var _this;
127
+ var _props_disabledSelectedFilters;
127
128
  _this = _call_super(this, Department2Property, [
128
129
  props
129
130
  ]), /**
@@ -147,6 +148,8 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
147
148
  * */ _define_property(_this, "multistageFilling", void 0), /**
148
149
  * 数据设置
149
150
  * */ _define_property(_this, "datasourceBind", void 0), /**
151
+ * 不可选中部门的配置条件
152
+ * */ _define_property(_this, "disabledSelectedFilters", void 0), /**
150
153
  * 数据类型 行政 or 业务
151
154
  * */ _define_property(_this, "datasourceType", void 0 //数据类型 行政 'administration'| 业务 'business'
152
155
  ), _define_property(_this, "businessType", void 0 //业务部门类型 'all' | 'assign'
@@ -195,6 +198,13 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
195
198
  }
196
199
  var _props_defaultShowOptions;
197
200
  _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
201
+ var _props_disabledSelectedFilters_map;
202
+ _this.disabledSelectedFilters = (_props_disabledSelectedFilters_map = props === null || props === void 0 ? void 0 : (_props_disabledSelectedFilters = props.disabledSelectedFilters) === null || _props_disabledSelectedFilters === void 0 ? void 0 : _props_disabledSelectedFilters.map(function(item) {
203
+ if (item.children !== undefined) {
204
+ return new FieldFilterConditions(item);
205
+ }
206
+ return new FieldFilterCondition(item);
207
+ })) !== null && _props_disabledSelectedFilters_map !== void 0 ? _props_disabledSelectedFilters_map : [];
198
208
  return _this;
199
209
  }
200
210
  return Department2Property;
@@ -1,10 +1,4 @@
1
- /*
2
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
- * @Date: 2022-12-01 14:40:30
4
- * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-09-19 15:50:38
6
- * @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
7
- */ function _assert_this_initialized(self) {
1
+ function _assert_this_initialized(self) {
8
2
  if (self === void 0) {
9
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
10
4
  }
@@ -90,7 +84,13 @@ function _is_native_reflect_construct() {
90
84
  return !!result;
91
85
  })();
92
86
  }
93
- import { getLocaleText } from '@byteluck-fe/locale-message';
87
+ /*
88
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
89
+ * @Date: 2022-12-01 14:40:30
90
+ * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
91
+ * @LastEditTime: 2023-09-19 15:50:38
92
+ * @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
93
+ */ import { getLocaleText } from '@byteluck-fe/locale-message';
94
94
  import { DesignerAttachmentControl } from '../Attachment';
95
95
  import { ImageProperty } from './property';
96
96
  import { COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
@@ -1,11 +1,4 @@
1
- /*
2
- * @Author: Elvis shuaiqy@hotmail.com
3
- * @Date: 2022-07-07 00:12:37
4
- * @LastEditors: Elvis shuaiqy@hotmail.com
5
- * @LastEditTime: 2022-07-25 17:51:51
6
- * @FilePath: /model-driven/packages/controls/src/formControls/WPS/designer.ts
7
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
- */ function _assert_this_initialized(self) {
1
+ function _assert_this_initialized(self) {
9
2
  if (self === void 0) {
10
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
11
4
  }
@@ -91,7 +84,14 @@ function _is_native_reflect_construct() {
91
84
  return !!result;
92
85
  })();
93
86
  }
94
- import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
87
+ /*
88
+ * @Author: Elvis shuaiqy@hotmail.com
89
+ * @Date: 2022-07-07 00:12:37
90
+ * @LastEditors: Elvis shuaiqy@hotmail.com
91
+ * @LastEditTime: 2022-07-25 17:51:51
92
+ * @FilePath: /model-driven/packages/controls/src/formControls/WPS/designer.ts
93
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
94
+ */ import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
95
95
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
96
96
  import WPSProperty from './property';
97
97
  import { getLocaleText } from '@byteluck-fe/locale-message';
@@ -107,7 +107,10 @@ var DataViewControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntime
107
107
  */ _define_property(_this, "isLoading", void 0), /**
108
108
  * 绑定业务模型
109
109
  * @public
110
- */ _define_property(_this, "datasourceBind", void 0);
110
+ */ _define_property(_this, "datasourceBind", void 0), /**
111
+ * 流程表单只读控件展现形式;disabled:禁用模式;text:文本模式;
112
+ * @defaultValue disabled
113
+ */ _define_property(_this, "processFormReadonlyControlMode", void 0);
111
114
  var _props_save;
112
115
  _this.save = new OperationItem((_props_save = props === null || props === void 0 ? void 0 : props.save) !== null && _props_save !== void 0 ? _props_save : {
113
116
  content: getLocaleText('CMD.save', null, '保存'),
@@ -139,6 +142,8 @@ var DataViewControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntime
139
142
  var _props_isLoading;
140
143
  _this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
141
144
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
145
+ var _props_processFormReadonlyControlMode;
146
+ _this.processFormReadonlyControlMode = (_props_processFormReadonlyControlMode = props === null || props === void 0 ? void 0 : props.processFormReadonlyControlMode) !== null && _props_processFormReadonlyControlMode !== void 0 ? _props_processFormReadonlyControlMode : 'disabled';
142
147
  return _this;
143
148
  }
144
149
  return DataViewControlProperty;
@@ -84,6 +84,7 @@ function _is_native_reflect_construct() {
84
84
  return !!result;
85
85
  })();
86
86
  }
87
+ import { getLocaleText } from '@byteluck-fe/locale-message';
87
88
  import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
88
89
  import TableLayoutControlProperty from './property';
89
90
  var TableLayoutControl = /*#__PURE__*/ function(DesignerLayoutControl) {
@@ -102,7 +103,7 @@ var TableLayoutControl = /*#__PURE__*/ function(DesignerLayoutControl) {
102
103
  {
103
104
  key: "controlName",
104
105
  get: function get() {
105
- return '表格布局';
106
+ return getLocaleText('CMD.6a6c1769566515442');
106
107
  }
107
108
  },
108
109
  {
@@ -142,6 +143,10 @@ _define_property(TableLayoutControl, "setting", [
142
143
  key: 'label-width',
143
144
  visible: true
144
145
  },
146
+ {
147
+ key: 'label-bold',
148
+ visible: true
149
+ },
145
150
  {
146
151
  key: 'text-align',
147
152
  visible: true
@@ -85,6 +85,7 @@ var TableLayoutControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
85
85
  ), _define_property(_this, "colWidthType", void 0 //列宽分配, average 平均分配,custom为自定义分配
86
86
  ), _define_property(_this, "colWidth", void 0 //列宽分配以冒号分割, 12:12为自定义分配
87
87
  ), _define_property(_this, "labelWidth", void 0 // label宽度
88
+ ), _define_property(_this, "isLabelBold", void 0 // label是否加粗
88
89
  ), _define_property(_this, "padding", void 0), _define_property(_this, "margin", void 0), _define_property(_this, "border", void 0), _define_property(_this, "background", void 0), _define_property(_this, "borderRadius", void 0), _define_property(_this, "align", void 0 //标题水平对齐方式
89
90
  ), _define_property(_this, "verticalAlign", void 0 //标题垂直对齐方式
90
91
  ), _define_property(_this, "innerBorder", void 0 //表格内边框
@@ -99,6 +100,8 @@ var TableLayoutControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
99
100
  _this.colWidthType = (_props_colWidthType = props === null || props === void 0 ? void 0 : props.colWidthType) !== null && _props_colWidthType !== void 0 ? _props_colWidthType : 'average';
100
101
  var _props_colWidth;
101
102
  _this.colWidth = (_props_colWidth = props === null || props === void 0 ? void 0 : props.colWidth) !== null && _props_colWidth !== void 0 ? _props_colWidth : '12:12';
103
+ var _props_isLabelBold;
104
+ _this.isLabelBold = (_props_isLabelBold = props === null || props === void 0 ? void 0 : props.isLabelBold) !== null && _props_isLabelBold !== void 0 ? _props_isLabelBold : false;
102
105
  var _props_labelWidth;
103
106
  _this.labelWidth = (_props_labelWidth = props === null || props === void 0 ? void 0 : props.labelWidth) !== null && _props_labelWidth !== void 0 ? _props_labelWidth : '';
104
107
  var _props_align;
@@ -101,9 +101,9 @@ var TableLayoutColControlProperty = /*#__PURE__*/ function(LayoutControlProperty
101
101
  var _props_flexDirection;
102
102
  _this.flexDirection = (_props_flexDirection = props === null || props === void 0 ? void 0 : props.flexDirection) !== null && _props_flexDirection !== void 0 ? _props_flexDirection : 'column';
103
103
  var _props_alignItems;
104
- _this.alignItems = (_props_alignItems = props === null || props === void 0 ? void 0 : props.alignItems) !== null && _props_alignItems !== void 0 ? _props_alignItems : '';
104
+ _this.alignItems = (_props_alignItems = props === null || props === void 0 ? void 0 : props.alignItems) !== null && _props_alignItems !== void 0 ? _props_alignItems : 'flex-start';
105
105
  var _props_justifyContent;
106
- _this.justifyContent = (_props_justifyContent = props === null || props === void 0 ? void 0 : props.justifyContent) !== null && _props_justifyContent !== void 0 ? _props_justifyContent : '';
106
+ _this.justifyContent = (_props_justifyContent = props === null || props === void 0 ? void 0 : props.justifyContent) !== null && _props_justifyContent !== void 0 ? _props_justifyContent : 'flex-start';
107
107
  var _props_background;
108
108
  _this.background = (_props_background = props === null || props === void 0 ? void 0 : props.background) !== null && _props_background !== void 0 ? _props_background : {
109
109
  type: 'backgroundColor',
@@ -1,11 +1,4 @@
1
- /*
2
- * @Author: Elvis shuaiqy@hotmail.com
3
- * @Date: 2022-01-11 22:20:55
4
- * @LastEditors: changjiaqi hypocrite_chang@163.com
5
- * @LastEditTime: 2023-05-31 10:33:27
6
- * @FilePath: /model-driven/packages/controls/src/listControls/GridTable/property.ts
7
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
- */ function _assert_this_initialized(self) {
1
+ function _assert_this_initialized(self) {
9
2
  if (self === void 0) {
10
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
11
4
  }
@@ -77,7 +70,14 @@ function _is_native_reflect_construct() {
77
70
  return !!result;
78
71
  })();
79
72
  }
80
- import { ListControlProperty } from '@byteluck-fe/model-driven-core';
73
+ /*
74
+ * @Author: Elvis shuaiqy@hotmail.com
75
+ * @Date: 2022-01-11 22:20:55
76
+ * @LastEditors: changjiaqi hypocrite_chang@163.com
77
+ * @LastEditTime: 2023-05-31 10:33:27
78
+ * @FilePath: /model-driven/packages/controls/src/listControls/GridTable/property.ts
79
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
80
+ */ import { ListControlProperty } from '@byteluck-fe/model-driven-core';
81
81
  /**
82
82
  * GridTable 表格组件
83
83
  * @public
@@ -1,10 +1,4 @@
1
- /*
2
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
- * @Date: 2023-08-08 11:13:49
4
- * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-08-09 11:26:04
6
- * @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/designer.ts
7
- */ function _assert_this_initialized(self) {
1
+ function _assert_this_initialized(self) {
8
2
  if (self === void 0) {
9
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
10
4
  }
@@ -90,7 +84,13 @@ function _is_native_reflect_construct() {
90
84
  return !!result;
91
85
  })();
92
86
  }
93
- import { DesignerWrapControl } from '@byteluck-fe/model-driven-core';
87
+ /*
88
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
89
+ * @Date: 2023-08-08 11:13:49
90
+ * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
91
+ * @LastEditTime: 2023-08-09 11:26:04
92
+ * @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/designer.ts
93
+ */ import { DesignerWrapControl } from '@byteluck-fe/model-driven-core';
94
94
  import GridLayoutWrapProperty from './property';
95
95
  // import Setting from './Setting'
96
96
  import { getLocaleText } from '@byteluck-fe/locale-message';
@@ -1,10 +1,4 @@
1
- /*
2
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
- * @Date: 2023-08-08 11:13:49
4
- * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-08-09 11:09:36
6
- * @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/runtime.ts
7
- */ function _assert_this_initialized(self) {
1
+ function _assert_this_initialized(self) {
8
2
  if (self === void 0) {
9
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
10
4
  }
@@ -90,7 +84,13 @@ function _is_native_reflect_construct() {
90
84
  return !!result;
91
85
  })();
92
86
  }
93
- import { RuntimeWrapControl } from '@byteluck-fe/model-driven-core';
87
+ /*
88
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
89
+ * @Date: 2023-08-08 11:13:49
90
+ * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
91
+ * @LastEditTime: 2023-08-09 11:09:36
92
+ * @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/runtime.ts
93
+ */ import { RuntimeWrapControl } from '@byteluck-fe/model-driven-core';
94
94
  import GridLayoutWrapProperty from './property';
95
95
  var GridLayoutWrapControl = /*#__PURE__*/ function(RuntimeWrapControl) {
96
96
  "use strict";