@byteluck-fe/model-driven-controls 5.6.0-1-beta3 → 5.6.4-dpx-beta.1

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 (173) hide show
  1. package/dist/esm/baseControls/BatchDeleteButton/property.js +10 -18
  2. package/dist/esm/baseControls/BatchPrintListButton/property.js +6 -9
  3. package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +3 -4
  4. package/dist/esm/baseControls/BatchSubmissionListButton/property.js +7 -12
  5. package/dist/esm/baseControls/Button/property.js +10 -18
  6. package/dist/esm/baseControls/CreateFormListButton/property.js +5 -8
  7. package/dist/esm/baseControls/Dashboard/designer.js +4 -0
  8. package/dist/esm/baseControls/Dashboard/property.js +15 -13
  9. package/dist/esm/baseControls/Divider/property.js +4 -5
  10. package/dist/esm/baseControls/ExportListButton/property.js +6 -9
  11. package/dist/esm/baseControls/ExportRecordListButton/property.js +3 -4
  12. package/dist/esm/baseControls/FormSelectButton/property.js +4 -6
  13. package/dist/esm/baseControls/ImportRecordListButton/property.js +6 -9
  14. package/dist/esm/baseControls/InvoiceCheckButton/property.js +11 -19
  15. package/dist/esm/baseControls/Link/property.js +4 -6
  16. package/dist/esm/baseControls/ListSelectButton/property.js +6 -10
  17. package/dist/esm/baseControls/ListViewSelect/property.js +4 -5
  18. package/dist/esm/baseControls/OperationButton/property.js +9 -11
  19. package/dist/esm/baseControls/ReferenceList/property.js +7 -12
  20. package/dist/esm/baseControls/SubmissionRecordListButton/property.js +3 -4
  21. package/dist/esm/baseControls/Text/designer.js +4 -0
  22. package/dist/esm/baseControls/Text/property.js +13 -13
  23. package/dist/esm/baseControls/TextOcrButton/property.js +11 -19
  24. package/dist/esm/baseControls/Title/property.js +4 -6
  25. package/dist/esm/columnControls/ApprovalStatusColumn/property.js +4 -6
  26. package/dist/esm/columnControls/ArrayColumn/property.js +5 -8
  27. package/dist/esm/columnControls/AutoNumberColumn/property.js +3 -4
  28. package/dist/esm/columnControls/CustomColumn/designer.js +1 -0
  29. package/dist/esm/columnControls/CustomColumn/property.js +4 -6
  30. package/dist/esm/columnControls/DecimalColumn/property.js +8 -14
  31. package/dist/esm/columnControls/DepartmentColumn/property.js +3 -4
  32. package/dist/esm/columnControls/EmployeeColumn/designer.js +1 -1
  33. package/dist/esm/columnControls/EmployeeColumn/property.js +3 -4
  34. package/dist/esm/columnControls/FileColumn/property.js +3 -4
  35. package/dist/esm/columnControls/ImageColumn/property.js +2 -2
  36. package/dist/esm/columnControls/LocationColumn/property.js +3 -4
  37. package/dist/esm/columnControls/OperationColumn/designer.js +12 -4
  38. package/dist/esm/columnControls/OperationColumn/property.js +6 -10
  39. package/dist/esm/columnControls/OrderColumn/property.js +7 -12
  40. package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
  41. package/dist/esm/columnControls/TextColumn/property.js +5 -8
  42. package/dist/esm/columnControls/TimescopeColumn/designer.js +2 -1
  43. package/dist/esm/columnControls/TimescopeColumn/property.js +7 -7
  44. package/dist/esm/columnControls/TimestampColumn/designer.js +2 -1
  45. package/dist/esm/columnControls/TimestampColumn/property.js +7 -7
  46. package/dist/esm/columnControls/VarcharColumn/property.js +7 -12
  47. package/dist/esm/formControls/Address/property.js +6 -10
  48. package/dist/esm/formControls/Address/runtime.js +1 -1
  49. package/dist/esm/formControls/Amount/property.js +14 -25
  50. package/dist/esm/formControls/Attachment/designer.js +5 -0
  51. package/dist/esm/formControls/Attachment/property.js +29 -36
  52. package/dist/esm/formControls/AutoNumber/property.js +4 -6
  53. package/dist/esm/formControls/Calc/property.js +10 -18
  54. package/dist/esm/formControls/Checkbox/designer.js +4 -0
  55. package/dist/esm/formControls/Checkbox/property.js +21 -28
  56. package/dist/esm/formControls/DatePicker/designer.js +4 -2
  57. package/dist/esm/formControls/DatePicker/property.js +14 -21
  58. package/dist/esm/formControls/DateRange/designer.js +4 -2
  59. package/dist/esm/formControls/DateRange/property.js +15 -22
  60. package/dist/esm/formControls/Department/property.js +12 -22
  61. package/dist/esm/formControls/Department2/designer.js +1 -1
  62. package/dist/esm/formControls/Department2/property.js +17 -32
  63. package/dist/esm/formControls/ElectronicSignature/property.js +7 -12
  64. package/dist/esm/formControls/Employee/property.js +10 -18
  65. package/dist/esm/formControls/Employee2/designer.js +5 -1
  66. package/dist/esm/formControls/Employee2/property.js +21 -34
  67. package/dist/esm/formControls/Image/designer.js +19 -15
  68. package/dist/esm/formControls/Image/property.js +28 -2
  69. package/dist/esm/formControls/Image/runtime.js +16 -10
  70. package/dist/esm/formControls/Input/designer.js +12 -0
  71. package/dist/esm/formControls/Input/property.js +23 -15
  72. package/dist/esm/formControls/Number/property.js +15 -27
  73. package/dist/esm/formControls/OrganizationSelection/designer.js +1 -1
  74. package/dist/esm/formControls/OrganizationSelection/property.js +19 -36
  75. package/dist/esm/formControls/Radio/designer.js +4 -0
  76. package/dist/esm/formControls/Radio/property.js +18 -23
  77. package/dist/esm/formControls/RichText/designer.js +16 -0
  78. package/dist/esm/formControls/RichText/property.js +48 -12
  79. package/dist/esm/formControls/Score/property.js +8 -13
  80. package/dist/esm/formControls/SearchDateRange/property.js +16 -24
  81. package/dist/esm/formControls/SearchNumberRange/property.js +7 -12
  82. package/dist/esm/formControls/Select/designer.js +4 -0
  83. package/dist/esm/formControls/Select/property.js +17 -21
  84. package/dist/esm/formControls/SelectMultiple/designer.js +4 -0
  85. package/dist/esm/formControls/SelectMultiple/property.js +16 -19
  86. package/dist/esm/formControls/SelectRelation/designer.js +4 -0
  87. package/dist/esm/formControls/SelectRelation/property.js +60 -66
  88. package/dist/esm/formControls/Textarea/designer.js +16 -0
  89. package/dist/esm/formControls/Textarea/property.js +60 -12
  90. package/dist/esm/formControls/Tree/designer.js +2 -2
  91. package/dist/esm/formControls/Tree/property.js +20 -37
  92. package/dist/esm/formControls/VueFormItem/property.js +6 -10
  93. package/dist/esm/formControls/VuePage/property.js +6 -10
  94. package/dist/esm/formControls/WPS/designer.js +9 -9
  95. package/dist/esm/formControls/WPS/property.js +13 -24
  96. package/dist/esm/framework.js +77 -113
  97. package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
  98. package/dist/esm/layoutControls/ActionBar/property.js +4 -6
  99. package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
  100. package/dist/esm/layoutControls/AdvancedContainer/Setting.js +3 -3
  101. package/dist/esm/layoutControls/CardGroup/property.js +4 -6
  102. package/dist/esm/layoutControls/Col/property.js +3 -4
  103. package/dist/esm/layoutControls/DataView/property.js +7 -12
  104. package/dist/esm/layoutControls/GridLayoutContainer/property.js +3 -4
  105. package/dist/esm/layoutControls/GridTableColumn/designer.js +1 -1
  106. package/dist/esm/layoutControls/GridTableColumn/property.js +11 -20
  107. package/dist/esm/layoutControls/ListView/property.js +13 -24
  108. package/dist/esm/layoutControls/Page/Setting.js +5 -5
  109. package/dist/esm/layoutControls/Page/property.js +2 -2
  110. package/dist/esm/layoutControls/Position/property.js +5 -8
  111. package/dist/esm/layoutControls/PositioningContainer/Setting.js +3 -3
  112. package/dist/esm/layoutControls/Row/property.js +3 -4
  113. package/dist/esm/layoutControls/Step/designer.js +166 -0
  114. package/dist/esm/layoutControls/Step/index.js +11 -0
  115. package/dist/esm/layoutControls/Step/property.js +99 -0
  116. package/dist/esm/layoutControls/Step/runtime.js +112 -0
  117. package/dist/esm/layoutControls/Step/types.js +0 -0
  118. package/dist/esm/layoutControls/StepPane/designer.js +130 -0
  119. package/dist/esm/layoutControls/StepPane/index.js +11 -0
  120. package/dist/esm/layoutControls/StepPane/property.js +116 -0
  121. package/dist/esm/layoutControls/StepPane/runtime.js +112 -0
  122. package/dist/esm/layoutControls/StepPane/types.js +0 -0
  123. package/dist/esm/layoutControls/SubTableColumn/property.js +6 -10
  124. package/dist/esm/layoutControls/Tab/designer.js +2 -2
  125. package/dist/esm/layoutControls/Tab/property.js +2 -2
  126. package/dist/esm/layoutControls/TabPane/property.js +2 -2
  127. package/dist/esm/layoutControls/index.js +2 -0
  128. package/dist/esm/listControls/GridTable/designer.js +13 -4
  129. package/dist/esm/listControls/GridTable/property.js +15 -19
  130. package/dist/esm/listControls/SubTable/designer.js +2 -1
  131. package/dist/esm/listControls/SubTable/property.js +37 -67
  132. package/dist/esm/searchControls/SimpleSearch/property.js +13 -24
  133. package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
  134. package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
  135. package/dist/esm/wrapControls/GridLayoutWrap/property.js +2 -2
  136. package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
  137. package/dist/index.umd.js +1 -1
  138. package/dist/types/baseControls/Dashboard/property.d.ts +5 -1
  139. package/dist/types/baseControls/OperationButton/property.d.ts +1 -0
  140. package/dist/types/baseControls/Text/property.d.ts +6 -0
  141. package/dist/types/columnControls/TimescopeColumn/property.d.ts +1 -0
  142. package/dist/types/columnControls/TimestampColumn/property.d.ts +1 -0
  143. package/dist/types/formControls/Attachment/property.d.ts +3 -0
  144. package/dist/types/formControls/Checkbox/property.d.ts +6 -0
  145. package/dist/types/formControls/DatePicker/property.d.ts +1 -0
  146. package/dist/types/formControls/DateRange/property.d.ts +1 -0
  147. package/dist/types/formControls/Employee2/property.d.ts +1 -0
  148. package/dist/types/formControls/Image/designer.d.ts +2 -0
  149. package/dist/types/formControls/Image/property.d.ts +3 -0
  150. package/dist/types/formControls/Image/runtime.d.ts +2 -0
  151. package/dist/types/formControls/Input/property.d.ts +17 -0
  152. package/dist/types/formControls/Radio/property.d.ts +6 -0
  153. package/dist/types/formControls/RichText/property.d.ts +30 -1
  154. package/dist/types/formControls/SearchDateRange/property.d.ts +1 -0
  155. package/dist/types/formControls/Select/property.d.ts +6 -0
  156. package/dist/types/formControls/SelectMultiple/property.d.ts +6 -0
  157. package/dist/types/formControls/SelectRelation/property.d.ts +6 -0
  158. package/dist/types/formControls/Textarea/property.d.ts +30 -1
  159. package/dist/types/framework.d.ts +8 -0
  160. package/dist/types/layoutControls/Step/designer.d.ts +14 -0
  161. package/dist/types/layoutControls/Step/index.d.ts +12 -0
  162. package/dist/types/layoutControls/Step/property.d.ts +11 -0
  163. package/dist/types/layoutControls/Step/runtime.d.ts +9 -0
  164. package/dist/types/layoutControls/Step/types.d.ts +0 -0
  165. package/dist/types/layoutControls/StepPane/designer.d.ts +14 -0
  166. package/dist/types/layoutControls/StepPane/index.d.ts +12 -0
  167. package/dist/types/layoutControls/StepPane/property.d.ts +14 -0
  168. package/dist/types/layoutControls/StepPane/runtime.d.ts +9 -0
  169. package/dist/types/layoutControls/StepPane/types.d.ts +0 -0
  170. package/dist/types/layoutControls/index.d.ts +2 -0
  171. package/dist/types/listControls/SubTable/property.d.ts +1 -0
  172. package/dist/types/type.d.ts +3 -1
  173. package/package.json +5 -5
@@ -0,0 +1,130 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _defineProperties(target, props) {
17
+ for(var i = 0; i < props.length; i++){
18
+ var descriptor = props[i];
19
+ descriptor.enumerable = descriptor.enumerable || false;
20
+ descriptor.configurable = true;
21
+ if ("value" in descriptor) descriptor.writable = true;
22
+ Object.defineProperty(target, descriptor.key, descriptor);
23
+ }
24
+ }
25
+ function _create_class(Constructor, protoProps, staticProps) {
26
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
+ if (staticProps) _defineProperties(Constructor, staticProps);
28
+ return Constructor;
29
+ }
30
+ function _define_property(obj, key, value) {
31
+ if (key in obj) {
32
+ Object.defineProperty(obj, key, {
33
+ value: value,
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true
37
+ });
38
+ } else {
39
+ obj[key] = value;
40
+ }
41
+ return obj;
42
+ }
43
+ function _get_prototype_of(o) {
44
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
45
+ return o.__proto__ || Object.getPrototypeOf(o);
46
+ };
47
+ return _get_prototype_of(o);
48
+ }
49
+ function _inherits(subClass, superClass) {
50
+ if (typeof superClass !== "function" && superClass !== null) {
51
+ throw new TypeError("Super expression must either be null or a function");
52
+ }
53
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
54
+ constructor: {
55
+ value: subClass,
56
+ writable: true,
57
+ configurable: true
58
+ }
59
+ });
60
+ if (superClass) _set_prototype_of(subClass, superClass);
61
+ }
62
+ function _possible_constructor_return(self, call) {
63
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
+ return call;
65
+ }
66
+ return _assert_this_initialized(self);
67
+ }
68
+ function _set_prototype_of(o, p) {
69
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
70
+ o.__proto__ = p;
71
+ return o;
72
+ };
73
+ return _set_prototype_of(o, p);
74
+ }
75
+ function _type_of(obj) {
76
+ "@swc/helpers - typeof";
77
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
+ }
79
+ function _is_native_reflect_construct() {
80
+ try {
81
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
+ } catch (_) {}
83
+ return (_is_native_reflect_construct = function() {
84
+ return !!result;
85
+ })();
86
+ }
87
+ import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
88
+ import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
89
+ import StepPaneControlProperty from './property';
90
+ import { getLocaleText } from '@byteluck-fe/locale-message';
91
+ var StepPaneControl = /*#__PURE__*/ function(DesignerLayoutControl) {
92
+ "use strict";
93
+ _inherits(StepPaneControl, DesignerLayoutControl);
94
+ function StepPaneControl(props) {
95
+ _class_call_check(this, StepPaneControl);
96
+ var _this;
97
+ _this = _call_super(this, StepPaneControl, [
98
+ props
99
+ ]), _define_property(_this, "props", void 0);
100
+ _this.props = new StepPaneControlProperty(props === null || props === void 0 ? void 0 : props.props);
101
+ return _this;
102
+ }
103
+ _create_class(StepPaneControl, null, [
104
+ {
105
+ key: "controlName",
106
+ get: function get() {
107
+ return getLocaleText('CMD.stepPane', null, '步骤单元');
108
+ }
109
+ },
110
+ {
111
+ key: "controlType",
112
+ get: function get() {
113
+ return 'step-pane';
114
+ }
115
+ },
116
+ {
117
+ key: "controlIcon",
118
+ get: function get() {
119
+ return 'step-pane';
120
+ }
121
+ }
122
+ ]);
123
+ return StepPaneControl;
124
+ }(DesignerLayoutControl);
125
+ _define_property(StepPaneControl, "excludes", [
126
+ CONTROL_TYPE.TAB
127
+ ]);
128
+ _define_property(StepPaneControl, "setting", []);
129
+ export default StepPaneControl;
130
+ export { StepPaneControl as DesignerStepPaneControl };
@@ -0,0 +1,11 @@
1
+ import Designer from './designer';
2
+ import Runtime from './runtime';
3
+ import Property from './property';
4
+ export default {
5
+ Designer: Designer,
6
+ Runtime: Runtime,
7
+ Property: Property
8
+ };
9
+ export * from './designer';
10
+ export * from './runtime';
11
+ export * from './property';
@@ -0,0 +1,116 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _define_property(obj, key, value) {
17
+ if (key in obj) {
18
+ Object.defineProperty(obj, key, {
19
+ value: value,
20
+ enumerable: true,
21
+ configurable: true,
22
+ writable: true
23
+ });
24
+ } else {
25
+ obj[key] = value;
26
+ }
27
+ return obj;
28
+ }
29
+ function _get_prototype_of(o) {
30
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
31
+ return o.__proto__ || Object.getPrototypeOf(o);
32
+ };
33
+ return _get_prototype_of(o);
34
+ }
35
+ function _inherits(subClass, superClass) {
36
+ if (typeof superClass !== "function" && superClass !== null) {
37
+ throw new TypeError("Super expression must either be null or a function");
38
+ }
39
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
40
+ constructor: {
41
+ value: subClass,
42
+ writable: true,
43
+ configurable: true
44
+ }
45
+ });
46
+ if (superClass) _set_prototype_of(subClass, superClass);
47
+ }
48
+ function _possible_constructor_return(self, call) {
49
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
50
+ return call;
51
+ }
52
+ return _assert_this_initialized(self);
53
+ }
54
+ function _set_prototype_of(o, p) {
55
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
56
+ o.__proto__ = p;
57
+ return o;
58
+ };
59
+ return _set_prototype_of(o, p);
60
+ }
61
+ function _type_of(obj) {
62
+ "@swc/helpers - typeof";
63
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
+ }
65
+ function _is_native_reflect_construct() {
66
+ try {
67
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
+ } catch (_) {}
69
+ return (_is_native_reflect_construct = function() {
70
+ return !!result;
71
+ })();
72
+ }
73
+ import { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
74
+ // class StepPaneControlPropertyRules extends PropertyRules {
75
+ // public caption: RuleItem = {
76
+ // type: 'string',
77
+ // required: true,
78
+ // message: getLocaleText('CMD.pleaseEnterCaption',null,'请输入标题'),
79
+ // }
80
+ // constructor(props: StepPaneControlProperty) {
81
+ // super(props)
82
+ // }
83
+ // }
84
+ var StepPaneControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
85
+ "use strict";
86
+ _inherits(StepPaneControlProperty, LayoutControlProperty);
87
+ function StepPaneControlProperty(props) {
88
+ _class_call_check(this, StepPaneControlProperty);
89
+ var _this;
90
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
91
+ _this = _call_super(this, StepPaneControlProperty, [
92
+ props
93
+ ]), // static readonly Rules = StepPaneControlPropertyRules
94
+ _define_property(_this, "title", void 0 //主标题
95
+ ), _define_property(_this, "subTitle", void 0 //副标题
96
+ ), _define_property(_this, "disabled", void 0 //是否禁用点击
97
+ ), _define_property(_this, "icon", void 0 //步骤图标
98
+ ), _define_property(_this, "color", void 0 //步骤激活颜色
99
+ ), _define_property(_this, "status", void 0 //步骤状态
100
+ ), _define_property(_this, "description", void 0 //步骤描述
101
+ ), _define_property(_this, "isDefault", void 0 //是否默认选中
102
+ );
103
+ _this.title = (_ref = props === null || props === void 0 ? void 0 : props.title) !== null && _ref !== void 0 ? _ref : '';
104
+ _this.subTitle = (_ref1 = props === null || props === void 0 ? void 0 : props.subTitle) !== null && _ref1 !== void 0 ? _ref1 : '';
105
+ _this.disabled = (_ref2 = props === null || props === void 0 ? void 0 : props.disabled) !== null && _ref2 !== void 0 ? _ref2 : false;
106
+ _this.icon = (_ref3 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref3 !== void 0 ? _ref3 : '';
107
+ _this.color = (_ref4 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref4 !== void 0 ? _ref4 : '';
108
+ _this.status = (_ref5 = props === null || props === void 0 ? void 0 : props.status) !== null && _ref5 !== void 0 ? _ref5 : 'wait';
109
+ _this.description = (_ref6 = props === null || props === void 0 ? void 0 : props.description) !== null && _ref6 !== void 0 ? _ref6 : '';
110
+ _this.isDefault = (_ref7 = props === null || props === void 0 ? void 0 : props.isDefault) !== null && _ref7 !== void 0 ? _ref7 : false;
111
+ return _this;
112
+ }
113
+ return StepPaneControlProperty;
114
+ }(LayoutControlProperty);
115
+ export default StepPaneControlProperty;
116
+ export { StepPaneControlProperty };
@@ -0,0 +1,112 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _defineProperties(target, props) {
17
+ for(var i = 0; i < props.length; i++){
18
+ var descriptor = props[i];
19
+ descriptor.enumerable = descriptor.enumerable || false;
20
+ descriptor.configurable = true;
21
+ if ("value" in descriptor) descriptor.writable = true;
22
+ Object.defineProperty(target, descriptor.key, descriptor);
23
+ }
24
+ }
25
+ function _create_class(Constructor, protoProps, staticProps) {
26
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
+ if (staticProps) _defineProperties(Constructor, staticProps);
28
+ return Constructor;
29
+ }
30
+ function _define_property(obj, key, value) {
31
+ if (key in obj) {
32
+ Object.defineProperty(obj, key, {
33
+ value: value,
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true
37
+ });
38
+ } else {
39
+ obj[key] = value;
40
+ }
41
+ return obj;
42
+ }
43
+ function _get_prototype_of(o) {
44
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
45
+ return o.__proto__ || Object.getPrototypeOf(o);
46
+ };
47
+ return _get_prototype_of(o);
48
+ }
49
+ function _inherits(subClass, superClass) {
50
+ if (typeof superClass !== "function" && superClass !== null) {
51
+ throw new TypeError("Super expression must either be null or a function");
52
+ }
53
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
54
+ constructor: {
55
+ value: subClass,
56
+ writable: true,
57
+ configurable: true
58
+ }
59
+ });
60
+ if (superClass) _set_prototype_of(subClass, superClass);
61
+ }
62
+ function _possible_constructor_return(self, call) {
63
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
+ return call;
65
+ }
66
+ return _assert_this_initialized(self);
67
+ }
68
+ function _set_prototype_of(o, p) {
69
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
70
+ o.__proto__ = p;
71
+ return o;
72
+ };
73
+ return _set_prototype_of(o, p);
74
+ }
75
+ function _type_of(obj) {
76
+ "@swc/helpers - typeof";
77
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
+ }
79
+ function _is_native_reflect_construct() {
80
+ try {
81
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
+ } catch (_) {}
83
+ return (_is_native_reflect_construct = function() {
84
+ return !!result;
85
+ })();
86
+ }
87
+ import { RuntimeLayoutControl } from '@byteluck-fe/model-driven-core';
88
+ import StepPaneControlProperty from './property';
89
+ var StepPaneControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
90
+ "use strict";
91
+ _inherits(StepPaneControl, RuntimeLayoutControl);
92
+ function StepPaneControl(props) {
93
+ _class_call_check(this, StepPaneControl);
94
+ var _this;
95
+ _this = _call_super(this, StepPaneControl, [
96
+ props
97
+ ]), _define_property(_this, "props", void 0);
98
+ _this.props = new StepPaneControlProperty(props === null || props === void 0 ? void 0 : props.props);
99
+ return _this;
100
+ }
101
+ _create_class(StepPaneControl, null, [
102
+ {
103
+ key: "controlType",
104
+ get: function get() {
105
+ return 'step-pane';
106
+ }
107
+ }
108
+ ]);
109
+ return StepPaneControl;
110
+ }(RuntimeLayoutControl);
111
+ export default StepPaneControl;
112
+ export { StepPaneControl as RuntimeStepPaneControl };
File without changes
@@ -106,6 +106,7 @@ var SubTableColumnControlProperty = /*#__PURE__*/ function(LayoutControlProperty
106
106
  function SubTableColumnControlProperty(props) {
107
107
  _class_call_check(this, SubTableColumnControlProperty);
108
108
  var _this;
109
+ var _ref, _ref1, _ref2, _ref3, _ref4;
109
110
  _this = _call_super(this, SubTableColumnControlProperty, [
110
111
  props
111
112
  ]), /**
@@ -122,16 +123,11 @@ var SubTableColumnControlProperty = /*#__PURE__*/ function(LayoutControlProperty
122
123
  * */ _define_property(_this, "captionTip", void 0), /**
123
124
  * 隐藏标题一直为false
124
125
  * */ _define_property(_this, "isHideCaption", void 0);
125
- var _props_caption;
126
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
127
- var _props_fixed;
128
- _this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : false;
129
- var _props_isShowCaptionTip;
130
- _this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
131
- var _props_captionTip;
132
- _this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
133
- var _props_isHideCaption;
134
- _this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
126
+ _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : '';
127
+ _this.fixed = (_ref1 = props === null || props === void 0 ? void 0 : props.fixed) !== null && _ref1 !== void 0 ? _ref1 : false;
128
+ _this.isShowCaptionTip = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref2 !== void 0 ? _ref2 : false;
129
+ _this.captionTip = (_ref3 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref3 !== void 0 ? _ref3 : '';
130
+ _this.isHideCaption = (_ref4 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref4 !== void 0 ? _ref4 : false;
135
131
  _this.metaAutoWidth = new MetaAutoWidth(props === null || props === void 0 ? void 0 : props.metaAutoWidth);
136
132
  return _this;
137
133
  }
@@ -95,12 +95,12 @@ var TabControl = /*#__PURE__*/ function(DesignerLayoutControl) {
95
95
  function TabControl(props) {
96
96
  _class_call_check(this, TabControl);
97
97
  var _this;
98
+ var _ref;
98
99
  _this = _call_super(this, TabControl, [
99
100
  props
100
101
  ]), _define_property(_this, "props", void 0);
101
102
  _this.props = new TabControlProperty(props === null || props === void 0 ? void 0 : props.props);
102
- var _props_children;
103
- _this.children = (_props_children = props === null || props === void 0 ? void 0 : props.children) !== null && _props_children !== void 0 ? _props_children : [
103
+ _this.children = (_ref = props === null || props === void 0 ? void 0 : props.children) !== null && _ref !== void 0 ? _ref : [
104
104
  new DesignerTabPaneControl(),
105
105
  new DesignerTabPaneControl()
106
106
  ];
@@ -77,11 +77,11 @@ var TabControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
77
77
  function TabControlProperty(props) {
78
78
  _class_call_check(this, TabControlProperty);
79
79
  var _this;
80
+ var _ref;
80
81
  _this = _call_super(this, TabControlProperty, [
81
82
  props
82
83
  ]), _define_property(_this, "mobileShowType", void 0);
83
- var _props_mobileShowType;
84
- _this.mobileShowType = (_props_mobileShowType = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && _props_mobileShowType !== void 0 ? _props_mobileShowType : 'vertical';
84
+ _this.mobileShowType = (_ref = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && _ref !== void 0 ? _ref : 'vertical';
85
85
  return _this;
86
86
  }
87
87
  return TabControlProperty;
@@ -96,11 +96,11 @@ var TabPaneControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
96
96
  function TabPaneControlProperty(props) {
97
97
  _class_call_check(this, TabPaneControlProperty);
98
98
  var _this;
99
+ var _ref;
99
100
  _this = _call_super(this, TabPaneControlProperty, [
100
101
  props
101
102
  ]), _define_property(_this, "caption", void 0);
102
- var _props_caption;
103
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTabControl.controlName;
103
+ _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerTabControl.controlName;
104
104
  return _this;
105
105
  }
106
106
  return TabPaneControlProperty;
@@ -17,3 +17,5 @@ export { default as AdvancedContainer } from './AdvancedContainer';
17
17
  export { default as PositioningContainer } from './PositioningContainer';
18
18
  export { default as Position } from './Position';
19
19
  export { default as ActionBar } from './ActionBar';
20
+ export { default as Step } from './Step';
21
+ export { default as StepPane } from './StepPane';
@@ -105,6 +105,7 @@ function _inherits(subClass, superClass) {
105
105
  if (superClass) _set_prototype_of(subClass, superClass);
106
106
  }
107
107
  function _instanceof(left, right) {
108
+ "@swc/helpers - instanceof";
108
109
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
109
110
  return !!right[Symbol.hasInstance](left);
110
111
  } else {
@@ -191,9 +192,17 @@ function _ts_generator(thisArg, body) {
191
192
  },
192
193
  trys: [],
193
194
  ops: []
194
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
195
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
196
- return this;
195
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
196
+ return d(g, "next", {
197
+ value: verb(0)
198
+ }), d(g, "throw", {
199
+ value: verb(1)
200
+ }), d(g, "return", {
201
+ value: verb(2)
202
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
203
+ value: function() {
204
+ return this;
205
+ }
197
206
  }), g;
198
207
  function verb(n) {
199
208
  return function(v) {
@@ -332,7 +341,7 @@ var GridTableControl = /*#__PURE__*/ function _target(DesignerListControl) {
332
341
  key: "validate",
333
342
  value: function validate(messages, ignore) {
334
343
  var _this = this;
335
- var _this1 = this, _superprop_get_validate = function() {
344
+ var _this1 = this, _superprop_get_validate = function _superprop_get_validate() {
336
345
  return _get(_get_prototype_of(GridTableControl.prototype), "validate", _this);
337
346
  };
338
347
  return _async_to_generator(function() {
@@ -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
@@ -87,6 +87,7 @@ import { ListControlProperty } from '@byteluck-fe/model-driven-core';
87
87
  function GridTableControlProperty(parent, props) {
88
88
  _class_call_check(this, GridTableControlProperty);
89
89
  var _this;
90
+ var _ref, _ref1, _ref2, _ref3, _ref4;
90
91
  _this = _call_super(this, GridTableControlProperty, [
91
92
  parent,
92
93
  props
@@ -110,17 +111,12 @@ import { ListControlProperty } from '@byteluck-fe/model-driven-core';
110
111
  * @defaultValue true
111
112
  * @public
112
113
  */ _define_property(_this, "isShowCustomColumns", void 0);
113
- var _props_isFixedHeader;
114
- _this.isFixedHeader = (_props_isFixedHeader = props === null || props === void 0 ? void 0 : props.isFixedHeader) !== null && _props_isFixedHeader !== void 0 ? _props_isFixedHeader : false;
114
+ _this.isFixedHeader = (_ref = props === null || props === void 0 ? void 0 : props.isFixedHeader) !== null && _ref !== void 0 ? _ref : false;
115
115
  _this.selectionType = props === null || props === void 0 ? void 0 : props.selectionType;
116
- var _props_isShowToolbar;
117
- _this.isShowToolbar = (_props_isShowToolbar = props === null || props === void 0 ? void 0 : props.isShowToolbar) !== null && _props_isShowToolbar !== void 0 ? _props_isShowToolbar : true;
118
- var _props_isShowSelection;
119
- _this.isShowSelection = (_props_isShowSelection = props === null || props === void 0 ? void 0 : props.isShowSelection) !== null && _props_isShowSelection !== void 0 ? _props_isShowSelection : false;
120
- var _props_isShowCustomColumns;
121
- _this.isShowCustomColumns = (_props_isShowCustomColumns = props === null || props === void 0 ? void 0 : props.isShowCustomColumns) !== null && _props_isShowCustomColumns !== void 0 ? _props_isShowCustomColumns : true;
122
- var _props_pageSizeOptions;
123
- _this.pageSizeOptions = (_props_pageSizeOptions = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _props_pageSizeOptions !== void 0 ? _props_pageSizeOptions : [
116
+ _this.isShowToolbar = (_ref1 = props === null || props === void 0 ? void 0 : props.isShowToolbar) !== null && _ref1 !== void 0 ? _ref1 : true;
117
+ _this.isShowSelection = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowSelection) !== null && _ref2 !== void 0 ? _ref2 : false;
118
+ _this.isShowCustomColumns = (_ref3 = props === null || props === void 0 ? void 0 : props.isShowCustomColumns) !== null && _ref3 !== void 0 ? _ref3 : true;
119
+ _this.pageSizeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _ref4 !== void 0 ? _ref4 : [
124
120
  10,
125
121
  20,
126
122
  50,
@@ -181,7 +181,8 @@ _define_property(SubTableControl, "setting", [
181
181
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
182
182
  COMMON_SETTING_TYPE.IS_PASTE,
183
183
  COMMON_SETTING_TYPE.SERVER_PAGINATION,
184
- COMMON_SETTING_TYPE.SORTABLE
184
+ COMMON_SETTING_TYPE.SORTABLE,
185
+ COMMON_SETTING_TYPE.SHOW_TABLE_INDEX
185
186
  ]
186
187
  },
187
188
  {