@byteluck-fe/model-driven-controls 2.5.0-alpha.0 → 2.5.0-alpha.10

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 (49) hide show
  1. package/dist/esm/api-doc-index.js +1 -0
  2. package/dist/esm/baseControls/ListSelectButton/property.js +8 -1
  3. package/dist/esm/columnControls/ArrayColumn/designer.js +1 -0
  4. package/dist/esm/columnControls/ArrayColumn/property.js +12 -0
  5. package/dist/esm/columnControls/AutoNumberColumn/designer.js +4 -0
  6. package/dist/esm/columnControls/AutoNumberColumn/property.js +40 -2
  7. package/dist/esm/columnControls/DecimalColumn/designer.js +4 -0
  8. package/dist/esm/columnControls/DecimalColumn/property.js +27 -2
  9. package/dist/esm/columnControls/LocationColumn/designer.js +4 -0
  10. package/dist/esm/columnControls/LocationColumn/property.js +40 -2
  11. package/dist/esm/columnControls/TextColumn/designer.js +4 -0
  12. package/dist/esm/columnControls/TextColumn/property.js +28 -3
  13. package/dist/esm/columnControls/TimescopeColumn/designer.js +4 -0
  14. package/dist/esm/columnControls/TimescopeColumn/property.js +27 -2
  15. package/dist/esm/columnControls/TimestampColumn/designer.js +4 -0
  16. package/dist/esm/columnControls/TimestampColumn/property.js +27 -2
  17. package/dist/esm/columnControls/VarcharColumn/designer.js +4 -0
  18. package/dist/esm/columnControls/VarcharColumn/property.js +16 -2
  19. package/dist/esm/formControls/OrganizationSelection/designer.js +243 -0
  20. package/dist/esm/formControls/OrganizationSelection/index.js +11 -0
  21. package/dist/esm/formControls/OrganizationSelection/property.js +240 -0
  22. package/dist/esm/formControls/OrganizationSelection/runtime.js +126 -0
  23. package/dist/esm/formControls/OrganizationSelection/types.js +0 -0
  24. package/dist/esm/formControls/SelectRelation/property.js +8 -1
  25. package/dist/esm/formControls/Tree/designer.js +2 -4
  26. package/dist/esm/formControls/Tree/property.js +14 -1
  27. package/dist/esm/formControls/index.js +1 -0
  28. package/dist/esm/listControls/GridTable/property.js +2 -2
  29. package/dist/index.umd.js +1 -1
  30. package/dist/types/api-doc-index.d.ts +1 -0
  31. package/dist/types/baseControls/ListSelectButton/property.d.ts +3 -1
  32. package/dist/types/columnControls/ArrayColumn/property.d.ts +8 -0
  33. package/dist/types/columnControls/AutoNumberColumn/property.d.ts +16 -2
  34. package/dist/types/columnControls/DecimalColumn/property.d.ts +16 -2
  35. package/dist/types/columnControls/LocationColumn/property.d.ts +16 -2
  36. package/dist/types/columnControls/TextColumn/property.d.ts +16 -2
  37. package/dist/types/columnControls/TimescopeColumn/property.d.ts +16 -2
  38. package/dist/types/columnControls/TimestampColumn/property.d.ts +16 -2
  39. package/dist/types/columnControls/VarcharColumn/property.d.ts +11 -1
  40. package/dist/types/formControls/OrganizationSelection/designer.d.ts +20 -0
  41. package/dist/types/formControls/OrganizationSelection/index.d.ts +12 -0
  42. package/dist/types/formControls/OrganizationSelection/property.d.ts +68 -0
  43. package/dist/types/formControls/OrganizationSelection/runtime.d.ts +12 -0
  44. package/dist/types/formControls/OrganizationSelection/types.d.ts +0 -0
  45. package/dist/types/formControls/SelectRelation/property.d.ts +3 -1
  46. package/dist/types/formControls/Tree/property.d.ts +3 -0
  47. package/dist/types/formControls/index.d.ts +1 -0
  48. package/dist/types/type.d.ts +2 -1
  49. package/package.json +5 -5
@@ -65,6 +65,7 @@ export { default as Employee2 } from "./formControls/Employee2/property";
65
65
  export { default as ElectronicSignature } from "./formControls/ElectronicSignature/property";
66
66
  export { default as WPS } from "./formControls/WPS/property";
67
67
  export { default as Department2 } from "./formControls/Department2/property";
68
+ export { default as OrganizationSelection } from "./formControls/OrganizationSelection/property";
68
69
  export { default as Grid } from "./layoutControls/Grid/property";
69
70
  export { default as Col } from "./layoutControls/Col/property";
70
71
  export { default as Row } from "./layoutControls/Row/property";
@@ -99,7 +99,7 @@ function _createSuper(Derived) {
99
99
  }
100
100
  import { ButtonProperty } from "../Button";
101
101
  import ListSelectButtonControl from "./designer";
102
- import { PropertyRules, FillBackBind, FillPayloadBind, ListBind } from "@byteluck-fe/model-driven-core";
102
+ import { PropertyRules, FillBackBind, FillPayloadBind, SelectedContentConfig, ListBind } from "@byteluck-fe/model-driven-core";
103
103
  import { RulesMessage } from "@byteluck-fe/model-driven-shared";
104
104
  import { createFillBindRules } from "../utils";
105
105
  var ListSelectButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
@@ -166,6 +166,10 @@ var ListSelectButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
166
166
  * 回填配置
167
167
  * @public
168
168
  */ _defineProperty(_assertThisInitialized(_this), "fillBack", void 0);
169
+ // 展示已选明细
170
+ _defineProperty(_assertThisInitialized(_this), "showSelectedDetail", void 0);
171
+ // 展示已选内容配置字段
172
+ _defineProperty(_assertThisInitialized(_this), "selectedContentConfig", void 0);
169
173
  var _props_content;
170
174
  _this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : ListSelectButtonControl.controlName;
171
175
  var _props_icon;
@@ -173,6 +177,9 @@ var ListSelectButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
173
177
  _this.fillPayload = new FillPayloadBind(props === null || props === void 0 ? void 0 : props.fillPayload);
174
178
  _this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
175
179
  _this.fillBack = new FillBackBind(props === null || props === void 0 ? void 0 : props.fillBack);
180
+ var _props_showSelectedDetail;
181
+ _this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
182
+ _this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
176
183
  return _this;
177
184
  }
178
185
  return ListSelectButtonProperty;
@@ -119,6 +119,7 @@ _defineProperty(ArrayColumnControl, "setting", [
119
119
  key: "column-autowidth",
120
120
  visible: true
121
121
  },
122
+ // { key: 'column-link-operation', visible: true },
122
123
  {
123
124
  key: "column-fixed",
124
125
  visible: true
@@ -118,6 +118,14 @@ import { DesignerArrayColumnControl } from "./designer";
118
118
  * @public
119
119
  */ _defineProperty(_assertThisInitialized(_this), "datasourceBind", void 0);
120
120
  /**
121
+ * 是否显示链接操作
122
+ * @public
123
+ */ // public showLinkOperation: boolean
124
+ /**
125
+ * 链接操作配置
126
+ * @public
127
+ */ // public linkOperationOption: LinkOperationOption
128
+ /**
121
129
  * 自定义选项
122
130
  * @defaultValue []
123
131
  * @public
@@ -128,6 +136,10 @@ import { DesignerArrayColumnControl } from "./designer";
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);
130
138
  var _props_options;
139
+ // this.showLinkOperation = props?.showLinkOperation ?? false
140
+ // this.linkOperationOption = new LinkOperationOption(
141
+ // props?.linkOperationOption
142
+ // )
131
143
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
132
144
  {}
133
145
  ]);
@@ -119,6 +119,10 @@ _defineProperty(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 _classCallCheck(instance, Constructor) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
+ function _defineProperty(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 _getPrototypeOf(o) {
13
26
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -69,8 +82,21 @@ function _createSuper(Derived) {
69
82
  return _possibleConstructorReturn(this, result);
70
83
  };
71
84
  }
72
- import { ColumnControlProperty } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, LinkOperationOption, initLinkOperationRules, ColumnControlPropertyRules } from "@byteluck-fe/model-driven-core";
73
86
  import { DesignerAutoNumberColumnControl } from "./designer";
87
+ var AutoNumberColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropertyRules) {
88
+ "use strict";
89
+ _inherits(AutoNumberColumnControlPropertyRules, ColumnControlPropertyRules);
90
+ var _super = _createSuper(AutoNumberColumnControlPropertyRules);
91
+ function AutoNumberColumnControlPropertyRules(props) {
92
+ _classCallCheck(this, AutoNumberColumnControlPropertyRules);
93
+ var _this;
94
+ _this = _super.call(this, props);
95
+ initLinkOperationRules.call(_assertThisInitialized(_this), props);
96
+ return _this;
97
+ }
98
+ return AutoNumberColumnControlPropertyRules;
99
+ }(ColumnControlPropertyRules);
74
100
  /**
75
101
  * AutoNumberColumn 自动编号类型列
76
102
  * @public
@@ -82,11 +108,23 @@ import { DesignerAutoNumberColumnControl } from "./designer";
82
108
  _classCallCheck(this, AutoNumberColumnControlProperty);
83
109
  var _this;
84
110
  _this = _super.call(this, props);
111
+ /**
112
+ * 是否显示链接操作
113
+ * @public
114
+ */ _defineProperty(_assertThisInitialized(_this), "showLinkOperation", void 0);
115
+ /**
116
+ * 链接操作配置
117
+ * @public
118
+ */ _defineProperty(_assertThisInitialized(_this), "linkOperationOption", void 0);
85
119
  var _props_caption;
86
120
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerAutoNumberColumnControl.controlName;
121
+ var _props_showLinkOperation;
122
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
123
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
87
124
  return _this;
88
125
  }
89
126
  return AutoNumberColumnControlProperty;
90
127
  }(ColumnControlProperty);
128
+ _defineProperty(AutoNumberColumnControlProperty, "Rules", AutoNumberColumnControlPropertyRules);
91
129
  export default AutoNumberColumnControlProperty;
92
- export { AutoNumberColumnControlProperty };
130
+ export { AutoNumberColumnControlProperty, AutoNumberColumnControlPropertyRules };
@@ -170,6 +170,10 @@ _defineProperty(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,8 +82,21 @@ function _createSuper(Derived) {
82
82
  return _possibleConstructorReturn(this, result);
83
83
  };
84
84
  }
85
- import { ColumnControlProperty, DataSourceBind, initOptions } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, DataSourceBind, initOptions, LinkOperationOption, initLinkOperationRules, ColumnControlPropertyRules } from "@byteluck-fe/model-driven-core";
86
86
  import { DesignerDecimalColumnControl } from "./designer";
87
+ var DecimalColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropertyRules) {
88
+ "use strict";
89
+ _inherits(DecimalColumnControlPropertyRules, ColumnControlPropertyRules);
90
+ var _super = _createSuper(DecimalColumnControlPropertyRules);
91
+ function DecimalColumnControlPropertyRules(props) {
92
+ _classCallCheck(this, DecimalColumnControlPropertyRules);
93
+ var _this;
94
+ _this = _super.call(this, props);
95
+ initLinkOperationRules.call(_assertThisInitialized(_this), props);
96
+ return _this;
97
+ }
98
+ return DecimalColumnControlPropertyRules;
99
+ }(ColumnControlPropertyRules);
87
100
  /**
88
101
  * DecimalColumn 数字列
89
102
  * @public
@@ -105,6 +118,14 @@ import { DesignerDecimalColumnControl } from "./designer";
105
118
  * @public
106
119
  */ _defineProperty(_assertThisInitialized(_this), "datasourceBind", void 0);
107
120
  /**
121
+ * 是否显示链接操作
122
+ * @public
123
+ */ _defineProperty(_assertThisInitialized(_this), "showLinkOperation", void 0);
124
+ /**
125
+ * 链接操作配置
126
+ * @public
127
+ */ _defineProperty(_assertThisInitialized(_this), "linkOperationOption", void 0);
128
+ /**
108
129
  * 自定义选项
109
130
  * @defaultValue []
110
131
  * @public
@@ -139,9 +160,13 @@ import { DesignerDecimalColumnControl } from "./designer";
139
160
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
140
161
  {}
141
162
  ]);
163
+ var _props_showLinkOperation;
164
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
165
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
142
166
  return _this;
143
167
  }
144
168
  return DecimalColumnControlProperty;
145
169
  }(ColumnControlProperty);
170
+ _defineProperty(DecimalColumnControlProperty, "Rules", DecimalColumnControlPropertyRules);
146
171
  export default DecimalColumnControlProperty;
147
- export { DecimalColumnControlProperty };
172
+ export { DecimalColumnControlProperty, DecimalColumnControlPropertyRules };
@@ -119,6 +119,10 @@ _defineProperty(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 _classCallCheck(instance, Constructor) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
+ function _defineProperty(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 _getPrototypeOf(o) {
13
26
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -69,8 +82,21 @@ function _createSuper(Derived) {
69
82
  return _possibleConstructorReturn(this, result);
70
83
  };
71
84
  }
72
- import { ColumnControlProperty } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, LinkOperationOption, initLinkOperationRules, ColumnControlPropertyRules } from "@byteluck-fe/model-driven-core";
73
86
  import { DesignerLocationColumnControl } from "./designer";
87
+ var LocationColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropertyRules) {
88
+ "use strict";
89
+ _inherits(LocationColumnControlPropertyRules, ColumnControlPropertyRules);
90
+ var _super = _createSuper(LocationColumnControlPropertyRules);
91
+ function LocationColumnControlPropertyRules(props) {
92
+ _classCallCheck(this, LocationColumnControlPropertyRules);
93
+ var _this;
94
+ _this = _super.call(this, props);
95
+ initLinkOperationRules.call(_assertThisInitialized(_this), props);
96
+ return _this;
97
+ }
98
+ return LocationColumnControlPropertyRules;
99
+ }(ColumnControlPropertyRules);
74
100
  /**
75
101
  * LocationColumn 地址列
76
102
  * @public
@@ -82,11 +108,23 @@ import { DesignerLocationColumnControl } from "./designer";
82
108
  _classCallCheck(this, LocationColumnControlProperty);
83
109
  var _this;
84
110
  _this = _super.call(this, props);
111
+ /**
112
+ * 是否显示链接操作
113
+ * @public
114
+ */ _defineProperty(_assertThisInitialized(_this), "showLinkOperation", void 0);
115
+ /**
116
+ * 链接操作配置
117
+ * @public
118
+ */ _defineProperty(_assertThisInitialized(_this), "linkOperationOption", void 0);
85
119
  var _props_caption;
86
120
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerLocationColumnControl.controlName;
121
+ var _props_showLinkOperation;
122
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
123
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
87
124
  return _this;
88
125
  }
89
126
  return LocationColumnControlProperty;
90
127
  }(ColumnControlProperty);
128
+ _defineProperty(LocationColumnControlProperty, "Rules", LocationColumnControlPropertyRules);
91
129
  export default LocationColumnControlProperty;
92
- export { LocationColumnControlProperty };
130
+ export { LocationColumnControlProperty, LocationColumnControlPropertyRules };
@@ -173,6 +173,10 @@ _defineProperty(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,8 +82,21 @@ function _createSuper(Derived) {
82
82
  return _possibleConstructorReturn(this, result);
83
83
  };
84
84
  }
85
- import { ColumnControlProperty } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, LinkOperationOption, initLinkOperationRules, ColumnControlPropertyRules } from "@byteluck-fe/model-driven-core";
86
86
  import { DesignerTextColumnControl } from "./designer";
87
+ var TextColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropertyRules) {
88
+ "use strict";
89
+ _inherits(TextColumnControlPropertyRules, ColumnControlPropertyRules);
90
+ var _super = _createSuper(TextColumnControlPropertyRules);
91
+ function TextColumnControlPropertyRules(props) {
92
+ _classCallCheck(this, TextColumnControlPropertyRules);
93
+ var _this;
94
+ _this = _super.call(this, props);
95
+ initLinkOperationRules.call(_assertThisInitialized(_this), props);
96
+ return _this;
97
+ }
98
+ return TextColumnControlPropertyRules;
99
+ }(ColumnControlPropertyRules);
87
100
  /**
88
101
  * TextColumn 长文本列
89
102
  * @public
@@ -104,16 +117,28 @@ import { DesignerTextColumnControl } from "./designer";
104
117
  * 行数设置
105
118
  * @defaultValue 1
106
119
  * @public
107
- */ _defineProperty(_assertThisInitialized(_this), "lineEllipsis", void 0);
120
+ */ /**
121
+ * 是否显示链接操作
122
+ * @public
123
+ */ _defineProperty(_assertThisInitialized(_this), "showLinkOperation", void 0);
124
+ /**
125
+ * 链接操作配置
126
+ * @public
127
+ */ _defineProperty(_assertThisInitialized(_this), "linkOperationOption", void 0);
128
+ _defineProperty(_assertThisInitialized(_this), "lineEllipsis", void 0);
108
129
  var _props_escapeHTML;
109
130
  _this.escapeHTML = (_props_escapeHTML = props === null || props === void 0 ? void 0 : props.escapeHTML) !== null && _props_escapeHTML !== void 0 ? _props_escapeHTML : true;
110
131
  var _props_caption;
111
132
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTextColumnControl.controlName;
112
133
  var _props_lineEllipsis;
113
134
  _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
135
+ var _props_showLinkOperation;
136
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
137
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
114
138
  return _this;
115
139
  }
116
140
  return TextColumnControlProperty;
117
141
  }(ColumnControlProperty);
142
+ _defineProperty(TextColumnControlProperty, "Rules", TextColumnControlPropertyRules);
118
143
  export default TextColumnControlProperty;
119
- export { TextColumnControlProperty };
144
+ export { TextColumnControlProperty, TextColumnControlPropertyRules };
@@ -169,6 +169,10 @@ _defineProperty(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,9 +82,22 @@ function _createSuper(Derived) {
82
82
  return _possibleConstructorReturn(this, result);
83
83
  };
84
84
  }
85
- import { ColumnControlProperty } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, LinkOperationOption, initLinkOperationRules, ColumnControlPropertyRules } from "@byteluck-fe/model-driven-core";
86
86
  import { DateType } from "@byteluck-fe/model-driven-shared";
87
87
  import { DesignerTimescopeColumnControl } from "./designer";
88
+ var TimescopeColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropertyRules) {
89
+ "use strict";
90
+ _inherits(TimescopeColumnControlPropertyRules, ColumnControlPropertyRules);
91
+ var _super = _createSuper(TimescopeColumnControlPropertyRules);
92
+ function TimescopeColumnControlPropertyRules(props) {
93
+ _classCallCheck(this, TimescopeColumnControlPropertyRules);
94
+ var _this;
95
+ _this = _super.call(this, props);
96
+ initLinkOperationRules.call(_assertThisInitialized(_this), props);
97
+ return _this;
98
+ }
99
+ return TimescopeColumnControlPropertyRules;
100
+ }(ColumnControlPropertyRules);
88
101
  /**
89
102
  * TimescopeColumn 日期区间列
90
103
  * @public
@@ -101,13 +114,25 @@ import { DesignerTimescopeColumnControl } from "./designer";
101
114
  * @defaultValue 'date'
102
115
  * @public
103
116
  * */ _defineProperty(_assertThisInitialized(_this), "dateType", void 0);
117
+ /**
118
+ * 是否显示链接操作
119
+ * @public
120
+ */ _defineProperty(_assertThisInitialized(_this), "showLinkOperation", void 0);
121
+ /**
122
+ * 链接操作配置
123
+ * @public
124
+ */ _defineProperty(_assertThisInitialized(_this), "linkOperationOption", void 0);
104
125
  var _props_dateType;
105
126
  _this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
127
+ var _props_showLinkOperation;
128
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
129
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
106
130
  var _props_caption;
107
131
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTimescopeColumnControl.controlName;
108
132
  return _this;
109
133
  }
110
134
  return TimescopeColumnControlProperty;
111
135
  }(ColumnControlProperty);
136
+ _defineProperty(TimescopeColumnControlProperty, "Rules", TimescopeColumnControlPropertyRules);
112
137
  export default TimescopeColumnControlProperty;
113
- export { TimescopeColumnControlProperty };
138
+ export { TimescopeColumnControlProperty, TimescopeColumnControlPropertyRules };
@@ -169,6 +169,10 @@ _defineProperty(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,9 +82,22 @@ function _createSuper(Derived) {
82
82
  return _possibleConstructorReturn(this, result);
83
83
  };
84
84
  }
85
- import { ColumnControlProperty } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, LinkOperationOption, ColumnControlPropertyRules, initLinkOperationRules } from "@byteluck-fe/model-driven-core";
86
86
  import { DateType } from "@byteluck-fe/model-driven-shared";
87
87
  import { DesignerTimestampColumnControl } from "./designer";
88
+ var TimestampColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropertyRules) {
89
+ "use strict";
90
+ _inherits(TimestampColumnControlPropertyRules, ColumnControlPropertyRules);
91
+ var _super = _createSuper(TimestampColumnControlPropertyRules);
92
+ function TimestampColumnControlPropertyRules(props) {
93
+ _classCallCheck(this, TimestampColumnControlPropertyRules);
94
+ var _this;
95
+ _this = _super.call(this, props);
96
+ initLinkOperationRules.call(_assertThisInitialized(_this), props);
97
+ return _this;
98
+ }
99
+ return TimestampColumnControlPropertyRules;
100
+ }(ColumnControlPropertyRules);
88
101
  /**
89
102
  * TimestampColumn 日期列
90
103
  * @public
@@ -101,13 +114,25 @@ import { DesignerTimestampColumnControl } from "./designer";
101
114
  * @defaultValue 'date'
102
115
  * @public
103
116
  * */ _defineProperty(_assertThisInitialized(_this), "dateType", void 0);
117
+ /**
118
+ * 是否显示链接操作
119
+ * @public
120
+ */ _defineProperty(_assertThisInitialized(_this), "showLinkOperation", void 0);
121
+ /**
122
+ * 链接操作配置
123
+ * @public
124
+ */ _defineProperty(_assertThisInitialized(_this), "linkOperationOption", void 0);
104
125
  var _props_dateType;
105
126
  _this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
127
+ var _props_showLinkOperation;
128
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
129
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
106
130
  var _props_caption;
107
131
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTimestampColumnControl.controlName;
108
132
  return _this;
109
133
  }
110
134
  return TimestampColumnControlProperty;
111
135
  }(ColumnControlProperty);
136
+ _defineProperty(TimestampColumnControlProperty, "Rules", TimestampColumnControlPropertyRules);
112
137
  export default TimestampColumnControlProperty;
113
- export { TimestampColumnControlProperty };
138
+ export { TimestampColumnControlProperty, TimestampColumnControlPropertyRules };
@@ -123,6 +123,10 @@ _defineProperty(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 _createSuper(Derived) {
82
82
  return _possibleConstructorReturn(this, result);
83
83
  };
84
84
  }
85
- import { ColumnControlProperty, ColumnOptionAndDataSourcePropertyRules, DataSourceBind, initOptions } from "@byteluck-fe/model-driven-core";
85
+ import { ColumnControlProperty, ColumnOptionAndDataSourcePropertyRules, DataSourceBind, LinkOperationOption, initLinkOperationRules, initOptions } from "@byteluck-fe/model-driven-core";
86
86
  import { DesignerVarcharColumnControl } from "./designer";
87
87
  var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDataSourcePropertyRules) {
88
88
  "use strict";
@@ -90,7 +90,10 @@ var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
90
90
  var _super = _createSuper(VarcharColumnControlPropertyRules);
91
91
  function VarcharColumnControlPropertyRules(props) {
92
92
  _classCallCheck(this, VarcharColumnControlPropertyRules);
93
- return _super.call(this, props);
93
+ var _this;
94
+ _this = _super.call(this, props);
95
+ initLinkOperationRules.call(_assertThisInitialized(_this), props);
96
+ return _this;
94
97
  }
95
98
  return VarcharColumnControlPropertyRules;
96
99
  }(ColumnOptionAndDataSourcePropertyRules);
@@ -115,6 +118,14 @@ var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
115
118
  * @public
116
119
  */ _defineProperty(_assertThisInitialized(_this), "datasourceBind", void 0);
117
120
  /**
121
+ * 是否显示链接操作
122
+ * @public
123
+ */ _defineProperty(_assertThisInitialized(_this), "showLinkOperation", void 0);
124
+ /**
125
+ * 链接操作配置
126
+ * @public
127
+ */ _defineProperty(_assertThisInitialized(_this), "linkOperationOption", void 0);
128
+ /**
118
129
  * 自定义选项
119
130
  * @defaultValue []
120
131
  * @public
@@ -131,6 +142,9 @@ var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
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
  {}
133
144
  ]);
145
+ var _props_showLinkOperation;
146
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
147
+ _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
134
148
  var _props_lineEllipsis;
135
149
  _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
136
150
  return _this;