@steedos-widgets/sortable 3.6.2-beta.20 → 3.6.2-beta.21
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 +5 -5
- package/dist/sortable.cjs.js +23 -11
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +23 -11
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +23 -11
- package/package.json +3 -3
package/dist/sortable.esm.js
CHANGED
|
@@ -55492,11 +55492,11 @@ async function getTableColumns(fields, options){
|
|
|
55492
55492
|
"expression": "!!!(window && window.nw && window.nw.require)"//浏览器上直接下载
|
|
55493
55493
|
},
|
|
55494
55494
|
{
|
|
55495
|
-
|
|
55496
|
-
|
|
55497
|
-
|
|
55498
|
-
|
|
55499
|
-
|
|
55495
|
+
"args": {},
|
|
55496
|
+
"actionType": "custom",
|
|
55497
|
+
"script": previewFileScript,
|
|
55498
|
+
// "expression": "!!window?.nw?.require" //PC客户端预览附件
|
|
55499
|
+
"expression": "!!(window && window.nw && window.nw.require)"//PC客户端预览附件
|
|
55500
55500
|
}
|
|
55501
55501
|
]
|
|
55502
55502
|
}
|
|
@@ -55776,10 +55776,10 @@ async function getMobileTableColumns(fields, options){
|
|
|
55776
55776
|
if(value.url){
|
|
55777
55777
|
cms_url = value.url;
|
|
55778
55778
|
}else{
|
|
55779
|
-
cms_url = "/api/files/files/"+value+"?download=true"
|
|
55779
|
+
cms_url = Steedos.absoluteUrl("/api/files/files/"+value+"?download=true");
|
|
55780
55780
|
}
|
|
55781
55781
|
}
|
|
55782
|
-
Steedos.cordovaDownload(encodeURI(
|
|
55782
|
+
Steedos.cordovaDownload(encodeURI(cms_url), event.data.name);
|
|
55783
55783
|
`,
|
|
55784
55784
|
"actionType": "custom"
|
|
55785
55785
|
}
|
|
@@ -59531,13 +59531,15 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59531
59531
|
|
|
59532
59532
|
pickerSchema.affixHeader = false;
|
|
59533
59533
|
|
|
59534
|
-
|
|
59534
|
+
|
|
59535
|
+
|
|
59536
|
+
pickerSchema.headerToolbar = getObjectHeaderToolbar(refObjectConfig, fieldsArr, ctx.formFactor, { isLookup: true, keywordsSearchBoxName });
|
|
59537
|
+
|
|
59535
59538
|
if(referenceTo.objectName === "space_users" && field.reference_to_field === "user"){
|
|
59536
|
-
|
|
59539
|
+
pickerSchema.headerToolbar.push(getLookupSapceUserTreeSchema(isMobile));
|
|
59537
59540
|
pickerSchema.className = pickerSchema.className || "" + " steedos-select-user";
|
|
59538
59541
|
}
|
|
59539
|
-
|
|
59540
|
-
pickerSchema.headerToolbar = getObjectHeaderToolbar(refObjectConfig, fieldsArr, ctx.formFactor, { headerToolbarItems, isLookup: true, keywordsSearchBoxName });
|
|
59542
|
+
|
|
59541
59543
|
const isAllowCreate = refObjectConfig.permissions.allowCreate;
|
|
59542
59544
|
const isCreate = lodash.exports.isBoolean(field.create) ? field.create : true;
|
|
59543
59545
|
// lookup字段配置过滤条件就强制不显示新建按钮
|
|
@@ -59650,6 +59652,16 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59650
59652
|
pickerSchema.footerToolbar = ["pagination"];
|
|
59651
59653
|
}
|
|
59652
59654
|
|
|
59655
|
+
if(field.inlineHelpText){
|
|
59656
|
+
pickerSchema.toolbarClassName = "hasHelpText";
|
|
59657
|
+
pickerSchema.headerToolbar = [{
|
|
59658
|
+
"type": "tpl",
|
|
59659
|
+
"tpl": field.inlineHelpText,
|
|
59660
|
+
"className": "text-secondary"
|
|
59661
|
+
}, ...pickerSchema.headerToolbar];
|
|
59662
|
+
}
|
|
59663
|
+
pickerSchema.className = (pickerSchema.className || "") + " steedos-lookup-crud";
|
|
59664
|
+
|
|
59653
59665
|
const data = {
|
|
59654
59666
|
type: getAmisStaticFieldType('picker', readonly),
|
|
59655
59667
|
modalTitle: instance.t('frontend_form_please_select') + " " + refObjectConfig.label,
|