@steedos-widgets/sortable 6.3.0 → 6.3.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
@@ -3,8 +3,8 @@
3
3
  {
4
4
  "package": "@steedos-widgets/sortable",
5
5
  "urls": [
6
- "https://unpkg.com/@steedos-widgets/sortable@6.3.0/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@6.3.0/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@6.3.2/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@6.3.2/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@6.3.0/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@6.3.2/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@6.3.0/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@6.3.0/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@6.3.2/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@6.3.2/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -54549,7 +54549,7 @@ async function getLookupLinkOnClick(field, options) {
54549
54549
  const recordPage = await getPage({ type: 'record', appId: options.appId, objectName: options.objectName, formFactor: options.formFactor });
54550
54550
 
54551
54551
  const drawerRecordDetailSchema = recordPage ? Object.assign({}, recordPage.schema, {
54552
- "recordId": "${value}",
54552
+ "recordId": `\${${field.name}}`,
54553
54553
  "data": {
54554
54554
  ...recordPage.schema.data,
54555
54555
  "_inDrawer": true, // 用于判断是否在抽屉中
@@ -54559,7 +54559,7 @@ async function getLookupLinkOnClick(field, options) {
54559
54559
  }) : {
54560
54560
  "type": "steedos-record-detail",
54561
54561
  "objectApiName": options.objectName,
54562
- "recordId": "${value}",
54562
+ "recordId": `\${${field.name}}`,
54563
54563
  "showBackButton": false,
54564
54564
  "showButtons": true,
54565
54565
  "data": {
@@ -54665,7 +54665,7 @@ const getAmisFileReadonlySchema = async (steedosField,ctx = {})=>{
54665
54665
  labelClassName: "hidden",
54666
54666
  label: false,
54667
54667
  className: 'm-0',
54668
- tpl: `<a href="/app/-/cfs_files_filerecord/view/\${value}" ${lookupATagClick}>\${name}</a>`,
54668
+ tpl: `<a href="/app/-/cfs_files_filerecord/view/\${${steedosField.name}}" ${lookupATagClick}>\${name}</a>`,
54669
54669
  // tpl: "<%= item.name >",
54670
54670
  // onEvent: window.innerWidth < 768 ? null : REFERENCE_VALUE_ITEM_ONCLICK
54671
54671
  onEvent: window.innerWidth < 768 ? null : await getLookupLinkOnClick(steedosField, {
@@ -55148,6 +55148,11 @@ async function getQuickEditSchema(object, columnField, options){
55148
55148
  const submitEvent = {
55149
55149
  submit: {
55150
55150
  actions: [
55151
+ {
55152
+ "actionType": "validate",
55153
+ "componentId": quickEditId,
55154
+ "outputVar": "form_validate_result"
55155
+ },
55151
55156
  {
55152
55157
  actionType: "custom",
55153
55158
  script: `
@@ -55164,10 +55169,12 @@ async function getQuickEditSchema(object, columnField, options){
55164
55169
  doAction({actionType: 'setValue', "args": {"value": event.data._display},componentId: "${options.objectName}" + "_display_" + event.data._index});
55165
55170
  doAction({actionType: 'setValue', "args": {"value": event.data.${field.name}},componentId: "${options.objectName + "_" + field.name + "_"}" + event.data._index});
55166
55171
  }
55167
- `
55172
+ `,
55173
+ expression: "${!form_validate_result.error}"
55168
55174
  },
55169
55175
  {
55170
- "actionType": "closeDialog"
55176
+ "actionType": "closeDialog",
55177
+ expression: "${!form_validate_result.error}"
55171
55178
  }
55172
55179
  ]
55173
55180
  }
@@ -55675,7 +55682,7 @@ async function getTableColumns(object, fields, options){
55675
55682
  }
55676
55683
  //增加quickEdit属性,实现快速编辑
55677
55684
  const quickEditSchema = allowEdit ? await getQuickEditSchema(object, field, options) : allowEdit;
55678
- let className = "";
55685
+ let className = `steedos-table-${field.type}-field`;
55679
55686
  const bowserType = getBowserType();
55680
55687
  if(bowserType === "Safari"){
55681
55688
  className += " whitespace-nowrap ";
@@ -61483,6 +61490,8 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
61483
61490
  if(gridSub){
61484
61491
  delete gridSub.name;
61485
61492
  delete gridSub.label;
61493
+ //去除重复样式
61494
+ gridSub.className = gridSub.className.replace('border-b', '');
61486
61495
  convertData.items.push(
61487
61496
  Object.assign({}, gridSub, {label: subField.label}, subField.amis, {
61488
61497
  name: subFieldName
@@ -61537,6 +61546,10 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
61537
61546
  }
61538
61547
  // if(ctx.mode === 'edit'){
61539
61548
  let convertDataResult = Object.assign({}, baseData, convertData, { labelClassName: 'text-left', clearValueOnHidden: true, fieldName: field.name}, field.amis, {name: baseData.name});
61549
+ // 只读时file字段的外层control层若存在name,内部each组件存在问题
61550
+ if(readonly && field.type == "file") {
61551
+ convertDataResult.name = "";
61552
+ }
61540
61553
  // console.log("convertDataResult:", convertDataResult);
61541
61554
  return convertDataResult;
61542
61555
  // }else{