@saltcorn/data 1.5.0-beta.18 → 1.5.0-beta.19

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.
@@ -884,10 +884,38 @@ export namespace form_action {
884
884
  let namespace_13: string;
885
885
  export { namespace_13 as namespace };
886
886
  }
887
- export namespace toast {
887
+ export namespace copy_to_clipboard {
888
888
  let description_15: string;
889
889
  export { description_15 as description };
890
- let configFields_15: ({
890
+ let requireRow_5: boolean;
891
+ export { requireRow_5 as requireRow };
892
+ let configFields_15: {
893
+ name: string;
894
+ label: string;
895
+ type: string;
896
+ required: boolean;
897
+ }[];
898
+ export { configFields_15 as configFields };
899
+ export function run_14({ row, table, user, req, configuration: { text_template }, ...rest }: {
900
+ [x: string]: any;
901
+ row: any;
902
+ table: any;
903
+ user: any;
904
+ req: any;
905
+ configuration: {
906
+ text_template: any;
907
+ };
908
+ }): Promise<{
909
+ eval_js: string;
910
+ }>;
911
+ export { run_14 as run };
912
+ let namespace_14: string;
913
+ export { namespace_14 as namespace };
914
+ }
915
+ export namespace toast {
916
+ let description_16: string;
917
+ export { description_16 as description };
918
+ let configFields_16: ({
891
919
  name: string;
892
920
  label: string;
893
921
  type: string;
@@ -918,8 +946,8 @@ export namespace toast {
918
946
  attributes?: undefined;
919
947
  sublabel?: undefined;
920
948
  })[];
921
- export { configFields_15 as configFields };
922
- export function run_14({ row, user, configuration: { type, notify_type, text, title, remove_delay }, }: {
949
+ export { configFields_16 as configFields };
950
+ export function run_15({ row, user, configuration: { type, notify_type, text, title, remove_delay }, }: {
923
951
  row: any;
924
952
  user: any;
925
953
  configuration: {
@@ -956,17 +984,17 @@ export namespace toast {
956
984
  toast_title?: undefined;
957
985
  notify: string;
958
986
  }>;
959
- export { run_14 as run };
960
- let namespace_14: string;
961
- export { namespace_14 as namespace };
987
+ export { run_15 as run };
988
+ let namespace_15: string;
989
+ export { namespace_15 as namespace };
962
990
  }
963
991
  export namespace run_js_code {
964
- let description_16: string;
965
- export { description_16 as description };
992
+ let description_17: string;
993
+ export { description_17 as description };
966
994
  export namespace configFormOptions {
967
995
  let formStyle: string;
968
996
  }
969
- export function configFields_16({ table, when_trigger }: {
997
+ export function configFields_17({ table, when_trigger }: {
970
998
  table: any;
971
999
  when_trigger: any;
972
1000
  }): Promise<({
@@ -1017,15 +1045,15 @@ export namespace run_js_code {
1017
1045
  help?: undefined;
1018
1046
  showIf?: undefined;
1019
1047
  })[]>;
1020
- export { configFields_16 as configFields };
1048
+ export { configFields_17 as configFields };
1021
1049
  export { run_code as run };
1022
- let namespace_15: string;
1023
- export { namespace_15 as namespace };
1050
+ let namespace_16: string;
1051
+ export { namespace_16 as namespace };
1024
1052
  }
1025
1053
  export namespace run_js_code_in_field {
1026
- let description_17: string;
1027
- export { description_17 as description };
1028
- export function configFields_17({ table, mode }: {
1054
+ let description_18: string;
1055
+ export { description_18 as description };
1056
+ export function configFields_18({ table, mode }: {
1029
1057
  table: any;
1030
1058
  mode: any;
1031
1059
  }): Promise<({
@@ -1065,24 +1093,24 @@ export namespace run_js_code_in_field {
1065
1093
  required?: undefined;
1066
1094
  attributes?: undefined;
1067
1095
  })[]>;
1068
- export { configFields_17 as configFields };
1069
- let requireRow_5: boolean;
1070
- export { requireRow_5 as requireRow };
1071
- let run_15: base;
1072
- export { run_15 as run };
1073
- let namespace_16: string;
1074
- export { namespace_16 as namespace };
1096
+ export { configFields_18 as configFields };
1097
+ let requireRow_6: boolean;
1098
+ export { requireRow_6 as requireRow };
1099
+ let run_16: base;
1100
+ export { run_16 as run };
1101
+ let namespace_17: string;
1102
+ export { namespace_17 as namespace };
1075
1103
  }
1076
1104
  export namespace duplicate_row_prefill_edit {
1077
- export function configFields_18({ table }: {
1105
+ export function configFields_19({ table }: {
1078
1106
  table: any;
1079
1107
  }): Promise<any[]>;
1080
- export { configFields_18 as configFields };
1108
+ export { configFields_19 as configFields };
1081
1109
  let disableInWorkflow_4: boolean;
1082
1110
  export { disableInWorkflow_4 as disableInWorkflow };
1083
- let requireRow_6: boolean;
1084
- export { requireRow_6 as requireRow };
1085
- export function run_16({ row, table, configuration: { viewname, ...flds }, user }: {
1111
+ let requireRow_7: boolean;
1112
+ export { requireRow_7 as requireRow };
1113
+ export function run_17({ row, table, configuration: { viewname, ...flds }, user }: {
1086
1114
  row: any;
1087
1115
  table: any;
1088
1116
  configuration: {
@@ -1093,14 +1121,14 @@ export namespace duplicate_row_prefill_edit {
1093
1121
  }): Promise<{
1094
1122
  goto: string;
1095
1123
  }>;
1096
- export { run_16 as run };
1097
- let namespace_17: string;
1098
- export { namespace_17 as namespace };
1124
+ export { run_17 as run };
1125
+ let namespace_18: string;
1126
+ export { namespace_18 as namespace };
1099
1127
  }
1100
1128
  export namespace set_user_language {
1101
- let description_18: string;
1102
- export { description_18 as description };
1103
- export function configFields_19({ table }: {
1129
+ let description_19: string;
1130
+ export { description_19 as description };
1131
+ export function configFields_20({ table }: {
1104
1132
  table: any;
1105
1133
  }): Promise<{
1106
1134
  name: string;
@@ -1113,8 +1141,8 @@ export namespace set_user_language {
1113
1141
  }[];
1114
1142
  };
1115
1143
  }[]>;
1116
- export { configFields_19 as configFields };
1117
- export function run_17({ configuration: { language }, user, req, res }: {
1144
+ export { configFields_20 as configFields };
1145
+ export function run_18({ configuration: { language }, user, req, res }: {
1118
1146
  configuration: {
1119
1147
  language: any;
1120
1148
  };
@@ -1124,14 +1152,14 @@ export namespace set_user_language {
1124
1152
  }): Promise<{
1125
1153
  reload_page: boolean;
1126
1154
  }>;
1127
- export { run_17 as run };
1128
- let namespace_18: string;
1129
- export { namespace_18 as namespace };
1155
+ export { run_18 as run };
1156
+ let namespace_19: string;
1157
+ export { namespace_19 as namespace };
1130
1158
  }
1131
1159
  export namespace sync_table_from_external {
1132
- let description_19: string;
1133
- export { description_19 as description };
1134
- export function configFields_20({ table }: {
1160
+ let description_20: string;
1161
+ export { description_20 as description };
1162
+ export function configFields_21({ table }: {
1135
1163
  table: any;
1136
1164
  }): Promise<({
1137
1165
  name: string;
@@ -1206,21 +1234,21 @@ export namespace sync_table_from_external {
1206
1234
  required?: undefined;
1207
1235
  default?: undefined;
1208
1236
  })[]>;
1209
- export { configFields_20 as configFields };
1210
- export function run_18({ configuration: { row_expr, table_src, table_dest, pk_field, delete_rows, match_field_names, where, }, user, ...rest }: {
1237
+ export { configFields_21 as configFields };
1238
+ export function run_19({ configuration: { row_expr, table_src, table_dest, pk_field, delete_rows, match_field_names, where, }, user, ...rest }: {
1211
1239
  row: object;
1212
1240
  configuration: object;
1213
1241
  user: object;
1214
1242
  rest: any[];
1215
1243
  }): Promise<object | boolean>;
1216
- export { run_18 as run };
1217
- let namespace_19: string;
1218
- export { namespace_19 as namespace };
1244
+ export { run_19 as run };
1245
+ let namespace_20: string;
1246
+ export { namespace_20 as namespace };
1219
1247
  }
1220
1248
  export namespace reload_embedded_view {
1221
- let description_20: string;
1222
- export { description_20 as description };
1223
- export function configFields_21(): Promise<({
1249
+ let description_21: string;
1250
+ export { description_21 as description };
1251
+ export function configFields_22(): Promise<({
1224
1252
  name: string;
1225
1253
  label: string;
1226
1254
  class: string;
@@ -1247,8 +1275,8 @@ export namespace reload_embedded_view {
1247
1275
  required?: undefined;
1248
1276
  attributes?: undefined;
1249
1277
  })[]>;
1250
- export { configFields_21 as configFields };
1251
- export function run_19({ row, user, configuration: { view, new_state_fml, interval }, }: {
1278
+ export { configFields_22 as configFields };
1279
+ export function run_20({ row, user, configuration: { view, new_state_fml, interval }, }: {
1252
1280
  row: any;
1253
1281
  user: any;
1254
1282
  configuration: {
@@ -1259,14 +1287,14 @@ export namespace reload_embedded_view {
1259
1287
  }): Promise<{
1260
1288
  eval_js: string;
1261
1289
  }>;
1262
- export { run_19 as run };
1263
- let namespace_20: string;
1264
- export { namespace_20 as namespace };
1290
+ export { run_20 as run };
1291
+ let namespace_21: string;
1292
+ export { namespace_21 as namespace };
1265
1293
  }
1266
1294
  export namespace progress_bar {
1267
- let description_21: string;
1268
- export { description_21 as description };
1269
- let configFields_22: ({
1295
+ let description_22: string;
1296
+ export { description_22 as description };
1297
+ let configFields_23: ({
1270
1298
  name: string;
1271
1299
  label: string;
1272
1300
  sublabel: string;
@@ -1330,8 +1358,8 @@ export namespace progress_bar {
1330
1358
  class?: undefined;
1331
1359
  required?: undefined;
1332
1360
  })[];
1333
- export { configFields_22 as configFields };
1334
- export function run_20({ row, user, configuration: { blocking, id, close, title, message, percent, maxHeight, popupWidth, }, req, }: {
1361
+ export { configFields_23 as configFields };
1362
+ export function run_21({ row, user, configuration: { blocking, id, close, title, message, percent, maxHeight, popupWidth, }, req, }: {
1335
1363
  row: any;
1336
1364
  user: any;
1337
1365
  configuration: {
@@ -1358,14 +1386,14 @@ export namespace progress_bar {
1358
1386
  popupWidth: any;
1359
1387
  };
1360
1388
  }>;
1361
- export { run_20 as run };
1362
- let namespace_21: string;
1363
- export { namespace_21 as namespace };
1389
+ export { run_21 as run };
1390
+ let namespace_22: string;
1391
+ export { namespace_22 as namespace };
1364
1392
  }
1365
1393
  export namespace sleep {
1366
- let description_22: string;
1367
- export { description_22 as description };
1368
- let configFields_23: ({
1394
+ let description_23: string;
1395
+ export { description_23 as description };
1396
+ let configFields_24: ({
1369
1397
  name: string;
1370
1398
  label: string;
1371
1399
  type: string;
@@ -1380,8 +1408,8 @@ export namespace sleep {
1380
1408
  type?: undefined;
1381
1409
  required?: undefined;
1382
1410
  })[];
1383
- export { configFields_23 as configFields };
1384
- export function run_21({ configuration: { seconds, sleep_where } }: {
1411
+ export { configFields_24 as configFields };
1412
+ export function run_22({ configuration: { seconds, sleep_where } }: {
1385
1413
  configuration: {
1386
1414
  seconds: any;
1387
1415
  sleep_where: any;
@@ -1389,25 +1417,25 @@ export namespace sleep {
1389
1417
  }): Promise<{
1390
1418
  eval_js: string;
1391
1419
  } | undefined>;
1392
- export { run_21 as run };
1393
- let namespace_22: string;
1394
- export { namespace_22 as namespace };
1420
+ export { run_22 as run };
1421
+ let namespace_23: string;
1422
+ export { namespace_23 as namespace };
1395
1423
  }
1396
1424
  export namespace refresh_user_session {
1397
- let description_23: string;
1398
- export { description_23 as description };
1399
- export function run_22({ user, req }: {
1425
+ let description_24: string;
1426
+ export { description_24 as description };
1427
+ export function run_23({ user, req }: {
1400
1428
  user: any;
1401
1429
  req: any;
1402
1430
  }): Promise<void>;
1403
- export { run_22 as run };
1404
- let namespace_23: string;
1405
- export { namespace_23 as namespace };
1431
+ export { run_23 as run };
1432
+ let namespace_24: string;
1433
+ export { namespace_24 as namespace };
1406
1434
  }
1407
1435
  export namespace notify_user {
1408
- let description_24: string;
1409
- export { description_24 as description };
1410
- export function configFields_24(): ({
1436
+ let description_25: string;
1437
+ export { description_25 as description };
1438
+ export function configFields_25(): ({
1411
1439
  name: string;
1412
1440
  label: string;
1413
1441
  type: string;
@@ -1418,20 +1446,20 @@ export namespace notify_user {
1418
1446
  required: boolean;
1419
1447
  type: string;
1420
1448
  })[];
1421
- export { configFields_24 as configFields };
1422
- export function run_23({ row, user, configuration: { title, body, link, user_spec }, }: {
1449
+ export { configFields_25 as configFields };
1450
+ export function run_24({ row, user, configuration: { title, body, link, user_spec }, }: {
1423
1451
  row: object;
1424
1452
  configuration: object;
1425
1453
  user: object;
1426
1454
  }): Promise<void>;
1427
- export { run_23 as run };
1428
- let namespace_24: string;
1429
- export { namespace_24 as namespace };
1455
+ export { run_24 as run };
1456
+ let namespace_25: string;
1457
+ export { namespace_25 as namespace };
1430
1458
  }
1431
1459
  export namespace convert_session_to_user {
1432
- let description_25: string;
1433
- export { description_25 as description };
1434
- export function configFields_25({ table }: {
1460
+ let description_26: string;
1461
+ export { description_26 as description };
1462
+ export function configFields_26({ table }: {
1435
1463
  table: any;
1436
1464
  }): Promise<({
1437
1465
  name: string;
@@ -1452,8 +1480,8 @@ export namespace convert_session_to_user {
1452
1480
  input_type?: undefined;
1453
1481
  options?: undefined;
1454
1482
  })[]>;
1455
- export { configFields_25 as configFields };
1456
- export function run_24({ row, configuration: { table_name, session_field, user_field }, user, }: {
1483
+ export { configFields_26 as configFields };
1484
+ export function run_25({ row, configuration: { table_name, session_field, user_field }, user, }: {
1457
1485
  row: any;
1458
1486
  configuration: {
1459
1487
  table_name: any;
@@ -1462,15 +1490,15 @@ export namespace convert_session_to_user {
1462
1490
  };
1463
1491
  user: any;
1464
1492
  }): Promise<void>;
1465
- export { run_24 as run };
1466
- let namespace_25: string;
1467
- export { namespace_25 as namespace };
1493
+ export { run_25 as run };
1494
+ let namespace_26: string;
1495
+ export { namespace_26 as namespace };
1468
1496
  }
1469
1497
  export namespace train_model_instance {
1470
- let description_26: string;
1471
- export { description_26 as description };
1498
+ let description_27: string;
1499
+ export { description_27 as description };
1472
1500
  export function disableIf(): boolean;
1473
- export function configFields_26(): Promise<({
1501
+ export function configFields_27(): Promise<({
1474
1502
  name: string;
1475
1503
  label: string;
1476
1504
  input_type: string;
@@ -1528,8 +1556,8 @@ export namespace train_model_instance {
1528
1556
  options?: undefined;
1529
1557
  attributes?: undefined;
1530
1558
  })[]>;
1531
- export { configFields_26 as configFields };
1532
- export function run_25({ row, configuration: { model_id, instance_name, where, hyperparameters }, user, }: {
1559
+ export { configFields_27 as configFields };
1560
+ export function run_26({ row, configuration: { model_id, instance_name, where, hyperparameters }, user, }: {
1533
1561
  row: any;
1534
1562
  configuration: {
1535
1563
  model_id: any;
@@ -1539,14 +1567,14 @@ export namespace train_model_instance {
1539
1567
  };
1540
1568
  user: any;
1541
1569
  }): Promise<void>;
1542
- export { run_25 as run };
1543
- let namespace_26: string;
1544
- export { namespace_26 as namespace };
1570
+ export { run_26 as run };
1571
+ let namespace_27: string;
1572
+ export { namespace_27 as namespace };
1545
1573
  }
1546
1574
  export namespace download_file_to_browser {
1547
- let description_27: string;
1548
- export { description_27 as description };
1549
- export function configFields_27({ table, mode }: {
1575
+ let description_28: string;
1576
+ export { description_28 as description };
1577
+ export function configFields_28({ table, mode }: {
1550
1578
  table: any;
1551
1579
  mode: any;
1552
1580
  }): Promise<{
@@ -1564,8 +1592,8 @@ export namespace download_file_to_browser {
1564
1592
  options: any;
1565
1593
  };
1566
1594
  }[]>;
1567
- export { configFields_27 as configFields };
1568
- export function run_26({ row, configuration: { filepath_expr, file_field }, user, mode, }: {
1595
+ export { configFields_28 as configFields };
1596
+ export function run_27({ row, configuration: { filepath_expr, file_field }, user, mode, }: {
1569
1597
  row: any;
1570
1598
  configuration: {
1571
1599
  filepath_expr: any;
@@ -1580,14 +1608,14 @@ export namespace download_file_to_browser {
1580
1608
  blob: Buffer<ArrayBufferLike>;
1581
1609
  };
1582
1610
  } | undefined>;
1583
- export { run_26 as run };
1611
+ export { run_27 as run };
1584
1612
  }
1585
1613
  export namespace install_progressive_web_app {
1586
- let description_28: string;
1587
- export { description_28 as description };
1588
- export function configFields_28(): never[];
1589
- export { configFields_28 as configFields };
1590
- export function run_27({ req }: {
1614
+ let description_29: string;
1615
+ export { description_29 as description };
1616
+ export function configFields_29(): never[];
1617
+ export { configFields_29 as configFields };
1618
+ export function run_28({ req }: {
1591
1619
  req: any;
1592
1620
  }): Promise<{
1593
1621
  eval_js: string;
@@ -1596,7 +1624,7 @@ export namespace install_progressive_web_app {
1596
1624
  error: any;
1597
1625
  eval_js?: undefined;
1598
1626
  }>;
1599
- export { run_27 as run };
1627
+ export { run_28 as run };
1600
1628
  }
1601
1629
  export {};
1602
1630
  //# sourceMappingURL=actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../base-plugin/actions.js"],"names":[],"mappings":"AAkGA;;;;;;;;;GASG;AACH;;;;;;;;;;iBAmIC;;;;;;;;;;;;;;;;IAyCiB;;;;;;;;;;;;;;;;;;;;;;;;;;;SAqBb;;IAQI,oFALF;QAAqB,GAAG,EAAhB,MAAM;QACO,aAAa,EAA1B,MAAM;QACO,IAAI,EAAjB,MAAM;KACd,GAAU,OAAO,CAAC,IAAI,CAAC,CAazB;;;;;;;IASa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;UA+Db;;IACI;;;;;;;;;sBA0BJ;;;;;;;;IAKa;;;;;;;;;;;;;;;;;SA4Bb;;IACI;;;;;;;;;;;;;;mBAwBJ;;;;;;IAKa,2CAAQ;;IACjB;;;;;;;;OAKJ"}
@@ -1529,6 +1529,29 @@ module.exports = {
1529
1529
  },
1530
1530
  namespace: "User interface",
1531
1531
  },
1532
+ copy_to_clipboard: {
1533
+ /**
1534
+ * @param {object} opts
1535
+ * @param {*} opts.table
1536
+ * @returns {Promise<object[]>}
1537
+ */
1538
+ description: "Copy text based on the current row to clipboard",
1539
+ requireRow: true,
1540
+ configFields: [
1541
+ {
1542
+ name: "text_template",
1543
+ label: "Text template",
1544
+ type: "String",
1545
+ required: true,
1546
+ },
1547
+ ],
1548
+ run: async ({ row, table, user, req, configuration: { text_template }, ...rest }) => {
1549
+ return {
1550
+ eval_js: `navigator.clipboard.writeText(${JSON.stringify(interpolate(text_template || "", row || {}, user))})`,
1551
+ };
1552
+ },
1553
+ namespace: "User interface",
1554
+ },
1532
1555
  toast: {
1533
1556
  /**
1534
1557
  * @param {object} opts