@steedos/webapp 3.0.0-beta.147 → 3.0.0-beta.149
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.
|
@@ -56192,47 +56192,19 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
56192
56192
|
console.error(e.message + "\\r\\n" + e.stack);
|
|
56193
56193
|
}
|
|
56194
56194
|
`;
|
|
56195
|
-
const
|
|
56196
|
-
var currentAmis = amisRequire('amis');
|
|
56197
|
-
app_items.forEach((item) => {
|
|
56198
|
-
let visible_on = item.visible_on && item.visible_on.trim();
|
|
56199
|
-
if(visible_on){
|
|
56200
|
-
// amis visibleOn属性中的表达式来自作用域中变量时,amis不认,所以这里把公式表达式提前运行下
|
|
56201
|
-
try{
|
|
56202
|
-
visible_on = currentAmis.evaluate(visible_on, BuilderAmisObject.AmisLib.createObject(context, item));
|
|
56203
|
-
item.visible_on = visible_on;
|
|
56204
|
-
}
|
|
56205
|
-
catch(ex){
|
|
56206
|
-
console.error("运行应用“" + item.name + "”的显示公式表达式时出现错误:",ex);
|
|
56207
|
-
item.visible_on = false;
|
|
56208
|
-
}
|
|
56209
|
-
}
|
|
56210
|
-
else{
|
|
56211
|
-
item.visible_on = true;
|
|
56212
|
-
}
|
|
56213
|
-
});
|
|
56214
|
-
`;
|
|
56215
|
-
const pcInitApiAdaptorScript = `
|
|
56195
|
+
const pcInitJumtoFirstAppFirstTabScript = (payload, response, api2, context) => {
|
|
56216
56196
|
let app_items = payload;
|
|
56217
|
-
|
|
56218
|
-
|
|
56219
|
-
|
|
56220
|
-
|
|
56221
|
-
if (
|
|
56222
|
-
|
|
56223
|
-
if(i.type != 'url' && i.type != 'page'){object_items.push(i);}
|
|
56197
|
+
if (app_items && app_items.length > 0) {
|
|
56198
|
+
let firstApp = app_items[0];
|
|
56199
|
+
if (firstApp && firstApp.children && firstApp.children.length > 0) {
|
|
56200
|
+
let firstTab = firstApp.children[0];
|
|
56201
|
+
if (firstTab) {
|
|
56202
|
+
window.location.href = firstTab.path;
|
|
56224
56203
|
}
|
|
56225
|
-
}
|
|
56226
|
-
})
|
|
56227
|
-
${convertAppVisibleOnScript}
|
|
56228
|
-
|
|
56229
|
-
payload = {
|
|
56230
|
-
app_items,
|
|
56231
|
-
object_items
|
|
56204
|
+
}
|
|
56232
56205
|
}
|
|
56233
|
-
|
|
56234
56206
|
return payload;
|
|
56235
|
-
|
|
56207
|
+
};
|
|
56236
56208
|
const AppDashboard = () => {
|
|
56237
56209
|
const isMobile = false;
|
|
56238
56210
|
const badgeText = "${IF(${id} == 'approve_workflow',${badge|pick:'workflow'},${badge|pick:${id}}) | toInt}";
|
|
@@ -56458,7 +56430,8 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
56458
56430
|
"headers": {
|
|
56459
56431
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
56460
56432
|
},
|
|
56461
|
-
"adaptor": pcInitApiAdaptorScript
|
|
56433
|
+
// "adaptor": pcInitApiAdaptorScript
|
|
56434
|
+
adaptor: pcInitJumtoFirstAppFirstTabScript
|
|
56462
56435
|
},
|
|
56463
56436
|
data: {
|
|
56464
56437
|
objectName: "",
|
|
@@ -59355,12 +59328,15 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
59355
59328
|
const uiSchema = window.getUISchemaSync(objectName);
|
|
59356
59329
|
const [searchParams] = useSearchParams();
|
|
59357
59330
|
const allParams = Object.fromEntries(searchParams.entries());
|
|
59358
|
-
console.log(`ObjectListView`, appId, objectName, listName, location2, allParams);
|
|
59359
59331
|
if (!listName) {
|
|
59360
59332
|
listName = lodashExports.first(lodashExports.values(uiSchema.list_views))?.name;
|
|
59361
59333
|
}
|
|
59362
59334
|
if (Steedos.Page.getDisplay(objectName) === "split") {
|
|
59363
|
-
|
|
59335
|
+
const navigate = useNavigate();
|
|
59336
|
+
setTimeout(() => {
|
|
59337
|
+
navigate(`/app/${appId}/${objectName}/view/none?side_object=${objectName}&side_listview_id=${listName}&additionalFilters=`);
|
|
59338
|
+
}, 1);
|
|
59339
|
+
return;
|
|
59364
59340
|
}
|
|
59365
59341
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(AmisRender, { schema: {
|
|
59366
59342
|
type: "page",
|
|
@@ -59406,6 +59382,13 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
59406
59382
|
let location2 = useLocation();
|
|
59407
59383
|
const urlParams = new URLSearchParams(location2.search);
|
|
59408
59384
|
const sideListViewId = urlParams.get("side_listview_id");
|
|
59385
|
+
if (recordId === "none" && Steedos.Page.getDisplay(objectName) === "grid") {
|
|
59386
|
+
const navigate = useNavigate();
|
|
59387
|
+
setTimeout(() => {
|
|
59388
|
+
navigate(`/app/${appId}/${objectName}/grid/${sideListViewId}?display=grid`);
|
|
59389
|
+
}, 1);
|
|
59390
|
+
return;
|
|
59391
|
+
}
|
|
59409
59392
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(AmisRender, { schema: {
|
|
59410
59393
|
type: "page",
|
|
59411
59394
|
bodyClassName: "p-0 overflow-hidden",
|
package/dist/index.html
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
</script>
|
|
65
65
|
<link rel="stylesheet" type="text/css" href="/tailwind/tailwind-steedos.css">
|
|
66
|
-
<script type="module" crossorigin src="/assets/index-
|
|
66
|
+
<script type="module" crossorigin src="/assets/index-iGJF1vvD.js"></script>
|
|
67
67
|
</head>
|
|
68
68
|
<body class="skin-blue-light fixed steedos sidebar-mini three-columns" >
|
|
69
69
|
<div id="root" class="steedos skin-blue-light creator h-full flex flex-col relative overflow-hidden bg-slate-50"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/webapp",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.149",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"repository": "https://github.com/steedos/app-builder/tree/master/apps/accounts",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "33fef020c5505c9f122d705ae36d373c716cf822"
|
|
79
79
|
}
|