@steedos/webapp 3.0.14-beta.7 → 3.0.14
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index-
|
|
1
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index-D-MR1qT9.js";
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
for (var i = 0; i < m.length; i++) {
|
|
4
4
|
const e = m[i];
|
|
@@ -1134,6 +1134,9 @@ video {
|
|
|
1134
1134
|
.mr-0 {
|
|
1135
1135
|
margin-right: 0px;
|
|
1136
1136
|
}
|
|
1137
|
+
.mr-0\.5 {
|
|
1138
|
+
margin-right: 0.125rem;
|
|
1139
|
+
}
|
|
1137
1140
|
.mr-1 {
|
|
1138
1141
|
margin-right: 0.25rem;
|
|
1139
1142
|
}
|
|
@@ -1152,9 +1155,6 @@ video {
|
|
|
1152
1155
|
.mt-1 {
|
|
1153
1156
|
margin-top: 0.25rem;
|
|
1154
1157
|
}
|
|
1155
|
-
.mt-1\.5 {
|
|
1156
|
-
margin-top: 0.375rem;
|
|
1157
|
-
}
|
|
1158
1158
|
.mt-2 {
|
|
1159
1159
|
margin-top: 0.5rem;
|
|
1160
1160
|
}
|
|
@@ -1233,9 +1233,6 @@ video {
|
|
|
1233
1233
|
.h-16 {
|
|
1234
1234
|
height: 4rem;
|
|
1235
1235
|
}
|
|
1236
|
-
.h-3 {
|
|
1237
|
-
height: 0.75rem;
|
|
1238
|
-
}
|
|
1239
1236
|
.h-3\.5 {
|
|
1240
1237
|
height: 0.875rem;
|
|
1241
1238
|
}
|
|
@@ -1284,6 +1281,9 @@ video {
|
|
|
1284
1281
|
.max-h-full {
|
|
1285
1282
|
max-height: 100%;
|
|
1286
1283
|
}
|
|
1284
|
+
.min-h-0 {
|
|
1285
|
+
min-height: 0px;
|
|
1286
|
+
}
|
|
1287
1287
|
.min-h-8 {
|
|
1288
1288
|
min-height: 2rem;
|
|
1289
1289
|
}
|
|
@@ -1311,9 +1311,6 @@ video {
|
|
|
1311
1311
|
.w-16 {
|
|
1312
1312
|
width: 4rem;
|
|
1313
1313
|
}
|
|
1314
|
-
.w-3 {
|
|
1315
|
-
width: 0.75rem;
|
|
1316
|
-
}
|
|
1317
1314
|
.w-3\.5 {
|
|
1318
1315
|
width: 0.875rem;
|
|
1319
1316
|
}
|
|
@@ -1383,8 +1380,8 @@ video {
|
|
|
1383
1380
|
.min-w-\[460px\] {
|
|
1384
1381
|
min-width: 460px;
|
|
1385
1382
|
}
|
|
1386
|
-
.max-w-
|
|
1387
|
-
max-width:
|
|
1383
|
+
.max-w-4xl {
|
|
1384
|
+
max-width: 56rem;
|
|
1388
1385
|
}
|
|
1389
1386
|
.max-w-7xl {
|
|
1390
1387
|
max-width: 80rem;
|
|
@@ -1428,6 +1425,9 @@ video {
|
|
|
1428
1425
|
.grow {
|
|
1429
1426
|
flex-grow: 1;
|
|
1430
1427
|
}
|
|
1428
|
+
.table-fixed {
|
|
1429
|
+
table-layout: fixed;
|
|
1430
|
+
}
|
|
1431
1431
|
.border-collapse {
|
|
1432
1432
|
border-collapse: collapse;
|
|
1433
1433
|
}
|
|
@@ -1450,6 +1450,9 @@ video {
|
|
|
1450
1450
|
.animate-spin {
|
|
1451
1451
|
animation: spin 1s linear infinite;
|
|
1452
1452
|
}
|
|
1453
|
+
.cursor-default {
|
|
1454
|
+
cursor: default;
|
|
1455
|
+
}
|
|
1453
1456
|
.cursor-not-allowed {
|
|
1454
1457
|
cursor: not-allowed;
|
|
1455
1458
|
}
|
|
@@ -1537,8 +1540,8 @@ video {
|
|
|
1537
1540
|
-moz-column-gap: 1.5rem;
|
|
1538
1541
|
column-gap: 1.5rem;
|
|
1539
1542
|
}
|
|
1540
|
-
.gap-y-
|
|
1541
|
-
row-gap:
|
|
1543
|
+
.gap-y-6 {
|
|
1544
|
+
row-gap: 1.5rem;
|
|
1542
1545
|
}
|
|
1543
1546
|
.space-x-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1544
1547
|
--tw-space-x-reverse: 0;
|
|
@@ -1600,6 +1603,9 @@ video {
|
|
|
1600
1603
|
.whitespace-nowrap {
|
|
1601
1604
|
white-space: nowrap;
|
|
1602
1605
|
}
|
|
1606
|
+
.whitespace-pre-wrap {
|
|
1607
|
+
white-space: pre-wrap;
|
|
1608
|
+
}
|
|
1603
1609
|
.break-words {
|
|
1604
1610
|
overflow-wrap: break-word;
|
|
1605
1611
|
}
|
|
@@ -1693,10 +1699,6 @@ video {
|
|
|
1693
1699
|
--tw-border-opacity: 1;
|
|
1694
1700
|
border-color: rgb(0 0 0 / var(--tw-border-opacity, 1));
|
|
1695
1701
|
}
|
|
1696
|
-
.border-blue-200 {
|
|
1697
|
-
--tw-border-opacity: 1;
|
|
1698
|
-
border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
|
|
1699
|
-
}
|
|
1700
1702
|
.border-blue-400 {
|
|
1701
1703
|
--tw-border-opacity: 1;
|
|
1702
1704
|
border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
|
|
@@ -1729,22 +1731,10 @@ video {
|
|
|
1729
1731
|
--tw-border-opacity: 1;
|
|
1730
1732
|
border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
|
|
1731
1733
|
}
|
|
1732
|
-
.border-green-200 {
|
|
1733
|
-
--tw-border-opacity: 1;
|
|
1734
|
-
border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));
|
|
1735
|
-
}
|
|
1736
1734
|
.border-neutral-300 {
|
|
1737
1735
|
--tw-border-opacity: 1;
|
|
1738
1736
|
border-color: rgb(212 212 212 / var(--tw-border-opacity, 1));
|
|
1739
1737
|
}
|
|
1740
|
-
.border-orange-200 {
|
|
1741
|
-
--tw-border-opacity: 1;
|
|
1742
|
-
border-color: rgb(254 215 170 / var(--tw-border-opacity, 1));
|
|
1743
|
-
}
|
|
1744
|
-
.border-red-200 {
|
|
1745
|
-
--tw-border-opacity: 1;
|
|
1746
|
-
border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
|
|
1747
|
-
}
|
|
1748
1738
|
.border-red-500 {
|
|
1749
1739
|
--tw-border-opacity: 1;
|
|
1750
1740
|
border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
|
|
@@ -1815,10 +1805,6 @@ video {
|
|
|
1815
1805
|
--tw-bg-opacity: 1;
|
|
1816
1806
|
background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
|
|
1817
1807
|
}
|
|
1818
|
-
.bg-green-100 {
|
|
1819
|
-
--tw-bg-opacity: 1;
|
|
1820
|
-
background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
|
|
1821
|
-
}
|
|
1822
1808
|
.bg-green-500 {
|
|
1823
1809
|
--tw-bg-opacity: 1;
|
|
1824
1810
|
background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
|
|
@@ -1827,18 +1813,10 @@ video {
|
|
|
1827
1813
|
--tw-bg-opacity: 1;
|
|
1828
1814
|
background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
|
|
1829
1815
|
}
|
|
1830
|
-
.bg-neutral-100 {
|
|
1831
|
-
--tw-bg-opacity: 1;
|
|
1832
|
-
background-color: rgb(245 245 245 / var(--tw-bg-opacity, 1));
|
|
1833
|
-
}
|
|
1834
1816
|
.bg-neutral-500 {
|
|
1835
1817
|
--tw-bg-opacity: 1;
|
|
1836
1818
|
background-color: rgb(115 115 115 / var(--tw-bg-opacity, 1));
|
|
1837
1819
|
}
|
|
1838
|
-
.bg-orange-100 {
|
|
1839
|
-
--tw-bg-opacity: 1;
|
|
1840
|
-
background-color: rgb(255 237 213 / var(--tw-bg-opacity, 1));
|
|
1841
|
-
}
|
|
1842
1820
|
.bg-orange-500 {
|
|
1843
1821
|
--tw-bg-opacity: 1;
|
|
1844
1822
|
background-color: rgb(249 115 22 / var(--tw-bg-opacity, 1));
|
|
@@ -1859,14 +1837,6 @@ video {
|
|
|
1859
1837
|
--tw-bg-opacity: 1;
|
|
1860
1838
|
background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1));
|
|
1861
1839
|
}
|
|
1862
|
-
.bg-red-100 {
|
|
1863
|
-
--tw-bg-opacity: 1;
|
|
1864
|
-
background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
|
|
1865
|
-
}
|
|
1866
|
-
.bg-red-50 {
|
|
1867
|
-
--tw-bg-opacity: 1;
|
|
1868
|
-
background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
|
|
1869
|
-
}
|
|
1870
1840
|
.bg-red-500 {
|
|
1871
1841
|
--tw-bg-opacity: 1;
|
|
1872
1842
|
background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
|
|
@@ -2016,6 +1986,10 @@ video {
|
|
|
2016
1986
|
padding-left: 1.5rem;
|
|
2017
1987
|
padding-right: 1.5rem;
|
|
2018
1988
|
}
|
|
1989
|
+
.px-8 {
|
|
1990
|
+
padding-left: 2rem;
|
|
1991
|
+
padding-right: 2rem;
|
|
1992
|
+
}
|
|
2019
1993
|
.py-0 {
|
|
2020
1994
|
padding-top: 0px;
|
|
2021
1995
|
padding-bottom: 0px;
|
|
@@ -2063,18 +2037,12 @@ video {
|
|
|
2063
2037
|
.pb-0 {
|
|
2064
2038
|
padding-bottom: 0px;
|
|
2065
2039
|
}
|
|
2066
|
-
.pb-10 {
|
|
2067
|
-
padding-bottom: 2.5rem;
|
|
2068
|
-
}
|
|
2069
2040
|
.pb-16 {
|
|
2070
2041
|
padding-bottom: 4rem;
|
|
2071
2042
|
}
|
|
2072
2043
|
.pb-2 {
|
|
2073
2044
|
padding-bottom: 0.5rem;
|
|
2074
2045
|
}
|
|
2075
|
-
.pb-20 {
|
|
2076
|
-
padding-bottom: 5rem;
|
|
2077
|
-
}
|
|
2078
2046
|
.pb-4 {
|
|
2079
2047
|
padding-bottom: 1rem;
|
|
2080
2048
|
}
|
|
@@ -2120,15 +2088,15 @@ video {
|
|
|
2120
2088
|
.pt-2 {
|
|
2121
2089
|
padding-top: 0.5rem;
|
|
2122
2090
|
}
|
|
2123
|
-
.pt-24 {
|
|
2124
|
-
padding-top: 6rem;
|
|
2125
|
-
}
|
|
2126
2091
|
.pt-3 {
|
|
2127
2092
|
padding-top: 0.75rem;
|
|
2128
2093
|
}
|
|
2129
2094
|
.pt-4 {
|
|
2130
2095
|
padding-top: 1rem;
|
|
2131
2096
|
}
|
|
2097
|
+
.pt-6 {
|
|
2098
|
+
padding-top: 1.5rem;
|
|
2099
|
+
}
|
|
2132
2100
|
.text-left {
|
|
2133
2101
|
text-align: left;
|
|
2134
2102
|
}
|
|
@@ -2138,9 +2106,6 @@ video {
|
|
|
2138
2106
|
.align-middle {
|
|
2139
2107
|
vertical-align: middle;
|
|
2140
2108
|
}
|
|
2141
|
-
.font-\[SimSun\] {
|
|
2142
|
-
font-family: SimSun;
|
|
2143
|
-
}
|
|
2144
2109
|
.font-mono {
|
|
2145
2110
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
2146
2111
|
}
|
|
@@ -2162,9 +2127,6 @@ video {
|
|
|
2162
2127
|
.text-\[11px\] {
|
|
2163
2128
|
font-size: 11px;
|
|
2164
2129
|
}
|
|
2165
|
-
.text-\[15px\] {
|
|
2166
|
-
font-size: 15px;
|
|
2167
|
-
}
|
|
2168
2130
|
.text-base {
|
|
2169
2131
|
font-size: 1rem;
|
|
2170
2132
|
line-height: 1.5rem;
|
|
@@ -2298,10 +2260,6 @@ video {
|
|
|
2298
2260
|
--tw-text-opacity: 1;
|
|
2299
2261
|
color: rgb(22 163 74 / var(--tw-text-opacity, 1));
|
|
2300
2262
|
}
|
|
2301
|
-
.text-green-700 {
|
|
2302
|
-
--tw-text-opacity: 1;
|
|
2303
|
-
color: rgb(21 128 61 / var(--tw-text-opacity, 1));
|
|
2304
|
-
}
|
|
2305
2263
|
.text-neutral-300 {
|
|
2306
2264
|
--tw-text-opacity: 1;
|
|
2307
2265
|
color: rgb(212 212 212 / var(--tw-text-opacity, 1));
|
|
@@ -2318,10 +2276,6 @@ video {
|
|
|
2318
2276
|
--tw-text-opacity: 1;
|
|
2319
2277
|
color: rgb(38 38 38 / var(--tw-text-opacity, 1));
|
|
2320
2278
|
}
|
|
2321
|
-
.text-orange-600 {
|
|
2322
|
-
--tw-text-opacity: 1;
|
|
2323
|
-
color: rgb(234 88 12 / var(--tw-text-opacity, 1));
|
|
2324
|
-
}
|
|
2325
2279
|
.text-red-500 {
|
|
2326
2280
|
--tw-text-opacity: 1;
|
|
2327
2281
|
color: rgb(239 68 68 / var(--tw-text-opacity, 1));
|
|
@@ -2330,10 +2284,6 @@ video {
|
|
|
2330
2284
|
--tw-text-opacity: 1;
|
|
2331
2285
|
color: rgb(220 38 38 / var(--tw-text-opacity, 1));
|
|
2332
2286
|
}
|
|
2333
|
-
.text-red-700 {
|
|
2334
|
-
--tw-text-opacity: 1;
|
|
2335
|
-
color: rgb(185 28 28 / var(--tw-text-opacity, 1));
|
|
2336
|
-
}
|
|
2337
2287
|
.text-sky-500 {
|
|
2338
2288
|
--tw-text-opacity: 1;
|
|
2339
2289
|
color: rgb(14 165 233 / var(--tw-text-opacity, 1));
|
|
@@ -3132,6 +3082,10 @@ video {
|
|
|
3132
3082
|
flex-direction: row;
|
|
3133
3083
|
}
|
|
3134
3084
|
|
|
3085
|
+
.md\:p-0 {
|
|
3086
|
+
padding: 0px;
|
|
3087
|
+
}
|
|
3088
|
+
|
|
3135
3089
|
.md\:p-10 {
|
|
3136
3090
|
padding: 2.5rem;
|
|
3137
3091
|
}
|
|
@@ -42409,6 +42409,17 @@ typeof window !== "undefined" ? createHashHistory() : null;
|
|
|
42409
42409
|
function selectSpace(spaceId) {
|
|
42410
42410
|
return async (dispatch2, getState) => {
|
|
42411
42411
|
let selectedSpaceId = spaceId || LocalStorageStore.getItem("spaceId");
|
|
42412
|
+
if (!selectedSpaceId) {
|
|
42413
|
+
selectedSpaceId = getSettingsTenantId(getState());
|
|
42414
|
+
console.log(`selectedSpaceId`, selectedSpaceId);
|
|
42415
|
+
}
|
|
42416
|
+
if (!selectedSpaceId) {
|
|
42417
|
+
const spaces2 = getSpaces(getState());
|
|
42418
|
+
const spaceIds = Object.keys(spaces2);
|
|
42419
|
+
if (spaceIds.length === 1) {
|
|
42420
|
+
selectedSpaceId = spaceIds[0];
|
|
42421
|
+
}
|
|
42422
|
+
}
|
|
42412
42423
|
if (!selectedSpaceId) {
|
|
42413
42424
|
return { data: false };
|
|
42414
42425
|
}
|
|
@@ -49544,8 +49555,12 @@ const ReApplyCodeBtn$2 = ({ onClick, id: id2, loginId, disabled }) => {
|
|
|
49544
49555
|
class Login extends React$1.Component {
|
|
49545
49556
|
constructor(props, context) {
|
|
49546
49557
|
super(props, context);
|
|
49547
|
-
|
|
49548
|
-
|
|
49558
|
+
const noRedirect = new URLSearchParams(this.props.location.search).get("default");
|
|
49559
|
+
if (this.props.tenant.page_login && !noRedirect) {
|
|
49560
|
+
window.location.href = this.props.tenant.page_login;
|
|
49561
|
+
this._redirecting = true;
|
|
49562
|
+
this.state = {};
|
|
49563
|
+
return;
|
|
49549
49564
|
}
|
|
49550
49565
|
let inApp = false;
|
|
49551
49566
|
let email2 = "";
|
|
@@ -49862,6 +49877,9 @@ class Login extends React$1.Component {
|
|
|
49862
49877
|
}
|
|
49863
49878
|
}
|
|
49864
49879
|
render() {
|
|
49880
|
+
if (this._redirecting) {
|
|
49881
|
+
return null;
|
|
49882
|
+
}
|
|
49865
49883
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
49866
49884
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Background$1, {}),
|
|
49867
49885
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Card$1, { children: [
|
|
@@ -50051,10 +50069,18 @@ const Logout = (props) => {
|
|
|
50051
50069
|
redirect_uri = tenant.page_logout;
|
|
50052
50070
|
}
|
|
50053
50071
|
logout2().then(() => {
|
|
50054
|
-
|
|
50072
|
+
if (redirect_uri.startsWith("http://") || redirect_uri.startsWith("https://")) {
|
|
50073
|
+
window.location.href = redirect_uri;
|
|
50074
|
+
} else {
|
|
50075
|
+
navigate(redirect_uri);
|
|
50076
|
+
}
|
|
50055
50077
|
}).catch((e) => {
|
|
50056
50078
|
console.error(e);
|
|
50057
|
-
|
|
50079
|
+
if (redirect_uri.startsWith("http://") || redirect_uri.startsWith("https://")) {
|
|
50080
|
+
window.location.href = redirect_uri;
|
|
50081
|
+
} else {
|
|
50082
|
+
navigate(redirect_uri);
|
|
50083
|
+
}
|
|
50058
50084
|
});
|
|
50059
50085
|
}, [logout2, navigate, location2.search, tenant.page_logout]);
|
|
50060
50086
|
return null;
|
|
@@ -51665,6 +51691,20 @@ const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
|
51665
51691
|
}
|
|
51666
51692
|
} catch (e) {
|
|
51667
51693
|
}
|
|
51694
|
+
try {
|
|
51695
|
+
const appMatch = pathname.match(/^\/app\/([^/]+)\//);
|
|
51696
|
+
if (appMatch) {
|
|
51697
|
+
const raw = sessionStorage.getItem(`steedos_last_active_tab:${appMatch[1]}`);
|
|
51698
|
+
if (raw) {
|
|
51699
|
+
const rec = JSON.parse(raw);
|
|
51700
|
+
if (rec && rec.path && rec.path !== pathname) {
|
|
51701
|
+
navigate(rec.path);
|
|
51702
|
+
return;
|
|
51703
|
+
}
|
|
51704
|
+
}
|
|
51705
|
+
}
|
|
51706
|
+
} catch (e) {
|
|
51707
|
+
}
|
|
51668
51708
|
if (objMatch && objMatch[2]) {
|
|
51669
51709
|
navigate(objMatch[1]);
|
|
51670
51710
|
} else {
|
|
@@ -51706,6 +51746,33 @@ const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
|
51706
51746
|
linkPathname = link2.substring(0, idx);
|
|
51707
51747
|
linkSearch = link2.substring(idx);
|
|
51708
51748
|
}
|
|
51749
|
+
const decodedPathname = decodeURI(pathname);
|
|
51750
|
+
const decodedLink = decodeURI(linkPathname);
|
|
51751
|
+
const _navPaths = window._steedosNavPaths || [];
|
|
51752
|
+
const hasExactNavLinkForCurrentPath = _navPaths.some((p) => {
|
|
51753
|
+
try {
|
|
51754
|
+
return decodeURI(p) === decodedPathname;
|
|
51755
|
+
} catch (e) {
|
|
51756
|
+
return p === pathname;
|
|
51757
|
+
}
|
|
51758
|
+
});
|
|
51759
|
+
const detailMatch = pathname.match(/^\/app\/([^/]+)\/[^/]+\/view\/([^/?#]+)/);
|
|
51760
|
+
if (!hasExactNavLinkForCurrentPath && detailMatch && detailMatch[2] !== "none") {
|
|
51761
|
+
try {
|
|
51762
|
+
const raw = sessionStorage.getItem(`steedos_last_active_tab:${detailMatch[1]}`);
|
|
51763
|
+
if (raw) {
|
|
51764
|
+
const rec = JSON.parse(raw);
|
|
51765
|
+
if (rec && rec.path && rec.tabId) {
|
|
51766
|
+
const recPathOnly = String(rec.path).split("?")[0].split("#")[0];
|
|
51767
|
+
if (decodedLink === decodeURI(recPathOnly)) {
|
|
51768
|
+
return true;
|
|
51769
|
+
}
|
|
51770
|
+
return false;
|
|
51771
|
+
}
|
|
51772
|
+
}
|
|
51773
|
+
} catch (e) {
|
|
51774
|
+
}
|
|
51775
|
+
}
|
|
51709
51776
|
if (linkSearch) {
|
|
51710
51777
|
if (linkPathname !== pathname) {
|
|
51711
51778
|
return false;
|
|
@@ -51724,8 +51791,6 @@ const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
|
51724
51791
|
});
|
|
51725
51792
|
return allMatch;
|
|
51726
51793
|
}
|
|
51727
|
-
const decodedPathname = decodeURI(pathname);
|
|
51728
|
-
const decodedLink = decodeURI(linkPathname);
|
|
51729
51794
|
if (decodedPathname === decodedLink) {
|
|
51730
51795
|
return true;
|
|
51731
51796
|
}
|
|
@@ -51833,6 +51898,19 @@ const on_click_script = `
|
|
|
51833
51898
|
console.error(e.message + "\\r\\n" + e.stack);
|
|
51834
51899
|
}
|
|
51835
51900
|
`;
|
|
51901
|
+
const navigateTo = (path2) => {
|
|
51902
|
+
if (!path2) return;
|
|
51903
|
+
if (path2.startsWith("/") || path2.startsWith(window.location.origin)) {
|
|
51904
|
+
try {
|
|
51905
|
+
const url2 = new URL(path2, window.location.origin);
|
|
51906
|
+
window.navigate(url2.pathname + url2.search + url2.hash);
|
|
51907
|
+
} catch {
|
|
51908
|
+
window.navigate(path2);
|
|
51909
|
+
}
|
|
51910
|
+
} else {
|
|
51911
|
+
window.location.href = path2;
|
|
51912
|
+
}
|
|
51913
|
+
};
|
|
51836
51914
|
const pcInitJumtoFirstAppFirstTabScript = (payload, response, api2, context) => {
|
|
51837
51915
|
const resolvePathTemplate = (path2, data2) => {
|
|
51838
51916
|
if (!path2 || path2.indexOf("${") < 0) {
|
|
@@ -51857,16 +51935,16 @@ const pcInitJumtoFirstAppFirstTabScript = (payload, response, api2, context) =>
|
|
|
51857
51935
|
let firstApp = app_items[0];
|
|
51858
51936
|
if (firstApp && firstApp.default_tab) {
|
|
51859
51937
|
if (typeof firstApp.default_tab === "object" && firstApp.default_tab.path) {
|
|
51860
|
-
|
|
51938
|
+
navigateTo(resolvePathTemplate(firstApp.default_tab.path, firstApp.default_tab));
|
|
51861
51939
|
} else {
|
|
51862
|
-
|
|
51940
|
+
navigateTo(`/app/${firstApp.id}/${firstApp.default_tab}`);
|
|
51863
51941
|
}
|
|
51864
51942
|
return payload;
|
|
51865
51943
|
}
|
|
51866
51944
|
if (firstApp && firstApp.children && firstApp.children.length > 0) {
|
|
51867
51945
|
let firstTab = firstApp.children[0];
|
|
51868
51946
|
if (firstTab) {
|
|
51869
|
-
|
|
51947
|
+
navigateTo(resolvePathTemplate(firstTab.path, firstTab));
|
|
51870
51948
|
}
|
|
51871
51949
|
}
|
|
51872
51950
|
}
|
|
@@ -55216,6 +55294,26 @@ const ObjectDetail = () => {
|
|
|
55216
55294
|
}, env: {} });
|
|
55217
55295
|
};
|
|
55218
55296
|
const isString = (val) => typeof val === "string";
|
|
55297
|
+
const RUNTIME_CONTEXT_KEYS = [
|
|
55298
|
+
"appId",
|
|
55299
|
+
"app",
|
|
55300
|
+
"app_id",
|
|
55301
|
+
"recordId",
|
|
55302
|
+
"record_id",
|
|
55303
|
+
"objectName",
|
|
55304
|
+
"object_name",
|
|
55305
|
+
"context"
|
|
55306
|
+
];
|
|
55307
|
+
const stripRuntimeContext = (schema) => {
|
|
55308
|
+
if (schema && typeof schema === "object" && schema.data && typeof schema.data === "object") {
|
|
55309
|
+
for (const key2 of RUNTIME_CONTEXT_KEYS) {
|
|
55310
|
+
if (key2 in schema.data) {
|
|
55311
|
+
delete schema.data[key2];
|
|
55312
|
+
}
|
|
55313
|
+
}
|
|
55314
|
+
}
|
|
55315
|
+
return schema;
|
|
55316
|
+
};
|
|
55219
55317
|
function injectServerCss(cssString) {
|
|
55220
55318
|
const oldStyle = document.getElementById("dynamic-page-styles");
|
|
55221
55319
|
if (oldStyle) {
|
|
@@ -55263,6 +55361,7 @@ const PageView = () => {
|
|
|
55263
55361
|
console.error("Schema parse failed", e);
|
|
55264
55362
|
}
|
|
55265
55363
|
}
|
|
55364
|
+
finalSchema = stripRuntimeContext(finalSchema);
|
|
55266
55365
|
setSchema(finalSchema);
|
|
55267
55366
|
} catch (err) {
|
|
55268
55367
|
console.error("Fetch schema failed", err);
|
|
@@ -81508,7 +81607,7 @@ if (typeof ActiveXObject === "function") {
|
|
|
81508
81607
|
if (typeof fetchApi !== "function") fetchApi = void 0;
|
|
81509
81608
|
if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
|
|
81510
81609
|
try {
|
|
81511
|
-
__vitePreload(() => import("./browser-ponyfill-
|
|
81610
|
+
__vitePreload(() => import("./browser-ponyfill-BacVYQnm.js").then((n) => n.b), true ? [] : void 0).then(function(mod) {
|
|
81512
81611
|
fetchApi = mod.default;
|
|
81513
81612
|
}).catch(function() {
|
|
81514
81613
|
});
|
package/dist/index.html
CHANGED
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
<link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/lib/themes/antd.css">
|
|
67
67
|
<link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/lib/helper.css">
|
|
68
68
|
<link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/sdk/iconfont.css">
|
|
69
|
-
<script type="module" crossorigin src="/assets/index-
|
|
70
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
69
|
+
<script type="module" crossorigin src="/assets/index-D-MR1qT9.js"></script>
|
|
70
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BW5Fq9Tj.css">
|
|
71
71
|
</head>
|
|
72
72
|
<body class="skin-blue-light fixed steedos sidebar-mini three-columns" >
|
|
73
73
|
<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.14
|
|
3
|
+
"version": "3.0.14",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"repository": "https://github.com/steedos/app-builder/tree/master/apps/accounts",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "a38ff44cd802eb2f4de4017b23491b9f4480238e",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@steedos-widgets/amis-object": "^6.10.53-beta.
|
|
80
|
+
"@steedos-widgets/amis-object": "^6.10.53-beta.16",
|
|
81
81
|
"autoprefixer": "^10.4.23"
|
|
82
82
|
}
|
|
83
83
|
}
|