@steedos-widgets/sortable 3.6.2-beta.4 → 3.6.2-beta.6
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 +20 -14
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +20 -14
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +20 -14
- 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.6/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.6/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.6/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.6/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.6/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -54746,9 +54746,9 @@ var frontend_display_type_is_split = "分栏视图";
|
|
|
54746
54746
|
var frontend_display_as = "显示为";
|
|
54747
54747
|
var frontend_record_sum = "个项目";
|
|
54748
54748
|
var frontend_button_reload_tooltip = "刷新";
|
|
54749
|
-
var frontend_button_search_tooltip = "
|
|
54749
|
+
var frontend_button_search_tooltip = "搜索";
|
|
54750
54750
|
var frontend_fields_filter_button_search = "搜索";
|
|
54751
|
-
var frontend_fields_filter_button_settings = "
|
|
54751
|
+
var frontend_fields_filter_button_settings = "选择搜索项";
|
|
54752
54752
|
var frontend_button_listview_control_tooltip = "列表视图控制";
|
|
54753
54753
|
var frontend_button_listview_control_label = "列表视图控制";
|
|
54754
54754
|
var frontend_listview_control_columns = "显示的列";
|
|
@@ -55405,7 +55405,7 @@ async function getTableColumns(fields, options){
|
|
|
55405
55405
|
if(field.wrap != true){
|
|
55406
55406
|
className += " whitespace-nowrap ";
|
|
55407
55407
|
}else {
|
|
55408
|
-
className += " break-
|
|
55408
|
+
className += " break-words ";
|
|
55409
55409
|
}
|
|
55410
55410
|
let columnItem;
|
|
55411
55411
|
if((field.is_name || field.name === options.labelFieldName) && options.objectName === 'cms_files'){
|
|
@@ -55841,7 +55841,8 @@ async function getTableOperation(ctx){
|
|
|
55841
55841
|
label: " ",
|
|
55842
55842
|
fixed: 'right',
|
|
55843
55843
|
labelClassName: 'text-center',
|
|
55844
|
-
|
|
55844
|
+
//TODO:目前3.6.3-patch.3版本中对于动态classname处理存在问题,简单处理固定列问题,等待amis解决crud的columns不支持动态classname的问题
|
|
55845
|
+
className: 'text-center steedos-listview-operation w-10 is-sticky is-sticky-right is-sticky-first-right',
|
|
55845
55846
|
buttons: [
|
|
55846
55847
|
{
|
|
55847
55848
|
"type": "steedos-dropdown-button",
|
|
@@ -55937,7 +55938,7 @@ async function getTableSchema$1(fields, options){
|
|
|
55937
55938
|
}
|
|
55938
55939
|
return {
|
|
55939
55940
|
mode: "cards",
|
|
55940
|
-
perPageAvailable: [
|
|
55941
|
+
perPageAvailable: [20, 50, 100, 500],
|
|
55941
55942
|
name: "thelist",
|
|
55942
55943
|
headerToolbarClassName: "py-2 px-2 border-gray-300 border-solid border-b",
|
|
55943
55944
|
className: "",
|
|
@@ -55970,7 +55971,7 @@ async function getTableSchema$1(fields, options){
|
|
|
55970
55971
|
|
|
55971
55972
|
return {
|
|
55972
55973
|
mode: "table",
|
|
55973
|
-
perPageAvailable: [
|
|
55974
|
+
perPageAvailable: [20, 50, 100, 500],
|
|
55974
55975
|
name: "thelist",
|
|
55975
55976
|
headerToolbarClassName: "py-2 px-2 border-gray-300 border-solid border-b",
|
|
55976
55977
|
className: "",
|
|
@@ -58084,7 +58085,7 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
|
|
|
58084
58085
|
{
|
|
58085
58086
|
"type": "search-box",
|
|
58086
58087
|
"name": keywordsSearchBoxName,
|
|
58087
|
-
"placeholder": "
|
|
58088
|
+
"placeholder": "快捷搜索",
|
|
58088
58089
|
"value": crudKeywords,
|
|
58089
58090
|
// "clearable": true,//因为清除并不会触发失去焦点事件,只有禁用,但是它会触发change事件,所以等升级到amis 3.4+后可以重新放开
|
|
58090
58091
|
"clearAndSubmit": true,
|
|
@@ -58438,8 +58439,8 @@ async function getObjectFilter(objectSchema, fields, options) {
|
|
|
58438
58439
|
/*
|
|
58439
58440
|
* @Author: baozhoutao@steedos.com
|
|
58440
58441
|
* @Date: 2022-07-05 15:55:39
|
|
58441
|
-
* @LastEditors:
|
|
58442
|
-
* @LastEditTime:
|
|
58442
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
58443
|
+
* @LastEditTime: 2024-01-16 11:14:34
|
|
58443
58444
|
* @Description:
|
|
58444
58445
|
*/
|
|
58445
58446
|
|
|
@@ -59594,7 +59595,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59594
59595
|
labelField: referenceTo.labelField.name,
|
|
59595
59596
|
valueField: referenceTo.valueField.name,
|
|
59596
59597
|
// disabledOn: this._master目的是相关表新建时禁止编辑关联字段; this.relatedKey目的是相关表编辑时禁止编辑关联字段,多选字段可以编辑。
|
|
59597
|
-
disabledOn: `${readonly}
|
|
59598
|
+
disabledOn: `${readonly}`,
|
|
59599
|
+
hiddenOn: `( (this._master && (this._master.relatedKey ==='${field.name}')) || ((this.relatedKey ==='${field.name}') && (${field.multiple} != true)) )`,
|
|
59598
59600
|
modalMode: 'dialog', //TODO 设置 dialog 或者 drawer,用来配置弹出方式
|
|
59599
59601
|
source: source,
|
|
59600
59602
|
size: "lg",
|
|
@@ -59838,9 +59840,15 @@ async function lookupToAmis(field, readonly, ctx){
|
|
|
59838
59840
|
// console.log(`lookupToAmis====`, field, readonly, ctx)
|
|
59839
59841
|
if(readonly){
|
|
59840
59842
|
return {
|
|
59841
|
-
type:
|
|
59842
|
-
|
|
59843
|
+
type: 'steedos-field',
|
|
59844
|
+
config: field,
|
|
59845
|
+
static: true
|
|
59843
59846
|
}
|
|
59847
|
+
|
|
59848
|
+
// return {
|
|
59849
|
+
// type: Field.getAmisStaticFieldType('picker', readonly),
|
|
59850
|
+
// tpl: Tpl.getRelatedFieldTpl(field, ctx)
|
|
59851
|
+
// }
|
|
59844
59852
|
}
|
|
59845
59853
|
if(field.reference_to && !lodash.exports.isString(field.reference_to) && !readonly){
|
|
59846
59854
|
return {
|
|
@@ -60722,11 +60730,9 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
60722
60730
|
if(field.subFields){
|
|
60723
60731
|
convertData = {
|
|
60724
60732
|
type: 'steedos-input-table',
|
|
60725
|
-
showIndex: true,
|
|
60726
60733
|
editable: !readonly,
|
|
60727
60734
|
addable: !readonly,
|
|
60728
60735
|
removable: !readonly,
|
|
60729
|
-
draggable: !readonly,
|
|
60730
60736
|
fields: [],
|
|
60731
60737
|
amis:{
|
|
60732
60738
|
columnsTogglable: false
|