@steedos/webapp 3.0.13-beta.5 → 3.0.13-beta.50
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-DbB2k2Bs.js";
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
for (var i = 0; i < m.length; i++) {
|
|
4
4
|
const e = m[i];
|
|
@@ -1010,6 +1010,9 @@ video {
|
|
|
1010
1010
|
.top-0 {
|
|
1011
1011
|
top: 0px;
|
|
1012
1012
|
}
|
|
1013
|
+
.isolate {
|
|
1014
|
+
isolation: isolate;
|
|
1015
|
+
}
|
|
1013
1016
|
.z-10 {
|
|
1014
1017
|
z-index: 10;
|
|
1015
1018
|
}
|
|
@@ -1050,6 +1053,10 @@ video {
|
|
|
1050
1053
|
margin-left: 0px !important;
|
|
1051
1054
|
margin-right: 0px !important;
|
|
1052
1055
|
}
|
|
1056
|
+
.-mx-2 {
|
|
1057
|
+
margin-left: -0.5rem;
|
|
1058
|
+
margin-right: -0.5rem;
|
|
1059
|
+
}
|
|
1053
1060
|
.mx-0 {
|
|
1054
1061
|
margin-left: 0px;
|
|
1055
1062
|
margin-right: 0px;
|
|
@@ -1158,6 +1165,9 @@ video {
|
|
|
1158
1165
|
.mt-1 {
|
|
1159
1166
|
margin-top: 0.25rem;
|
|
1160
1167
|
}
|
|
1168
|
+
.mt-1\.5 {
|
|
1169
|
+
margin-top: 0.375rem;
|
|
1170
|
+
}
|
|
1161
1171
|
.mt-2 {
|
|
1162
1172
|
margin-top: 0.5rem;
|
|
1163
1173
|
}
|
|
@@ -1170,6 +1180,9 @@ video {
|
|
|
1170
1180
|
.mt-6 {
|
|
1171
1181
|
margin-top: 1.5rem;
|
|
1172
1182
|
}
|
|
1183
|
+
.mt-8 {
|
|
1184
|
+
margin-top: 2rem;
|
|
1185
|
+
}
|
|
1173
1186
|
.mt-\[64px\] {
|
|
1174
1187
|
margin-top: 64px;
|
|
1175
1188
|
}
|
|
@@ -1242,6 +1255,9 @@ video {
|
|
|
1242
1255
|
.h-20 {
|
|
1243
1256
|
height: 5rem;
|
|
1244
1257
|
}
|
|
1258
|
+
.h-3 {
|
|
1259
|
+
height: 0.75rem;
|
|
1260
|
+
}
|
|
1245
1261
|
.h-3\.5 {
|
|
1246
1262
|
height: 0.875rem;
|
|
1247
1263
|
}
|
|
@@ -1290,6 +1306,9 @@ video {
|
|
|
1290
1306
|
.max-h-96 {
|
|
1291
1307
|
max-height: 24rem;
|
|
1292
1308
|
}
|
|
1309
|
+
.max-h-full {
|
|
1310
|
+
max-height: 100%;
|
|
1311
|
+
}
|
|
1293
1312
|
.min-h-8 {
|
|
1294
1313
|
min-height: 2rem;
|
|
1295
1314
|
}
|
|
@@ -1314,9 +1333,15 @@ video {
|
|
|
1314
1333
|
.w-14 {
|
|
1315
1334
|
width: 3.5rem;
|
|
1316
1335
|
}
|
|
1336
|
+
.w-16 {
|
|
1337
|
+
width: 4rem;
|
|
1338
|
+
}
|
|
1317
1339
|
.w-20 {
|
|
1318
1340
|
width: 5rem;
|
|
1319
1341
|
}
|
|
1342
|
+
.w-3 {
|
|
1343
|
+
width: 0.75rem;
|
|
1344
|
+
}
|
|
1320
1345
|
.w-3\.5 {
|
|
1321
1346
|
width: 0.875rem;
|
|
1322
1347
|
}
|
|
@@ -1422,6 +1447,9 @@ video {
|
|
|
1422
1447
|
.flex-shrink-0 {
|
|
1423
1448
|
flex-shrink: 0;
|
|
1424
1449
|
}
|
|
1450
|
+
.shrink {
|
|
1451
|
+
flex-shrink: 1;
|
|
1452
|
+
}
|
|
1425
1453
|
.shrink-0 {
|
|
1426
1454
|
flex-shrink: 0;
|
|
1427
1455
|
}
|
|
@@ -1431,6 +1459,9 @@ video {
|
|
|
1431
1459
|
.grow {
|
|
1432
1460
|
flex-grow: 1;
|
|
1433
1461
|
}
|
|
1462
|
+
.border-collapse {
|
|
1463
|
+
border-collapse: collapse;
|
|
1464
|
+
}
|
|
1434
1465
|
.origin-top-right {
|
|
1435
1466
|
transform-origin: top right;
|
|
1436
1467
|
}
|
|
@@ -1461,6 +1492,9 @@ video {
|
|
|
1461
1492
|
-moz-user-select: none;
|
|
1462
1493
|
user-select: none;
|
|
1463
1494
|
}
|
|
1495
|
+
.resize {
|
|
1496
|
+
resize: both;
|
|
1497
|
+
}
|
|
1464
1498
|
.appearance-none {
|
|
1465
1499
|
-webkit-appearance: none;
|
|
1466
1500
|
-moz-appearance: none;
|
|
@@ -1626,6 +1660,10 @@ video {
|
|
|
1626
1660
|
.rounded-xl {
|
|
1627
1661
|
border-radius: 0.75rem;
|
|
1628
1662
|
}
|
|
1663
|
+
.rounded-b {
|
|
1664
|
+
border-bottom-right-radius: 0.25rem;
|
|
1665
|
+
border-bottom-left-radius: 0.25rem;
|
|
1666
|
+
}
|
|
1629
1667
|
.rounded-b-md {
|
|
1630
1668
|
border-bottom-right-radius: 0.375rem;
|
|
1631
1669
|
border-bottom-left-radius: 0.375rem;
|
|
@@ -1689,6 +1727,14 @@ video {
|
|
|
1689
1727
|
.border-none {
|
|
1690
1728
|
border-style: none;
|
|
1691
1729
|
}
|
|
1730
|
+
.border-black {
|
|
1731
|
+
--tw-border-opacity: 1;
|
|
1732
|
+
border-color: rgb(0 0 0 / var(--tw-border-opacity, 1));
|
|
1733
|
+
}
|
|
1734
|
+
.border-blue-200 {
|
|
1735
|
+
--tw-border-opacity: 1;
|
|
1736
|
+
border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
|
|
1737
|
+
}
|
|
1692
1738
|
.border-blue-400 {
|
|
1693
1739
|
--tw-border-opacity: 1;
|
|
1694
1740
|
border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
|
|
@@ -1721,6 +1767,18 @@ video {
|
|
|
1721
1767
|
--tw-border-opacity: 1;
|
|
1722
1768
|
border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
|
|
1723
1769
|
}
|
|
1770
|
+
.border-green-200 {
|
|
1771
|
+
--tw-border-opacity: 1;
|
|
1772
|
+
border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));
|
|
1773
|
+
}
|
|
1774
|
+
.border-red-200 {
|
|
1775
|
+
--tw-border-opacity: 1;
|
|
1776
|
+
border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
|
|
1777
|
+
}
|
|
1778
|
+
.border-red-500 {
|
|
1779
|
+
--tw-border-opacity: 1;
|
|
1780
|
+
border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
|
|
1781
|
+
}
|
|
1724
1782
|
.border-slate-200 {
|
|
1725
1783
|
--tw-border-opacity: 1;
|
|
1726
1784
|
border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
|
|
@@ -1786,6 +1844,10 @@ video {
|
|
|
1786
1844
|
--tw-bg-opacity: 1;
|
|
1787
1845
|
background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
|
|
1788
1846
|
}
|
|
1847
|
+
.bg-green-100 {
|
|
1848
|
+
--tw-bg-opacity: 1;
|
|
1849
|
+
background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
|
|
1850
|
+
}
|
|
1789
1851
|
.bg-green-500 {
|
|
1790
1852
|
--tw-bg-opacity: 1;
|
|
1791
1853
|
background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
|
|
@@ -1812,6 +1874,14 @@ video {
|
|
|
1812
1874
|
--tw-bg-opacity: 1;
|
|
1813
1875
|
background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1));
|
|
1814
1876
|
}
|
|
1877
|
+
.bg-red-100 {
|
|
1878
|
+
--tw-bg-opacity: 1;
|
|
1879
|
+
background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
|
|
1880
|
+
}
|
|
1881
|
+
.bg-red-50 {
|
|
1882
|
+
--tw-bg-opacity: 1;
|
|
1883
|
+
background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
|
|
1884
|
+
}
|
|
1815
1885
|
.bg-red-600 {
|
|
1816
1886
|
--tw-bg-opacity: 1;
|
|
1817
1887
|
background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
|
|
@@ -2097,6 +2167,9 @@ video {
|
|
|
2097
2167
|
.pb-20 {
|
|
2098
2168
|
padding-bottom: 5rem;
|
|
2099
2169
|
}
|
|
2170
|
+
.pb-4 {
|
|
2171
|
+
padding-bottom: 1rem;
|
|
2172
|
+
}
|
|
2100
2173
|
.pb-5 {
|
|
2101
2174
|
padding-bottom: 1.25rem;
|
|
2102
2175
|
}
|
|
@@ -2118,6 +2191,9 @@ video {
|
|
|
2118
2191
|
.pl-9 {
|
|
2119
2192
|
padding-left: 2.25rem;
|
|
2120
2193
|
}
|
|
2194
|
+
.pr-2 {
|
|
2195
|
+
padding-right: 0.5rem;
|
|
2196
|
+
}
|
|
2121
2197
|
.pr-3 {
|
|
2122
2198
|
padding-right: 0.75rem;
|
|
2123
2199
|
}
|
|
@@ -2154,6 +2230,9 @@ video {
|
|
|
2154
2230
|
.align-middle {
|
|
2155
2231
|
vertical-align: middle;
|
|
2156
2232
|
}
|
|
2233
|
+
.font-\[SimSun\] {
|
|
2234
|
+
font-family: SimSun;
|
|
2235
|
+
}
|
|
2157
2236
|
.font-mono {
|
|
2158
2237
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
2159
2238
|
}
|
|
@@ -2175,6 +2254,9 @@ video {
|
|
|
2175
2254
|
.text-\[11px\] {
|
|
2176
2255
|
font-size: 11px;
|
|
2177
2256
|
}
|
|
2257
|
+
.text-\[15px\] {
|
|
2258
|
+
font-size: 15px;
|
|
2259
|
+
}
|
|
2178
2260
|
.text-base {
|
|
2179
2261
|
font-size: 1rem;
|
|
2180
2262
|
line-height: 1.5rem;
|
|
@@ -2260,14 +2342,6 @@ video {
|
|
|
2260
2342
|
--tw-text-opacity: 1 !important;
|
|
2261
2343
|
color: rgb(75 85 99 / var(--tw-text-opacity, 1)) !important;
|
|
2262
2344
|
}
|
|
2263
|
-
.text-\[blue\] {
|
|
2264
|
-
--tw-text-opacity: 1;
|
|
2265
|
-
color: rgb(0 0 255 / var(--tw-text-opacity, 1));
|
|
2266
|
-
}
|
|
2267
|
-
.text-\[red\] {
|
|
2268
|
-
--tw-text-opacity: 1;
|
|
2269
|
-
color: rgb(255 0 0 / var(--tw-text-opacity, 1));
|
|
2270
|
-
}
|
|
2271
2345
|
.text-black {
|
|
2272
2346
|
--tw-text-opacity: 1;
|
|
2273
2347
|
color: rgb(0 0 0 / var(--tw-text-opacity, 1));
|
|
@@ -2316,10 +2390,22 @@ video {
|
|
|
2316
2390
|
--tw-text-opacity: 1;
|
|
2317
2391
|
color: rgb(22 163 74 / var(--tw-text-opacity, 1));
|
|
2318
2392
|
}
|
|
2393
|
+
.text-green-700 {
|
|
2394
|
+
--tw-text-opacity: 1;
|
|
2395
|
+
color: rgb(21 128 61 / var(--tw-text-opacity, 1));
|
|
2396
|
+
}
|
|
2319
2397
|
.text-red-500 {
|
|
2320
2398
|
--tw-text-opacity: 1;
|
|
2321
2399
|
color: rgb(239 68 68 / var(--tw-text-opacity, 1));
|
|
2322
2400
|
}
|
|
2401
|
+
.text-red-600 {
|
|
2402
|
+
--tw-text-opacity: 1;
|
|
2403
|
+
color: rgb(220 38 38 / var(--tw-text-opacity, 1));
|
|
2404
|
+
}
|
|
2405
|
+
.text-red-700 {
|
|
2406
|
+
--tw-text-opacity: 1;
|
|
2407
|
+
color: rgb(185 28 28 / var(--tw-text-opacity, 1));
|
|
2408
|
+
}
|
|
2323
2409
|
.text-sky-500 {
|
|
2324
2410
|
--tw-text-opacity: 1;
|
|
2325
2411
|
color: rgb(14 165 233 / var(--tw-text-opacity, 1));
|
|
@@ -2358,6 +2444,10 @@ video {
|
|
|
2358
2444
|
.no-underline {
|
|
2359
2445
|
text-decoration-line: none;
|
|
2360
2446
|
}
|
|
2447
|
+
.antialiased {
|
|
2448
|
+
-webkit-font-smoothing: antialiased;
|
|
2449
|
+
-moz-osx-font-smoothing: grayscale;
|
|
2450
|
+
}
|
|
2361
2451
|
.placeholder-gray-500::-moz-placeholder {
|
|
2362
2452
|
--tw-placeholder-opacity: 1;
|
|
2363
2453
|
color: rgb(107 114 128 / var(--tw-placeholder-opacity, 1));
|
|
@@ -2400,6 +2490,11 @@ video {
|
|
|
2400
2490
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
2401
2491
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2402
2492
|
}
|
|
2493
|
+
.shadow-2xl {
|
|
2494
|
+
--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
2495
|
+
--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
|
|
2496
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2497
|
+
}
|
|
2403
2498
|
.shadow-lg {
|
|
2404
2499
|
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
2405
2500
|
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
@@ -2488,6 +2583,10 @@ video {
|
|
|
2488
2583
|
--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
|
|
2489
2584
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2490
2585
|
}
|
|
2586
|
+
.grayscale {
|
|
2587
|
+
--tw-grayscale: grayscale(100%);
|
|
2588
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2589
|
+
}
|
|
2491
2590
|
.filter {
|
|
2492
2591
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2493
2592
|
}
|
|
@@ -3228,8 +3327,8 @@ video {
|
|
|
3228
3327
|
}
|
|
3229
3328
|
@media (min-width: 1280px) {
|
|
3230
3329
|
|
|
3231
|
-
.xl\:w-\[
|
|
3232
|
-
width:
|
|
3330
|
+
.xl\:w-\[24rem\] {
|
|
3331
|
+
width: 24rem;
|
|
3233
3332
|
}
|
|
3234
3333
|
|
|
3235
3334
|
.xl\:grid-cols-4 {
|
|
@@ -41648,6 +41648,7 @@ const HEADER_USER_AGENT = "User-Agent";
|
|
|
41648
41648
|
const HEADER_X_CLUSTER_ID = "X-Cluster-Id";
|
|
41649
41649
|
const HEADER_X_CSRF_TOKEN = "X-CSRF-Token";
|
|
41650
41650
|
const HEADER_X_VERSION_ID = "X-Version-Id";
|
|
41651
|
+
window.sha256 = sha256;
|
|
41651
41652
|
let Client4$1 = class Client42 {
|
|
41652
41653
|
LOGIN_TOKEN_KEY = "Meteor.loginToken";
|
|
41653
41654
|
LOGIN_TOKEN_EXPIRES_KEY = "Meteor.loginTokenExpires";
|
|
@@ -42153,6 +42154,7 @@ function requireLodash() {
|
|
|
42153
42154
|
return lodash$1;
|
|
42154
42155
|
}
|
|
42155
42156
|
var lodashExports = requireLodash();
|
|
42157
|
+
const _$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodashExports);
|
|
42156
42158
|
var Action;
|
|
42157
42159
|
(function(Action2) {
|
|
42158
42160
|
Action2["Pop"] = "POP";
|
|
@@ -50072,7 +50074,7 @@ const Home = () => {
|
|
|
50072
50074
|
goResetPassword(navigate);
|
|
50073
50075
|
} else {
|
|
50074
50076
|
let redirect_uri = new URLSearchParams(location ? location.search : "").get("redirect_uri");
|
|
50075
|
-
if (redirect_uri) {
|
|
50077
|
+
if (redirect_uri && redirect_uri != "/update-password") {
|
|
50076
50078
|
window.location.href = redirect_uri;
|
|
50077
50079
|
} else {
|
|
50078
50080
|
window.location.href = "/app";
|
|
@@ -51571,6 +51573,7 @@ const normalizeLink = (to, location2 = window.location) => {
|
|
|
51571
51573
|
};
|
|
51572
51574
|
const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
51573
51575
|
const navigate = useNavigate();
|
|
51576
|
+
const location2 = useLocation();
|
|
51574
51577
|
if (!window.goBack) {
|
|
51575
51578
|
window.goBack = () => {
|
|
51576
51579
|
navigate(-1);
|
|
@@ -51592,10 +51595,70 @@ const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
|
51592
51595
|
user: Builder$1.settings.context.user,
|
|
51593
51596
|
now: /* @__PURE__ */ new Date()
|
|
51594
51597
|
},
|
|
51598
|
+
_pathname: location2.pathname,
|
|
51595
51599
|
...data2
|
|
51596
51600
|
};
|
|
51597
51601
|
const mergedEnv = {
|
|
51598
51602
|
...env2,
|
|
51603
|
+
isCurrentUrl: (to, ctx) => {
|
|
51604
|
+
if (!to) {
|
|
51605
|
+
return false;
|
|
51606
|
+
}
|
|
51607
|
+
const link2 = normalizeLink(to);
|
|
51608
|
+
const pathname = window.location.pathname;
|
|
51609
|
+
const idx = link2.indexOf("?");
|
|
51610
|
+
let linkPathname = link2;
|
|
51611
|
+
let linkSearch = "";
|
|
51612
|
+
if (~idx) {
|
|
51613
|
+
linkPathname = link2.substring(0, idx);
|
|
51614
|
+
linkSearch = link2.substring(idx);
|
|
51615
|
+
}
|
|
51616
|
+
if (linkSearch) {
|
|
51617
|
+
if (linkPathname !== pathname) {
|
|
51618
|
+
return false;
|
|
51619
|
+
}
|
|
51620
|
+
const currentSearch = window.location.search;
|
|
51621
|
+
if (!currentSearch) {
|
|
51622
|
+
return false;
|
|
51623
|
+
}
|
|
51624
|
+
const linkParams = new URLSearchParams(linkSearch);
|
|
51625
|
+
const currentParams = new URLSearchParams(currentSearch);
|
|
51626
|
+
let allMatch = true;
|
|
51627
|
+
linkParams.forEach((value2, key2) => {
|
|
51628
|
+
if (currentParams.get(key2) !== value2) {
|
|
51629
|
+
allMatch = false;
|
|
51630
|
+
}
|
|
51631
|
+
});
|
|
51632
|
+
return allMatch;
|
|
51633
|
+
}
|
|
51634
|
+
const decodedPathname = decodeURI(pathname);
|
|
51635
|
+
const decodedLink = decodeURI(linkPathname);
|
|
51636
|
+
if (decodedPathname === decodedLink) {
|
|
51637
|
+
return true;
|
|
51638
|
+
}
|
|
51639
|
+
const linkSegments = decodedLink.replace(/^\//, "").split("/");
|
|
51640
|
+
if (linkSegments.length <= 3 && decodedPathname.startsWith(decodedLink + "/")) {
|
|
51641
|
+
const navPaths = window._steedosNavPaths;
|
|
51642
|
+
if (navPaths && navPaths.some((p) => {
|
|
51643
|
+
let pp = p;
|
|
51644
|
+
const qi = pp.indexOf("?");
|
|
51645
|
+
if (qi > -1) pp = pp.substring(0, qi);
|
|
51646
|
+
const hi = pp.indexOf("#");
|
|
51647
|
+
if (hi > -1) pp = pp.substring(0, hi);
|
|
51648
|
+
if (decodeURI(pp) === decodedLink) return false;
|
|
51649
|
+
const tmplIdx = pp.indexOf("${");
|
|
51650
|
+
if (tmplIdx > -1) {
|
|
51651
|
+
pp = pp.substring(0, tmplIdx);
|
|
51652
|
+
}
|
|
51653
|
+
const decodedNavPath = decodeURI(pp);
|
|
51654
|
+
return decodedNavPath.startsWith(decodedLink + "/") && decodedPathname.startsWith(decodedNavPath);
|
|
51655
|
+
})) {
|
|
51656
|
+
return false;
|
|
51657
|
+
}
|
|
51658
|
+
return true;
|
|
51659
|
+
}
|
|
51660
|
+
return false;
|
|
51661
|
+
},
|
|
51599
51662
|
jumpTo: (to, action, ctx) => {
|
|
51600
51663
|
if (to === "goBack") {
|
|
51601
51664
|
return window.history.back();
|
|
@@ -51672,12 +51735,30 @@ const on_click_script = `
|
|
|
51672
51735
|
}
|
|
51673
51736
|
`;
|
|
51674
51737
|
const pcInitJumtoFirstAppFirstTabScript = (payload, response, api2, context) => {
|
|
51738
|
+
const resolvePathTemplate = (path2, data2) => {
|
|
51739
|
+
if (!path2 || path2.indexOf("${") < 0) {
|
|
51740
|
+
return path2;
|
|
51741
|
+
}
|
|
51742
|
+
try {
|
|
51743
|
+
var currentAmis = window.amisRequire && window.amisRequire("amis");
|
|
51744
|
+
var createObject = window.BuilderAmisObject && window.BuilderAmisObject.AmisLib && window.BuilderAmisObject.AmisLib.createObject;
|
|
51745
|
+
if (currentAmis && createObject) {
|
|
51746
|
+
const resolved = currentAmis.evaluate(path2, createObject(context, data2 || {}));
|
|
51747
|
+
if (typeof resolved === "string" && resolved) {
|
|
51748
|
+
return resolved;
|
|
51749
|
+
}
|
|
51750
|
+
}
|
|
51751
|
+
} catch (ex) {
|
|
51752
|
+
console.warn("resolvePathTemplate failed:", ex);
|
|
51753
|
+
}
|
|
51754
|
+
return path2;
|
|
51755
|
+
};
|
|
51675
51756
|
let app_items = payload;
|
|
51676
51757
|
if (app_items && app_items.length > 0) {
|
|
51677
51758
|
let firstApp = app_items[0];
|
|
51678
51759
|
if (firstApp && firstApp.default_tab) {
|
|
51679
51760
|
if (typeof firstApp.default_tab === "object" && firstApp.default_tab.path) {
|
|
51680
|
-
window.location.href = firstApp.default_tab.path;
|
|
51761
|
+
window.location.href = resolvePathTemplate(firstApp.default_tab.path, firstApp.default_tab);
|
|
51681
51762
|
} else {
|
|
51682
51763
|
window.location.href = `/app/${firstApp.id}/${firstApp.default_tab}`;
|
|
51683
51764
|
}
|
|
@@ -51686,7 +51767,7 @@ const pcInitJumtoFirstAppFirstTabScript = (payload, response, api2, context) =>
|
|
|
51686
51767
|
if (firstApp && firstApp.children && firstApp.children.length > 0) {
|
|
51687
51768
|
let firstTab = firstApp.children[0];
|
|
51688
51769
|
if (firstTab) {
|
|
51689
|
-
window.location.href = firstTab.path;
|
|
51770
|
+
window.location.href = resolvePathTemplate(firstTab.path, firstTab);
|
|
51690
51771
|
}
|
|
51691
51772
|
}
|
|
51692
51773
|
}
|
|
@@ -54453,6 +54534,33 @@ const {
|
|
|
54453
54534
|
const AppView = () => {
|
|
54454
54535
|
const { appId } = useParams();
|
|
54455
54536
|
const navigate = useNavigate();
|
|
54537
|
+
const resolvePathTemplate = (path2, data2) => {
|
|
54538
|
+
if (!path2 || path2.indexOf("${") < 0) {
|
|
54539
|
+
return path2 || "";
|
|
54540
|
+
}
|
|
54541
|
+
try {
|
|
54542
|
+
const currentAmis = window.amisRequire?.("amis");
|
|
54543
|
+
const createObject = window.BuilderAmisObject?.AmisLib?.createObject;
|
|
54544
|
+
if (currentAmis && createObject) {
|
|
54545
|
+
const settings2 = window.Builder?.settings || {};
|
|
54546
|
+
const scope = {
|
|
54547
|
+
context: settings2.context,
|
|
54548
|
+
global: {
|
|
54549
|
+
userId: settings2.context?.userId,
|
|
54550
|
+
spaceId: settings2.context?.tenantId,
|
|
54551
|
+
user: settings2.context?.user
|
|
54552
|
+
}
|
|
54553
|
+
};
|
|
54554
|
+
const resolved = currentAmis.evaluate(path2, createObject(scope, data2 || {}));
|
|
54555
|
+
if (typeof resolved === "string" && resolved) {
|
|
54556
|
+
return resolved;
|
|
54557
|
+
}
|
|
54558
|
+
}
|
|
54559
|
+
} catch (error) {
|
|
54560
|
+
console.warn("resolvePathTemplate failed:", error);
|
|
54561
|
+
}
|
|
54562
|
+
return path2;
|
|
54563
|
+
};
|
|
54456
54564
|
reactExports.useEffect(() => {
|
|
54457
54565
|
const fetchData = async () => {
|
|
54458
54566
|
try {
|
|
@@ -54462,9 +54570,19 @@ const AppView = () => {
|
|
|
54462
54570
|
// Include credentials if needed
|
|
54463
54571
|
);
|
|
54464
54572
|
const data2 = response.data;
|
|
54573
|
+
if (data2?.default_tab) {
|
|
54574
|
+
if (typeof data2.default_tab === "object" && data2.default_tab !== null && data2.default_tab.path) {
|
|
54575
|
+
navigate(resolvePathTemplate(data2.default_tab.path, data2.default_tab));
|
|
54576
|
+
return;
|
|
54577
|
+
}
|
|
54578
|
+
if (typeof data2.default_tab === "string") {
|
|
54579
|
+
navigate(`/app/${appId}/${data2.default_tab}`);
|
|
54580
|
+
return;
|
|
54581
|
+
}
|
|
54582
|
+
}
|
|
54465
54583
|
if (data2?.children.length > 0 && data2.children[0].path) {
|
|
54466
|
-
const children = _.sortBy(data2.children, ["index"]);
|
|
54467
|
-
navigate(children[0].path);
|
|
54584
|
+
const children = _$1.sortBy(data2.children, ["index"]);
|
|
54585
|
+
navigate(resolvePathTemplate(children[0].path, children[0]));
|
|
54468
54586
|
}
|
|
54469
54587
|
} catch (error) {
|
|
54470
54588
|
console.error("Error fetching data:", error);
|
|
@@ -54884,7 +55002,7 @@ const ObjectListView = () => {
|
|
|
54884
55002
|
}
|
|
54885
55003
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(AmisRender, { schema: {
|
|
54886
55004
|
type: "page",
|
|
54887
|
-
bodyClassName: "p-0",
|
|
55005
|
+
bodyClassName: "p-0 h-full",
|
|
54888
55006
|
body: {
|
|
54889
55007
|
"type": "steedos-page-object-control",
|
|
54890
55008
|
"name": "steedosPageObjectControl",
|
|
@@ -81231,7 +81349,7 @@ if (typeof ActiveXObject === "function") {
|
|
|
81231
81349
|
if (typeof fetchApi !== "function") fetchApi = void 0;
|
|
81232
81350
|
if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
|
|
81233
81351
|
try {
|
|
81234
|
-
__vitePreload(() => import("./browser-ponyfill-
|
|
81352
|
+
__vitePreload(() => import("./browser-ponyfill-DxTWaLDY.js").then((n) => n.b), true ? [] : void 0).then(function(mod) {
|
|
81235
81353
|
fetchApi = mod.default;
|
|
81236
81354
|
}).catch(function() {
|
|
81237
81355
|
});
|
package/dist/index.html
CHANGED
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
<link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/lib/themes/antd.css">
|
|
66
66
|
<link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/lib/helper.css">
|
|
67
67
|
<link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/sdk/iconfont.css">
|
|
68
|
-
<script type="module" crossorigin src="/assets/index-
|
|
69
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
68
|
+
<script type="module" crossorigin src="/assets/index-DbB2k2Bs.js"></script>
|
|
69
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CQX0gCBj.css">
|
|
70
70
|
</head>
|
|
71
71
|
<body class="skin-blue-light fixed steedos sidebar-mini three-columns" >
|
|
72
72
|
<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.13-beta.
|
|
3
|
+
"version": "3.0.13-beta.50",
|
|
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": "732dec4ff1ad0fa939301524b7ca7c0025ccfe35",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@steedos-widgets/amis-object": "^6.10.
|
|
80
|
+
"@steedos-widgets/amis-object": "^6.10.52-beta.34",
|
|
81
81
|
"autoprefixer": "^10.4.23"
|
|
82
82
|
}
|
|
83
83
|
}
|