@steedos-widgets/amis-object 6.10.1 → 6.10.2-beta.2

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.1/dist/fullcalendar.umd.js",
15
- "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.1/dist/fullcalendar.umd.css"
14
+ "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.2-beta.2/dist/fullcalendar.umd.js",
15
+ "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.2-beta.2/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.1/dist/sortable.umd.js",
23
- "https://unpkg.com/@steedos-widgets/sortable@6.10.1/dist/sortable.umd.css"
22
+ "https://unpkg.com/@steedos-widgets/sortable@6.10.2-beta.2/dist/sortable.umd.js",
23
+ "https://unpkg.com/@steedos-widgets/sortable@6.10.2-beta.2/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.1/dist/index.umd.js"
30
+ "https://unpkg.com/@steedos-widgets/steedos-lib@6.10.2-beta.2/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.1/dist/amis-object.umd.js",
38
- "https://unpkg.com/@steedos-widgets/amis-object@6.10.1/dist/amis-object.umd.css"
37
+ "https://unpkg.com/@steedos-widgets/amis-object@6.10.2-beta.2/dist/amis-object.umd.js",
38
+ "https://unpkg.com/@steedos-widgets/amis-object@6.10.2-beta.2/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.1/dist/meta.js",
49
+ "url": "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.2-beta.2/dist/meta.js",
50
50
  "urls": {
51
- "default": "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.1/dist/meta.js",
52
- "design": "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.1/dist/meta.js"
51
+ "default": "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.2-beta.2/dist/meta.js",
52
+ "design": "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.2-beta.2/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.1/dist/meta.js",
60
+ "url": "https://unpkg.com/@steedos-widgets/reactflow@6.10.2-beta.2/dist/meta.js",
61
61
  "urls": {
62
- "default": "https://unpkg.com/@steedos-widgets/reactflow@6.10.1/dist/meta.js",
63
- "design": "https://unpkg.com/@steedos-widgets/reactflow@6.10.1/dist/meta.js"
62
+ "default": "https://unpkg.com/@steedos-widgets/reactflow@6.10.2-beta.2/dist/meta.js",
63
+ "design": "https://unpkg.com/@steedos-widgets/reactflow@6.10.2-beta.2/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.1/dist/meta.js",
71
+ "url": "https://unpkg.com/@steedos-widgets/sortable@6.10.2-beta.2/dist/meta.js",
72
72
  "urls": {
73
- "default": "https://unpkg.com/@steedos-widgets/sortable@6.10.1/dist/meta.js",
74
- "design": "https://unpkg.com/@steedos-widgets/sortable@6.10.1/dist/meta.js"
73
+ "default": "https://unpkg.com/@steedos-widgets/sortable@6.10.2-beta.2/dist/meta.js",
74
+ "design": "https://unpkg.com/@steedos-widgets/sortable@6.10.2-beta.2/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.1/dist/meta.js",
82
+ "url": "https://unpkg.com/@steedos-widgets/amis-object@6.10.2-beta.2/dist/meta.js",
83
83
  "urls": {
84
- "default": "https://unpkg.com/@steedos-widgets/amis-object@6.10.1/dist/meta.js",
85
- "design": "https://unpkg.com/@steedos-widgets/amis-object@6.10.1/dist/meta.js"
84
+ "default": "https://unpkg.com/@steedos-widgets/amis-object@6.10.2-beta.2/dist/meta.js",
85
+ "design": "https://unpkg.com/@steedos-widgets/amis-object@6.10.2-beta.2/dist/meta.js"
86
86
  }
87
87
  }
88
88
  ]
package/dist/meta.js CHANGED
@@ -5377,9 +5377,34 @@
5377
5377
  "name": "config.description",
5378
5378
  "label": t$3('widgets-meta:sfield_control_description', "描述"),
5379
5379
  "required": false,
5380
- "type": "textarea",
5380
+ "type": "input-rich-text",
5381
5381
  "tpl": "<%=(data.config.description || \"\").split(\"\\n\").join('<br>')%>",
5382
- "clearValueOnHidden": true
5382
+ "clearValueOnHidden": true,
5383
+ "options": {
5384
+ "menubar": false,
5385
+ // "toolbar_mode": "wrap",
5386
+ "height": 300,
5387
+ "plugins": ["lists"],
5388
+ "toolbar": "bold italic underline color align list",
5389
+ toolbar_groups: {
5390
+ align: {
5391
+ icon: 'align-left',
5392
+ tooltip: 'Align',
5393
+ items: 'alignleft aligncenter alignright alignjustify'
5394
+ },
5395
+ color: {
5396
+ icon: 'text-color',
5397
+ tooltip: 'Color',
5398
+ items: 'forecolor backcolor'
5399
+ },
5400
+ list: {
5401
+ icon: 'unordered-list',
5402
+ tooltip: 'List',
5403
+ items: 'bullist numlist outdent indent'
5404
+ }
5405
+ },
5406
+ "statusbar": false
5407
+ }
5383
5408
  },
5384
5409
  {
5385
5410
  "name": "config.deleted_lookup_record_behavior",
@@ -5595,7 +5620,37 @@
5595
5620
  "visibleOn": "['number','currency','percent'].indexOf(config.type) > -1 ? true: false",
5596
5621
  "clearValueOnHidden": true,
5597
5622
  "fieldName": "config.enable_thousands"
5598
- }
5623
+ },
5624
+ // {
5625
+ // "name": "config.filters",
5626
+ // "id": "test123",
5627
+ // "label": t('widgets-meta:sfield_control_filters', "相关表过滤条件"),
5628
+ // "labelRemark": t('widgets-meta:sfield_control_filters_remark', "当字段类型为相关表关系或主/子表关系时,可以为该字段配置过滤条件,过滤选项列表;其中字段值可以配置为公式,公式中引用的字段需要同时配置在依赖的字段中。"),
5629
+ // "required": false,
5630
+ // "tpl": null,
5631
+ // "disabledOn": "${config.is_system == true}",
5632
+ // "visibleOn": "['lookup', 'master_detail'].indexOf(config.type) > -1 ? true: false",
5633
+ // "clearValueOnHidden": true,
5634
+ // "type": "editor",
5635
+ // "language": "javascript",
5636
+ // "pipeOut": `
5637
+ // try {
5638
+ // return value ? JSON.parse(value) : null;
5639
+ // } catch (e) {
5640
+ // }
5641
+ // return value;
5642
+ // `
5643
+ // // TODO: 应该换成 condition-builder 输出的值需要转换 通过window.amisConvert.conditionsToFilters转换
5644
+ // // "type": "condition-builder",
5645
+ // // "source": {
5646
+ // // "method": "get",
5647
+ // // "url": "${context.rootUrl}/service/api/amis-metadata-listviews/getFilterFields?objectName=${config.reference_to}",
5648
+ // // "dataType": "json",
5649
+ // // "headers": {
5650
+ // // "Authorization": "Bearer ${context.tenantId},${context.authToken}"
5651
+ // // }
5652
+ // // }
5653
+ // }
5599
5654
  ]
5600
5655
  },
5601
5656
  {
@@ -5611,6 +5666,14 @@
5611
5666
  "tpl": null,
5612
5667
  "clearValueOnHidden": true
5613
5668
  },
5669
+ {
5670
+ "name": "config.searchable",
5671
+ "label": t$3('widgets-meta:sfield_control_filterable', "启用列表页快速搜索"),
5672
+ "required": false,
5673
+ "type": "checkbox",
5674
+ "tpl": null,
5675
+ "clearValueOnHidden": true
5676
+ },
5614
5677
  {
5615
5678
  "name": "config.filterable",
5616
5679
  "label": t$3('widgets-meta:sfield_control_default_filter_field', "列表页过滤器默认字段"),
@@ -5619,6 +5682,15 @@
5619
5682
  "tpl": null,
5620
5683
  "clearValueOnHidden": true
5621
5684
  },
5685
+ {
5686
+ "name": "config.sortable",
5687
+ "label": t$3('widgets-meta:sfield_control_sortable', "可排序"),
5688
+ "required": false,
5689
+ "type": "checkbox",
5690
+ "tpl": null,
5691
+ "visibleOn": "['image','file','lookup','master_detail','select'].indexOf(config.type) < 0",
5692
+ "clearValueOnHidden": true
5693
+ },
5622
5694
  {
5623
5695
  "name": "config.index",
5624
5696
  "label": t$3('widgets-meta:sfield_control_create_index', "创建索引"),
@@ -5920,10 +5992,10 @@
5920
5992
  */
5921
5993
  var t = window.steedosI18next.t;
5922
5994
  var config = {
5923
- componentType: 'amisSchema',
5924
- group: t('widgets-meta:steedos-flow-form_group', 'Steedos-审批王'),
5995
+ componentType: "amisSchema",
5996
+ group: t("widgets-meta:steedos-flow-form_group", "Steedos-审批王"),
5925
5997
  componentName: "AmisSteedosFlowForm",
5926
- title: t('widgets-meta:steedos-flow-form_title', '流程表单'),
5998
+ title: t("widgets-meta:steedos-flow-form_title", "流程表单"),
5927
5999
  docUrl: "",
5928
6000
  screenshot: "",
5929
6001
  npm: {
@@ -5932,15 +6004,15 @@
5932
6004
  exportName: "AmisSteedosFlowForm",
5933
6005
  main: "",
5934
6006
  destructuring: true,
5935
- subName: ""
6007
+ subName: "",
5936
6008
  },
5937
6009
  preview: {},
5938
6010
  targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
5939
6011
  engines: ["amis"],
5940
6012
  amis: {
5941
- name: 'steedos-flow-form',
5942
- icon: "fa-fw fa fa-list-alt"
5943
- }
6013
+ name: "steedos-flow-form",
6014
+ icon: "fa-fw fa fa-list-alt",
6015
+ },
5944
6016
  };
5945
6017
  var AmisSteedosFlowForm = __assign(__assign({}, config), { snippets: [
5946
6018
  {
@@ -5948,86 +6020,146 @@
5948
6020
  screenshot: "",
5949
6021
  schema: {
5950
6022
  componentName: config.componentName,
5951
- props: config.preview
5952
- }
5953
- }
6023
+ props: config.preview,
6024
+ },
6025
+ },
5954
6026
  ], amis: {
5955
6027
  render: {
5956
6028
  type: config.amis.name,
5957
6029
  usage: "renderer",
5958
6030
  weight: 1,
5959
- framework: "react"
6031
+ framework: "react",
5960
6032
  },
5961
6033
  plugin: {
5962
6034
  rendererName: config.amis.name,
5963
- $schema: '/schemas/UnkownSchema.json',
6035
+ $schema: "/schemas/AmisSteedosFlowFormSchema.json",
5964
6036
  name: config.title,
5965
6037
  description: config.title,
5966
6038
  tags: [config.group],
5967
6039
  isBaseComponent: true,
5968
6040
  order: -10000,
5969
6041
  icon: config.amis.icon,
6042
+ events: [
6043
+ { eventName: "inited", eventLabel: "表单初始化完成", description: "表单初始化完成事件,不管配置不配置 initApi 都会触发,实际上还会等部分子表单项初始化完成" },
6044
+ { eventName: "change", eventLabel: "表单值变化时触发", description: "" },
6045
+ { eventName: "submit", eventLabel: "表单提交前触发", description: "" },
6046
+ ],
5970
6047
  scaffold: {
5971
- type: 'steedos-flow-form',
6048
+ type: "steedos-flow-form",
5972
6049
  body: [],
5973
6050
  },
5974
6051
  regions: [
5975
6052
  {
5976
- key: 'body',
5977
- label: t('widgets-meta:steedos-flow-form_region_body', '内容区')
6053
+ key: "body",
6054
+ label: t("widgets-meta:steedos-flow-form_region_body", "内容区"),
5978
6055
  },
5979
6056
  ],
5980
6057
  previewSchema: {
5981
6058
  type: config.amis.name,
5982
6059
  },
5983
- panelTitle: t('widgets-meta:steedos-flow-form_panelTitle', '设置'),
5984
- panelControls: [
5985
- {
5986
- type: 'text',
5987
- name: 'name',
5988
- label: t('widgets-meta:steedos-flow-form_name', '表单名'),
5989
- validateOnChange: true,
5990
- validations: {
5991
- isVariableName: /^[a-zA-Z]([A-Za-z0-9]|_(?!_))*[A-Za-z0-9]$/
5992
- }
5993
- },
5994
- {
5995
- type: 'radios',
5996
- name: 'style',
5997
- label: t('widgets-meta:steedos-flow-form_style', '样式'),
5998
- options: [
5999
- { label: t('widgets-meta:steedos-flow-form_style_table', '表格'), value: 'table' },
6000
- { label: t('widgets-meta:steedos-flow-form_style_wizard', '向导'), value: 'wizard' }
6001
- ]
6002
- },
6003
- {
6004
- type: 'radios',
6005
- name: 'mode',
6006
- label: t('widgets-meta:steedos-flow-form_mode', '表单模式'),
6007
- visibleOn: "${style === 'wizard'}",
6008
- options: [
6009
- { label: t('widgets-meta:steedos-flow-form_mode_normal', '默认'), value: 'normal' },
6010
- { label: t('widgets-meta:steedos-flow-form_mode_horizontal', '水平模式'), value: 'horizontal' },
6011
- { label: t('widgets-meta:steedos-flow-form_mode_inline', '内联模式'), value: 'inline' }
6012
- ]
6013
- },
6014
- {
6015
- type: 'radios',
6016
- name: 'wizard_mode',
6017
- label: t('widgets-meta:steedos-flow-form_wizard_mode', '向导模式'),
6018
- visibleOn: "${style === 'wizard'}",
6019
- options: [
6020
- { label: t('widgets-meta:steedos-flow-form_wizard_mode_vertical', '纵向'), value: 'vertical' },
6021
- { label: t('widgets-meta:steedos-flow-form_wizard_mode_horizontal', '横向'), value: 'horizontal' }
6022
- ]
6023
- },
6024
- {
6025
- type: 'textarea',
6026
- name: 'description',
6027
- label: t('widgets-meta:steedos-flow-form_description', '描述')
6028
- }
6029
- ]
6030
- }
6060
+ panelTitle: t("widgets-meta:steedos-flow-form_panelTitle", "设置"),
6061
+ panelBodyCreator: function (context) {
6062
+ var _a;
6063
+ return [
6064
+ {
6065
+ type: "tabs",
6066
+ tabsMode: "line",
6067
+ className: "editor-prop-config-tabs",
6068
+ linksClassName: "editor-prop-config-tabs-links",
6069
+ contentClassName: "no-border editor-prop-config-tabs-cont",
6070
+ tabs: [
6071
+ {
6072
+ title: "属性",
6073
+ className: "",
6074
+ body: [
6075
+ {
6076
+ type: "collapse-group",
6077
+ expandIconPosition: "right",
6078
+ expandIcon: {
6079
+ type: "icon",
6080
+ icon: "chevron-right",
6081
+ },
6082
+ className: "ae-formItemControl",
6083
+ body: [
6084
+ {
6085
+ type: "input-text",
6086
+ name: "name",
6087
+ label: t("widgets-meta:steedos-flow-form_name", "表单名"),
6088
+ validateOnChange: true
6089
+ },
6090
+ {
6091
+ type: "radios",
6092
+ name: "style",
6093
+ label: t("widgets-meta:steedos-flow-form_style", "样式"),
6094
+ options: [
6095
+ {
6096
+ label: t("widgets-meta:steedos-flow-form_style_table", "表格"),
6097
+ value: "table",
6098
+ },
6099
+ {
6100
+ label: t("widgets-meta:steedos-flow-form_style_wizard", "向导"),
6101
+ value: "wizard",
6102
+ },
6103
+ ],
6104
+ value: 'table'
6105
+ },
6106
+ {
6107
+ type: "radios",
6108
+ name: "mode",
6109
+ label: t("widgets-meta:steedos-flow-form_mode", "表单模式"),
6110
+ visibleOn: "${style === 'wizard'}",
6111
+ options: [
6112
+ {
6113
+ label: t("widgets-meta:steedos-flow-form_mode_normal", "默认"),
6114
+ value: "normal",
6115
+ },
6116
+ {
6117
+ label: t("widgets-meta:steedos-flow-form_mode_horizontal", "水平模式"),
6118
+ value: "horizontal",
6119
+ },
6120
+ {
6121
+ label: t("widgets-meta:steedos-flow-form_mode_inline", "内联模式"),
6122
+ value: "inline",
6123
+ },
6124
+ ],
6125
+ },
6126
+ {
6127
+ type: "radios",
6128
+ name: "wizard_mode",
6129
+ label: t("widgets-meta:steedos-flow-form_wizard_mode", "向导模式"),
6130
+ visibleOn: "${style === 'wizard'}",
6131
+ options: [
6132
+ {
6133
+ label: t("widgets-meta:steedos-flow-form_wizard_mode_vertical", "纵向"),
6134
+ value: "vertical",
6135
+ },
6136
+ {
6137
+ label: t("widgets-meta:steedos-flow-form_wizard_mode_horizontal", "横向"),
6138
+ value: "horizontal",
6139
+ },
6140
+ ],
6141
+ },
6142
+ {
6143
+ type: "textarea",
6144
+ name: "description",
6145
+ label: t("widgets-meta:steedos-flow-form_description", "描述"),
6146
+ },
6147
+ ],
6148
+ },
6149
+ ],
6150
+ },
6151
+ {
6152
+ title: "事件",
6153
+ className: "p-none",
6154
+ body: [
6155
+ __assign({ name: 'onEvent' }, (_a = window.AmisEditor) === null || _a === void 0 ? void 0 : _a.formItemControl({}, context)[0].tabs[2].body[0])
6156
+ ],
6157
+ },
6158
+ ],
6159
+ },
6160
+ ];
6161
+ }
6162
+ },
6031
6163
  } });
6032
6164
 
6033
6165
  var components = __spreadArray(__spreadArray([
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.1",
4
+ "version": "6.10.2-beta.2",
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.1",
64
+ "@steedos-widgets/amis-lib": "6.10.2-beta.2",
65
65
  "autoprefixer": "^10.4.13",
66
66
  "postcss": "^8.4.19",
67
67
  "tailwindcss": "^3.4.17"
68
68
  },
69
- "gitHead": "0579e42e8db9f51a3aaea6cd7accd67af87600f2"
69
+ "gitHead": "18152a919a4e43c3d3e11f90c86143e746edd9f8"
70
70
  }