adminforth 1.3.57-next.1 → 1.3.57-next.10
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/dataConnectors/postgres.d.ts.map +1 -1
- package/dist/dataConnectors/postgres.js +12 -0
- package/dist/dataConnectors/postgres.js.map +1 -1
- package/dist/dataConnectors/sqlite.d.ts.map +1 -1
- package/dist/dataConnectors/sqlite.js +0 -1
- package/dist/dataConnectors/sqlite.js.map +1 -1
- package/dist/modules/codeInjector.d.ts +2 -1
- package/dist/modules/codeInjector.d.ts.map +1 -1
- package/dist/modules/codeInjector.js +43 -25
- package/dist/modules/codeInjector.js.map +1 -1
- package/dist/servers/express.d.ts.map +1 -1
- package/dist/servers/express.js +3 -3
- package/dist/servers/express.js.map +1 -1
- package/dist/spa/package-lock.json +135 -82
- package/dist/spa/package.json +1 -1
- package/dist/spa/src/components/ValueRenderer.vue +3 -1
- package/dist/spa/src/types/AdminForthConfig.js +150 -0
- package/dist/spa/src/types/AdminForthConfig.ts +22 -0
- package/dist/spa/src/types/FrontendAPI.ts +14 -2
- package/dist/spa/src/views/ListView.vue +75 -5
- package/dist/types/AdminForthConfig.d.ts +18 -0
- package/dist/types/AdminForthConfig.d.ts.map +1 -1
- package/dist/types/AdminForthConfig.js.map +1 -1
- package/dist/types/FrontendAPI.d.ts +9 -2
- package/dist/types/FrontendAPI.d.ts.map +1 -1
- package/dist/types/FrontendAPI.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"sanitize-html": "^2.13.0",
|
|
21
21
|
"unhead": "^1.9.12",
|
|
22
22
|
"uuid": "^10.0.0",
|
|
23
|
-
"vue": "^3.
|
|
23
|
+
"vue": "^3.5.12",
|
|
24
24
|
"vue-diff": "^1.2.4",
|
|
25
25
|
"vue-router": "^4.3.0",
|
|
26
26
|
"vue-slider-component": "^4.1.0-beta.7"
|
|
@@ -59,10 +59,32 @@
|
|
|
59
59
|
"url": "https://github.com/sponsors/sindresorhus"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
+
"node_modules/@babel/helper-string-parser": {
|
|
63
|
+
"version": "7.25.9",
|
|
64
|
+
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",
|
|
65
|
+
"integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==",
|
|
66
|
+
"license": "MIT",
|
|
67
|
+
"engines": {
|
|
68
|
+
"node": ">=6.9.0"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"node_modules/@babel/helper-validator-identifier": {
|
|
72
|
+
"version": "7.25.9",
|
|
73
|
+
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",
|
|
74
|
+
"integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",
|
|
75
|
+
"license": "MIT",
|
|
76
|
+
"engines": {
|
|
77
|
+
"node": ">=6.9.0"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
62
80
|
"node_modules/@babel/parser": {
|
|
63
|
-
"version": "7.
|
|
64
|
-
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.
|
|
65
|
-
"integrity": "sha512-
|
|
81
|
+
"version": "7.26.2",
|
|
82
|
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.2.tgz",
|
|
83
|
+
"integrity": "sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==",
|
|
84
|
+
"license": "MIT",
|
|
85
|
+
"dependencies": {
|
|
86
|
+
"@babel/types": "^7.26.0"
|
|
87
|
+
},
|
|
66
88
|
"bin": {
|
|
67
89
|
"parser": "bin/babel-parser.js"
|
|
68
90
|
},
|
|
@@ -70,6 +92,19 @@
|
|
|
70
92
|
"node": ">=6.0.0"
|
|
71
93
|
}
|
|
72
94
|
},
|
|
95
|
+
"node_modules/@babel/types": {
|
|
96
|
+
"version": "7.26.0",
|
|
97
|
+
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz",
|
|
98
|
+
"integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==",
|
|
99
|
+
"license": "MIT",
|
|
100
|
+
"dependencies": {
|
|
101
|
+
"@babel/helper-string-parser": "^7.25.9",
|
|
102
|
+
"@babel/helper-validator-identifier": "^7.25.9"
|
|
103
|
+
},
|
|
104
|
+
"engines": {
|
|
105
|
+
"node": ">=6.9.0"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
73
108
|
"node_modules/@esbuild/aix-ppc64": {
|
|
74
109
|
"version": "0.20.2",
|
|
75
110
|
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz",
|
|
@@ -659,9 +694,10 @@
|
|
|
659
694
|
}
|
|
660
695
|
},
|
|
661
696
|
"node_modules/@jridgewell/sourcemap-codec": {
|
|
662
|
-
"version": "1.
|
|
663
|
-
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.
|
|
664
|
-
"integrity": "sha512-
|
|
697
|
+
"version": "1.5.0",
|
|
698
|
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
|
|
699
|
+
"integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",
|
|
700
|
+
"license": "MIT"
|
|
665
701
|
},
|
|
666
702
|
"node_modules/@jridgewell/trace-mapping": {
|
|
667
703
|
"version": "0.3.25",
|
|
@@ -1252,49 +1288,53 @@
|
|
|
1252
1288
|
}
|
|
1253
1289
|
},
|
|
1254
1290
|
"node_modules/@vue/compiler-core": {
|
|
1255
|
-
"version": "3.
|
|
1256
|
-
"resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.
|
|
1257
|
-
"integrity": "sha512-
|
|
1291
|
+
"version": "3.5.12",
|
|
1292
|
+
"resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.12.tgz",
|
|
1293
|
+
"integrity": "sha512-ISyBTRMmMYagUxhcpyEH0hpXRd/KqDU4ymofPgl2XAkY9ZhQ+h0ovEZJIiPop13UmR/54oA2cgMDjgroRelaEw==",
|
|
1294
|
+
"license": "MIT",
|
|
1258
1295
|
"dependencies": {
|
|
1259
|
-
"@babel/parser": "^7.
|
|
1260
|
-
"@vue/shared": "3.
|
|
1296
|
+
"@babel/parser": "^7.25.3",
|
|
1297
|
+
"@vue/shared": "3.5.12",
|
|
1261
1298
|
"entities": "^4.5.0",
|
|
1262
1299
|
"estree-walker": "^2.0.2",
|
|
1263
1300
|
"source-map-js": "^1.2.0"
|
|
1264
1301
|
}
|
|
1265
1302
|
},
|
|
1266
1303
|
"node_modules/@vue/compiler-dom": {
|
|
1267
|
-
"version": "3.
|
|
1268
|
-
"resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.
|
|
1269
|
-
"integrity": "sha512-
|
|
1304
|
+
"version": "3.5.12",
|
|
1305
|
+
"resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.12.tgz",
|
|
1306
|
+
"integrity": "sha512-9G6PbJ03uwxLHKQ3P42cMTi85lDRvGLB2rSGOiQqtXELat6uI4n8cNz9yjfVHRPIu+MsK6TE418Giruvgptckg==",
|
|
1307
|
+
"license": "MIT",
|
|
1270
1308
|
"dependencies": {
|
|
1271
|
-
"@vue/compiler-core": "3.
|
|
1272
|
-
"@vue/shared": "3.
|
|
1309
|
+
"@vue/compiler-core": "3.5.12",
|
|
1310
|
+
"@vue/shared": "3.5.12"
|
|
1273
1311
|
}
|
|
1274
1312
|
},
|
|
1275
1313
|
"node_modules/@vue/compiler-sfc": {
|
|
1276
|
-
"version": "3.
|
|
1277
|
-
"resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.
|
|
1278
|
-
"integrity": "sha512-
|
|
1279
|
-
"
|
|
1280
|
-
|
|
1281
|
-
"@
|
|
1282
|
-
"@vue/compiler-
|
|
1283
|
-
"@vue/compiler-
|
|
1284
|
-
"@vue/
|
|
1314
|
+
"version": "3.5.12",
|
|
1315
|
+
"resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.12.tgz",
|
|
1316
|
+
"integrity": "sha512-2k973OGo2JuAa5+ZlekuQJtitI5CgLMOwgl94BzMCsKZCX/xiqzJYzapl4opFogKHqwJk34vfsaKpfEhd1k5nw==",
|
|
1317
|
+
"license": "MIT",
|
|
1318
|
+
"dependencies": {
|
|
1319
|
+
"@babel/parser": "^7.25.3",
|
|
1320
|
+
"@vue/compiler-core": "3.5.12",
|
|
1321
|
+
"@vue/compiler-dom": "3.5.12",
|
|
1322
|
+
"@vue/compiler-ssr": "3.5.12",
|
|
1323
|
+
"@vue/shared": "3.5.12",
|
|
1285
1324
|
"estree-walker": "^2.0.2",
|
|
1286
|
-
"magic-string": "^0.30.
|
|
1287
|
-
"postcss": "^8.4.
|
|
1325
|
+
"magic-string": "^0.30.11",
|
|
1326
|
+
"postcss": "^8.4.47",
|
|
1288
1327
|
"source-map-js": "^1.2.0"
|
|
1289
1328
|
}
|
|
1290
1329
|
},
|
|
1291
1330
|
"node_modules/@vue/compiler-ssr": {
|
|
1292
|
-
"version": "3.
|
|
1293
|
-
"resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.
|
|
1294
|
-
"integrity": "sha512-
|
|
1331
|
+
"version": "3.5.12",
|
|
1332
|
+
"resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.12.tgz",
|
|
1333
|
+
"integrity": "sha512-eLwc7v6bfGBSM7wZOGPmRavSWzNFF6+PdRhE+VFJhNCgHiF8AM7ccoqcv5kBXA2eWUfigD7byekvf/JsOfKvPA==",
|
|
1334
|
+
"license": "MIT",
|
|
1295
1335
|
"dependencies": {
|
|
1296
|
-
"@vue/compiler-dom": "3.
|
|
1297
|
-
"@vue/shared": "3.
|
|
1336
|
+
"@vue/compiler-dom": "3.5.12",
|
|
1337
|
+
"@vue/shared": "3.5.12"
|
|
1298
1338
|
}
|
|
1299
1339
|
},
|
|
1300
1340
|
"node_modules/@vue/devtools-api": {
|
|
@@ -1350,48 +1390,54 @@
|
|
|
1350
1390
|
}
|
|
1351
1391
|
},
|
|
1352
1392
|
"node_modules/@vue/reactivity": {
|
|
1353
|
-
"version": "3.
|
|
1354
|
-
"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.
|
|
1355
|
-
"integrity": "sha512-
|
|
1393
|
+
"version": "3.5.12",
|
|
1394
|
+
"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.12.tgz",
|
|
1395
|
+
"integrity": "sha512-UzaN3Da7xnJXdz4Okb/BGbAaomRHc3RdoWqTzlvd9+WBR5m3J39J1fGcHes7U3za0ruYn/iYy/a1euhMEHvTAg==",
|
|
1396
|
+
"license": "MIT",
|
|
1356
1397
|
"dependencies": {
|
|
1357
|
-
"@vue/shared": "3.
|
|
1398
|
+
"@vue/shared": "3.5.12"
|
|
1358
1399
|
}
|
|
1359
1400
|
},
|
|
1360
1401
|
"node_modules/@vue/runtime-core": {
|
|
1361
|
-
"version": "3.
|
|
1362
|
-
"resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.
|
|
1363
|
-
"integrity": "sha512-
|
|
1402
|
+
"version": "3.5.12",
|
|
1403
|
+
"resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.12.tgz",
|
|
1404
|
+
"integrity": "sha512-hrMUYV6tpocr3TL3Ad8DqxOdpDe4zuQY4HPY3X/VRh+L2myQO8MFXPAMarIOSGNu0bFAjh1yBkMPXZBqCk62Uw==",
|
|
1405
|
+
"license": "MIT",
|
|
1364
1406
|
"dependencies": {
|
|
1365
|
-
"@vue/reactivity": "3.
|
|
1366
|
-
"@vue/shared": "3.
|
|
1407
|
+
"@vue/reactivity": "3.5.12",
|
|
1408
|
+
"@vue/shared": "3.5.12"
|
|
1367
1409
|
}
|
|
1368
1410
|
},
|
|
1369
1411
|
"node_modules/@vue/runtime-dom": {
|
|
1370
|
-
"version": "3.
|
|
1371
|
-
"resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.
|
|
1372
|
-
"integrity": "sha512-
|
|
1412
|
+
"version": "3.5.12",
|
|
1413
|
+
"resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.12.tgz",
|
|
1414
|
+
"integrity": "sha512-q8VFxR9A2MRfBr6/55Q3umyoN7ya836FzRXajPB6/Vvuv0zOPL+qltd9rIMzG/DbRLAIlREmnLsplEF/kotXKA==",
|
|
1415
|
+
"license": "MIT",
|
|
1373
1416
|
"dependencies": {
|
|
1374
|
-
"@vue/
|
|
1375
|
-
"@vue/
|
|
1417
|
+
"@vue/reactivity": "3.5.12",
|
|
1418
|
+
"@vue/runtime-core": "3.5.12",
|
|
1419
|
+
"@vue/shared": "3.5.12",
|
|
1376
1420
|
"csstype": "^3.1.3"
|
|
1377
1421
|
}
|
|
1378
1422
|
},
|
|
1379
1423
|
"node_modules/@vue/server-renderer": {
|
|
1380
|
-
"version": "3.
|
|
1381
|
-
"resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.
|
|
1382
|
-
"integrity": "sha512-
|
|
1424
|
+
"version": "3.5.12",
|
|
1425
|
+
"resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.12.tgz",
|
|
1426
|
+
"integrity": "sha512-I3QoeDDeEPZm8yR28JtY+rk880Oqmj43hreIBVTicisFTx/Dl7JpG72g/X7YF8hnQD3IFhkky5i2bPonwrTVPg==",
|
|
1427
|
+
"license": "MIT",
|
|
1383
1428
|
"dependencies": {
|
|
1384
|
-
"@vue/compiler-ssr": "3.
|
|
1385
|
-
"@vue/shared": "3.
|
|
1429
|
+
"@vue/compiler-ssr": "3.5.12",
|
|
1430
|
+
"@vue/shared": "3.5.12"
|
|
1386
1431
|
},
|
|
1387
1432
|
"peerDependencies": {
|
|
1388
|
-
"vue": "3.
|
|
1433
|
+
"vue": "3.5.12"
|
|
1389
1434
|
}
|
|
1390
1435
|
},
|
|
1391
1436
|
"node_modules/@vue/shared": {
|
|
1392
|
-
"version": "3.
|
|
1393
|
-
"resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.
|
|
1394
|
-
"integrity": "sha512-
|
|
1437
|
+
"version": "3.5.12",
|
|
1438
|
+
"resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.12.tgz",
|
|
1439
|
+
"integrity": "sha512-L2RPSAwUFbgZH20etwrXyVyCBu9OxRSi8T/38QsvnkJyvq2LufW2lDCOzm7t/U9C1mkhJGWYfCuFBCmIuNivrg==",
|
|
1440
|
+
"license": "MIT"
|
|
1395
1441
|
},
|
|
1396
1442
|
"node_modules/@vue/tsconfig": {
|
|
1397
1443
|
"version": "0.5.1",
|
|
@@ -1867,7 +1913,8 @@
|
|
|
1867
1913
|
"node_modules/csstype": {
|
|
1868
1914
|
"version": "3.1.3",
|
|
1869
1915
|
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
|
|
1870
|
-
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
|
|
1916
|
+
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
|
|
1917
|
+
"license": "MIT"
|
|
1871
1918
|
},
|
|
1872
1919
|
"node_modules/dayjs": {
|
|
1873
1920
|
"version": "1.11.11",
|
|
@@ -2295,7 +2342,8 @@
|
|
|
2295
2342
|
"node_modules/estree-walker": {
|
|
2296
2343
|
"version": "2.0.2",
|
|
2297
2344
|
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
|
|
2298
|
-
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
|
|
2345
|
+
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
|
|
2346
|
+
"license": "MIT"
|
|
2299
2347
|
},
|
|
2300
2348
|
"node_modules/esutils": {
|
|
2301
2349
|
"version": "2.0.3",
|
|
@@ -2973,11 +3021,12 @@
|
|
|
2973
3021
|
}
|
|
2974
3022
|
},
|
|
2975
3023
|
"node_modules/magic-string": {
|
|
2976
|
-
"version": "0.30.
|
|
2977
|
-
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.
|
|
2978
|
-
"integrity": "sha512-
|
|
3024
|
+
"version": "0.30.12",
|
|
3025
|
+
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.12.tgz",
|
|
3026
|
+
"integrity": "sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==",
|
|
3027
|
+
"license": "MIT",
|
|
2979
3028
|
"dependencies": {
|
|
2980
|
-
"@jridgewell/sourcemap-codec": "^1.
|
|
3029
|
+
"@jridgewell/sourcemap-codec": "^1.5.0"
|
|
2981
3030
|
}
|
|
2982
3031
|
},
|
|
2983
3032
|
"node_modules/memorystream": {
|
|
@@ -3327,9 +3376,10 @@
|
|
|
3327
3376
|
}
|
|
3328
3377
|
},
|
|
3329
3378
|
"node_modules/picocolors": {
|
|
3330
|
-
"version": "1.
|
|
3331
|
-
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.
|
|
3332
|
-
"integrity": "sha512-
|
|
3379
|
+
"version": "1.1.1",
|
|
3380
|
+
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
|
|
3381
|
+
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
|
|
3382
|
+
"license": "ISC"
|
|
3333
3383
|
},
|
|
3334
3384
|
"node_modules/picomatch": {
|
|
3335
3385
|
"version": "2.3.1",
|
|
@@ -3424,9 +3474,9 @@
|
|
|
3424
3474
|
}
|
|
3425
3475
|
},
|
|
3426
3476
|
"node_modules/postcss": {
|
|
3427
|
-
"version": "8.4.
|
|
3428
|
-
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.
|
|
3429
|
-
"integrity": "sha512-
|
|
3477
|
+
"version": "8.4.47",
|
|
3478
|
+
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.47.tgz",
|
|
3479
|
+
"integrity": "sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==",
|
|
3430
3480
|
"funding": [
|
|
3431
3481
|
{
|
|
3432
3482
|
"type": "opencollective",
|
|
@@ -3441,10 +3491,11 @@
|
|
|
3441
3491
|
"url": "https://github.com/sponsors/ai"
|
|
3442
3492
|
}
|
|
3443
3493
|
],
|
|
3494
|
+
"license": "MIT",
|
|
3444
3495
|
"dependencies": {
|
|
3445
3496
|
"nanoid": "^3.3.7",
|
|
3446
|
-
"picocolors": "^1.
|
|
3447
|
-
"source-map-js": "^1.2.
|
|
3497
|
+
"picocolors": "^1.1.0",
|
|
3498
|
+
"source-map-js": "^1.2.1"
|
|
3448
3499
|
},
|
|
3449
3500
|
"engines": {
|
|
3450
3501
|
"node": "^10 || ^12 || >=14"
|
|
@@ -3859,9 +3910,10 @@
|
|
|
3859
3910
|
}
|
|
3860
3911
|
},
|
|
3861
3912
|
"node_modules/source-map-js": {
|
|
3862
|
-
"version": "1.2.
|
|
3863
|
-
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.
|
|
3864
|
-
"integrity": "sha512-
|
|
3913
|
+
"version": "1.2.1",
|
|
3914
|
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
|
3915
|
+
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
|
|
3916
|
+
"license": "BSD-3-Clause",
|
|
3865
3917
|
"engines": {
|
|
3866
3918
|
"node": ">=0.10.0"
|
|
3867
3919
|
}
|
|
@@ -4307,15 +4359,16 @@
|
|
|
4307
4359
|
}
|
|
4308
4360
|
},
|
|
4309
4361
|
"node_modules/vue": {
|
|
4310
|
-
"version": "3.
|
|
4311
|
-
"resolved": "https://registry.npmjs.org/vue/-/vue-3.
|
|
4312
|
-
"integrity": "sha512-
|
|
4313
|
-
"
|
|
4314
|
-
|
|
4315
|
-
"@vue/compiler-
|
|
4316
|
-
"@vue/
|
|
4317
|
-
"@vue/
|
|
4318
|
-
"@vue/
|
|
4362
|
+
"version": "3.5.12",
|
|
4363
|
+
"resolved": "https://registry.npmjs.org/vue/-/vue-3.5.12.tgz",
|
|
4364
|
+
"integrity": "sha512-CLVZtXtn2ItBIi/zHZ0Sg1Xkb7+PU32bJJ8Bmy7ts3jxXTcbfsEfBivFYYWz1Hur+lalqGAh65Coin0r+HRUfg==",
|
|
4365
|
+
"license": "MIT",
|
|
4366
|
+
"dependencies": {
|
|
4367
|
+
"@vue/compiler-dom": "3.5.12",
|
|
4368
|
+
"@vue/compiler-sfc": "3.5.12",
|
|
4369
|
+
"@vue/runtime-dom": "3.5.12",
|
|
4370
|
+
"@vue/server-renderer": "3.5.12",
|
|
4371
|
+
"@vue/shared": "3.5.12"
|
|
4319
4372
|
},
|
|
4320
4373
|
"peerDependencies": {
|
|
4321
4374
|
"typescript": "*"
|
package/dist/spa/package.json
CHANGED
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
<div v-html="protectAgainstXSS(record[column.name])" class="allow-lists"></div>
|
|
31
31
|
</span>
|
|
32
32
|
<span v-else-if="column.type === 'json'">
|
|
33
|
-
<JsonViewer :value="record[column.name]" copyable sort :theme="coreStore.theme" />
|
|
33
|
+
<JsonViewer :value="record[column.name]" :expandDepth="column.extra?.jsonCollapsedLevel" copyable sort :theme="coreStore.theme" />
|
|
34
|
+
|
|
34
35
|
</span>
|
|
35
36
|
<span v-else>
|
|
36
37
|
{{ checkEmptyValues(record[column.name],route.meta.type) }}
|
|
@@ -66,6 +67,7 @@ const props = defineProps({
|
|
|
66
67
|
record: Object
|
|
67
68
|
});
|
|
68
69
|
|
|
70
|
+
|
|
69
71
|
function protectAgainstXSS(value) {
|
|
70
72
|
return sanitizeHtml(value, {
|
|
71
73
|
allowedTags: [
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminForthSortDirections = exports.AdminForthFilterOperators = exports.AdminForthDataTypes = exports.ActionCheckSource = exports.AllowedActionsEnum = exports.Sorts = exports.Filters = exports.AdminForthResourcePages = exports.AdminForthMenuTypes = void 0;
|
|
4
|
+
;
|
|
5
|
+
var AdminForthMenuTypes;
|
|
6
|
+
(function (AdminForthMenuTypes) {
|
|
7
|
+
/**
|
|
8
|
+
* HEADING is just a label in the menu.
|
|
9
|
+
* Respect `label` and `icon` property in {@link AdminForthConfigMenuItem}
|
|
10
|
+
*/
|
|
11
|
+
AdminForthMenuTypes["heading"] = "heading";
|
|
12
|
+
/**
|
|
13
|
+
* GROUP is a group of menu items.
|
|
14
|
+
* Respects `label`, `icon` and `children` properties in {@link AdminForthConfigMenuItem}
|
|
15
|
+
* use @AdminForthMenuTypes.open to set if group is open by default
|
|
16
|
+
*/
|
|
17
|
+
AdminForthMenuTypes["group"] = "group";
|
|
18
|
+
/**
|
|
19
|
+
* RESOURCE is a link to a resource.
|
|
20
|
+
* Respects `label`, `icon`, `resourceId`, `homepage`, `isStaticRoute` properties in {@link AdminForthConfigMenuItem}
|
|
21
|
+
*/
|
|
22
|
+
AdminForthMenuTypes["resource"] = "resource";
|
|
23
|
+
/**
|
|
24
|
+
* PAGE is a link to a custom page.
|
|
25
|
+
* Respects `label`, `icon`, `path`, `component`, `homepage`, `isStaticRoute`, properties in {@link AdminForthConfigMenuItem}
|
|
26
|
+
*
|
|
27
|
+
* Example:
|
|
28
|
+
*
|
|
29
|
+
* ```ts
|
|
30
|
+
* \{
|
|
31
|
+
* type: AdminForthMenuTypes.PAGE,
|
|
32
|
+
* label: 'Custom Page',
|
|
33
|
+
* icon: 'home',
|
|
34
|
+
* path: '/dash',
|
|
35
|
+
* component: '@@/Dashboard.vue',
|
|
36
|
+
* homepage: true,
|
|
37
|
+
* \}
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
AdminForthMenuTypes["page"] = "page";
|
|
42
|
+
/**
|
|
43
|
+
* GAP ads some space between menu items.
|
|
44
|
+
*/
|
|
45
|
+
AdminForthMenuTypes["gap"] = "gap";
|
|
46
|
+
/**
|
|
47
|
+
* DIVIDER is a divider between menu items.
|
|
48
|
+
*/
|
|
49
|
+
AdminForthMenuTypes["divider"] = "divider";
|
|
50
|
+
})(AdminForthMenuTypes || (exports.AdminForthMenuTypes = AdminForthMenuTypes = {}));
|
|
51
|
+
var AdminForthResourcePages;
|
|
52
|
+
(function (AdminForthResourcePages) {
|
|
53
|
+
AdminForthResourcePages["list"] = "list";
|
|
54
|
+
AdminForthResourcePages["show"] = "show";
|
|
55
|
+
AdminForthResourcePages["edit"] = "edit";
|
|
56
|
+
AdminForthResourcePages["create"] = "create";
|
|
57
|
+
AdminForthResourcePages["filter"] = "filter";
|
|
58
|
+
})(AdminForthResourcePages || (exports.AdminForthResourcePages = AdminForthResourcePages = {}));
|
|
59
|
+
class Filters {
|
|
60
|
+
static EQ(field, value) {
|
|
61
|
+
return { field, operator: AdminForthFilterOperators.EQ, value };
|
|
62
|
+
}
|
|
63
|
+
static NEQ(field, value) {
|
|
64
|
+
return { field, operator: AdminForthFilterOperators.NE, value };
|
|
65
|
+
}
|
|
66
|
+
static GT(field, value) {
|
|
67
|
+
return { field, operator: AdminForthFilterOperators.GT, value };
|
|
68
|
+
}
|
|
69
|
+
static GTE(field, value) {
|
|
70
|
+
return { field, operator: AdminForthFilterOperators.GTE, value };
|
|
71
|
+
}
|
|
72
|
+
static LT(field, value) {
|
|
73
|
+
return { field, operator: AdminForthFilterOperators.LT, value };
|
|
74
|
+
}
|
|
75
|
+
static LTE(field, value) {
|
|
76
|
+
return { field, operator: AdminForthFilterOperators.LTE, value };
|
|
77
|
+
}
|
|
78
|
+
static IN(field, value) {
|
|
79
|
+
return { field, operator: AdminForthFilterOperators.IN, value };
|
|
80
|
+
}
|
|
81
|
+
static NOT_IN(field, value) {
|
|
82
|
+
return { field, operator: AdminForthFilterOperators.NIN, value };
|
|
83
|
+
}
|
|
84
|
+
static LIKE(field, value) {
|
|
85
|
+
return { field, operator: AdminForthFilterOperators.LIKE, value };
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.Filters = Filters;
|
|
89
|
+
class Sorts {
|
|
90
|
+
static ASC(field) {
|
|
91
|
+
return { field, direction: AdminForthSortDirections.asc };
|
|
92
|
+
}
|
|
93
|
+
static DESC(field) {
|
|
94
|
+
return { field, direction: AdminForthSortDirections.desc };
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.Sorts = Sorts;
|
|
98
|
+
var AllowedActionsEnum;
|
|
99
|
+
(function (AllowedActionsEnum) {
|
|
100
|
+
AllowedActionsEnum["show"] = "show";
|
|
101
|
+
AllowedActionsEnum["list"] = "list";
|
|
102
|
+
AllowedActionsEnum["edit"] = "edit";
|
|
103
|
+
AllowedActionsEnum["create"] = "create";
|
|
104
|
+
AllowedActionsEnum["delete"] = "delete";
|
|
105
|
+
AllowedActionsEnum["filter"] = "filter";
|
|
106
|
+
})(AllowedActionsEnum || (exports.AllowedActionsEnum = AllowedActionsEnum = {}));
|
|
107
|
+
var ActionCheckSource;
|
|
108
|
+
(function (ActionCheckSource) {
|
|
109
|
+
ActionCheckSource["DisplayButtons"] = "displayButtons";
|
|
110
|
+
ActionCheckSource["ListRequest"] = "listRequest";
|
|
111
|
+
ActionCheckSource["ShowRequest"] = "showRequest";
|
|
112
|
+
ActionCheckSource["EditRequest"] = "editRequest";
|
|
113
|
+
ActionCheckSource["CreateRequest"] = "createRequest";
|
|
114
|
+
ActionCheckSource["DeleteRequest"] = "deleteRequest";
|
|
115
|
+
ActionCheckSource["BulkActionRequest"] = "bulkActionRequest";
|
|
116
|
+
})(ActionCheckSource || (exports.ActionCheckSource = ActionCheckSource = {}));
|
|
117
|
+
var AdminForthDataTypes;
|
|
118
|
+
(function (AdminForthDataTypes) {
|
|
119
|
+
AdminForthDataTypes["STRING"] = "string";
|
|
120
|
+
AdminForthDataTypes["INTEGER"] = "integer";
|
|
121
|
+
AdminForthDataTypes["FLOAT"] = "float";
|
|
122
|
+
AdminForthDataTypes["DECIMAL"] = "decimal";
|
|
123
|
+
AdminForthDataTypes["BOOLEAN"] = "boolean";
|
|
124
|
+
AdminForthDataTypes["DATE"] = "date";
|
|
125
|
+
AdminForthDataTypes["DATETIME"] = "datetime";
|
|
126
|
+
AdminForthDataTypes["TIME"] = "time";
|
|
127
|
+
AdminForthDataTypes["TEXT"] = "text";
|
|
128
|
+
AdminForthDataTypes["JSON"] = "json";
|
|
129
|
+
AdminForthDataTypes["RICHTEXT"] = "richtext";
|
|
130
|
+
})(AdminForthDataTypes || (exports.AdminForthDataTypes = AdminForthDataTypes = {}));
|
|
131
|
+
var AdminForthFilterOperators;
|
|
132
|
+
(function (AdminForthFilterOperators) {
|
|
133
|
+
AdminForthFilterOperators["EQ"] = "eq";
|
|
134
|
+
AdminForthFilterOperators["NE"] = "ne";
|
|
135
|
+
AdminForthFilterOperators["GT"] = "gt";
|
|
136
|
+
AdminForthFilterOperators["LT"] = "lt";
|
|
137
|
+
AdminForthFilterOperators["GTE"] = "gte";
|
|
138
|
+
AdminForthFilterOperators["LTE"] = "lte";
|
|
139
|
+
AdminForthFilterOperators["LIKE"] = "like";
|
|
140
|
+
AdminForthFilterOperators["ILIKE"] = "ilike";
|
|
141
|
+
AdminForthFilterOperators["IN"] = "in";
|
|
142
|
+
AdminForthFilterOperators["NIN"] = "nin";
|
|
143
|
+
})(AdminForthFilterOperators || (exports.AdminForthFilterOperators = AdminForthFilterOperators = {}));
|
|
144
|
+
;
|
|
145
|
+
var AdminForthSortDirections;
|
|
146
|
+
(function (AdminForthSortDirections) {
|
|
147
|
+
AdminForthSortDirections["asc"] = "asc";
|
|
148
|
+
AdminForthSortDirections["desc"] = "desc";
|
|
149
|
+
})(AdminForthSortDirections || (exports.AdminForthSortDirections = AdminForthSortDirections = {}));
|
|
150
|
+
;
|
|
@@ -4,6 +4,8 @@ import type { Writable } from 'stream';
|
|
|
4
4
|
export interface ICodeInjector {
|
|
5
5
|
srcFoldersToSync: Object;
|
|
6
6
|
allComponentNames: Object;
|
|
7
|
+
|
|
8
|
+
getServeDir(): string;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
export interface IConfigValidator {
|
|
@@ -550,6 +552,21 @@ export type AdminForthResourceColumn = {
|
|
|
550
552
|
*/
|
|
551
553
|
type?: AdminForthDataTypes,
|
|
552
554
|
|
|
555
|
+
/**
|
|
556
|
+
* An optional configuration object for extra settings.
|
|
557
|
+
*/
|
|
558
|
+
extra?: {
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* How many levels of JSON should be collapsed.
|
|
562
|
+
* `0` means - root level will be already collapsed e.g. `{a:1}` will show `{...}` where `'...'` is clickable
|
|
563
|
+
* `1` means - root level will be shown, but next sub-level will be collapsed e.g. `{a: {b: 1}}` will show `{a: ...}` where `'...'` is clickable
|
|
564
|
+
*
|
|
565
|
+
* Default is 1.
|
|
566
|
+
*/
|
|
567
|
+
jsonCollapsedLevel?: number
|
|
568
|
+
}
|
|
569
|
+
|
|
553
570
|
/**
|
|
554
571
|
* Whether to use this column as record identifier.
|
|
555
572
|
* Only one column can be primary key.
|
|
@@ -1085,6 +1102,11 @@ export type AdminForthResource = {
|
|
|
1085
1102
|
*/
|
|
1086
1103
|
listTableClickUrl?: (record: any, adminUser: AdminUser) => Promise<string | null>,
|
|
1087
1104
|
|
|
1105
|
+
/**
|
|
1106
|
+
* Whether to refresh existing list rows automatically every N seconds.
|
|
1107
|
+
*/
|
|
1108
|
+
listRowsAutoRefreshSeconds?: number,
|
|
1109
|
+
|
|
1088
1110
|
/**
|
|
1089
1111
|
* Custom components which can be injected into AdminForth CRUD pages.
|
|
1090
1112
|
* Each injection is a path to a custom component which will be displayed in the admin panel.
|
|
@@ -39,9 +39,21 @@ export interface FrontendAPIInterface {
|
|
|
39
39
|
list: {
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Full refresh the list. Loader will be shown during fetching data. Will fully reload table data from the server. If new data available, it will be shown in the list.
|
|
43
43
|
*/
|
|
44
|
-
refresh():
|
|
44
|
+
// refresh(): Promise<{ error? : string }>;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Silently Refresh existing rows in the list (without loader).
|
|
48
|
+
* Should be called when table data already loaded, otherwise method will return an error.
|
|
49
|
+
* If new data available, it will not appear in the list.
|
|
50
|
+
*/
|
|
51
|
+
// silentRefresh(): Promise<{ error? : string }>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Refresh a specific row in the list without loader, row should be already shown in the list, otherwise method will return an error
|
|
55
|
+
*/
|
|
56
|
+
// silentRefreshRow (pk: any): Promise<{ error? : string }>;
|
|
45
57
|
|
|
46
58
|
/**
|
|
47
59
|
* Close the three dots dropdown
|