@steedos-widgets/sortable 6.3.0-beta.13 → 6.3.0-beta.15

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-beta.13/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.13/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.15/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.15/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-beta.13/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.15/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.13/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.13/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.15/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.15/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -54147,7 +54147,7 @@ function getNameTpl(field, ctx){
54147
54147
  }
54148
54148
  let nameLabel = field.name;
54149
54149
  //若字段类型是lookup,则按照相关表tpl的label规则显示;若是其它类型,则显示_display或字段本身的值
54150
- if (field.type == "lookup") {
54150
+ if (field.type == "lookup" || field.type == "master_detail") {
54151
54151
  if(!field.reference_to && (field.optionsFunction || field._optionsFunction || field.options)){
54152
54152
  if(!field.isTableField){
54153
54153
  nameLabel = `\${${field.name}__label}`;
@@ -54702,6 +54702,7 @@ var frontend_setup$1 = "Setup";
54702
54702
  var frontend_notifications$1 = "Notifications";
54703
54703
  var frontend_notifications_allread$1 = "Mark all as read";
54704
54704
  var frontend_notifications_allread_message$1 = "All marked as read";
54705
+ var frontend_notifications_close_dialog$1 = "Close";
54705
54706
  var frontend_profile$1 = "Profile";
54706
54707
  var switch_space$1 = "Switch Space";
54707
54708
  var frontend_about$1 = "About";
@@ -54791,6 +54792,7 @@ var en_us = {
54791
54792
  frontend_notifications: frontend_notifications$1,
54792
54793
  frontend_notifications_allread: frontend_notifications_allread$1,
54793
54794
  frontend_notifications_allread_message: frontend_notifications_allread_message$1,
54795
+ frontend_notifications_close_dialog: frontend_notifications_close_dialog$1,
54794
54796
  frontend_profile: frontend_profile$1,
54795
54797
  switch_space: switch_space$1,
54796
54798
  frontend_about: frontend_about$1,
@@ -54882,6 +54884,7 @@ var frontend_setup = "设置";
54882
54884
  var frontend_notifications = "通知";
54883
54885
  var frontend_notifications_allread = "全部标记为已读";
54884
54886
  var frontend_notifications_allread_message = "已全部标记为已读";
54887
+ var frontend_notifications_close_dialog = "关闭";
54885
54888
  var frontend_profile = "个人资料";
54886
54889
  var switch_space = "切换工作区";
54887
54890
  var frontend_about = "关于";
@@ -54972,6 +54975,7 @@ var zh_cn = {
54972
54975
  frontend_notifications: frontend_notifications,
54973
54976
  frontend_notifications_allread: frontend_notifications_allread,
54974
54977
  frontend_notifications_allread_message: frontend_notifications_allread_message,
54978
+ frontend_notifications_close_dialog: frontend_notifications_close_dialog,
54975
54979
  frontend_profile: frontend_profile,
54976
54980
  switch_space: switch_space,
54977
54981
  frontend_about: frontend_about,
@@ -55167,7 +55171,12 @@ async function getQuickEditSchema(object, columnField, options){
55167
55171
  break;
55168
55172
  case "percent":
55169
55173
  TempDisplayField = `
55170
- _display["${field.name}"] = event.data.value.toFixed(${field.scale}) + '%';
55174
+ if(event.data.value){
55175
+ _display["${field.name}"] = event.data.value.toFixed(${field.scale}) + '%';
55176
+ } else {
55177
+ _display["${field.name}"] = event.data.value;
55178
+ }
55179
+
55171
55180
  `;
55172
55181
  quickEditSchema.body[0].onEvent["change"] = quickEditOnEvent(TempDisplayField);
55173
55182
  break;
@@ -55519,6 +55528,7 @@ async function getColumnItemOnClick(field, options){
55519
55528
  ...recordPage.schema.data,
55520
55529
  "_inDrawer": true, // 用于判断是否在抽屉中
55521
55530
  "recordLoaded": false, // 重置数据加载状态
55531
+ "recordId": `\${${options.idFieldName}}`//审批微页面依赖了作用域中的recordId
55522
55532
  }
55523
55533
  }) : {
55524
55534
  "type": "steedos-record-detail",
@@ -56458,16 +56468,6 @@ const getSchema$5 = async (uiSchema, ctx) => {
56458
56468
  data: formSchema
56459
56469
  };
56460
56470
  `;
56461
- const onDialogCancelScript = `
56462
- // 这里加setTimeout是因为amis的Bug,它会先触发cancel事件执行此脚本关闭父窗口然后再关闭子窗口
56463
- // 正确的顺序应该是先关闭子窗口再关闭父窗口,顺序错了会造成第二次点击新建按钮的时候异常
56464
- setTimeout(function(){
56465
- doAction({
56466
- "actionType": "cancel",
56467
- "componentId": "object_actions_drawer_${uiSchema.name}"
56468
- });
56469
- }, 200);
56470
- `;
56471
56471
  const getSelectedRowsScript = `
56472
56472
  const isLookup = event.data.isLookup;
56473
56473
  if(isLookup){
@@ -56557,17 +56557,6 @@ const getSchema$5 = async (uiSchema, ctx) => {
56557
56557
  "closeOnEsc": false,
56558
56558
  "closeOnOutside": false,
56559
56559
  "size": "lg",
56560
- "onEvent": {
56561
- "cancel": {
56562
- "actions": [
56563
- {
56564
- "actionType": "custom",
56565
- "script": onDialogCancelScript,
56566
- "expression": "${window:innerWidth < 768}",
56567
- }
56568
- ]
56569
- }
56570
- },
56571
56560
  "actions": [
56572
56561
  {
56573
56562
  type: 'button',
@@ -56585,8 +56574,7 @@ const getSchema$5 = async (uiSchema, ctx) => {
56585
56574
  type: 'button',
56586
56575
  actionType: 'confirm',
56587
56576
  label: instance.t('frontend_form_save'),
56588
- primary: true,
56589
- close: `object_actions_drawer_${uiSchema.name}`
56577
+ primary: true
56590
56578
  },
56591
56579
  ]
56592
56580
  }