@byteluck-fe/model-driven-controls 2.23.2 → 2.23.7

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/EmployeeColumn/designer.js +1 -1
  2. package/dist/esm/columnControls/OperationColumn/designer.js +6 -10
  3. package/dist/esm/formControls/Address/runtime.js +2 -1
  4. package/dist/esm/formControls/Amount/property.js +1 -1
  5. package/dist/esm/formControls/Department2/designer.js +1 -1
  6. package/dist/esm/formControls/Employee2/designer.js +1 -1
  7. package/dist/esm/formControls/Employee2/property.js +1 -2
  8. package/dist/esm/formControls/Number/property.js +1 -1
  9. package/dist/esm/formControls/OrganizationSelection/designer.js +1 -1
  10. package/dist/esm/formControls/RichText/designer.js +8 -0
  11. package/dist/esm/formControls/RichText/property.js +12 -1
  12. package/dist/esm/formControls/Textarea/designer.js +8 -0
  13. package/dist/esm/formControls/Textarea/property.js +24 -1
  14. package/dist/esm/formControls/Tree/designer.js +2 -2
  15. package/dist/esm/framework.js +71 -40
  16. package/dist/esm/layoutControls/AdvancedContainer/Setting.js +4 -3
  17. package/dist/esm/layoutControls/GridTableColumn/designer.js +2 -1
  18. package/dist/esm/layoutControls/ListView/property.js +5 -3
  19. package/dist/esm/layoutControls/Page/Setting.js +6 -5
  20. package/dist/esm/layoutControls/PositioningContainer/Setting.js +4 -3
  21. package/dist/esm/listControls/GridTable/designer.js +6 -10
  22. package/dist/index.umd.js +1 -1
  23. package/dist/types/formControls/RichText/property.d.ts +11 -0
  24. package/dist/types/formControls/Textarea/property.d.ts +11 -0
  25. package/dist/types/framework.d.ts +20 -0
  26. package/dist/types/layoutControls/GridTableColumn/designer.d.ts +1 -1
  27. package/package.json +5 -5
@@ -107,7 +107,7 @@ var EmployeeColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
107
107
  return [
108
108
  {
109
109
  key: 'displayBoList',
110
- name: '显示值',
110
+ name: getLocaleText('CMD.d9ec1751967128273'),
111
111
  required: true
112
112
  }
113
113
  ];
@@ -137,7 +137,7 @@ function _is_native_reflect_construct() {
137
137
  })();
138
138
  }
139
139
  function _ts_generator(thisArg, body) {
140
- var f, y, t, g, _ = {
140
+ var f, y, t, _ = {
141
141
  label: 0,
142
142
  sent: function() {
143
143
  if (t[0] & 1) throw t[1];
@@ -145,12 +145,8 @@ function _ts_generator(thisArg, body) {
145
145
  },
146
146
  trys: [],
147
147
  ops: []
148
- };
149
- return g = {
150
- next: verb(0),
151
- "throw": verb(1),
152
- "return": verb(2)
153
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
148
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
149
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
154
150
  return this;
155
151
  }), g;
156
152
  function verb(n) {
@@ -163,7 +159,7 @@ function _ts_generator(thisArg, body) {
163
159
  }
164
160
  function step(op) {
165
161
  if (f) throw new TypeError("Generator is already executing.");
166
- while(_)try {
162
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
167
163
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
168
164
  if (y = 0, t) op = [
169
165
  op[0] & 2,
@@ -292,7 +288,7 @@ var OperationColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
292
288
  _state.sent();
293
289
  return [
294
290
  4,
295
- Promise.all(_this1.children.map(function(child) {
291
+ Promise.all(this.children.map(function(child) {
296
292
  return child.validate(messages, ignore);
297
293
  }))
298
294
  ];
@@ -304,7 +300,7 @@ var OperationColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
304
300
  ];
305
301
  }
306
302
  });
307
- })();
303
+ }).call(this);
308
304
  }
309
305
  }
310
306
  ]);
@@ -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 { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
88
89
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
90
  import AddressProperty from './property';
@@ -103,7 +104,7 @@ var AddressControl = /*#__PURE__*/ function(RuntimeFormControl) {
103
104
  {
104
105
  key: "controlName",
105
106
  get: function get() {
106
- return '省市区';
107
+ return getLocaleText('CMD.2f2b1751967130347');
107
108
  }
108
109
  },
109
110
  {
@@ -182,7 +182,7 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
182
182
  message: getLocaleText(amountMax === undefined ? 'CMD.pleaseEnterAValueGreaterThanMin' : amountMin === undefined ? 'CMD.pleaseEnterAValueLessThanMax' : 'CMD.pleaseEnterNumberRange', {
183
183
  max: amountMax,
184
184
  min: amountMin
185
- }, amountMax === undefined ? '请输入大于等于{min}的数值' : amountMin === undefined ? '请输入小于等于{max}的数值' : '请输入大于等于{min}且小于等于{max}的数值')
185
+ }, amountMax === undefined ? getLocaleText('CMD.b19e1751967102651') : amountMin === undefined ? getLocaleText('CMD.2ef91751967105043') : getLocaleText('CMD.a1921751967096873'))
186
186
  }
187
187
  ],
188
188
  currency: {
@@ -155,7 +155,7 @@ var Department2Control = /*#__PURE__*/ function(DesignerFormControl) {
155
155
  return [
156
156
  {
157
157
  key: 'displayBoList',
158
- name: '显示值',
158
+ name: getLocaleText('CMD.cf901751967128274'),
159
159
  required: true
160
160
  }
161
161
  ];
@@ -125,7 +125,7 @@ var Employee2Control = /*#__PURE__*/ function(DesignerFormControl) {
125
125
  return [
126
126
  {
127
127
  key: 'displayBoList',
128
- name: '显示值',
128
+ name: getLocaleText('CMD.17131751967128275'),
129
129
  required: true
130
130
  }
131
131
  ];
@@ -160,8 +160,7 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
160
160
  attributes: Employee2Control.controlCustomAttributes
161
161
  });
162
162
  var _props_datasourceType;
163
- _this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : OrganizeType.INTERNAL //默认内部组织 EXTERNAL 外部组织
164
- ;
163
+ _this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : OrganizeType.INTERNAL; //默认内部组织 EXTERNAL 外部组织
165
164
  var _props_insideType;
166
165
  _this.insideType = (_props_insideType = props === null || props === void 0 ? void 0 : props.insideType) !== null && _props_insideType !== void 0 ? _props_insideType : InternalType.ADMIN;
167
166
  var _props_externalType;
@@ -138,7 +138,7 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
138
138
  message: getLocaleText(max === undefined ? 'CMD.pleaseEnterAValueGreaterThanMin' : min === undefined ? 'CMD.pleaseEnterAValueLessThanMax' : 'CMD.pleaseEnterNumberRange', {
139
139
  max: max,
140
140
  min: min
141
- }, max === undefined ? '请输入大于等于{min}的数值' : min === undefined ? '请输入小于等于{max}的数值' : '请输入大于等于{min}且小于等于{max}的数值')
141
+ }, max === undefined ? getLocaleText('CMD.2e171751967102653') : min === undefined ? getLocaleText('CMD.827a1751967105045') : getLocaleText('CMD.8ad11751967096874'))
142
142
  });
143
143
  if (props.regularRules.expression && props.regularRules.errMessage) {
144
144
  _this.push({
@@ -161,7 +161,7 @@ var OrganizationSelectionControl = /*#__PURE__*/ function(DesignerFormControl) {
161
161
  return [
162
162
  {
163
163
  key: 'displayBoList',
164
- name: '显示值',
164
+ name: getLocaleText('CMD.90fc1751967128275'),
165
165
  required: true
166
166
  }
167
167
  ];
@@ -168,6 +168,14 @@ _define_property(RichTextControl, "setting", [
168
168
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
169
169
  ]
170
170
  },
171
+ {
172
+ key: 'column-autoHeight',
173
+ visible: false
174
+ },
175
+ {
176
+ key: 'column-line-ellipsis',
177
+ visible: false
178
+ },
171
179
  {
172
180
  key: 'max-length',
173
181
  visible: true
@@ -137,7 +137,14 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
137
137
  var _this;
138
138
  _this = _call_super(this, RichTextProperty, [
139
139
  props
140
- ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0);
140
+ ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0), /**
141
+ * 在明细子表中自动高度
142
+ * @defaultValue false
143
+ */ _define_property(_this, "autoHeight", void 0), /**
144
+ * 在明细子表中行数设置
145
+ * @defaultValue 1
146
+ * @public
147
+ */ _define_property(_this, "lineEllipsis", void 0);
141
148
  var _props_maxLength;
142
149
  _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
143
150
  var _props_minLength;
@@ -148,6 +155,10 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
148
155
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RichTextControl.controlName;
149
156
  var _props_placeholder;
150
157
  _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
158
+ var _props_autoHeight;
159
+ _this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
160
+ var _props_lineEllipsis;
161
+ _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
151
162
  return _this;
152
163
  }
153
164
  return RichTextProperty;
@@ -168,6 +168,14 @@ _define_property(TextareaControl, "setting", [
168
168
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
169
169
  ]
170
170
  },
171
+ {
172
+ key: 'column-autoHeight',
173
+ visible: false
174
+ },
175
+ {
176
+ key: 'column-line-ellipsis',
177
+ visible: false
178
+ },
171
179
  {
172
180
  key: 'max-length',
173
181
  visible: true
@@ -162,7 +162,26 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
162
162
  * 行高设置 分为pc 和 移动 默认值为 RowHeight
163
163
  * @defaultValue MetaRowHeight
164
164
  * @public
165
- */ _define_property(_this, "rowHeightSetting", void 0);
165
+ */ _define_property(_this, "rowHeightSetting", void 0), // /**
166
+ // * 自适应内容高度
167
+ // * @defaultValue false
168
+ // * @public
169
+ // */
170
+ // public autoSize: boolean
171
+ // /**
172
+ // * 最大适应行数
173
+ // * @defaultValue 无默认值
174
+ // * @public
175
+ // */
176
+ // public maxRows?: Number
177
+ /**
178
+ * 在明细子表中自动高度
179
+ * @defaultValue false
180
+ */ _define_property(_this, "autoHeight", void 0), /**
181
+ * 在明细子表中行数设置
182
+ * @defaultValue 1
183
+ * @public
184
+ */ _define_property(_this, "lineEllipsis", void 0);
166
185
  var _props_maxLength;
167
186
  _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
168
187
  var _props_minLength;
@@ -177,6 +196,10 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
177
196
  // this.autoSize = props?.autoSize ?? false
178
197
  // this.maxRows = props?.maxRows
179
198
  _this.rowHeightSetting = new MetaRowHeight(props === null || props === void 0 ? void 0 : props.rowHeightSetting);
199
+ var _props_autoHeight;
200
+ _this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
201
+ var _props_lineEllipsis;
202
+ _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
180
203
  return _this;
181
204
  }
182
205
  return TextareaProperty;
@@ -125,12 +125,12 @@ var TreeControl = /*#__PURE__*/ function(DesignerFormControl) {
125
125
  return [
126
126
  {
127
127
  key: 'displayBoList',
128
- name: '显示值',
128
+ name: getLocaleText('CMD.07c21751967128276'),
129
129
  required: true
130
130
  },
131
131
  {
132
132
  key: 'parentField',
133
- name: '父级字段',
133
+ name: getLocaleText('CMD.3e751751967125288'),
134
134
  required: true
135
135
  }
136
136
  ];
@@ -19,28 +19,32 @@ function _define_property(obj, key, value) {
19
19
  import { genNonDuplicateId } from '@byteluck-fe/model-driven-shared';
20
20
  import { RightVariable } from '@byteluck-fe/model-driven-core';
21
21
  import { getLocaleText } from '@byteluck-fe/locale-message';
22
- export var TitleConfigEnum;
23
- (function(TitleConfigEnum) {
22
+ export var TitleConfigEnum = /*#__PURE__*/ function(TitleConfigEnum) {
24
23
  TitleConfigEnum["ShowBizKey"] = "is_show_biz_key";
25
24
  TitleConfigEnum["ShowSubmitUser"] = "is_show_submit_user";
26
25
  TitleConfigEnum["ShowSubmitTime"] = "is_show_submit_time";
27
26
  TitleConfigEnum["ShowSubmitDept"] = "is_show_submit_dept";
28
27
  TitleConfigEnum["ShowCurrentApprovar"] = "is_show_current_approvar";
29
28
  TitleConfigEnum["ShowTitle"] = "is_show_title";
30
- })(TitleConfigEnum || (TitleConfigEnum = {}));
31
- export var DATE_CONFIG_TYPE;
32
- (function(DATE_CONFIG_TYPE) {
29
+ return TitleConfigEnum;
30
+ }({});
31
+ /**
32
+ * 时间范围类型
33
+ */ export var DATE_CONFIG_TYPE = /*#__PURE__*/ function(DATE_CONFIG_TYPE) {
33
34
  DATE_CONFIG_TYPE["EARLY_DATE"] = "earlyDate";
34
35
  DATE_CONFIG_TYPE["LATE_DATE"] = "lateDate";
35
36
  DATE_CONFIG_TYPE["UN_SELECT_ABLE_INTERVAL"] = "unSelectAbleInterval";
36
- })(DATE_CONFIG_TYPE || (DATE_CONFIG_TYPE = {}));
37
- export var DATE_LIMIT_TYPE;
38
- (function(DATE_LIMIT_TYPE) {
37
+ return DATE_CONFIG_TYPE;
38
+ }({});
39
+ /**
40
+ * 时间限制类型
41
+ */ export var DATE_LIMIT_TYPE = /*#__PURE__*/ function(DATE_LIMIT_TYPE) {
39
42
  DATE_LIMIT_TYPE["FILE_IN_TIME"] = "filledInTime";
40
43
  DATE_LIMIT_TYPE["BEFORE_TIME"] = "beforeTime";
41
44
  DATE_LIMIT_TYPE["AFTER_TIME"] = "afterTime";
42
45
  DATE_LIMIT_TYPE["TIME_SPECIFIED"] = "timeSpecified";
43
- })(DATE_LIMIT_TYPE || (DATE_LIMIT_TYPE = {}));
46
+ return DATE_LIMIT_TYPE;
47
+ }({});
44
48
  /**
45
49
  * 时间限制范围
46
50
  */ export var LimitDate = function LimitDate() {
@@ -55,27 +59,24 @@ export var DATE_LIMIT_TYPE;
55
59
  ]
56
60
  };
57
61
  _class_call_check(this, LimitDate);
58
- _define_property(this, "dateConfigType", void 0 // 范围类型
59
- );
60
- _define_property(this, "dateLimitType", void 0 // 限制类型
61
- );
62
+ _define_property(this, "dateConfigType", void 0); // 范围类型
63
+ _define_property(this, "dateLimitType", void 0); // 限制类型
62
64
  _define_property(this, "id", void 0);
63
- _define_property(this, "value", void 0 // 存储值
64
- );
65
+ _define_property(this, "value", void 0); // 存储值
65
66
  this.id = props.id;
66
67
  this.dateConfigType = props.dateConfigType;
67
68
  this.dateLimitType = props.dateLimitType;
68
69
  this.value = props.value;
69
70
  };
70
- export var SCORE_TYPE;
71
- (function(SCORE_TYPE) {
71
+ export var SCORE_TYPE = /*#__PURE__*/ function(SCORE_TYPE) {
72
72
  SCORE_TYPE["PRAISE"] = "praise";
73
73
  SCORE_TYPE["STAR"] = "star";
74
74
  SCORE_TYPE["FLOWER"] = "flower";
75
75
  SCORE_TYPE["HAND"] = "hand";
76
76
  SCORE_TYPE["HEART"] = "heart";
77
77
  SCORE_TYPE["SMILE"] = "smile";
78
- })(SCORE_TYPE || (SCORE_TYPE = {}));
78
+ return SCORE_TYPE;
79
+ }({});
79
80
  export var Explain = function Explain(props) {
80
81
  "use strict";
81
82
  _class_call_check(this, Explain);
@@ -86,15 +87,15 @@ export var Explain = function Explain(props) {
86
87
  var _props_text;
87
88
  this.text = (_props_text = props === null || props === void 0 ? void 0 : props.text) !== null && _props_text !== void 0 ? _props_text : '';
88
89
  };
89
- export var LINE_STYLE;
90
- (function(LINE_STYLE) {
90
+ export var LINE_STYLE = /*#__PURE__*/ function(LINE_STYLE) {
91
91
  LINE_STYLE["SOLID"] = "solid-line";
92
92
  LINE_STYLE["DASHED"] = "dashed-line";
93
93
  LINE_STYLE["BOLD_SOLID"] = "bold-solid-line";
94
94
  LINE_STYLE["BOLD_DASHED"] = "bold-dashed-line";
95
95
  LINE_STYLE["DOUBLE_SOLID"] = "double-solid-line";
96
96
  LINE_STYLE["DOUBLE_DASHED"] = "double-dashed-line";
97
- })(LINE_STYLE || (LINE_STYLE = {}));
97
+ return LINE_STYLE;
98
+ }({});
98
99
  export var UndersignedPerson = function UndersignedPerson(props) {
99
100
  "use strict";
100
101
  _class_call_check(this, UndersignedPerson);
@@ -129,6 +130,21 @@ export var UndersignedPerson = function UndersignedPerson(props) {
129
130
  * 平台是否自动签署
130
131
  * */ _define_property(this, "platformAutoSign", void 0);
131
132
  /**
133
+ * 是否需要添加签署日期 0-禁止 1-必须 2-不限制,默认0
134
+ * */ _define_property(this, "signDateBeanType", void 0);
135
+ /**
136
+ * 签署日期字体大小
137
+ * */ _define_property(this, "signDateFontSize", void 0);
138
+ /**
139
+ * 签署日期格式
140
+ * */ _define_property(this, "signDateFormat", void 0);
141
+ /**
142
+ * 签署顺序
143
+ * */ _define_property(this, "signOrder", void 0);
144
+ /**
145
+ * 强制阅读时间
146
+ * */ _define_property(this, "forceReadTime", void 0);
147
+ /**
132
148
  * 印章ID
133
149
  * */ _define_property(this, "seal", void 0);
134
150
  /**
@@ -162,6 +178,13 @@ export var UndersignedPerson = function UndersignedPerson(props) {
162
178
  });
163
179
  var _props_platformAutoSign;
164
180
  this.platformAutoSign = (_props_platformAutoSign = props === null || props === void 0 ? void 0 : props.platformAutoSign) !== null && _props_platformAutoSign !== void 0 ? _props_platformAutoSign : false;
181
+ var _props_signDateBeanType;
182
+ this.signDateBeanType = (_props_signDateBeanType = props === null || props === void 0 ? void 0 : props.signDateBeanType) !== null && _props_signDateBeanType !== void 0 ? _props_signDateBeanType : 0;
183
+ var _props_signDateFontSize;
184
+ this.signDateFontSize = (_props_signDateFontSize = props === null || props === void 0 ? void 0 : props.signDateFontSize) !== null && _props_signDateFontSize !== void 0 ? _props_signDateFontSize : 12;
185
+ var _props_signOrder;
186
+ this.signOrder = (_props_signOrder = props === null || props === void 0 ? void 0 : props.signOrder) !== null && _props_signOrder !== void 0 ? _props_signOrder : 1;
187
+ this.forceReadTime = props === null || props === void 0 ? void 0 : props.forceReadTime;
165
188
  var _props_posX;
166
189
  this.posX = (_props_posX = props === null || props === void 0 ? void 0 : props.posX) !== null && _props_posX !== void 0 ? _props_posX : 0;
167
190
  var _props_posY;
@@ -352,10 +375,8 @@ export var PrintTemplate = function PrintTemplate(props) {
352
375
  _class_call_check(this, PrintTemplate);
353
376
  _define_property(this, "fileId", void 0);
354
377
  _define_property(this, "fileName", void 0);
355
- _define_property(this, "ruleName", void 0 //规则名称
356
- );
357
- _define_property(this, "isDefault", void 0 //是否是默认模板
358
- );
378
+ _define_property(this, "ruleName", void 0); //规则名称
379
+ _define_property(this, "isDefault", void 0); //是否是默认模板
359
380
  _define_property(this, "rules", void 0);
360
381
  var _props_fileId;
361
382
  this.fileId = (_props_fileId = props === null || props === void 0 ? void 0 : props.fileId) !== null && _props_fileId !== void 0 ? _props_fileId : '';
@@ -381,32 +402,42 @@ export var FlexStyleConfig = function FlexStyleConfig(props) {
381
402
  var _props_alignItems;
382
403
  this.alignItems = (_props_alignItems = props === null || props === void 0 ? void 0 : props.alignItems) !== null && _props_alignItems !== void 0 ? _props_alignItems : 'flex-start';
383
404
  };
384
- export var EncryptTypeEnum;
385
- (function(EncryptTypeEnum) {
405
+ /**
406
+ * 加密类型
407
+ */ export var EncryptTypeEnum = /*#__PURE__*/ function(EncryptTypeEnum) {
386
408
  EncryptTypeEnum["NO_MASK"] = "NO_MASK";
387
409
  EncryptTypeEnum["LAST_FOUR_MASK"] = "LAST_FOUR_MASK";
388
410
  EncryptTypeEnum["ALL_MASK"] = "ALL_MASK";
389
- })(EncryptTypeEnum || (EncryptTypeEnum = {}));
390
- export var OrganizeType;
391
- (function(OrganizeType) {
411
+ return EncryptTypeEnum;
412
+ }({});
413
+ /**
414
+ * 新人员 内部组织 or 外部组织
415
+ */ export var OrganizeType = /*#__PURE__*/ function(OrganizeType) {
392
416
  OrganizeType["ALL"] = "ALL";
393
417
  OrganizeType["INTERNAL"] = "INTERNAL";
394
418
  OrganizeType["EXTERNAL"] = "EXTERNAL";
395
419
  OrganizeType["INTERNAL_EXTERNAL"] = "INTERNAL_EXTERNAL";
396
- })(OrganizeType || (OrganizeType = {}));
397
- export var DepartmentType;
398
- (function(DepartmentType) {
420
+ return OrganizeType;
421
+ }({});
422
+ /**
423
+ * 新部门 行政 or 业务
424
+ */ export var DepartmentType = /*#__PURE__*/ function(DepartmentType) {
399
425
  DepartmentType["INTERNAL_BUSINESS"] = "INTERNAL_BUSINESS";
400
426
  DepartmentType["INTERNAL"] = "INTERNAL";
401
427
  DepartmentType["BUSINESS"] = "BUSINESS";
402
- })(DepartmentType || (DepartmentType = {}));
403
- export var AssignType;
404
- (function(AssignType) {
428
+ return DepartmentType;
429
+ }({});
430
+ /**
431
+ * 指定或者全部
432
+ */ export var AssignType = /*#__PURE__*/ function(AssignType) {
405
433
  AssignType["ALL"] = "all";
406
434
  AssignType["ASSIGN"] = "assign";
407
- })(AssignType || (AssignType = {}));
408
- export var InternalType;
409
- (function(InternalType) {
435
+ return AssignType;
436
+ }({});
437
+ /**
438
+ * 内部组织类型
439
+ */ export var InternalType = /*#__PURE__*/ function(InternalType) {
410
440
  InternalType["ALL"] = "all";
411
441
  InternalType["ADMIN"] = "admin";
412
- })(InternalType || (InternalType = {}));
442
+ return InternalType;
443
+ }({});
@@ -23,13 +23,14 @@ function _unsupported_iterable_to_array(o, minLen) {
23
23
  if (n === "Map" || n === "Set") return Array.from(n);
24
24
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
25
25
  }
26
+ import { getLocaleText } from '@byteluck-fe/locale-message';
26
27
  import { defineInstance, createBaseFields } from '@byteluck-fe/model-driven-settings';
27
28
  export default defineInstance({
28
29
  fields: _to_consumable_array(createBaseFields()),
29
30
  groups: [
30
31
  {
31
32
  type: 'tab',
32
- title: '属性',
33
+ title: getLocaleText('CMD.534b1751967131611'),
33
34
  items: [
34
35
  {
35
36
  items: [
@@ -45,10 +46,10 @@ export default defineInstance({
45
46
  },
46
47
  {
47
48
  type: 'tab',
48
- title: '样式',
49
+ title: getLocaleText('CMD.04c51751967133084'),
49
50
  items: [
50
51
  {
51
- title: '大小',
52
+ title: getLocaleText('CMD.85131751967134134'),
52
53
  items: [
53
54
  'style.width',
54
55
  'style.height'
@@ -70,6 +70,7 @@ function _is_native_reflect_construct() {
70
70
  return !!result;
71
71
  })();
72
72
  }
73
+ import { getLocaleText } from '@byteluck-fe/locale-message';
73
74
  import { DesignerLayoutControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
74
75
  import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
75
76
  import GridTableColumnControlProperty from './property';
@@ -87,7 +88,7 @@ var GridTableColumnControl = /*#__PURE__*/ function(DesignerLayoutControl) {
87
88
  }
88
89
  return GridTableColumnControl;
89
90
  }(DesignerLayoutControl);
90
- _define_property(GridTableColumnControl, "controlName", '列表单元格');
91
+ _define_property(GridTableColumnControl, "controlName", getLocaleText('CMD.b6d81751967121984'));
91
92
  _define_property(GridTableColumnControl, "controlType", 'gridtable-column');
92
93
  _define_property(GridTableColumnControl, "controlIcon", 'gridtable-column');
93
94
  _define_property(GridTableColumnControl, "childrenMaxLength", 1);
@@ -73,11 +73,13 @@ function _is_native_reflect_construct() {
73
73
  import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig, JoinRelation, RowStyle } from '@byteluck-fe/model-driven-core';
74
74
  import { initOptionAndDataSourceRules } from '@byteluck-fe/model-driven-core';
75
75
  import { getLocaleText } from '@byteluck-fe/locale-message';
76
- export var TriggerType;
77
- (function(TriggerType) {
76
+ /**
77
+ * @internal
78
+ */ export var TriggerType = /*#__PURE__*/ function(TriggerType) {
78
79
  TriggerType[TriggerType["CLICK_ROW"] = 1] = "CLICK_ROW";
79
80
  TriggerType[TriggerType["CLICK_CELL"] = 2] = "CLICK_CELL";
80
- })(TriggerType || (TriggerType = {}));
81
+ return TriggerType;
82
+ }({});
81
83
  /**
82
84
  * @internal
83
85
  */ var ListViewControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
@@ -23,6 +23,7 @@ function _unsupported_iterable_to_array(o, minLen) {
23
23
  if (n === "Map" || n === "Set") return Array.from(n);
24
24
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
25
25
  }
26
+ import { getLocaleText } from '@byteluck-fe/locale-message';
26
27
  import { defineInstance, createBaseFields } from '@byteluck-fe/model-driven-settings';
27
28
  export default defineInstance({
28
29
  fields: _to_consumable_array(createBaseFields()).concat([
@@ -30,7 +31,7 @@ export default defineInstance({
30
31
  key: 'hideHeader',
31
32
  type: 'boolean',
32
33
  component: 'switch',
33
- label: '隐藏头部导航'
34
+ label: getLocaleText('CMD.ea9e1751967118270')
34
35
  },
35
36
  {
36
37
  key: 'size',
@@ -44,7 +45,7 @@ export default defineInstance({
44
45
  groups: [
45
46
  {
46
47
  type: 'tab',
47
- title: '属性',
48
+ title: getLocaleText('CMD.54e11751967131612'),
48
49
  items: [
49
50
  {
50
51
  items: [
@@ -60,16 +61,16 @@ export default defineInstance({
60
61
  },
61
62
  {
62
63
  type: 'tab',
63
- title: '样式',
64
+ title: getLocaleText('CMD.fe1a1751967133085'),
64
65
  items: [
65
66
  {
66
- title: '大小',
67
+ title: getLocaleText('CMD.f1731751967134136'),
67
68
  items: [
68
69
  'size'
69
70
  ]
70
71
  },
71
72
  {
72
- title: '背景颜色',
73
+ title: getLocaleText('CMD.b9db1751967126829'),
73
74
  items: [
74
75
  'background'
75
76
  ]
@@ -23,13 +23,14 @@ function _unsupported_iterable_to_array(o, minLen) {
23
23
  if (n === "Map" || n === "Set") return Array.from(n);
24
24
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
25
25
  }
26
+ import { getLocaleText } from '@byteluck-fe/locale-message';
26
27
  import { defineInstance, createBaseFields } from '@byteluck-fe/model-driven-settings';
27
28
  export default defineInstance({
28
29
  fields: _to_consumable_array(createBaseFields()),
29
30
  groups: [
30
31
  {
31
32
  type: 'tab',
32
- title: '属性',
33
+ title: getLocaleText('CMD.a5181751967131612'),
33
34
  items: [
34
35
  {
35
36
  items: [
@@ -45,10 +46,10 @@ export default defineInstance({
45
46
  },
46
47
  {
47
48
  type: 'tab',
48
- title: '样式',
49
+ title: getLocaleText('CMD.c2891751967133086'),
49
50
  items: [
50
51
  {
51
- title: '大小',
52
+ title: getLocaleText('CMD.11831751967134136'),
52
53
  items: [
53
54
  'style.width',
54
55
  'style.height'
@@ -183,7 +183,7 @@ function _is_native_reflect_construct() {
183
183
  })();
184
184
  }
185
185
  function _ts_generator(thisArg, body) {
186
- var f, y, t, g, _ = {
186
+ var f, y, t, _ = {
187
187
  label: 0,
188
188
  sent: function() {
189
189
  if (t[0] & 1) throw t[1];
@@ -191,12 +191,8 @@ function _ts_generator(thisArg, body) {
191
191
  },
192
192
  trys: [],
193
193
  ops: []
194
- };
195
- return g = {
196
- next: verb(0),
197
- "throw": verb(1),
198
- "return": verb(2)
199
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
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() {
200
196
  return this;
201
197
  }), g;
202
198
  function verb(n) {
@@ -209,7 +205,7 @@ function _ts_generator(thisArg, body) {
209
205
  }
210
206
  function step(op) {
211
207
  if (f) throw new TypeError("Generator is already executing.");
212
- while(_)try {
208
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
213
209
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
214
210
  if (y = 0, t) op = [
215
211
  op[0] & 2,
@@ -351,7 +347,7 @@ var GridTableControl = /*#__PURE__*/ function _target(DesignerListControl) {
351
347
  _state.sent();
352
348
  return [
353
349
  4,
354
- Promise.all(_this1.children.map(function(child) {
350
+ Promise.all(this.children.map(function(child) {
355
351
  return child.validate(messages, ignore);
356
352
  }))
357
353
  ];
@@ -363,7 +359,7 @@ var GridTableControl = /*#__PURE__*/ function _target(DesignerListControl) {
363
359
  ];
364
360
  }
365
361
  });
366
- })();
362
+ }).call(this);
367
363
  }
368
364
  }
369
365
  ], [