@steedos-widgets/amis-object 6.10.1 → 6.10.2-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.
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.1/dist/fullcalendar.umd.js",
15
+ "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.2-beta.1/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.1/dist/sortable.umd.js",
23
+ "https://unpkg.com/@steedos-widgets/sortable@6.10.2-beta.1/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.1/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.1/dist/amis-object.umd.js",
38
+ "https://unpkg.com/@steedos-widgets/amis-object@6.10.2-beta.1/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.1/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.1/dist/meta.js",
52
+ "design": "https://unpkg.com/@steedos-widgets/fullcalendar@6.10.2-beta.1/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.1/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.1/dist/meta.js",
63
+ "design": "https://unpkg.com/@steedos-widgets/reactflow@6.10.2-beta.1/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.1/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.1/dist/meta.js",
74
+ "design": "https://unpkg.com/@steedos-widgets/sortable@6.10.2-beta.1/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.1/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.1/dist/meta.js",
85
+ "design": "https://unpkg.com/@steedos-widgets/amis-object@6.10.2-beta.1/dist/meta.js"
86
86
  }
87
87
  }
88
88
  ]
package/dist/meta.js CHANGED
@@ -5595,7 +5595,37 @@
5595
5595
  "visibleOn": "['number','currency','percent'].indexOf(config.type) > -1 ? true: false",
5596
5596
  "clearValueOnHidden": true,
5597
5597
  "fieldName": "config.enable_thousands"
5598
- }
5598
+ },
5599
+ // {
5600
+ // "name": "config.filters",
5601
+ // "id": "test123",
5602
+ // "label": t('widgets-meta:sfield_control_filters', "相关表过滤条件"),
5603
+ // "labelRemark": t('widgets-meta:sfield_control_filters_remark', "当字段类型为相关表关系或主/子表关系时,可以为该字段配置过滤条件,过滤选项列表;其中字段值可以配置为公式,公式中引用的字段需要同时配置在依赖的字段中。"),
5604
+ // "required": false,
5605
+ // "tpl": null,
5606
+ // "disabledOn": "${config.is_system == true}",
5607
+ // "visibleOn": "['lookup', 'master_detail'].indexOf(config.type) > -1 ? true: false",
5608
+ // "clearValueOnHidden": true,
5609
+ // "type": "editor",
5610
+ // "language": "javascript",
5611
+ // "pipeOut": `
5612
+ // try {
5613
+ // return value ? JSON.parse(value) : null;
5614
+ // } catch (e) {
5615
+ // }
5616
+ // return value;
5617
+ // `
5618
+ // // TODO: 应该换成 condition-builder 输出的值需要转换 通过window.amisConvert.conditionsToFilters转换
5619
+ // // "type": "condition-builder",
5620
+ // // "source": {
5621
+ // // "method": "get",
5622
+ // // "url": "${context.rootUrl}/service/api/amis-metadata-listviews/getFilterFields?objectName=${config.reference_to}",
5623
+ // // "dataType": "json",
5624
+ // // "headers": {
5625
+ // // "Authorization": "Bearer ${context.tenantId},${context.authToken}"
5626
+ // // }
5627
+ // // }
5628
+ // }
5599
5629
  ]
5600
5630
  },
5601
5631
  {
@@ -5611,6 +5641,14 @@
5611
5641
  "tpl": null,
5612
5642
  "clearValueOnHidden": true
5613
5643
  },
5644
+ {
5645
+ "name": "config.searchable",
5646
+ "label": t$3('widgets-meta:sfield_control_filterable', "启用列表页快速搜索"),
5647
+ "required": false,
5648
+ "type": "checkbox",
5649
+ "tpl": null,
5650
+ "clearValueOnHidden": true
5651
+ },
5614
5652
  {
5615
5653
  "name": "config.filterable",
5616
5654
  "label": t$3('widgets-meta:sfield_control_default_filter_field', "列表页过滤器默认字段"),
@@ -5619,6 +5657,15 @@
5619
5657
  "tpl": null,
5620
5658
  "clearValueOnHidden": true
5621
5659
  },
5660
+ {
5661
+ "name": "config.sortable",
5662
+ "label": t$3('widgets-meta:sfield_control_sortable', "可排序"),
5663
+ "required": false,
5664
+ "type": "checkbox",
5665
+ "tpl": null,
5666
+ "visibleOn": "['image','file','lookup','master_detail','select'].indexOf(config.type) < 0",
5667
+ "clearValueOnHidden": true
5668
+ },
5622
5669
  {
5623
5670
  "name": "config.index",
5624
5671
  "label": t$3('widgets-meta:sfield_control_create_index', "创建索引"),
@@ -5920,10 +5967,10 @@
5920
5967
  */
5921
5968
  var t = window.steedosI18next.t;
5922
5969
  var config = {
5923
- componentType: 'amisSchema',
5924
- group: t('widgets-meta:steedos-flow-form_group', 'Steedos-审批王'),
5970
+ componentType: "amisSchema",
5971
+ group: t("widgets-meta:steedos-flow-form_group", "Steedos-审批王"),
5925
5972
  componentName: "AmisSteedosFlowForm",
5926
- title: t('widgets-meta:steedos-flow-form_title', '流程表单'),
5973
+ title: t("widgets-meta:steedos-flow-form_title", "流程表单"),
5927
5974
  docUrl: "",
5928
5975
  screenshot: "",
5929
5976
  npm: {
@@ -5932,15 +5979,15 @@
5932
5979
  exportName: "AmisSteedosFlowForm",
5933
5980
  main: "",
5934
5981
  destructuring: true,
5935
- subName: ""
5982
+ subName: "",
5936
5983
  },
5937
5984
  preview: {},
5938
5985
  targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
5939
5986
  engines: ["amis"],
5940
5987
  amis: {
5941
- name: 'steedos-flow-form',
5942
- icon: "fa-fw fa fa-list-alt"
5943
- }
5988
+ name: "steedos-flow-form",
5989
+ icon: "fa-fw fa fa-list-alt",
5990
+ },
5944
5991
  };
5945
5992
  var AmisSteedosFlowForm = __assign(__assign({}, config), { snippets: [
5946
5993
  {
@@ -5948,86 +5995,146 @@
5948
5995
  screenshot: "",
5949
5996
  schema: {
5950
5997
  componentName: config.componentName,
5951
- props: config.preview
5952
- }
5953
- }
5998
+ props: config.preview,
5999
+ },
6000
+ },
5954
6001
  ], amis: {
5955
6002
  render: {
5956
6003
  type: config.amis.name,
5957
6004
  usage: "renderer",
5958
6005
  weight: 1,
5959
- framework: "react"
6006
+ framework: "react",
5960
6007
  },
5961
6008
  plugin: {
5962
6009
  rendererName: config.amis.name,
5963
- $schema: '/schemas/UnkownSchema.json',
6010
+ $schema: "/schemas/AmisSteedosFlowFormSchema.json",
5964
6011
  name: config.title,
5965
6012
  description: config.title,
5966
6013
  tags: [config.group],
5967
6014
  isBaseComponent: true,
5968
6015
  order: -10000,
5969
6016
  icon: config.amis.icon,
6017
+ events: [
6018
+ { eventName: "inited", eventLabel: "表单初始化完成", description: "表单初始化完成事件,不管配置不配置 initApi 都会触发,实际上还会等部分子表单项初始化完成" },
6019
+ { eventName: "change", eventLabel: "表单值变化时触发", description: "" },
6020
+ { eventName: "submit", eventLabel: "表单提交前触发", description: "" },
6021
+ ],
5970
6022
  scaffold: {
5971
- type: 'steedos-flow-form',
6023
+ type: "steedos-flow-form",
5972
6024
  body: [],
5973
6025
  },
5974
6026
  regions: [
5975
6027
  {
5976
- key: 'body',
5977
- label: t('widgets-meta:steedos-flow-form_region_body', '内容区')
6028
+ key: "body",
6029
+ label: t("widgets-meta:steedos-flow-form_region_body", "内容区"),
5978
6030
  },
5979
6031
  ],
5980
6032
  previewSchema: {
5981
6033
  type: config.amis.name,
5982
6034
  },
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
- }
6035
+ panelTitle: t("widgets-meta:steedos-flow-form_panelTitle", "设置"),
6036
+ panelBodyCreator: function (context) {
6037
+ var _a;
6038
+ return [
6039
+ {
6040
+ type: "tabs",
6041
+ tabsMode: "line",
6042
+ className: "editor-prop-config-tabs",
6043
+ linksClassName: "editor-prop-config-tabs-links",
6044
+ contentClassName: "no-border editor-prop-config-tabs-cont",
6045
+ tabs: [
6046
+ {
6047
+ title: "属性",
6048
+ className: "",
6049
+ body: [
6050
+ {
6051
+ type: "collapse-group",
6052
+ expandIconPosition: "right",
6053
+ expandIcon: {
6054
+ type: "icon",
6055
+ icon: "chevron-right",
6056
+ },
6057
+ className: "ae-formItemControl",
6058
+ body: [
6059
+ {
6060
+ type: "input-text",
6061
+ name: "name",
6062
+ label: t("widgets-meta:steedos-flow-form_name", "表单名"),
6063
+ validateOnChange: true
6064
+ },
6065
+ {
6066
+ type: "radios",
6067
+ name: "style",
6068
+ label: t("widgets-meta:steedos-flow-form_style", "样式"),
6069
+ options: [
6070
+ {
6071
+ label: t("widgets-meta:steedos-flow-form_style_table", "表格"),
6072
+ value: "table",
6073
+ },
6074
+ {
6075
+ label: t("widgets-meta:steedos-flow-form_style_wizard", "向导"),
6076
+ value: "wizard",
6077
+ },
6078
+ ],
6079
+ value: 'table'
6080
+ },
6081
+ {
6082
+ type: "radios",
6083
+ name: "mode",
6084
+ label: t("widgets-meta:steedos-flow-form_mode", "表单模式"),
6085
+ visibleOn: "${style === 'wizard'}",
6086
+ options: [
6087
+ {
6088
+ label: t("widgets-meta:steedos-flow-form_mode_normal", "默认"),
6089
+ value: "normal",
6090
+ },
6091
+ {
6092
+ label: t("widgets-meta:steedos-flow-form_mode_horizontal", "水平模式"),
6093
+ value: "horizontal",
6094
+ },
6095
+ {
6096
+ label: t("widgets-meta:steedos-flow-form_mode_inline", "内联模式"),
6097
+ value: "inline",
6098
+ },
6099
+ ],
6100
+ },
6101
+ {
6102
+ type: "radios",
6103
+ name: "wizard_mode",
6104
+ label: t("widgets-meta:steedos-flow-form_wizard_mode", "向导模式"),
6105
+ visibleOn: "${style === 'wizard'}",
6106
+ options: [
6107
+ {
6108
+ label: t("widgets-meta:steedos-flow-form_wizard_mode_vertical", "纵向"),
6109
+ value: "vertical",
6110
+ },
6111
+ {
6112
+ label: t("widgets-meta:steedos-flow-form_wizard_mode_horizontal", "横向"),
6113
+ value: "horizontal",
6114
+ },
6115
+ ],
6116
+ },
6117
+ {
6118
+ type: "textarea",
6119
+ name: "description",
6120
+ label: t("widgets-meta:steedos-flow-form_description", "描述"),
6121
+ },
6122
+ ],
6123
+ },
6124
+ ],
6125
+ },
6126
+ {
6127
+ title: "事件",
6128
+ className: "p-none",
6129
+ body: [
6130
+ __assign({ name: 'onEvent' }, (_a = window.AmisEditor) === null || _a === void 0 ? void 0 : _a.formItemControl({}, context)[0].tabs[2].body[0])
6131
+ ],
6132
+ },
6133
+ ],
6134
+ },
6135
+ ];
6136
+ }
6137
+ },
6031
6138
  } });
6032
6139
 
6033
6140
  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.1",
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.1",
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": "f1b70cd27c19419d276c3f5f07d8779c2b9df9f8"
70
70
  }