@saltcorn/data 1.4.0-beta.6 → 1.4.0-beta.8
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/base-plugin/actions.d.ts +132 -48
- package/dist/base-plugin/actions.d.ts.map +1 -1
- package/dist/base-plugin/actions.js +75 -3
- package/dist/base-plugin/actions.js.map +1 -1
- package/dist/base-plugin/index.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/edit.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/edit.js +10 -10
- package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
- package/dist/base-plugin/viewtemplates/list.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/list.js.map +1 -1
- package/dist/base-plugin/viewtemplates/viewable_fields.d.ts +1 -1
- package/dist/base-plugin/viewtemplates/viewable_fields.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/viewable_fields.js +4 -4
- package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
- package/dist/models/page.d.ts.map +1 -1
- package/dist/models/page.js +2 -1
- package/dist/models/page.js.map +1 -1
- package/dist/models/table.d.ts +12 -4
- package/dist/models/table.d.ts.map +1 -1
- package/dist/models/table.js +19 -7
- package/dist/models/table.js.map +1 -1
- package/dist/models/workflow_run.d.ts +1 -1
- package/dist/models/workflow_run.d.ts.map +1 -1
- package/dist/models/workflow_run.js +29 -5
- package/dist/models/workflow_run.js.map +1 -1
- package/dist/plugin-helper.d.ts.map +1 -1
- package/dist/plugin-helper.js +66 -2
- package/dist/plugin-helper.js.map +1 -1
- package/package.json +8 -8
|
@@ -1217,10 +1217,94 @@ export namespace reload_embedded_view {
|
|
|
1217
1217
|
let namespace_20: string;
|
|
1218
1218
|
export { namespace_20 as namespace };
|
|
1219
1219
|
}
|
|
1220
|
-
export namespace
|
|
1220
|
+
export namespace progress_bar {
|
|
1221
1221
|
let description_21: string;
|
|
1222
1222
|
export { description_21 as description };
|
|
1223
1223
|
let configFields_22: ({
|
|
1224
|
+
name: string;
|
|
1225
|
+
label: string;
|
|
1226
|
+
sublabel: string;
|
|
1227
|
+
type: string;
|
|
1228
|
+
class?: undefined;
|
|
1229
|
+
required?: undefined;
|
|
1230
|
+
showIf?: undefined;
|
|
1231
|
+
attributes?: undefined;
|
|
1232
|
+
} | {
|
|
1233
|
+
name: string;
|
|
1234
|
+
label: string;
|
|
1235
|
+
type: string;
|
|
1236
|
+
class: string;
|
|
1237
|
+
required: boolean;
|
|
1238
|
+
sublabel: string;
|
|
1239
|
+
showIf: {
|
|
1240
|
+
blocking: boolean;
|
|
1241
|
+
close: boolean;
|
|
1242
|
+
};
|
|
1243
|
+
attributes?: undefined;
|
|
1244
|
+
} | {
|
|
1245
|
+
name: string;
|
|
1246
|
+
label: string;
|
|
1247
|
+
type: string;
|
|
1248
|
+
sublabel: string;
|
|
1249
|
+
showIf: {
|
|
1250
|
+
blocking: boolean;
|
|
1251
|
+
close: boolean;
|
|
1252
|
+
};
|
|
1253
|
+
class?: undefined;
|
|
1254
|
+
required?: undefined;
|
|
1255
|
+
attributes?: undefined;
|
|
1256
|
+
} | {
|
|
1257
|
+
name: string;
|
|
1258
|
+
label: string;
|
|
1259
|
+
type: string;
|
|
1260
|
+
showIf: {
|
|
1261
|
+
close: boolean;
|
|
1262
|
+
blocking?: undefined;
|
|
1263
|
+
};
|
|
1264
|
+
sublabel?: undefined;
|
|
1265
|
+
class?: undefined;
|
|
1266
|
+
required?: undefined;
|
|
1267
|
+
attributes?: undefined;
|
|
1268
|
+
} | {
|
|
1269
|
+
name: string;
|
|
1270
|
+
label: string;
|
|
1271
|
+
type: string;
|
|
1272
|
+
sublabel: string;
|
|
1273
|
+
attributes: {
|
|
1274
|
+
min: number;
|
|
1275
|
+
max: number;
|
|
1276
|
+
};
|
|
1277
|
+
showIf: {
|
|
1278
|
+
close: boolean;
|
|
1279
|
+
blocking?: undefined;
|
|
1280
|
+
};
|
|
1281
|
+
class?: undefined;
|
|
1282
|
+
required?: undefined;
|
|
1283
|
+
})[];
|
|
1284
|
+
export { configFields_22 as configFields };
|
|
1285
|
+
export function run_20({ row, user, configuration: { blocking, id, close, title, message, percent, maxHeight, }, }: {
|
|
1286
|
+
row: any;
|
|
1287
|
+
user: any;
|
|
1288
|
+
configuration: {
|
|
1289
|
+
blocking: any;
|
|
1290
|
+
id: any;
|
|
1291
|
+
close: any;
|
|
1292
|
+
title: any;
|
|
1293
|
+
message: any;
|
|
1294
|
+
percent: any;
|
|
1295
|
+
maxHeight: any;
|
|
1296
|
+
};
|
|
1297
|
+
}): Promise<{
|
|
1298
|
+
eval_js: string;
|
|
1299
|
+
}>;
|
|
1300
|
+
export { run_20 as run };
|
|
1301
|
+
let namespace_21: string;
|
|
1302
|
+
export { namespace_21 as namespace };
|
|
1303
|
+
}
|
|
1304
|
+
export namespace sleep {
|
|
1305
|
+
let description_22: string;
|
|
1306
|
+
export { description_22 as description };
|
|
1307
|
+
let configFields_23: ({
|
|
1224
1308
|
name: string;
|
|
1225
1309
|
label: string;
|
|
1226
1310
|
type: string;
|
|
@@ -1235,8 +1319,8 @@ export namespace sleep {
|
|
|
1235
1319
|
type?: undefined;
|
|
1236
1320
|
required?: undefined;
|
|
1237
1321
|
})[];
|
|
1238
|
-
export {
|
|
1239
|
-
export function
|
|
1322
|
+
export { configFields_23 as configFields };
|
|
1323
|
+
export function run_21({ configuration: { seconds, sleep_where } }: {
|
|
1240
1324
|
configuration: {
|
|
1241
1325
|
seconds: any;
|
|
1242
1326
|
sleep_where: any;
|
|
@@ -1244,25 +1328,25 @@ export namespace sleep {
|
|
|
1244
1328
|
}): Promise<{
|
|
1245
1329
|
eval_js: string;
|
|
1246
1330
|
} | undefined>;
|
|
1247
|
-
export {
|
|
1248
|
-
let
|
|
1249
|
-
export {
|
|
1331
|
+
export { run_21 as run };
|
|
1332
|
+
let namespace_22: string;
|
|
1333
|
+
export { namespace_22 as namespace };
|
|
1250
1334
|
}
|
|
1251
1335
|
export namespace refresh_user_session {
|
|
1252
|
-
let
|
|
1253
|
-
export {
|
|
1254
|
-
export function
|
|
1336
|
+
let description_23: string;
|
|
1337
|
+
export { description_23 as description };
|
|
1338
|
+
export function run_22({ user, req }: {
|
|
1255
1339
|
user: any;
|
|
1256
1340
|
req: any;
|
|
1257
1341
|
}): Promise<void>;
|
|
1258
|
-
export {
|
|
1259
|
-
let
|
|
1260
|
-
export {
|
|
1342
|
+
export { run_22 as run };
|
|
1343
|
+
let namespace_23: string;
|
|
1344
|
+
export { namespace_23 as namespace };
|
|
1261
1345
|
}
|
|
1262
1346
|
export namespace notify_user {
|
|
1263
|
-
let
|
|
1264
|
-
export {
|
|
1265
|
-
export function
|
|
1347
|
+
let description_24: string;
|
|
1348
|
+
export { description_24 as description };
|
|
1349
|
+
export function configFields_24(): ({
|
|
1266
1350
|
name: string;
|
|
1267
1351
|
label: string;
|
|
1268
1352
|
type: string;
|
|
@@ -1273,20 +1357,20 @@ export namespace notify_user {
|
|
|
1273
1357
|
required: boolean;
|
|
1274
1358
|
type: string;
|
|
1275
1359
|
})[];
|
|
1276
|
-
export {
|
|
1277
|
-
export function
|
|
1360
|
+
export { configFields_24 as configFields };
|
|
1361
|
+
export function run_23({ row, user, configuration: { title, body, link, user_spec }, }: {
|
|
1278
1362
|
row: object;
|
|
1279
1363
|
configuration: object;
|
|
1280
1364
|
user: object;
|
|
1281
1365
|
}): Promise<void>;
|
|
1282
|
-
export {
|
|
1283
|
-
let
|
|
1284
|
-
export {
|
|
1366
|
+
export { run_23 as run };
|
|
1367
|
+
let namespace_24: string;
|
|
1368
|
+
export { namespace_24 as namespace };
|
|
1285
1369
|
}
|
|
1286
1370
|
export namespace convert_session_to_user {
|
|
1287
|
-
let
|
|
1288
|
-
export {
|
|
1289
|
-
export function
|
|
1371
|
+
let description_25: string;
|
|
1372
|
+
export { description_25 as description };
|
|
1373
|
+
export function configFields_25({ table }: {
|
|
1290
1374
|
table: any;
|
|
1291
1375
|
}): Promise<({
|
|
1292
1376
|
name: string;
|
|
@@ -1307,8 +1391,8 @@ export namespace convert_session_to_user {
|
|
|
1307
1391
|
input_type?: undefined;
|
|
1308
1392
|
options?: undefined;
|
|
1309
1393
|
})[]>;
|
|
1310
|
-
export {
|
|
1311
|
-
export function
|
|
1394
|
+
export { configFields_25 as configFields };
|
|
1395
|
+
export function run_24({ row, configuration: { table_name, session_field, user_field }, user, }: {
|
|
1312
1396
|
row: any;
|
|
1313
1397
|
configuration: {
|
|
1314
1398
|
table_name: any;
|
|
@@ -1317,15 +1401,15 @@ export namespace convert_session_to_user {
|
|
|
1317
1401
|
};
|
|
1318
1402
|
user: any;
|
|
1319
1403
|
}): Promise<void>;
|
|
1320
|
-
export {
|
|
1321
|
-
let
|
|
1322
|
-
export {
|
|
1404
|
+
export { run_24 as run };
|
|
1405
|
+
let namespace_25: string;
|
|
1406
|
+
export { namespace_25 as namespace };
|
|
1323
1407
|
}
|
|
1324
1408
|
export namespace train_model_instance {
|
|
1325
|
-
let
|
|
1326
|
-
export {
|
|
1409
|
+
let description_26: string;
|
|
1410
|
+
export { description_26 as description };
|
|
1327
1411
|
export function disableIf(): boolean;
|
|
1328
|
-
export function
|
|
1412
|
+
export function configFields_26(): Promise<({
|
|
1329
1413
|
name: string;
|
|
1330
1414
|
label: string;
|
|
1331
1415
|
input_type: string;
|
|
@@ -1364,8 +1448,8 @@ export namespace train_model_instance {
|
|
|
1364
1448
|
options?: undefined;
|
|
1365
1449
|
attributes?: undefined;
|
|
1366
1450
|
})[]>;
|
|
1367
|
-
export {
|
|
1368
|
-
export function
|
|
1451
|
+
export { configFields_26 as configFields };
|
|
1452
|
+
export function run_25({ row, configuration: { model_id, instance_name, where, hyperparameters }, user, }: {
|
|
1369
1453
|
row: any;
|
|
1370
1454
|
configuration: {
|
|
1371
1455
|
model_id: any;
|
|
@@ -1375,14 +1459,14 @@ export namespace train_model_instance {
|
|
|
1375
1459
|
};
|
|
1376
1460
|
user: any;
|
|
1377
1461
|
}): Promise<void>;
|
|
1378
|
-
export {
|
|
1379
|
-
let
|
|
1380
|
-
export {
|
|
1462
|
+
export { run_25 as run };
|
|
1463
|
+
let namespace_26: string;
|
|
1464
|
+
export { namespace_26 as namespace };
|
|
1381
1465
|
}
|
|
1382
1466
|
export namespace download_file_to_browser {
|
|
1383
|
-
let
|
|
1384
|
-
export {
|
|
1385
|
-
export function
|
|
1467
|
+
let description_27: string;
|
|
1468
|
+
export { description_27 as description };
|
|
1469
|
+
export function configFields_27({ table, mode }: {
|
|
1386
1470
|
table: any;
|
|
1387
1471
|
mode: any;
|
|
1388
1472
|
}): Promise<{
|
|
@@ -1400,8 +1484,8 @@ export namespace download_file_to_browser {
|
|
|
1400
1484
|
options: any;
|
|
1401
1485
|
};
|
|
1402
1486
|
}[]>;
|
|
1403
|
-
export {
|
|
1404
|
-
export function
|
|
1487
|
+
export { configFields_27 as configFields };
|
|
1488
|
+
export function run_26({ row, configuration: { filepath_expr, file_field }, user, mode, }: {
|
|
1405
1489
|
row: any;
|
|
1406
1490
|
configuration: {
|
|
1407
1491
|
filepath_expr: any;
|
|
@@ -1416,14 +1500,14 @@ export namespace download_file_to_browser {
|
|
|
1416
1500
|
blob: Buffer<ArrayBufferLike>;
|
|
1417
1501
|
};
|
|
1418
1502
|
} | undefined>;
|
|
1419
|
-
export {
|
|
1503
|
+
export { run_26 as run };
|
|
1420
1504
|
}
|
|
1421
1505
|
export namespace install_progressive_web_app {
|
|
1422
|
-
let
|
|
1423
|
-
export {
|
|
1424
|
-
export function
|
|
1425
|
-
export {
|
|
1426
|
-
export function
|
|
1506
|
+
let description_28: string;
|
|
1507
|
+
export { description_28 as description };
|
|
1508
|
+
export function configFields_28(): never[];
|
|
1509
|
+
export { configFields_28 as configFields };
|
|
1510
|
+
export function run_27({ req }: {
|
|
1427
1511
|
req: any;
|
|
1428
1512
|
}): Promise<{
|
|
1429
1513
|
eval_js: string;
|
|
@@ -1432,7 +1516,7 @@ export namespace install_progressive_web_app {
|
|
|
1432
1516
|
error: any;
|
|
1433
1517
|
eval_js?: undefined;
|
|
1434
1518
|
}>;
|
|
1435
|
-
export {
|
|
1519
|
+
export { run_27 as run };
|
|
1436
1520
|
}
|
|
1437
1521
|
export {};
|
|
1438
1522
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../base-plugin/actions.js"],"names":[],"mappings":"AA+FA;;;;;;;;;GASG;AACH;;;;;;;;;;iBAiHC;;;;;;;;;;;;;;;;IAyCiB;;;;;;;;;;;;;;;;;;;;;;;;;;;SAqBb;;IAQI,oFALF;QAAqB,GAAG,EAAhB,MAAM;QACO,aAAa,EAA1B,MAAM;QACO,IAAI,EAAjB,MAAM;KACd,GAAU,OAAO,CAAC,IAAI,CAAC,CAazB;;;;;;;IASa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqEb;;IAQI,sIALF;QAAqB,GAAG,EAAhB,MAAM;QACO,aAAa,EAA1B,MAAM;QACO,IAAI,EAAjB,MAAM;KACd,GAAU,OAAO,CAAC,IAAI,CAAC,CAwCzB;;;;;;;;IAWa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA0Db;;IAOI,iIAJF;QAAqB,GAAG,EAAhB,MAAM;QACO,IAAI,EAAjB,MAAM;KACd,GAAU,OAAO,CAAC,MAAM,CAAC,CAkE3B;;;;;;IAca;;;;;;SAeb;;IAUI,yEANF;QAAqB,GAAG,EAAhB,MAAM;QACE,KAAK,EAAb,GAAC;QACY,aAAa,EAA1B,MAAM;QACO,IAAI,EAAjB,MAAM;KACd,GAAU,OAAO,CAAC,MAAM,CAAC,CA4C3B;;;;;;;;IAgBa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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hB,MAAM;QACO,aAAa,EAA1B,MAAM;QACO,IAAI,EAAjB,MAAM;KACd,GAAU,OAAO,CAAC,IAAI,CAAC,CAgCzB;;;;;;;;IAOa;;;;;;;;;;;;;;;;;;;;UA2Cb;;IACI;;;;;;;;sBAeJ;;;;;;;;IAMU,qCAA0B;IACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA2Db;;IACI;;;;;;;;;sBA0BJ;;;;;;;;IAKa;;;;;;;;;;;;;;;;;SA4Bb;;IACI;;;;;;;;;;;;;;mBAwBJ;;;;;;IAKa,2CAAQ;;IACjB;;;;;;;;OAKJ"}
|
|
@@ -1518,15 +1518,15 @@ module.exports = {
|
|
|
1518
1518
|
"console",
|
|
1519
1519
|
"Actions",
|
|
1520
1520
|
a({
|
|
1521
|
-
href: "/admin/jsdoc/classes/_saltcorn_data.models_table.
|
|
1521
|
+
href: "/admin/jsdoc/classes/_saltcorn_data.models_table.Table.html",
|
|
1522
1522
|
target: "_blank",
|
|
1523
1523
|
}, "Table"),
|
|
1524
1524
|
a({
|
|
1525
|
-
href: "/admin/jsdoc/classes/_saltcorn_data.models_file.
|
|
1525
|
+
href: "/admin/jsdoc/classes/_saltcorn_data.models_file.File.html",
|
|
1526
1526
|
target: "_blank",
|
|
1527
1527
|
}, "File"),
|
|
1528
1528
|
a({
|
|
1529
|
-
href: "/admin/jsdoc/classes/_saltcorn_data.models_user.
|
|
1529
|
+
href: "/admin/jsdoc/classes/_saltcorn_data.models_user.User.html",
|
|
1530
1530
|
target: "_blank",
|
|
1531
1531
|
}, "User"),
|
|
1532
1532
|
...(table ? ["table"] : []),
|
|
@@ -1948,6 +1948,78 @@ module.exports = {
|
|
|
1948
1948
|
},
|
|
1949
1949
|
namespace: "User interface",
|
|
1950
1950
|
},
|
|
1951
|
+
progress_bar: {
|
|
1952
|
+
description: "Display or update progress messages and/or progress bar",
|
|
1953
|
+
configFields: [
|
|
1954
|
+
{
|
|
1955
|
+
name: "blocking",
|
|
1956
|
+
label: "Blocking",
|
|
1957
|
+
sublabel: "Display progress in a blocking popup modal, If not checked, display as toast",
|
|
1958
|
+
type: "Bool",
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
name: "close",
|
|
1962
|
+
label: "Close",
|
|
1963
|
+
sublabel: "Close this progress window",
|
|
1964
|
+
type: "Bool",
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
name: "id",
|
|
1968
|
+
label: "Identifier",
|
|
1969
|
+
type: "String",
|
|
1970
|
+
class: "validate-identifier",
|
|
1971
|
+
required: true,
|
|
1972
|
+
sublabel: "A valid JavaScript identifier for updating existing progress toasts",
|
|
1973
|
+
showIf: { blocking: false, close: false },
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
name: "maxHeight",
|
|
1977
|
+
label: "max-height (px)",
|
|
1978
|
+
type: "Integer",
|
|
1979
|
+
sublabel: "If set, progress messages will be added to scrolling container with this maximum height",
|
|
1980
|
+
showIf: { blocking: true, close: false },
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
name: "title",
|
|
1984
|
+
label: "Title",
|
|
1985
|
+
type: "String",
|
|
1986
|
+
showIf: { close: false },
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
name: "message",
|
|
1990
|
+
label: "Message",
|
|
1991
|
+
type: "String",
|
|
1992
|
+
showIf: { close: false },
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
name: "percent",
|
|
1996
|
+
label: "Percent",
|
|
1997
|
+
type: "Integer",
|
|
1998
|
+
sublabel: "Optional. 0-100",
|
|
1999
|
+
attributes: {
|
|
2000
|
+
min: 0,
|
|
2001
|
+
max: 100,
|
|
2002
|
+
},
|
|
2003
|
+
showIf: { close: false },
|
|
2004
|
+
},
|
|
2005
|
+
],
|
|
2006
|
+
run: async ({ row, user, configuration: { blocking, id, close, title, message, percent, maxHeight, }, }) => {
|
|
2007
|
+
const msg = interpolate(message, row, user, "progress_bar message");
|
|
2008
|
+
const title1 = interpolate(title, row, user, "progress_bar title");
|
|
2009
|
+
const id1 = interpolate(id, row, user, "progress_bar id");
|
|
2010
|
+
let eval_js = `progress_toast_update(${JSON.stringify({
|
|
2011
|
+
blocking,
|
|
2012
|
+
id: id1,
|
|
2013
|
+
close,
|
|
2014
|
+
message: msg,
|
|
2015
|
+
title: title1,
|
|
2016
|
+
percent,
|
|
2017
|
+
maxHeight,
|
|
2018
|
+
})})`;
|
|
2019
|
+
return { eval_js };
|
|
2020
|
+
},
|
|
2021
|
+
namespace: "User interface",
|
|
2022
|
+
},
|
|
1951
2023
|
sleep: {
|
|
1952
2024
|
description: "Delay for a set number of seconds",
|
|
1953
2025
|
configFields: [
|