@steedos-widgets/sortable 1.3.22-beta.2 → 3.6.0-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.
package/dist/assets.json CHANGED
@@ -3,8 +3,8 @@
3
3
  {
4
4
  "package": "@steedos-widgets/sortable",
5
5
  "urls": [
6
- "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.2/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.2/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.3/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.3/dist/sortable.umd.css"
8
8
  ],
9
9
  "library": "BuilderSortable"
10
10
  }
@@ -15,10 +15,10 @@
15
15
  "npm": {
16
16
  "package": "@steedos-widgets/sortable"
17
17
  },
18
- "url": "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.2/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.3/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.2/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.2/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.3/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.3/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -54969,6 +54969,7 @@ async function getQuickEditSchema(field, options){
54969
54969
  {
54970
54970
  "actionType": "custom",
54971
54971
  "script": `
54972
+
54972
54973
  var _display = _.cloneDeep(event.data._display);
54973
54974
  ${displayField}
54974
54975
  doAction({actionType: 'setValue', "args": {"value": {_display}},componentId: "${quickEditId}"});
@@ -55140,7 +55141,7 @@ async function getQuickEditSchema(field, options){
55140
55141
  "actions":[
55141
55142
  {
55142
55143
  "actionType": "setValue",
55143
- "componentId": `service_listview_${options.objectName}`,
55144
+ "componentId": quickEditId,
55144
55145
  "args": {
55145
55146
  "value":{
55146
55147
  "quickedit_record_permissions_loading": true
@@ -55165,7 +55166,7 @@ async function getQuickEditSchema(field, options){
55165
55166
  },
55166
55167
  {
55167
55168
  "actionType": "setValue",
55168
- "componentId": `service_listview_${options.objectName}`,
55169
+ "componentId": quickEditId,
55169
55170
  "args": {
55170
55171
  "value":{
55171
55172
  "quickedit_record_permissions_loading": false
@@ -55174,7 +55175,7 @@ async function getQuickEditSchema(field, options){
55174
55175
  },
55175
55176
  {
55176
55177
  "actionType": "setValue",
55177
- "componentId": `service_listview_${options.objectName}`,
55178
+ "componentId": quickEditId,
55178
55179
  "args": {
55179
55180
  "value":{
55180
55181
  "quickedit_record_permissions": "${event.data}"
@@ -55353,9 +55354,9 @@ function getFieldWidth(width){
55353
55354
  async function getTableColumns(fields, options){
55354
55355
  const columns = [];
55355
55356
  if(!options.isLookup && !options.isInputTable){
55356
- //将_display放入crud的columns中,可以通过setvalue修改行内数据域的_display,而不影响上层items的_display,用于批量编辑
55357
- columns.push({name: '_display',type: 'static', width: 32, placeholder: "",id: "_display_${_index}", className: "hidden"});
55358
- columns.push({name: '_index',type: 'text', width: 32, placeholder: ""});
55357
+ if(!options.enable_tree){
55358
+ columns.push({name: '_index',type: 'text', width: 32, placeholder: ""});
55359
+ }
55359
55360
  }
55360
55361
  const allowEdit = options.permissions?.allowEdit && !options.isLookup && options.enable_inline_edit != false;
55361
55362
 
@@ -55897,6 +55898,7 @@ async function getTableSchema$1(fields, options){
55897
55898
  if(!isLookup && !hiddenColumnOperation){
55898
55899
  columns.push(await getTableOperation(options));
55899
55900
  }
55901
+
55900
55902
  }
55901
55903
 
55902
55904
  return {
@@ -59176,6 +59178,9 @@ async function lookupToAmisPicker(field, readonly, ctx){
59176
59178
  */
59177
59179
  return payload;
59178
59180
  }
59181
+ if(!payload.data.rows){
59182
+ payload.data.rows = [];
59183
+ }
59179
59184
  if(enable_tree){
59180
59185
  const records = payload.data.rows;
59181
59186
  const treeRecords = [];