@steedos-widgets/sortable 3.6.2-beta.7 → 3.6.2-beta.8
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 +30 -18
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +30 -18
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +30 -18
- package/package.json +3 -3
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.
|
|
7
|
-
"https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.
|
|
6
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.8/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.8/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.
|
|
18
|
+
"url": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.8/dist/meta.js",
|
|
19
19
|
"urls": {
|
|
20
|
-
"default": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.
|
|
21
|
-
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.
|
|
20
|
+
"default": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.8/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.8/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -54106,7 +54106,7 @@ function getSelectMap(selectOptions){
|
|
|
54106
54106
|
|
|
54107
54107
|
function getNameTplUrl(field, ctx){
|
|
54108
54108
|
if(ctx.objectName === 'cms_files'){
|
|
54109
|
-
return
|
|
54109
|
+
return "${(versions[0] && versions[0].url) ? versions[0].url+'?download=true' : context.rootUrl+'/api/files/files/'+versions[0]+'?download=true'}"
|
|
54110
54110
|
}
|
|
54111
54111
|
const href = Router.getObjectDetailPath({
|
|
54112
54112
|
...ctx, formFactor: ctx.formFactor, appId: "${appId}", objectName: ctx.objectName || "${objectName}", recordId: `\${${ctx.idFieldName}}`
|
|
@@ -55602,7 +55602,7 @@ function getMobileLines(tpls){
|
|
|
55602
55602
|
}
|
|
55603
55603
|
if(isLeft){
|
|
55604
55604
|
// 左侧半行
|
|
55605
|
-
lineChildrenClassName = "steedos-listview-item-left truncate";
|
|
55605
|
+
lineChildrenClassName = "steedos-listview-item-left truncate h-5";
|
|
55606
55606
|
if(item.field.is_wide){
|
|
55607
55607
|
// 左侧全行样式可以单独写,如果需要配置两行省略号效果,可以加样式类 two-lines-truncate
|
|
55608
55608
|
lineChildrenClassName = "steedos-listview-item-wide";
|
|
@@ -55614,7 +55614,7 @@ function getMobileLines(tpls){
|
|
|
55614
55614
|
}
|
|
55615
55615
|
else {
|
|
55616
55616
|
// 右侧半行,这里加样式类 flex flex-shrink-0,是为了省略号只显示在左半行,右半行文字一般比较短,如果也加省略号效果的话,左侧文字多的话,右侧没几个字就显示省略号了
|
|
55617
|
-
lineChildrenClassName = "steedos-listview-item-right truncate ml-2 flex flex-shrink-0";
|
|
55617
|
+
lineChildrenClassName = "steedos-listview-item-right truncate ml-2 flex flex-shrink-0 h-5";
|
|
55618
55618
|
}
|
|
55619
55619
|
//支持字段amis属性配置classname,识别classname的类型,与原样式合并
|
|
55620
55620
|
var className;
|
|
@@ -55725,7 +55725,15 @@ async function getMobileTableColumns(fields, options){
|
|
|
55725
55725
|
"actions": [
|
|
55726
55726
|
{
|
|
55727
55727
|
"script": `
|
|
55728
|
-
let cms_url =
|
|
55728
|
+
let cms_url = '';
|
|
55729
|
+
let value = event.data.versions[0];
|
|
55730
|
+
if(value){
|
|
55731
|
+
if(value.url){
|
|
55732
|
+
cms_url = value.url;
|
|
55733
|
+
}else{
|
|
55734
|
+
cms_url = "/api/files/files/"+value+"?download=true"
|
|
55735
|
+
}
|
|
55736
|
+
}
|
|
55729
55737
|
Steedos.cordovaDownload(encodeURI(Steedos.absoluteUrl(cms_url)), event.data.name);
|
|
55730
55738
|
`,
|
|
55731
55739
|
"actionType": "custom"
|
|
@@ -56097,7 +56105,7 @@ async function getListBody(fields, options){
|
|
|
56097
56105
|
|
|
56098
56106
|
function getDefaultParams(options){
|
|
56099
56107
|
return {
|
|
56100
|
-
perPage: options.top || options.perPage ||
|
|
56108
|
+
perPage: options.top || options.perPage || 20
|
|
56101
56109
|
}
|
|
56102
56110
|
}
|
|
56103
56111
|
|
|
@@ -56151,7 +56159,6 @@ const getSchema$5 = async (uiSchema, ctx) => {
|
|
|
56151
56159
|
"objectApiName": "\${objectName}",
|
|
56152
56160
|
"recordId": "",
|
|
56153
56161
|
"mode": "edit",
|
|
56154
|
-
"layout": "normal"
|
|
56155
56162
|
};
|
|
56156
56163
|
|
|
56157
56164
|
if (payload && payload.schema) {
|
|
@@ -59595,8 +59602,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59595
59602
|
labelField: referenceTo.labelField.name,
|
|
59596
59603
|
valueField: referenceTo.valueField.name,
|
|
59597
59604
|
// disabledOn: this._master目的是相关表新建时禁止编辑关联字段; this.relatedKey目的是相关表编辑时禁止编辑关联字段,多选字段可以编辑。
|
|
59598
|
-
disabledOn: `${readonly}`,
|
|
59599
|
-
hiddenOn: `( (this._master && (this._master.relatedKey ==='${field.name}')) || ((this.relatedKey ==='${field.name}') && (${field.multiple} != true)) )`,
|
|
59605
|
+
disabledOn: `${readonly} || ( (this._master && (this._master.relatedKey ==='${field.name}')) || ((this.relatedKey ==='${field.name}') && (${field.multiple} != true)) )`,
|
|
59600
59606
|
modalMode: 'dialog', //TODO 设置 dialog 或者 drawer,用来配置弹出方式
|
|
59601
59607
|
source: source,
|
|
59602
59608
|
size: "lg",
|
|
@@ -59839,16 +59845,18 @@ async function lookupToAmis(field, readonly, ctx){
|
|
|
59839
59845
|
}
|
|
59840
59846
|
// console.log(`lookupToAmis====`, field, readonly, ctx)
|
|
59841
59847
|
if(readonly){
|
|
59842
|
-
|
|
59843
|
-
|
|
59844
|
-
|
|
59845
|
-
|
|
59848
|
+
if(field.reference_to){
|
|
59849
|
+
return {
|
|
59850
|
+
type: 'steedos-field',
|
|
59851
|
+
config: field,
|
|
59852
|
+
static: true
|
|
59853
|
+
}
|
|
59854
|
+
}else {
|
|
59855
|
+
return {
|
|
59856
|
+
type: getAmisStaticFieldType('picker', readonly),
|
|
59857
|
+
tpl: getRelatedFieldTpl(field, ctx)
|
|
59858
|
+
}
|
|
59846
59859
|
}
|
|
59847
|
-
|
|
59848
|
-
// return {
|
|
59849
|
-
// type: Field.getAmisStaticFieldType('picker', readonly),
|
|
59850
|
-
// tpl: Tpl.getRelatedFieldTpl(field, ctx)
|
|
59851
|
-
// }
|
|
59852
59860
|
}
|
|
59853
59861
|
if(field.reference_to && !lodash.exports.isString(field.reference_to) && !readonly){
|
|
59854
59862
|
return {
|
|
@@ -60784,7 +60792,7 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
60784
60792
|
if(field.is_wide || convertData.type === 'group'){
|
|
60785
60793
|
convertData.className = 'col-span-2 m-0';
|
|
60786
60794
|
}else {
|
|
60787
|
-
convertData.className = 'm-
|
|
60795
|
+
convertData.className = 'm-0';
|
|
60788
60796
|
}
|
|
60789
60797
|
if(readonly){
|
|
60790
60798
|
convertData.className = `${convertData.className} border-b`;
|
|
@@ -60809,6 +60817,10 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
60809
60817
|
}
|
|
60810
60818
|
}
|
|
60811
60819
|
|
|
60820
|
+
if(ctx.amisData && ctx.amisData._master && ctx.amisData._master.relatedKey === field.name){
|
|
60821
|
+
convertData.className = `${convertData.className || ''} hidden`;
|
|
60822
|
+
}
|
|
60823
|
+
|
|
60812
60824
|
if(lodash.exports.isString(baseData.required)){
|
|
60813
60825
|
if(baseData.required.startsWith("{{")){
|
|
60814
60826
|
baseData.requiredOn = `${baseData.required.substring(2, baseData.required.length -2).replace(/formData./g, 'data.')}`;
|