@steedos-widgets/amis-object 6.10.3 → 6.10.5

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.
package/dist/assets.json CHANGED
@@ -11,31 +11,31 @@
11
11
  {
12
12
  "package": "@steedos-widgets/fullcalendar",
13
13
  "urls": [
14
- "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.3/dist/fullcalendar.umd.js",
15
- "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.3/dist/fullcalendar.umd.css"
14
+ "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.5/dist/fullcalendar.umd.js",
15
+ "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.5/dist/fullcalendar.umd.css"
16
16
  ],
17
17
  "library": "BuilderFullCalendar"
18
18
  },
19
19
  {
20
20
  "package": "@steedos-widgets/sortable",
21
21
  "urls": [
22
- "https://unpkg.com/@steedos-widgets/sortable@6.10.3/dist/sortable.umd.js",
23
- "https://unpkg.com/@steedos-widgets/sortable@6.10.3/dist/sortable.umd.css"
22
+ "https://unpkg.com/@steedos-widgets/sortable@6.10.5/dist/sortable.umd.js",
23
+ "https://unpkg.com/@steedos-widgets/sortable@6.10.5/dist/sortable.umd.css"
24
24
  ],
25
25
  "library": "BuilderSortable"
26
26
  },
27
27
  {
28
28
  "package": "steedos-lib",
29
29
  "urls": [
30
- "https://unpkg.com/@steedos-widgets/steedos-lib@6.10.3/dist/index.umd.js"
30
+ "https://unpkg.com/@steedos-widgets/steedos-lib@6.10.5/dist/index.umd.js"
31
31
  ],
32
32
  "library": "SteedosLib"
33
33
  },
34
34
  {
35
35
  "package": "@steedos-widgets/amis-object",
36
36
  "urls": [
37
- "https://unpkg.com/@steedos-widgets/amis-object@6.10.3/dist/amis-object.umd.js",
38
- "https://unpkg.com/@steedos-widgets/amis-object@6.10.3/dist/amis-object.umd.css"
37
+ "https://unpkg.com/@steedos-widgets/amis-object@6.10.5/dist/amis-object.umd.js",
38
+ "https://unpkg.com/@steedos-widgets/amis-object@6.10.5/dist/amis-object.umd.css"
39
39
  ],
40
40
  "library": "BuilderAmisObject"
41
41
  }
@@ -46,10 +46,10 @@
46
46
  "npm": {
47
47
  "package": "@steedos-widgets/fullcalendar"
48
48
  },
49
- "url": "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.3/dist/meta.js",
49
+ "url": "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.5/dist/meta.js",
50
50
  "urls": {
51
- "default": "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.3/dist/meta.js",
52
- "design": "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.3/dist/meta.js"
51
+ "default": "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.5/dist/meta.js",
52
+ "design": "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.5/dist/meta.js"
53
53
  }
54
54
  },
55
55
  {
@@ -57,10 +57,10 @@
57
57
  "npm": {
58
58
  "package": "@steedos-widgets/reactflow"
59
59
  },
60
- "url": "https://unpkg.com/@steedos-widgets/reactflow@6.10.3/dist/meta.js",
60
+ "url": "https://unpkg.com/@steedos-widgets/reactflow@6.10.5/dist/meta.js",
61
61
  "urls": {
62
- "default": "https://unpkg.com/@steedos-widgets/reactflow@6.10.3/dist/meta.js",
63
- "design": "https://unpkg.com/@steedos-widgets/reactflow@6.10.3/dist/meta.js"
62
+ "default": "https://unpkg.com/@steedos-widgets/reactflow@6.10.5/dist/meta.js",
63
+ "design": "https://unpkg.com/@steedos-widgets/reactflow@6.10.5/dist/meta.js"
64
64
  }
65
65
  },
66
66
  {
@@ -68,10 +68,10 @@
68
68
  "npm": {
69
69
  "package": "@steedos-widgets/sortable"
70
70
  },
71
- "url": "https://unpkg.com/@steedos-widgets/sortable@6.10.3/dist/meta.js",
71
+ "url": "https://unpkg.com/@steedos-widgets/sortable@6.10.5/dist/meta.js",
72
72
  "urls": {
73
- "default": "https://unpkg.com/@steedos-widgets/sortable@6.10.3/dist/meta.js",
74
- "design": "https://unpkg.com/@steedos-widgets/sortable@6.10.3/dist/meta.js"
73
+ "default": "https://unpkg.com/@steedos-widgets/sortable@6.10.5/dist/meta.js",
74
+ "design": "https://unpkg.com/@steedos-widgets/sortable@6.10.5/dist/meta.js"
75
75
  }
76
76
  },
77
77
  {
@@ -79,10 +79,10 @@
79
79
  "npm": {
80
80
  "package": "@steedos-widgets/amis-object"
81
81
  },
82
- "url": "https://unpkg.com/@steedos-widgets/amis-object@6.10.3/dist/meta.js",
82
+ "url": "https://unpkg.com/@steedos-widgets/amis-object@6.10.5/dist/meta.js",
83
83
  "urls": {
84
- "default": "https://unpkg.com/@steedos-widgets/amis-object@6.10.3/dist/meta.js",
85
- "design": "https://unpkg.com/@steedos-widgets/amis-object@6.10.3/dist/meta.js"
84
+ "default": "https://unpkg.com/@steedos-widgets/amis-object@6.10.5/dist/meta.js",
85
+ "design": "https://unpkg.com/@steedos-widgets/amis-object@6.10.5/dist/meta.js"
86
86
  }
87
87
  }
88
88
  ]
package/dist/meta.js CHANGED
@@ -4845,7 +4845,8 @@
4845
4845
  { "label": t$2('widgets-meta:sfield_file', "附件"), "value": "file" },
4846
4846
  { "label": t$2('widgets-meta:sfield_formula', "公式"), "value": "formula" },
4847
4847
  { "label": t$2('widgets-meta:sfield_summary', "累计汇总"), "value": "summary" },
4848
- { "label": t$2('widgets-meta:sfield_table', "表格"), "value": "table" }
4848
+ { "label": t$2('widgets-meta:sfield_table', "表格"), "value": "table" },
4849
+ { "label": t$2('widgets-meta:sfield_approval_comments', "审批意见"), "value": "approval_comments" }
4849
4850
  ];
4850
4851
  var disabledFields = ((_b = window.parent) === null || _b === void 0 ? void 0 : _b._disabledFields) || [];
4851
4852
  var fieldTypeOptions = [];
@@ -5373,6 +5374,45 @@
5373
5374
  "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;"
5374
5375
  }
5375
5376
  },
5377
+ {
5378
+ "name": "config.steps",
5379
+ "label": t$2('widgets-meta:sfield_control_steps', "关联步骤"),
5380
+ "labelRemark": t$2('widgets-meta:sfield_control_steps_remark', "在流程步骤中输入的意见会显示在此字段中。"),
5381
+ "type": "combo",
5382
+ "multiLine": true,
5383
+ "multiple": true,
5384
+ "items": [
5385
+ {
5386
+ "label": "步骤名",
5387
+ "name": "name",
5388
+ "type": "input-text"
5389
+ },
5390
+ {
5391
+ "label": "显示传阅人员签批意见",
5392
+ "name": "show_cc",
5393
+ "type": "switch"
5394
+ },
5395
+ {
5396
+ "label": "显示处理人员意见",
5397
+ "name": "show_handler",
5398
+ "type": "switch"
5399
+ },
5400
+ {
5401
+ "label": "是否图片签名",
5402
+ "name": "show_image_sign",
5403
+ "type": "switch"
5404
+ },
5405
+ {
5406
+ "label": "默认意见",
5407
+ "name": "default",
5408
+ "type": "input-text"
5409
+ }
5410
+ ],
5411
+ "visibleOn": " 'approval_comments' === config.type ? true: false ",
5412
+ "labelClassName": "text-left",
5413
+ "clearValueOnHidden": true,
5414
+ "disabledOn": "${config.is_system == true}"
5415
+ },
5376
5416
  {
5377
5417
  "name": "config.description",
5378
5418
  "label": t$2('widgets-meta:sfield_control_description', "描述"),
@@ -5777,7 +5817,8 @@
5777
5817
  { name: "Location", type: "location", title: t$2('widgets-meta:sfield_location', "位置"), icon: "fa-fw fa fa-map-marker" },
5778
5818
  { name: "Formula", type: "formula", title: t$2('widgets-meta:sfield_formula', "公式"), icon: "fa-fw fa fa-subscript" },
5779
5819
  { name: "Summary", type: "summary", title: t$2('widgets-meta:sfield_summary', "累计汇总"), icon: "fa-fw fa fa-superscript" },
5780
- { name: "Table", type: "table", title: t$2('widgets-meta:sfield_table', "表格"), icon: "fa-fw fa fa-table" }
5820
+ { name: "Table", type: "table", title: t$2('widgets-meta:sfield_table', "表格"), icon: "fa-fw fa fa-table" },
5821
+ { name: "ApprovalComments", type: "approval_comments", title: t$2('widgets-meta:sfield_approval_comments', "审批意见"), icon: "fa-fw fa fa-table" }
5781
5822
  ];
5782
5823
  var fieldMetas = [];
5783
5824
  fieldTypes.forEach(function (_a) {
@@ -5932,7 +5973,7 @@
5932
5973
  ], amis: {
5933
5974
  render: {
5934
5975
  type: config$1.amis.name,
5935
- usage: t('widgets-meta:steedos-object_usage', 'renderer'),
5976
+ usage: 'renderer',
5936
5977
  weight: 1,
5937
5978
  framework: "react"
5938
5979
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-object",
3
3
  "private": false,
4
- "version": "6.10.3",
4
+ "version": "6.10.5",
5
5
  "main": "dist/amis-object.cjs.js",
6
6
  "module": "dist/amis-object.esm.js",
7
7
  "unpkg": "dist/amis-object.umd.js",
@@ -61,10 +61,10 @@
61
61
  "uglify-js": "^3.17.0"
62
62
  },
63
63
  "dependencies": {
64
- "@steedos-widgets/amis-lib": "6.10.3",
64
+ "@steedos-widgets/amis-lib": "6.10.5",
65
65
  "autoprefixer": "^10.4.13",
66
66
  "postcss": "^8.4.19",
67
67
  "tailwindcss": "^3.4.17"
68
68
  },
69
- "gitHead": "81971e71c721de1cfb2a2d0efde0b3f3eabfb97d"
69
+ "gitHead": "d59dba590c2424f15aed1e95adf1b2a53e3be960"
70
70
  }