@steedos/standard-object-database 2.5.18-beta.2 → 2.5.18-beta.3

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.
@@ -244,6 +244,10 @@ fields:
244
244
  label: Value
245
245
  help:
246
246
  description:
247
+ summary_depend_on:
248
+ label: Recalculate Summary Depend On
249
+ help: Which fields of the child table are dependent on when the summary is performed. When the values of these fields change, a recalculation of the summary field values of the primary table records is triggered.
250
+ description:
247
251
  column_name:
248
252
  label: Database column name
249
253
  help: Only supports relational databases.
@@ -295,7 +299,11 @@ fields:
295
299
  description:
296
300
  index:
297
301
  label: Is Index Field
298
- help:
302
+ help: The Creation Is Executed Once A Day By Default And The Existing Indexes Are Not Repeatedly Created.
303
+ description:
304
+ unique:
305
+ label: Unique Index
306
+ help: The Creation Is Executed Once A Day By Default And The Existing Indexes Are Not Repeatedly Created.
299
307
  description:
300
308
  sortable:
301
309
  label: Sortable
@@ -341,6 +349,10 @@ fields:
341
349
  label: Amis Attribute
342
350
  help:
343
351
  description:
352
+ enable_enhanced_lookup:
353
+ label: Enable Enhanced Lookup
354
+ help:
355
+ description:
344
356
  groups:
345
357
  external_data_source: External data source
346
358
  advanced: Advanced
@@ -228,6 +228,10 @@ fields:
228
228
  label: 值
229
229
  help:
230
230
  description:
231
+ summary_depend_on:
232
+ label: 汇总依赖的字段
233
+ help: 汇总时依赖了子表的哪些字段,当这些字段值变更时会触发重算主表记录的汇总字段值
234
+ description:
231
235
  column_name:
232
236
  label: 数据库字段名
233
237
  help: 仅支持关系型数据库
@@ -279,7 +283,11 @@ fields:
279
283
  description:
280
284
  index:
281
285
  label: 创建索引
282
- help:
286
+ help: 默认每天凌晨执行一次创建,已有的索引不重复创建。
287
+ description:
288
+ unique:
289
+ label: 创建唯一索引
290
+ help: 默认每天凌晨执行一次创建,已有的索引不重复创建。
283
291
  description:
284
292
  sortable:
285
293
  label: 可排序
@@ -317,6 +325,9 @@ fields:
317
325
  amis:
318
326
  label: Amis 属性
319
327
  help: <a href='https://docs.steedos.com/zh-CN/no-code/customize/fields/field-attributes/#amis-%E5%B1%9E%E6%80%A7' target='_blank'>查看帮助</a>
328
+ enable_enhanced_lookup:
329
+ label: 启用弹出窗口查找模式
330
+ help:
320
331
  description:
321
332
  groups:
322
333
  external_data_source: 外部数据源
@@ -576,6 +576,7 @@ fields:
576
576
  - summary_object
577
577
  - summary_type
578
578
  defaultIcon: service_contract
579
+ enable_enhanced_lookup: false
579
580
  amis:
580
581
  disabledOn: "${is_system == true}"
581
582
  "autoComplete":
@@ -587,7 +588,7 @@ fields:
587
588
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
588
589
  "sendOn": "!!this.summary_object && !!this.summary_type"
589
590
  "adaptor": "const summary_type = api.body.summary_type;\nconst term = api.query.term;\nlet fields = payload.fields;\nlet options = [];\nif (fields) {\n if (summary_type && summary_type !== \"count\") {\n if (summary_type === \"sum\" || summary_type === \"avg\") {\n /*sum/avg类型可以汇总数值、金额、百分比字段*/\n _.forEach(fields, (value, key) => {\n let fieldType = value.type;\n if ([\"formula\", \"summary\"].indexOf(fieldType) > -1) {\n /*要聚合的字段为公式或汇总字段时,按其字段数据类型判断是否支持聚合*/\n fieldType = value.data_type;\n }\n if ([\"number\", \"currency\", \"percent\"].indexOf(fieldType) > -1) {\n options.push({ label: value.label, value: value.name });\n }\n })\n }\n else {\n /*min、max类型可以汇总数值、金额、百分比、日期、日期时间字段*/\n _.forEach(fields, (value, key) => {\n let fieldType = value.type;\n if ([\"formula\", \"summary\"].indexOf(fieldType) > -1) {\n /*要聚合的字段为公式或汇总字段时,按其字段数据类型判断是否支持聚合*/\n fieldType = value.data_type;\n }\n if ([\"number\", \"currency\", \"percent\", \"date\", \"datetime\"].indexOf(fieldType) > -1) {\n options.push({ label: value.label, value: value.name });\n }\n })\n }\n }\n if (term) {\n options = _.filter(options, (item) => {\n return item.label.toLowerCase().indexOf(term.toLowerCase()) > -1;\n })\n }\n}\npayload = {\n data: { options: options },\n msg: \"\",\n status: 0\n}\nreturn payload;"
590
- visible_on: "{{formData.type === 'summary' && formData.summary_type !== 'count' ? true: false}}"
591
+ visible_on: "{{formData.type === 'summary' && formData.summary_object && formData.summary_type && formData.summary_type !== 'count'}}"
591
592
  required: "{{formData.type === 'summary' && formData.summary_type !== 'count' ? true: false}}"
592
593
  sort_no: 320
593
594
  summary_filters:
@@ -750,6 +751,13 @@ fields:
750
751
  label: Is Index Field
751
752
  group: Advanced
752
753
  sort_no: 410
754
+ inlineHelpText: The Creation Is Executed Once A Day By Default And The Existing Indexes Are Not Repeatedly Created.
755
+ unique:
756
+ type: boolean
757
+ label: Unique Index
758
+ group: Advanced
759
+ sort_no: 411
760
+ inlineHelpText: The Creation Is Executed Once A Day By Default And The Existing Indexes Are Not Repeatedly Created.
753
761
  sortable:
754
762
  type: boolean
755
763
  label: Sortable
@@ -804,6 +812,10 @@ fields:
804
812
  type: boolean
805
813
  label: System
806
814
  visible_on: "{{false}}"
815
+ enable_enhanced_lookup:
816
+ type: boolean
817
+ label: Enable Enhanced Lookup
818
+ visible_on: "{{false}}"
807
819
  paging:
808
820
  enabled: false
809
821
  list_views:
@@ -387,6 +387,7 @@ fields:
387
387
  blackbox: true
388
388
  is_wide: true
389
389
  hidden: false
390
+ visible_on: "${false}"
390
391
  field_groups.$.group_name:
391
392
  type: text
392
393
  field_groups.$.visible_on:
@@ -17,7 +17,7 @@
17
17
  "items": [
18
18
  {
19
19
  "type": "tpl",
20
- "tpl": "设计字段布局 ${designObjectLabel}(${designObjectName})",
20
+ "tpl": "<p><h4><strong>设计字段布局</strong></h4> ${designObjectLabel}<span style=\"color: rgb(149, 165, 166);\"> ${designObjectName}</span></p>",
21
21
  "id": "u:4c7bef616400"
22
22
  },
23
23
  {
@@ -161,23 +161,28 @@
161
161
  "columns": 2,
162
162
  "name": "design_field",
163
163
  "boardSource": "${groups}",
164
- "boardClassName": "bg-gray-50 p-2 border rounded shadow",
164
+ "boardClassName": "bg-gray-50 p-2 ",
165
+ "header": {
166
+ "className": ""
167
+ },
165
168
  "boardHeader": {
166
169
  "type": "tpl",
167
- "tpl": "字段分组:${group_name}",
170
+ "tpl": "${group_name}",
168
171
  "id": "u:76d9a6c7d401"
169
172
  },
170
173
  "cardClassName": "p-1 bg-white border w-full rounded shadow",
171
174
  "cardSchema": {
172
175
  "type": "card",
173
- "header": {
174
- "className": "items-center py-0 border-0",
175
- "title": "${label}(${_name})"
176
- },
177
- "toolbar": [
176
+ "body": [
177
+ {
178
+ "type": "tpl",
179
+ "tpl": "<p><strong>${label}</strong> ${designObjectLabel}<span style=\"color: rgb(149, 165, 166);\">${_name}</span></p>",
180
+ "className": "w-4/5",
181
+ "inline": true
182
+ },
178
183
  {
179
184
  "type": "steedos-dropdown-button",
180
- "label": "xxx",
185
+ "label": "",
181
186
  "buttons": [
182
187
  {
183
188
  "type": "steedos-object-button",
@@ -198,9 +203,12 @@
198
203
  "click"
199
204
  ],
200
205
  "id": "u:c2140a365019",
201
- "className": "mx-3 hidden"
206
+ "mode": "edit",
207
+ "className": "mr-7 w-fit h-fit opacity-0"
202
208
  }
203
209
  ],
210
+ "bodyClassName": "h-7 flex justify-between items-center p-0 pl-10 my-2",
211
+ "toolbar": [ ],
204
212
  "className": "mb-0 border-0 bg-none card",
205
213
  "id": "u:296298da1bef"
206
214
  },
@@ -243,7 +251,7 @@
243
251
  "name": "form_design_form"
244
252
  }
245
253
  ],
246
- "className": "Panel--default max-w-xl m-auto",
254
+ "className": "Panel--default max-w-4xl m-auto",
247
255
  "id": "u:3a90104cb6b4"
248
256
  }
249
257
  ],
@@ -331,8 +339,11 @@
331
339
  },
332
340
  "id": "u:993ee4316643",
333
341
  "css": {
334
- ".steedos-design-field .card:hover .slds-button": {
335
- "display": "inline-block"
342
+ ".steedos-design-field li.p-1:hover .opacity-0": {
343
+ "opacity": "0.99"
344
+ },
345
+ ".antd-TplField p": {
346
+ "margin": "0.625rem 0.625rem"
336
347
  }
337
348
  },
338
349
  "className": "steedos-design-field"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-object-database",
3
- "version": "2.5.18-beta.2",
3
+ "version": "2.5.18-beta.3",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -15,5 +15,5 @@
15
15
  },
16
16
  "repository": {},
17
17
  "license": "MIT",
18
- "gitHead": "0f48957d39df17d699a5177f473401362a9916bf"
18
+ "gitHead": "ad7085eedba341a58446a969102da5cdc3d691b2"
19
19
  }