@steedos-widgets/sortable 3.6.2-beta.3 → 3.6.2-beta.5
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 +28 -15
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +28 -15
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +28 -15
- 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.5/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.5/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.5/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.5/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.5/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -55402,11 +55402,12 @@ async function getTableColumns(fields, options){
|
|
|
55402
55402
|
//增加quickEdit属性,实现快速编辑
|
|
55403
55403
|
const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit;
|
|
55404
55404
|
let className = "";
|
|
55405
|
-
|
|
55406
|
-
|
|
55407
|
-
|
|
55408
|
-
|
|
55409
|
-
|
|
55405
|
+
//crud内默认换行
|
|
55406
|
+
// if(field.wrap != true){
|
|
55407
|
+
// className += " whitespace-nowrap "
|
|
55408
|
+
// }else{
|
|
55409
|
+
// className += " break-words "
|
|
55410
|
+
// }
|
|
55410
55411
|
let columnItem;
|
|
55411
55412
|
if((field.is_name || field.name === options.labelFieldName) && options.objectName === 'cms_files'){
|
|
55412
55413
|
const previewFileScript = `
|
|
@@ -55841,7 +55842,8 @@ async function getTableOperation(ctx){
|
|
|
55841
55842
|
label: " ",
|
|
55842
55843
|
fixed: 'right',
|
|
55843
55844
|
labelClassName: 'text-center',
|
|
55844
|
-
|
|
55845
|
+
//TODO:目前3.6.3-patch.3版本中对于动态classname处理存在问题,简单处理固定列问题,等待amis解决crud的columns不支持动态classname的问题
|
|
55846
|
+
className: 'text-center steedos-listview-operation w-10 is-sticky is-sticky-right is-sticky-first-right',
|
|
55845
55847
|
buttons: [
|
|
55846
55848
|
{
|
|
55847
55849
|
"type": "steedos-dropdown-button",
|
|
@@ -58288,7 +58290,10 @@ function getObjectFooterToolbar(mainObject, formFactor, options) {
|
|
|
58288
58290
|
// ]
|
|
58289
58291
|
if(options.displayAs === 'split'){
|
|
58290
58292
|
return [
|
|
58291
|
-
|
|
58293
|
+
{
|
|
58294
|
+
"type": "switch-per-page",
|
|
58295
|
+
"visibleOn": "${count >= 20}"
|
|
58296
|
+
},
|
|
58292
58297
|
{
|
|
58293
58298
|
"type": "pagination",
|
|
58294
58299
|
"maxButtons": 5,
|
|
@@ -58332,7 +58337,10 @@ function getObjectFooterToolbar(mainObject, formFactor, options) {
|
|
|
58332
58337
|
if (no_pagination && is_lookup) {
|
|
58333
58338
|
return commonConfig;
|
|
58334
58339
|
} else {
|
|
58335
|
-
return [
|
|
58340
|
+
return [{
|
|
58341
|
+
"type": "switch-per-page",
|
|
58342
|
+
"visibleOn": "${count >= 20}"
|
|
58343
|
+
}, ...commonConfig];
|
|
58336
58344
|
}
|
|
58337
58345
|
}
|
|
58338
58346
|
}
|
|
@@ -58432,8 +58440,8 @@ async function getObjectFilter(objectSchema, fields, options) {
|
|
|
58432
58440
|
/*
|
|
58433
58441
|
* @Author: baozhoutao@steedos.com
|
|
58434
58442
|
* @Date: 2022-07-05 15:55:39
|
|
58435
|
-
* @LastEditors:
|
|
58436
|
-
* @LastEditTime:
|
|
58443
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
58444
|
+
* @LastEditTime: 2024-01-15 15:50:40
|
|
58437
58445
|
* @Description:
|
|
58438
58446
|
*/
|
|
58439
58447
|
|
|
@@ -59588,7 +59596,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59588
59596
|
labelField: referenceTo.labelField.name,
|
|
59589
59597
|
valueField: referenceTo.valueField.name,
|
|
59590
59598
|
// disabledOn: this._master目的是相关表新建时禁止编辑关联字段; this.relatedKey目的是相关表编辑时禁止编辑关联字段,多选字段可以编辑。
|
|
59591
|
-
disabledOn: `${readonly}
|
|
59599
|
+
disabledOn: `${readonly}`,
|
|
59600
|
+
hiddenOn: `( (this._master && (this._master.relatedKey ==='${field.name}')) || ((this.relatedKey ==='${field.name}') && (${field.multiple} != true)) )`,
|
|
59592
59601
|
modalMode: 'dialog', //TODO 设置 dialog 或者 drawer,用来配置弹出方式
|
|
59593
59602
|
source: source,
|
|
59594
59603
|
size: "lg",
|
|
@@ -59832,9 +59841,15 @@ async function lookupToAmis(field, readonly, ctx){
|
|
|
59832
59841
|
// console.log(`lookupToAmis====`, field, readonly, ctx)
|
|
59833
59842
|
if(readonly){
|
|
59834
59843
|
return {
|
|
59835
|
-
type:
|
|
59836
|
-
|
|
59844
|
+
type: 'steedos-field',
|
|
59845
|
+
config: field,
|
|
59846
|
+
static: true
|
|
59837
59847
|
}
|
|
59848
|
+
|
|
59849
|
+
// return {
|
|
59850
|
+
// type: Field.getAmisStaticFieldType('picker', readonly),
|
|
59851
|
+
// tpl: Tpl.getRelatedFieldTpl(field, ctx)
|
|
59852
|
+
// }
|
|
59838
59853
|
}
|
|
59839
59854
|
if(field.reference_to && !lodash.exports.isString(field.reference_to) && !readonly){
|
|
59840
59855
|
return {
|
|
@@ -60716,11 +60731,9 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
60716
60731
|
if(field.subFields){
|
|
60717
60732
|
convertData = {
|
|
60718
60733
|
type: 'steedos-input-table',
|
|
60719
|
-
showIndex: true,
|
|
60720
60734
|
editable: !readonly,
|
|
60721
60735
|
addable: !readonly,
|
|
60722
60736
|
removable: !readonly,
|
|
60723
|
-
draggable: !readonly,
|
|
60724
60737
|
fields: [],
|
|
60725
60738
|
amis:{
|
|
60726
60739
|
columnsTogglable: false
|