@steedos-widgets/sortable 3.6.2-beta.10 → 3.6.2-beta.12

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@3.6.2-beta.10/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.10/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.12/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.12/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@3.6.2-beta.10/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.12/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.10/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.10/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.12/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.12/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -53951,6 +53951,9 @@ const Router = {
53951
53951
  if(uiSchema.enable_split){
53952
53952
  defaultDisplay = "split";
53953
53953
  }
53954
+ if(window.innerWidth <= 768){
53955
+ return "grid";
53956
+ }
53954
53957
  return value ? value : defaultDisplay;
53955
53958
  },
53956
53959
 
@@ -54624,6 +54627,7 @@ var frontend_notifications$1 = "Notifications";
54624
54627
  var frontend_notifications_allread$1 = "Mark all as read";
54625
54628
  var frontend_notifications_allread_message$1 = "All marked as read";
54626
54629
  var frontend_profile$1 = "Profile";
54630
+ var switch_space$1 = "Switch Space";
54627
54631
  var frontend_about$1 = "About";
54628
54632
  var frontend_log_out$1 = "Log out";
54629
54633
  var frontend_listview_warning_start$1 = "The current ";
@@ -54711,6 +54715,7 @@ var en_us = {
54711
54715
  frontend_notifications_allread: frontend_notifications_allread$1,
54712
54716
  frontend_notifications_allread_message: frontend_notifications_allread_message$1,
54713
54717
  frontend_profile: frontend_profile$1,
54718
+ switch_space: switch_space$1,
54714
54719
  frontend_about: frontend_about$1,
54715
54720
  frontend_log_out: frontend_log_out$1,
54716
54721
  frontend_listview_warning_start: frontend_listview_warning_start$1,
@@ -54800,6 +54805,7 @@ var frontend_notifications = "通知";
54800
54805
  var frontend_notifications_allread = "全部标记为已读";
54801
54806
  var frontend_notifications_allread_message = "已全部标记为已读";
54802
54807
  var frontend_profile = "个人资料";
54808
+ var switch_space = "切换工作区";
54803
54809
  var frontend_about = "关于";
54804
54810
  var frontend_log_out = "注销";
54805
54811
  var frontend_listview_warning_start = "当前";
@@ -54888,6 +54894,7 @@ var zh_cn = {
54888
54894
  frontend_notifications_allread: frontend_notifications_allread,
54889
54895
  frontend_notifications_allread_message: frontend_notifications_allread_message,
54890
54896
  frontend_profile: frontend_profile,
54897
+ switch_space: switch_space,
54891
54898
  frontend_about: frontend_about,
54892
54899
  frontend_log_out: frontend_log_out,
54893
54900
  frontend_listview_warning_start: frontend_listview_warning_start,
@@ -55376,7 +55383,7 @@ async function getQuickEditSchema(field, options){
55376
55383
  }
55377
55384
 
55378
55385
  function getFieldWidth(width){
55379
- const defaultWidth = "unset";//用于使table内的td标签下生成div,实现将快速编辑按钮固定在右侧的效果,并不是为了unset效果
55386
+ const defaultWidth = null;
55380
55387
  if(typeof width == 'string'){
55381
55388
  if(isNaN(width)){
55382
55389
  return width || defaultWidth;
@@ -55406,14 +55413,14 @@ async function getTableColumns(fields, options){
55406
55413
  //增加quickEdit属性,实现快速编辑
55407
55414
  const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit;
55408
55415
  let className = "";
55409
- if(field.wrap != true){
55410
- if(field.wrap != false && field.is_wide){
55411
- className += " break-words ";
55412
- }else {
55416
+ if(/Safari/.test(navigator.userAgent)){
55417
+ className += " whitespace-nowrap ";
55418
+ }else {
55419
+ if(field.wrap != true){
55413
55420
  className += " whitespace-nowrap ";
55421
+ }else {
55422
+ className += " break-words ";
55414
55423
  }
55415
- }else {
55416
- className += " break-words ";
55417
55424
  }
55418
55425
  let columnItem;
55419
55426
  if((field.is_name || field.name === options.labelFieldName) && options.objectName === 'cms_files'){
@@ -59022,17 +59029,13 @@ function getReferenceToSync(field) {
59022
59029
 
59023
59030
  function getLookupSapceUserTreeSchema(isMobile){
59024
59031
  let apiAdaptor = `
59025
- // console.log("===getLookupSapceUserTreeSchema===", JSON.stringify(payload));
59026
59032
  const records = payload.data.options;
59027
- let isTreeOptionsComputed = false;
59028
- if(records.length === 1 && records[0].children){
59029
- isTreeOptionsComputed = true;
59030
- }
59031
- if(isTreeOptionsComputed){
59032
- return payload;
59033
- }
59034
59033
  const treeRecords = [];
59035
- const getChildren = (records, childrenIds) => {
59034
+ const getChildren = (currentRecord, records, childrenIds) => {
59035
+ if (currentRecord.children && typeof currentRecord.children[0] === "object") {
59036
+ // 考虑api配置了cache缓存的话,不会请求接口但是会重新进这个接收适配器脚本且payload.data.options返回的会是上一次计算结果,这里直接返回计算过的children
59037
+ return currentRecord.children;
59038
+ }
59036
59039
  if (!childrenIds) {
59037
59040
  return;
59038
59041
  }
@@ -59041,7 +59044,7 @@ function getLookupSapceUserTreeSchema(isMobile){
59041
59044
  });
59042
59045
  _.each(children, (item) => {
59043
59046
  if (item.children) {
59044
- item.children = getChildren(records, item.children)
59047
+ item.children = getChildren(item, records, item.children)
59045
59048
  }else{
59046
59049
  item.children = [];
59047
59050
  }
@@ -59067,7 +59070,7 @@ function getLookupSapceUserTreeSchema(isMobile){
59067
59070
 
59068
59071
  _.each(records, (record) => {
59069
59072
  if (record.noParent == 1) {
59070
- treeRecords.push(Object.assign({}, record, { children: getChildren(records, record.children) }));
59073
+ treeRecords.push(Object.assign({}, record, { children: getChildren(record, records, record.children) }));
59071
59074
  }
59072
59075
  });
59073
59076
  console.log(treeRecords)
@@ -60802,7 +60805,7 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
60802
60805
  }else {
60803
60806
  convertData.className = 'm-0';
60804
60807
  }
60805
- if(readonly){
60808
+ if(readonly && ctx.mode !== 'edit'){
60806
60809
  convertData.className = `${convertData.className} border-b`;
60807
60810
  }
60808
60811
  if(readonly){