@byteluck-fe/model-driven-controls 2.5.0-alpha.2 → 2.5.0-alpha.4

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/ArrayColumn/designer.js +4 -0
  2. package/dist/esm/columnControls/ArrayColumn/property.js +12 -1
  3. package/dist/esm/columnControls/AutoNumberColumn/designer.js +4 -0
  4. package/dist/esm/columnControls/AutoNumberColumn/property.js +25 -1
  5. package/dist/esm/columnControls/DecimalColumn/designer.js +4 -0
  6. package/dist/esm/columnControls/DecimalColumn/property.js +12 -1
  7. package/dist/esm/columnControls/LocationColumn/designer.js +4 -0
  8. package/dist/esm/columnControls/LocationColumn/property.js +25 -1
  9. package/dist/esm/columnControls/TextColumn/designer.js +4 -0
  10. package/dist/esm/columnControls/TextColumn/property.js +13 -2
  11. package/dist/esm/columnControls/TimescopeColumn/designer.js +4 -0
  12. package/dist/esm/columnControls/TimescopeColumn/property.js +12 -1
  13. package/dist/esm/columnControls/TimestampColumn/designer.js +4 -0
  14. package/dist/esm/columnControls/TimestampColumn/property.js +12 -1
  15. package/dist/esm/columnControls/VarcharColumn/designer.js +4 -0
  16. package/dist/esm/columnControls/VarcharColumn/property.js +12 -1
  17. package/dist/esm/formControls/Tree/property.js +0 -1
  18. package/dist/index.umd.js +1 -1
  19. package/dist/types/columnControls/ArrayColumn/property.d.ts +11 -1
  20. package/dist/types/columnControls/AutoNumberColumn/property.d.ts +11 -1
  21. package/dist/types/columnControls/DecimalColumn/property.d.ts +11 -1
  22. package/dist/types/columnControls/LocationColumn/property.d.ts +11 -1
  23. package/dist/types/columnControls/TextColumn/property.d.ts +11 -1
  24. package/dist/types/columnControls/TimescopeColumn/property.d.ts +11 -1
  25. package/dist/types/columnControls/TimestampColumn/property.d.ts +11 -1
  26. package/dist/types/columnControls/VarcharColumn/property.d.ts +11 -1
  27. package/package.json +4 -4
@@ -119,6 +119,10 @@ _define_property(ArrayColumnControl, "setting", [
119
119
  key: "column-autowidth",
120
120
  visible: true
121
121
  },
122
+ {
123
+ key: "column-link-operation",
124
+ visible: true
125
+ },
122
126
  {
123
127
  key: "column-fixed",
124
128
  visible: true
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { ColumnControlProperty, ColumnOptionAndDataSourcePropertyRules, DataSourceBind, initOptions } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, ColumnOptionAndDataSourcePropertyRules, DataSourceBind, initOptions, LinkOperationOption } from "@byteluck-fe/model-driven-core";
86
86
  import { DesignerArrayColumnControl } from "./designer";
87
87
  /**
88
88
  * ArrayColumn 数组列
@@ -118,6 +118,14 @@ import { DesignerArrayColumnControl } from "./designer";
118
118
  * @public
119
119
  */ _define_property(_assert_this_initialized(_this), "datasourceBind", void 0);
120
120
  /**
121
+ * 是否显示链接操作
122
+ * @public
123
+ */ _define_property(_assert_this_initialized(_this), "showLinkOperation", void 0);
124
+ /**
125
+ * 链接操作配置
126
+ * @public
127
+ */ _define_property(_assert_this_initialized(_this), "linkOperationOption", void 0);
128
+ /**
121
129
  * 自定义选项
122
130
  * @defaultValue []
123
131
  * @public
@@ -127,6 +135,9 @@ import { DesignerArrayColumnControl } from "./designer";
127
135
  var _props_optionConfig;
128
136
  _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "none";
129
137
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
138
+ var _props_showLinkOperation;
139
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
140
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
130
141
  var _props_options;
131
142
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
132
143
  {}
@@ -119,6 +119,10 @@ _define_property(AutoNumberColumnControl, "setting", [
119
119
  key: "column-autowidth",
120
120
  visible: true
121
121
  },
122
+ {
123
+ key: "column-link-operation",
124
+ visible: true
125
+ },
122
126
  {
123
127
  key: "column-fixed",
124
128
  visible: true
@@ -9,6 +9,19 @@ function _class_call_check(instance, Constructor) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
+ function _define_property(obj, key, value) {
13
+ if (key in obj) {
14
+ Object.defineProperty(obj, key, {
15
+ value: value,
16
+ enumerable: true,
17
+ configurable: true,
18
+ writable: true
19
+ });
20
+ } else {
21
+ obj[key] = value;
22
+ }
23
+ return obj;
24
+ }
12
25
  function _get_prototype_of(o) {
13
26
  _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -69,7 +82,7 @@ function _create_super(Derived) {
69
82
  return _possible_constructor_return(this, result);
70
83
  };
71
84
  }
72
- import { ColumnControlProperty } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, LinkOperationOption } from "@byteluck-fe/model-driven-core";
73
86
  import { DesignerAutoNumberColumnControl } from "./designer";
74
87
  /**
75
88
  * AutoNumberColumn 自动编号类型列
@@ -82,8 +95,19 @@ import { DesignerAutoNumberColumnControl } from "./designer";
82
95
  _class_call_check(this, AutoNumberColumnControlProperty);
83
96
  var _this;
84
97
  _this = _super.call(this, props);
98
+ /**
99
+ * 是否显示链接操作
100
+ * @public
101
+ */ _define_property(_assert_this_initialized(_this), "showLinkOperation", void 0);
102
+ /**
103
+ * 链接操作配置
104
+ * @public
105
+ */ _define_property(_assert_this_initialized(_this), "linkOperationOption", void 0);
85
106
  var _props_caption;
86
107
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerAutoNumberColumnControl.controlName;
108
+ var _props_showLinkOperation;
109
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
110
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
87
111
  return _this;
88
112
  }
89
113
  return AutoNumberColumnControlProperty;
@@ -170,6 +170,10 @@ _define_property(DecimalColumnControl, "setting", [
170
170
  key: "column-autowidth",
171
171
  visible: true
172
172
  },
173
+ {
174
+ key: "column-link-operation",
175
+ visible: true
176
+ },
173
177
  {
174
178
  key: "column-fixed",
175
179
  visible: true
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { ColumnControlProperty, DataSourceBind, initOptions } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, DataSourceBind, initOptions, LinkOperationOption } from "@byteluck-fe/model-driven-core";
86
86
  import { DesignerDecimalColumnControl } from "./designer";
87
87
  /**
88
88
  * DecimalColumn 数字列
@@ -105,6 +105,14 @@ import { DesignerDecimalColumnControl } from "./designer";
105
105
  * @public
106
106
  */ _define_property(_assert_this_initialized(_this), "datasourceBind", void 0);
107
107
  /**
108
+ * 是否显示链接操作
109
+ * @public
110
+ */ _define_property(_assert_this_initialized(_this), "showLinkOperation", void 0);
111
+ /**
112
+ * 链接操作配置
113
+ * @public
114
+ */ _define_property(_assert_this_initialized(_this), "linkOperationOption", void 0);
115
+ /**
108
116
  * 自定义选项
109
117
  * @defaultValue []
110
118
  * @public
@@ -139,6 +147,9 @@ import { DesignerDecimalColumnControl } from "./designer";
139
147
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
140
148
  {}
141
149
  ]);
150
+ var _props_showLinkOperation;
151
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
152
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
142
153
  return _this;
143
154
  }
144
155
  return DecimalColumnControlProperty;
@@ -119,6 +119,10 @@ _define_property(LocationColumnControl, "setting", [
119
119
  key: "column-autowidth",
120
120
  visible: true
121
121
  },
122
+ {
123
+ key: "column-link-operation",
124
+ visible: true
125
+ },
122
126
  {
123
127
  key: "column-fixed",
124
128
  visible: true
@@ -9,6 +9,19 @@ function _class_call_check(instance, Constructor) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
+ function _define_property(obj, key, value) {
13
+ if (key in obj) {
14
+ Object.defineProperty(obj, key, {
15
+ value: value,
16
+ enumerable: true,
17
+ configurable: true,
18
+ writable: true
19
+ });
20
+ } else {
21
+ obj[key] = value;
22
+ }
23
+ return obj;
24
+ }
12
25
  function _get_prototype_of(o) {
13
26
  _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -69,7 +82,7 @@ function _create_super(Derived) {
69
82
  return _possible_constructor_return(this, result);
70
83
  };
71
84
  }
72
- import { ColumnControlProperty } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, LinkOperationOption } from "@byteluck-fe/model-driven-core";
73
86
  import { DesignerLocationColumnControl } from "./designer";
74
87
  /**
75
88
  * LocationColumn 地址列
@@ -82,8 +95,19 @@ import { DesignerLocationColumnControl } from "./designer";
82
95
  _class_call_check(this, LocationColumnControlProperty);
83
96
  var _this;
84
97
  _this = _super.call(this, props);
98
+ /**
99
+ * 是否显示链接操作
100
+ * @public
101
+ */ _define_property(_assert_this_initialized(_this), "showLinkOperation", void 0);
102
+ /**
103
+ * 链接操作配置
104
+ * @public
105
+ */ _define_property(_assert_this_initialized(_this), "linkOperationOption", void 0);
85
106
  var _props_caption;
86
107
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerLocationColumnControl.controlName;
108
+ var _props_showLinkOperation;
109
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
110
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
87
111
  return _this;
88
112
  }
89
113
  return LocationColumnControlProperty;
@@ -173,6 +173,10 @@ _define_property(TextColumnControl, "setting", [
173
173
  key: "column-autoHeight",
174
174
  visible: true
175
175
  },
176
+ {
177
+ key: "column-link-operation",
178
+ visible: true
179
+ },
176
180
  {
177
181
  key: "column-fixed",
178
182
  visible: true
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { ColumnControlProperty } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, LinkOperationOption } from "@byteluck-fe/model-driven-core";
86
86
  import { DesignerTextColumnControl } from "./designer";
87
87
  /**
88
88
  * TextColumn 长文本列
@@ -104,13 +104,24 @@ import { DesignerTextColumnControl } from "./designer";
104
104
  * 行数设置
105
105
  * @defaultValue 1
106
106
  * @public
107
- */ _define_property(_assert_this_initialized(_this), "lineEllipsis", void 0);
107
+ */ /**
108
+ * 是否显示链接操作
109
+ * @public
110
+ */ _define_property(_assert_this_initialized(_this), "showLinkOperation", void 0);
111
+ /**
112
+ * 链接操作配置
113
+ * @public
114
+ */ _define_property(_assert_this_initialized(_this), "linkOperationOption", void 0);
115
+ _define_property(_assert_this_initialized(_this), "lineEllipsis", void 0);
108
116
  var _props_escapeHTML;
109
117
  _this.escapeHTML = (_props_escapeHTML = props === null || props === void 0 ? void 0 : props.escapeHTML) !== null && _props_escapeHTML !== void 0 ? _props_escapeHTML : true;
110
118
  var _props_caption;
111
119
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTextColumnControl.controlName;
112
120
  var _props_lineEllipsis;
113
121
  _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
122
+ var _props_showLinkOperation;
123
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
124
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
114
125
  return _this;
115
126
  }
116
127
  return TextColumnControlProperty;
@@ -169,6 +169,10 @@ _define_property(TimescopeColumnControl, "setting", [
169
169
  key: "column-autowidth",
170
170
  visible: true
171
171
  },
172
+ {
173
+ key: "column-link-operation",
174
+ visible: true
175
+ },
172
176
  {
173
177
  key: "column-fixed",
174
178
  visible: true
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { ColumnControlProperty } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, LinkOperationOption } from "@byteluck-fe/model-driven-core";
86
86
  import { DateType } from "@byteluck-fe/model-driven-shared";
87
87
  import { DesignerTimescopeColumnControl } from "./designer";
88
88
  /**
@@ -101,8 +101,19 @@ import { DesignerTimescopeColumnControl } from "./designer";
101
101
  * @defaultValue 'date'
102
102
  * @public
103
103
  * */ _define_property(_assert_this_initialized(_this), "dateType", void 0);
104
+ /**
105
+ * 是否显示链接操作
106
+ * @public
107
+ */ _define_property(_assert_this_initialized(_this), "showLinkOperation", void 0);
108
+ /**
109
+ * 链接操作配置
110
+ * @public
111
+ */ _define_property(_assert_this_initialized(_this), "linkOperationOption", void 0);
104
112
  var _props_dateType;
105
113
  _this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
114
+ var _props_showLinkOperation;
115
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
116
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
106
117
  var _props_caption;
107
118
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTimescopeColumnControl.controlName;
108
119
  return _this;
@@ -169,6 +169,10 @@ _define_property(TimestampColumnControl, "setting", [
169
169
  key: "column-autowidth",
170
170
  visible: true
171
171
  },
172
+ {
173
+ key: "column-link-operation",
174
+ visible: true
175
+ },
172
176
  {
173
177
  key: "column-fixed",
174
178
  visible: true
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { ColumnControlProperty } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, LinkOperationOption } from "@byteluck-fe/model-driven-core";
86
86
  import { DateType } from "@byteluck-fe/model-driven-shared";
87
87
  import { DesignerTimestampColumnControl } from "./designer";
88
88
  /**
@@ -101,8 +101,19 @@ import { DesignerTimestampColumnControl } from "./designer";
101
101
  * @defaultValue 'date'
102
102
  * @public
103
103
  * */ _define_property(_assert_this_initialized(_this), "dateType", void 0);
104
+ /**
105
+ * 是否显示链接操作
106
+ * @public
107
+ */ _define_property(_assert_this_initialized(_this), "showLinkOperation", void 0);
108
+ /**
109
+ * 链接操作配置
110
+ * @public
111
+ */ _define_property(_assert_this_initialized(_this), "linkOperationOption", void 0);
104
112
  var _props_dateType;
105
113
  _this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
114
+ var _props_showLinkOperation;
115
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
116
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
106
117
  var _props_caption;
107
118
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTimestampColumnControl.controlName;
108
119
  return _this;
@@ -123,6 +123,10 @@ _define_property(VarcharColumnControl, "setting", [
123
123
  key: "column-autoHeight",
124
124
  visible: true
125
125
  },
126
+ {
127
+ key: "column-link-operation",
128
+ visible: true
129
+ },
126
130
  {
127
131
  key: "column-fixed",
128
132
  visible: true
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { ColumnControlProperty, ColumnOptionAndDataSourcePropertyRules, DataSourceBind, initOptions } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, ColumnOptionAndDataSourcePropertyRules, DataSourceBind, LinkOperationOption, initOptions } from "@byteluck-fe/model-driven-core";
86
86
  import { DesignerVarcharColumnControl } from "./designer";
87
87
  var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDataSourcePropertyRules) {
88
88
  "use strict";
@@ -115,6 +115,14 @@ var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
115
115
  * @public
116
116
  */ _define_property(_assert_this_initialized(_this), "datasourceBind", void 0);
117
117
  /**
118
+ * 是否显示链接操作
119
+ * @public
120
+ */ _define_property(_assert_this_initialized(_this), "showLinkOperation", void 0);
121
+ /**
122
+ * 链接操作配置
123
+ * @public
124
+ */ _define_property(_assert_this_initialized(_this), "linkOperationOption", void 0);
125
+ /**
118
126
  * 自定义选项
119
127
  * @defaultValue []
120
128
  * @public
@@ -131,6 +139,9 @@ var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
131
139
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
132
140
  {}
133
141
  ]);
142
+ var _props_showLinkOperation;
143
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
144
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
134
145
  var _props_lineEllipsis;
135
146
  _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
136
147
  return _this;
@@ -197,7 +197,6 @@ var TreeProperty = /*#__PURE__*/ function(BaseControlProperty) {
197
197
  var _props_openMultistageFilling;
198
198
  _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
199
199
  var _props_defaultDisplay;
200
- //树组件默认隐藏
201
200
  _this.defaultDisplay = (_props_defaultDisplay = props === null || props === void 0 ? void 0 : props.defaultDisplay) !== null && _props_defaultDisplay !== void 0 ? _props_defaultDisplay : true;
202
201
  var _props_multistageFilling_map;
203
202
  _this.multistageFilling = (_props_multistageFilling_map = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {