@steedos-widgets/sortable 3.6.2-beta.8 → 3.6.2-beta.9
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 +21 -13
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +21 -13
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +21 -13
- 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.9/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.9/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.9/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.9/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.9/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -53937,22 +53937,26 @@ function getRootUrl(defaultRootUrl){
|
|
|
53937
53937
|
* @Description:
|
|
53938
53938
|
*/
|
|
53939
53939
|
|
|
53940
|
-
|
|
53941
53940
|
const Router = {
|
|
53942
53941
|
getTabDisplayAs(tab_id){
|
|
53942
|
+
const uiSchema = getUISchemaSync$1(tab_id, false);
|
|
53943
53943
|
var urlSearch = new URLSearchParams(document.location.search);
|
|
53944
53944
|
if(urlSearch.has('display')){
|
|
53945
53945
|
return urlSearch.get('display')
|
|
53946
53946
|
}
|
|
53947
53947
|
const key = `tab_${tab_id}_display`;
|
|
53948
53948
|
// const key = `page_display`;
|
|
53949
|
-
const value =
|
|
53950
|
-
|
|
53949
|
+
const value = sessionStorage.getItem(key);
|
|
53950
|
+
let defaultDisplay = "grid";
|
|
53951
|
+
if(uiSchema.enable_split){
|
|
53952
|
+
defaultDisplay = "split";
|
|
53953
|
+
}
|
|
53954
|
+
return value ? value : defaultDisplay;
|
|
53951
53955
|
},
|
|
53952
53956
|
|
|
53953
53957
|
setTabDisplayAs(tab_id, displayAs){
|
|
53954
53958
|
const key = `tab_${tab_id}_display`;
|
|
53955
|
-
|
|
53959
|
+
sessionStorage.setItem(key, displayAs);
|
|
53956
53960
|
},
|
|
53957
53961
|
getAppPath({formFactor, appId}){
|
|
53958
53962
|
return `/app/${appId}`;
|
|
@@ -55403,7 +55407,11 @@ async function getTableColumns(fields, options){
|
|
|
55403
55407
|
const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit;
|
|
55404
55408
|
let className = "";
|
|
55405
55409
|
if(field.wrap != true){
|
|
55406
|
-
|
|
55410
|
+
if(field.wrap != false && field.is_wide){
|
|
55411
|
+
className += " break-words ";
|
|
55412
|
+
}else {
|
|
55413
|
+
className += " whitespace-nowrap ";
|
|
55414
|
+
}
|
|
55407
55415
|
}else {
|
|
55408
55416
|
className += " break-words ";
|
|
55409
55417
|
}
|
|
@@ -55502,12 +55510,12 @@ async function getTableColumns(fields, options){
|
|
|
55502
55510
|
if(field.type === 'textarea'){
|
|
55503
55511
|
className += 'min-w-56';
|
|
55504
55512
|
}
|
|
55505
|
-
if(field.type === 'date'){
|
|
55506
|
-
|
|
55507
|
-
}
|
|
55508
|
-
if(field.type === 'datetime'){
|
|
55509
|
-
|
|
55510
|
-
}
|
|
55513
|
+
// if(field.type === 'date'){
|
|
55514
|
+
// className += 'date-min-w';
|
|
55515
|
+
// }
|
|
55516
|
+
// if(field.type === 'datetime'){
|
|
55517
|
+
// className += 'datetime-min-w';
|
|
55518
|
+
// }
|
|
55511
55519
|
|
|
55512
55520
|
//field上的amis属性里的clssname需要单独判断类型合并
|
|
55513
55521
|
if (typeof field.amis?.className == "object") {
|
|
@@ -57942,14 +57950,14 @@ const getDisplayAsButton = function(objectName, showDisplayAs){
|
|
|
57942
57950
|
{
|
|
57943
57951
|
"type": "button",
|
|
57944
57952
|
"label": instance.t('frontend_display_type_is_table'),
|
|
57945
|
-
"onClick": "const key = 'tab_"+objectName+"_display';
|
|
57953
|
+
"onClick": "const key = 'tab_"+objectName+"_display';sessionStorage.setItem(key, 'grid');let url = document.location.pathname; var urlSearch = new URLSearchParams(document.location.search); if(urlSearch.get(\"side_object\") && urlSearch.get(\"side_listview_id\")){url=`/app/${props.data.appId}/${urlSearch.get(\"side_object\")}/grid/${urlSearch.get(\"side_listview_id\")}`;}; props.env.jumpTo(url + '?display=grid');",
|
|
57946
57954
|
"rightIcon": displayAs != 'split' ? "fa fa-check" : null,
|
|
57947
57955
|
"rightIconClassName": "m-l-sm"
|
|
57948
57956
|
},
|
|
57949
57957
|
{
|
|
57950
57958
|
"type": "button",
|
|
57951
57959
|
"label": instance.t('frontend_display_type_is_split'),
|
|
57952
|
-
"onClick": "const key = 'tab_"+objectName+"_display';
|
|
57960
|
+
"onClick": "const key = 'tab_"+objectName+"_display';sessionStorage.setItem(key, 'split');const url = document.location.pathname + '?display=split'; props.env.jumpTo(url);",
|
|
57953
57961
|
"rightIcon": displayAs === 'split' ? "fa fa-check" : null,
|
|
57954
57962
|
"rightIconClassName": "m-l-sm"
|
|
57955
57963
|
}
|