@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/sortable.esm.js
CHANGED
|
@@ -53933,22 +53933,26 @@ function getRootUrl(defaultRootUrl){
|
|
|
53933
53933
|
* @Description:
|
|
53934
53934
|
*/
|
|
53935
53935
|
|
|
53936
|
-
|
|
53937
53936
|
const Router = {
|
|
53938
53937
|
getTabDisplayAs(tab_id){
|
|
53938
|
+
const uiSchema = getUISchemaSync$1(tab_id, false);
|
|
53939
53939
|
var urlSearch = new URLSearchParams(document.location.search);
|
|
53940
53940
|
if(urlSearch.has('display')){
|
|
53941
53941
|
return urlSearch.get('display')
|
|
53942
53942
|
}
|
|
53943
53943
|
const key = `tab_${tab_id}_display`;
|
|
53944
53944
|
// const key = `page_display`;
|
|
53945
|
-
const value =
|
|
53946
|
-
|
|
53945
|
+
const value = sessionStorage.getItem(key);
|
|
53946
|
+
let defaultDisplay = "grid";
|
|
53947
|
+
if(uiSchema.enable_split){
|
|
53948
|
+
defaultDisplay = "split";
|
|
53949
|
+
}
|
|
53950
|
+
return value ? value : defaultDisplay;
|
|
53947
53951
|
},
|
|
53948
53952
|
|
|
53949
53953
|
setTabDisplayAs(tab_id, displayAs){
|
|
53950
53954
|
const key = `tab_${tab_id}_display`;
|
|
53951
|
-
|
|
53955
|
+
sessionStorage.setItem(key, displayAs);
|
|
53952
53956
|
},
|
|
53953
53957
|
getAppPath({formFactor, appId}){
|
|
53954
53958
|
return `/app/${appId}`;
|
|
@@ -55399,7 +55403,11 @@ async function getTableColumns(fields, options){
|
|
|
55399
55403
|
const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit;
|
|
55400
55404
|
let className = "";
|
|
55401
55405
|
if(field.wrap != true){
|
|
55402
|
-
|
|
55406
|
+
if(field.wrap != false && field.is_wide){
|
|
55407
|
+
className += " break-words ";
|
|
55408
|
+
}else {
|
|
55409
|
+
className += " whitespace-nowrap ";
|
|
55410
|
+
}
|
|
55403
55411
|
}else {
|
|
55404
55412
|
className += " break-words ";
|
|
55405
55413
|
}
|
|
@@ -55498,12 +55506,12 @@ async function getTableColumns(fields, options){
|
|
|
55498
55506
|
if(field.type === 'textarea'){
|
|
55499
55507
|
className += 'min-w-56';
|
|
55500
55508
|
}
|
|
55501
|
-
if(field.type === 'date'){
|
|
55502
|
-
|
|
55503
|
-
}
|
|
55504
|
-
if(field.type === 'datetime'){
|
|
55505
|
-
|
|
55506
|
-
}
|
|
55509
|
+
// if(field.type === 'date'){
|
|
55510
|
+
// className += 'date-min-w';
|
|
55511
|
+
// }
|
|
55512
|
+
// if(field.type === 'datetime'){
|
|
55513
|
+
// className += 'datetime-min-w';
|
|
55514
|
+
// }
|
|
55507
55515
|
|
|
55508
55516
|
//field上的amis属性里的clssname需要单独判断类型合并
|
|
55509
55517
|
if (typeof field.amis?.className == "object") {
|
|
@@ -57938,14 +57946,14 @@ const getDisplayAsButton = function(objectName, showDisplayAs){
|
|
|
57938
57946
|
{
|
|
57939
57947
|
"type": "button",
|
|
57940
57948
|
"label": instance.t('frontend_display_type_is_table'),
|
|
57941
|
-
"onClick": "const key = 'tab_"+objectName+"_display';
|
|
57949
|
+
"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');",
|
|
57942
57950
|
"rightIcon": displayAs != 'split' ? "fa fa-check" : null,
|
|
57943
57951
|
"rightIconClassName": "m-l-sm"
|
|
57944
57952
|
},
|
|
57945
57953
|
{
|
|
57946
57954
|
"type": "button",
|
|
57947
57955
|
"label": instance.t('frontend_display_type_is_split'),
|
|
57948
|
-
"onClick": "const key = 'tab_"+objectName+"_display';
|
|
57956
|
+
"onClick": "const key = 'tab_"+objectName+"_display';sessionStorage.setItem(key, 'split');const url = document.location.pathname + '?display=split'; props.env.jumpTo(url);",
|
|
57949
57957
|
"rightIcon": displayAs === 'split' ? "fa fa-check" : null,
|
|
57950
57958
|
"rightIconClassName": "m-l-sm"
|
|
57951
57959
|
}
|