@saltcorn/data 1.4.0-beta.7 → 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.
Files changed (36) hide show
  1. package/dist/base-plugin/actions.d.ts +132 -49
  2. package/dist/base-plugin/actions.d.ts.map +1 -1
  3. package/dist/base-plugin/actions.js +75 -4
  4. package/dist/base-plugin/actions.js.map +1 -1
  5. package/dist/base-plugin/index.d.ts.map +1 -1
  6. package/dist/base-plugin/viewtemplates/edit.d.ts.map +1 -1
  7. package/dist/base-plugin/viewtemplates/edit.js +1 -9
  8. package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
  9. package/dist/base-plugin/viewtemplates/list.d.ts.map +1 -1
  10. package/dist/base-plugin/viewtemplates/list.js +0 -8
  11. package/dist/base-plugin/viewtemplates/list.js.map +1 -1
  12. package/dist/base-plugin/viewtemplates/show.d.ts.map +1 -1
  13. package/dist/base-plugin/viewtemplates/show.js +0 -8
  14. package/dist/base-plugin/viewtemplates/show.js.map +1 -1
  15. package/dist/base-plugin/viewtemplates/viewable_fields.d.ts +1 -1
  16. package/dist/base-plugin/viewtemplates/viewable_fields.d.ts.map +1 -1
  17. package/dist/base-plugin/viewtemplates/viewable_fields.js +4 -4
  18. package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
  19. package/dist/models/page.d.ts.map +1 -1
  20. package/dist/models/page.js +2 -1
  21. package/dist/models/page.js.map +1 -1
  22. package/dist/models/table.d.ts +1 -0
  23. package/dist/models/table.d.ts.map +1 -1
  24. package/dist/models/table.js +6 -1
  25. package/dist/models/table.js.map +1 -1
  26. package/dist/models/trigger.d.ts.map +1 -1
  27. package/dist/models/trigger.js +3 -42
  28. package/dist/models/trigger.js.map +1 -1
  29. package/dist/models/workflow_run.d.ts +1 -1
  30. package/dist/models/workflow_run.d.ts.map +1 -1
  31. package/dist/models/workflow_run.js +12 -5
  32. package/dist/models/workflow_run.js.map +1 -1
  33. package/dist/plugin-helper.d.ts.map +1 -1
  34. package/dist/plugin-helper.js +27 -17
  35. package/dist/plugin-helper.js.map +1 -1
  36. package/package.json +8 -8
@@ -923,7 +923,6 @@ export namespace toast {
923
923
  export { namespace_14 as namespace };
924
924
  }
925
925
  export namespace run_js_code {
926
- export let supportsAsync: boolean;
927
926
  let description_16: string;
928
927
  export { description_16 as description };
929
928
  export namespace configFormOptions {
@@ -1218,10 +1217,94 @@ export namespace reload_embedded_view {
1218
1217
  let namespace_20: string;
1219
1218
  export { namespace_20 as namespace };
1220
1219
  }
1221
- export namespace sleep {
1220
+ export namespace progress_bar {
1222
1221
  let description_21: string;
1223
1222
  export { description_21 as description };
1224
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: ({
1225
1308
  name: string;
1226
1309
  label: string;
1227
1310
  type: string;
@@ -1236,8 +1319,8 @@ export namespace sleep {
1236
1319
  type?: undefined;
1237
1320
  required?: undefined;
1238
1321
  })[];
1239
- export { configFields_22 as configFields };
1240
- export function run_20({ configuration: { seconds, sleep_where } }: {
1322
+ export { configFields_23 as configFields };
1323
+ export function run_21({ configuration: { seconds, sleep_where } }: {
1241
1324
  configuration: {
1242
1325
  seconds: any;
1243
1326
  sleep_where: any;
@@ -1245,25 +1328,25 @@ export namespace sleep {
1245
1328
  }): Promise<{
1246
1329
  eval_js: string;
1247
1330
  } | undefined>;
1248
- export { run_20 as run };
1249
- let namespace_21: string;
1250
- export { namespace_21 as namespace };
1331
+ export { run_21 as run };
1332
+ let namespace_22: string;
1333
+ export { namespace_22 as namespace };
1251
1334
  }
1252
1335
  export namespace refresh_user_session {
1253
- let description_22: string;
1254
- export { description_22 as description };
1255
- export function run_21({ user, req }: {
1336
+ let description_23: string;
1337
+ export { description_23 as description };
1338
+ export function run_22({ user, req }: {
1256
1339
  user: any;
1257
1340
  req: any;
1258
1341
  }): Promise<void>;
1259
- export { run_21 as run };
1260
- let namespace_22: string;
1261
- export { namespace_22 as namespace };
1342
+ export { run_22 as run };
1343
+ let namespace_23: string;
1344
+ export { namespace_23 as namespace };
1262
1345
  }
1263
1346
  export namespace notify_user {
1264
- let description_23: string;
1265
- export { description_23 as description };
1266
- export function configFields_23(): ({
1347
+ let description_24: string;
1348
+ export { description_24 as description };
1349
+ export function configFields_24(): ({
1267
1350
  name: string;
1268
1351
  label: string;
1269
1352
  type: string;
@@ -1274,20 +1357,20 @@ export namespace notify_user {
1274
1357
  required: boolean;
1275
1358
  type: string;
1276
1359
  })[];
1277
- export { configFields_23 as configFields };
1278
- export function run_22({ row, user, configuration: { title, body, link, user_spec }, }: {
1360
+ export { configFields_24 as configFields };
1361
+ export function run_23({ row, user, configuration: { title, body, link, user_spec }, }: {
1279
1362
  row: object;
1280
1363
  configuration: object;
1281
1364
  user: object;
1282
1365
  }): Promise<void>;
1283
- export { run_22 as run };
1284
- let namespace_23: string;
1285
- export { namespace_23 as namespace };
1366
+ export { run_23 as run };
1367
+ let namespace_24: string;
1368
+ export { namespace_24 as namespace };
1286
1369
  }
1287
1370
  export namespace convert_session_to_user {
1288
- let description_24: string;
1289
- export { description_24 as description };
1290
- export function configFields_24({ table }: {
1371
+ let description_25: string;
1372
+ export { description_25 as description };
1373
+ export function configFields_25({ table }: {
1291
1374
  table: any;
1292
1375
  }): Promise<({
1293
1376
  name: string;
@@ -1308,8 +1391,8 @@ export namespace convert_session_to_user {
1308
1391
  input_type?: undefined;
1309
1392
  options?: undefined;
1310
1393
  })[]>;
1311
- export { configFields_24 as configFields };
1312
- export function run_23({ row, configuration: { table_name, session_field, user_field }, user, }: {
1394
+ export { configFields_25 as configFields };
1395
+ export function run_24({ row, configuration: { table_name, session_field, user_field }, user, }: {
1313
1396
  row: any;
1314
1397
  configuration: {
1315
1398
  table_name: any;
@@ -1318,15 +1401,15 @@ export namespace convert_session_to_user {
1318
1401
  };
1319
1402
  user: any;
1320
1403
  }): Promise<void>;
1321
- export { run_23 as run };
1322
- let namespace_24: string;
1323
- export { namespace_24 as namespace };
1404
+ export { run_24 as run };
1405
+ let namespace_25: string;
1406
+ export { namespace_25 as namespace };
1324
1407
  }
1325
1408
  export namespace train_model_instance {
1326
- let description_25: string;
1327
- export { description_25 as description };
1409
+ let description_26: string;
1410
+ export { description_26 as description };
1328
1411
  export function disableIf(): boolean;
1329
- export function configFields_25(): Promise<({
1412
+ export function configFields_26(): Promise<({
1330
1413
  name: string;
1331
1414
  label: string;
1332
1415
  input_type: string;
@@ -1365,8 +1448,8 @@ export namespace train_model_instance {
1365
1448
  options?: undefined;
1366
1449
  attributes?: undefined;
1367
1450
  })[]>;
1368
- export { configFields_25 as configFields };
1369
- export function run_24({ row, configuration: { model_id, instance_name, where, hyperparameters }, user, }: {
1451
+ export { configFields_26 as configFields };
1452
+ export function run_25({ row, configuration: { model_id, instance_name, where, hyperparameters }, user, }: {
1370
1453
  row: any;
1371
1454
  configuration: {
1372
1455
  model_id: any;
@@ -1376,14 +1459,14 @@ export namespace train_model_instance {
1376
1459
  };
1377
1460
  user: any;
1378
1461
  }): Promise<void>;
1379
- export { run_24 as run };
1380
- let namespace_25: string;
1381
- export { namespace_25 as namespace };
1462
+ export { run_25 as run };
1463
+ let namespace_26: string;
1464
+ export { namespace_26 as namespace };
1382
1465
  }
1383
1466
  export namespace download_file_to_browser {
1384
- let description_26: string;
1385
- export { description_26 as description };
1386
- export function configFields_26({ table, mode }: {
1467
+ let description_27: string;
1468
+ export { description_27 as description };
1469
+ export function configFields_27({ table, mode }: {
1387
1470
  table: any;
1388
1471
  mode: any;
1389
1472
  }): Promise<{
@@ -1401,8 +1484,8 @@ export namespace download_file_to_browser {
1401
1484
  options: any;
1402
1485
  };
1403
1486
  }[]>;
1404
- export { configFields_26 as configFields };
1405
- export function run_25({ row, configuration: { filepath_expr, file_field }, user, mode, }: {
1487
+ export { configFields_27 as configFields };
1488
+ export function run_26({ row, configuration: { filepath_expr, file_field }, user, mode, }: {
1406
1489
  row: any;
1407
1490
  configuration: {
1408
1491
  filepath_expr: any;
@@ -1417,14 +1500,14 @@ export namespace download_file_to_browser {
1417
1500
  blob: Buffer<ArrayBufferLike>;
1418
1501
  };
1419
1502
  } | undefined>;
1420
- export { run_25 as run };
1503
+ export { run_26 as run };
1421
1504
  }
1422
1505
  export namespace install_progressive_web_app {
1423
- let description_27: string;
1424
- export { description_27 as description };
1425
- export function configFields_27(): never[];
1426
- export { configFields_27 as configFields };
1427
- export function run_26({ req }: {
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 }: {
1428
1511
  req: any;
1429
1512
  }): Promise<{
1430
1513
  eval_js: string;
@@ -1433,7 +1516,7 @@ export namespace install_progressive_web_app {
1433
1516
  error: any;
1434
1517
  eval_js?: undefined;
1435
1518
  }>;
1436
- export { run_26 as run };
1519
+ export { run_27 as run };
1437
1520
  }
1438
1521
  export {};
1439
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,GA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CA8FnC;;;;;;;;IAKa;;;;;;;;;;;;;;;;;;;;;;;;;;UAyBb;;IACI;;;;;;;;;;OAkBJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8DI;;;;;;;;;;;;;;OA0BJ;;;;;;;;;;;;;;;;;;;;;;;;IAoBI;;;;;;;mBAUJ;;;;;;;;IAMI;;;sBAKJ;;;;;;;;IAKa;;;;;;;;;;SAsBb;;IAQI,wFALF;QAAqB,GAAG,EAAhB,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"}
@@ -1506,7 +1506,6 @@ module.exports = {
1506
1506
  * @param {object} opts.table
1507
1507
  * @returns {Promise<object[]>}
1508
1508
  */
1509
- supportsAsync: true,
1510
1509
  description: "Run arbitrary JavaScript code",
1511
1510
  configFormOptions: {
1512
1511
  formStyle: "vert",
@@ -1519,15 +1518,15 @@ module.exports = {
1519
1518
  "console",
1520
1519
  "Actions",
1521
1520
  a({
1522
- href: "/admin/jsdoc/classes/_saltcorn_data.models_table.export_.html",
1521
+ href: "/admin/jsdoc/classes/_saltcorn_data.models_table.Table.html",
1523
1522
  target: "_blank",
1524
1523
  }, "Table"),
1525
1524
  a({
1526
- href: "/admin/jsdoc/classes/_saltcorn_data.models_file.export_.html",
1525
+ href: "/admin/jsdoc/classes/_saltcorn_data.models_file.File.html",
1527
1526
  target: "_blank",
1528
1527
  }, "File"),
1529
1528
  a({
1530
- href: "/admin/jsdoc/classes/_saltcorn_data.models_user.export_.html",
1529
+ href: "/admin/jsdoc/classes/_saltcorn_data.models_user.User.html",
1531
1530
  target: "_blank",
1532
1531
  }, "User"),
1533
1532
  ...(table ? ["table"] : []),
@@ -1949,6 +1948,78 @@ module.exports = {
1949
1948
  },
1950
1949
  namespace: "User interface",
1951
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
+ },
1952
2023
  sleep: {
1953
2024
  description: "Delay for a set number of seconds",
1954
2025
  configFields: [