@saltcorn/data 1.6.0-rc.1 → 1.6.0-rc.3
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 +1 -1
- package/dist/base-plugin/actions.d.ts.map +1 -1
- package/dist/base-plugin/actions.js +17 -23
- package/dist/base-plugin/actions.js.map +1 -1
- package/dist/base-plugin/index.d.ts +83 -1
- package/dist/base-plugin/index.d.ts.map +1 -1
- package/dist/base-plugin/types.d.ts +82 -0
- package/dist/base-plugin/types.d.ts.map +1 -1
- package/dist/base-plugin/types.js +31 -2
- package/dist/base-plugin/types.js.map +1 -1
- package/dist/db/state.d.ts.map +1 -1
- package/dist/db/state.js +5 -1
- package/dist/db/state.js.map +1 -1
- package/dist/models/file.d.ts +30 -0
- package/dist/models/file.d.ts.map +1 -1
- package/dist/models/file.js +100 -16
- package/dist/models/file.js.map +1 -1
- package/dist/models/table.d.ts +1 -0
- package/dist/models/table.d.ts.map +1 -1
- package/dist/models/table.js +4 -0
- package/dist/models/table.js.map +1 -1
- package/dist/models/workflow_step.js +1 -1
- package/dist/models/workflow_step.js.map +1 -1
- package/dist/viewable_fields.d.ts.map +1 -1
- package/dist/viewable_fields.js +2 -1
- package/dist/viewable_fields.js.map +1 -1
- package/package.json +8 -8
|
@@ -629,9 +629,22 @@ declare const _default: {
|
|
|
629
629
|
attributes: {
|
|
630
630
|
options: string[];
|
|
631
631
|
min?: undefined;
|
|
632
|
+
max?: undefined;
|
|
632
633
|
};
|
|
633
634
|
sublabel?: undefined;
|
|
634
635
|
showIf?: undefined;
|
|
636
|
+
} | {
|
|
637
|
+
type: string;
|
|
638
|
+
name: string;
|
|
639
|
+
label: string;
|
|
640
|
+
sublabel: string;
|
|
641
|
+
attributes: {
|
|
642
|
+
min: number;
|
|
643
|
+
max: number;
|
|
644
|
+
options?: undefined;
|
|
645
|
+
};
|
|
646
|
+
required?: undefined;
|
|
647
|
+
showIf?: undefined;
|
|
635
648
|
} | {
|
|
636
649
|
type: string;
|
|
637
650
|
name: string;
|
|
@@ -639,6 +652,7 @@ declare const _default: {
|
|
|
639
652
|
attributes: {
|
|
640
653
|
min: number;
|
|
641
654
|
options?: undefined;
|
|
655
|
+
max?: undefined;
|
|
642
656
|
};
|
|
643
657
|
sublabel?: undefined;
|
|
644
658
|
required?: undefined;
|
|
@@ -664,8 +678,35 @@ declare const _default: {
|
|
|
664
678
|
attributes: {
|
|
665
679
|
options: string[];
|
|
666
680
|
min?: undefined;
|
|
681
|
+
max?: undefined;
|
|
667
682
|
};
|
|
668
683
|
sublabel?: undefined;
|
|
684
|
+
} | {
|
|
685
|
+
type: string;
|
|
686
|
+
name: string;
|
|
687
|
+
label: string;
|
|
688
|
+
sublabel: string;
|
|
689
|
+
showIf: {
|
|
690
|
+
style: string;
|
|
691
|
+
};
|
|
692
|
+
attributes: {
|
|
693
|
+
options: string[];
|
|
694
|
+
min?: undefined;
|
|
695
|
+
max?: undefined;
|
|
696
|
+
};
|
|
697
|
+
required?: undefined;
|
|
698
|
+
} | {
|
|
699
|
+
type: string;
|
|
700
|
+
name: string;
|
|
701
|
+
label: string;
|
|
702
|
+
sublabel: string;
|
|
703
|
+
attributes: {
|
|
704
|
+
options: string[];
|
|
705
|
+
min?: undefined;
|
|
706
|
+
max?: undefined;
|
|
707
|
+
};
|
|
708
|
+
required?: undefined;
|
|
709
|
+
showIf?: undefined;
|
|
669
710
|
})[];
|
|
670
711
|
isEdit: boolean;
|
|
671
712
|
run: (v: any, req: any, attrs?: any) => string;
|
|
@@ -906,9 +947,22 @@ declare const _default: {
|
|
|
906
947
|
attributes: {
|
|
907
948
|
options: string[];
|
|
908
949
|
min?: undefined;
|
|
950
|
+
max?: undefined;
|
|
909
951
|
};
|
|
910
952
|
sublabel?: undefined;
|
|
911
953
|
showIf?: undefined;
|
|
954
|
+
} | {
|
|
955
|
+
type: string;
|
|
956
|
+
name: string;
|
|
957
|
+
label: string;
|
|
958
|
+
sublabel: string;
|
|
959
|
+
attributes: {
|
|
960
|
+
min: number;
|
|
961
|
+
max: number;
|
|
962
|
+
options?: undefined;
|
|
963
|
+
};
|
|
964
|
+
required?: undefined;
|
|
965
|
+
showIf?: undefined;
|
|
912
966
|
} | {
|
|
913
967
|
type: string;
|
|
914
968
|
name: string;
|
|
@@ -916,6 +970,7 @@ declare const _default: {
|
|
|
916
970
|
attributes: {
|
|
917
971
|
min: number;
|
|
918
972
|
options?: undefined;
|
|
973
|
+
max?: undefined;
|
|
919
974
|
};
|
|
920
975
|
sublabel?: undefined;
|
|
921
976
|
required?: undefined;
|
|
@@ -941,8 +996,35 @@ declare const _default: {
|
|
|
941
996
|
attributes: {
|
|
942
997
|
options: string[];
|
|
943
998
|
min?: undefined;
|
|
999
|
+
max?: undefined;
|
|
944
1000
|
};
|
|
945
1001
|
sublabel?: undefined;
|
|
1002
|
+
} | {
|
|
1003
|
+
type: string;
|
|
1004
|
+
name: string;
|
|
1005
|
+
label: string;
|
|
1006
|
+
sublabel: string;
|
|
1007
|
+
showIf: {
|
|
1008
|
+
style: string;
|
|
1009
|
+
};
|
|
1010
|
+
attributes: {
|
|
1011
|
+
options: string[];
|
|
1012
|
+
min?: undefined;
|
|
1013
|
+
max?: undefined;
|
|
1014
|
+
};
|
|
1015
|
+
required?: undefined;
|
|
1016
|
+
} | {
|
|
1017
|
+
type: string;
|
|
1018
|
+
name: string;
|
|
1019
|
+
label: string;
|
|
1020
|
+
sublabel: string;
|
|
1021
|
+
attributes: {
|
|
1022
|
+
options: string[];
|
|
1023
|
+
min?: undefined;
|
|
1024
|
+
max?: undefined;
|
|
1025
|
+
};
|
|
1026
|
+
required?: undefined;
|
|
1027
|
+
showIf?: undefined;
|
|
946
1028
|
})[];
|
|
947
1029
|
isEdit: boolean;
|
|
948
1030
|
run: (v: any, req: any, attrs?: any) => string;
|
|
@@ -2848,7 +2930,7 @@ declare const _default: {
|
|
|
2848
2930
|
form_action: string;
|
|
2849
2931
|
};
|
|
2850
2932
|
[key: string]: any;
|
|
2851
|
-
}) => Promise<{
|
|
2933
|
+
}) => Promise<import("@saltcorn/types/common_types").ErrorMessage | import("@saltcorn/types/common_types").SuccessMessage | {
|
|
2852
2934
|
eval_js: string;
|
|
2853
2935
|
notify_success?: undefined;
|
|
2854
2936
|
set_fields?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../base-plugin/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;IA4DD,qBAAqB;;IAErB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../base-plugin/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;IA4DD,qBAAqB;;IAErB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;mBAAg3D,CAAC;;iCAAmD,CAAC;8BAA4B,CAAC;;oBAA6B,CAAC;oBAAiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;IAJ7r9F,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAXvC,kBAcE"}
|
|
@@ -737,9 +737,22 @@ declare const _default: {
|
|
|
737
737
|
attributes: {
|
|
738
738
|
options: string[];
|
|
739
739
|
min?: undefined;
|
|
740
|
+
max?: undefined;
|
|
740
741
|
};
|
|
741
742
|
sublabel?: undefined;
|
|
742
743
|
showIf?: undefined;
|
|
744
|
+
} | {
|
|
745
|
+
type: string;
|
|
746
|
+
name: string;
|
|
747
|
+
label: string;
|
|
748
|
+
sublabel: string;
|
|
749
|
+
attributes: {
|
|
750
|
+
min: number;
|
|
751
|
+
max: number;
|
|
752
|
+
options?: undefined;
|
|
753
|
+
};
|
|
754
|
+
required?: undefined;
|
|
755
|
+
showIf?: undefined;
|
|
743
756
|
} | {
|
|
744
757
|
type: string;
|
|
745
758
|
name: string;
|
|
@@ -747,6 +760,7 @@ declare const _default: {
|
|
|
747
760
|
attributes: {
|
|
748
761
|
min: number;
|
|
749
762
|
options?: undefined;
|
|
763
|
+
max?: undefined;
|
|
750
764
|
};
|
|
751
765
|
sublabel?: undefined;
|
|
752
766
|
required?: undefined;
|
|
@@ -772,8 +786,35 @@ declare const _default: {
|
|
|
772
786
|
attributes: {
|
|
773
787
|
options: string[];
|
|
774
788
|
min?: undefined;
|
|
789
|
+
max?: undefined;
|
|
775
790
|
};
|
|
776
791
|
sublabel?: undefined;
|
|
792
|
+
} | {
|
|
793
|
+
type: string;
|
|
794
|
+
name: string;
|
|
795
|
+
label: string;
|
|
796
|
+
sublabel: string;
|
|
797
|
+
showIf: {
|
|
798
|
+
style: string;
|
|
799
|
+
};
|
|
800
|
+
attributes: {
|
|
801
|
+
options: string[];
|
|
802
|
+
min?: undefined;
|
|
803
|
+
max?: undefined;
|
|
804
|
+
};
|
|
805
|
+
required?: undefined;
|
|
806
|
+
} | {
|
|
807
|
+
type: string;
|
|
808
|
+
name: string;
|
|
809
|
+
label: string;
|
|
810
|
+
sublabel: string;
|
|
811
|
+
attributes: {
|
|
812
|
+
options: string[];
|
|
813
|
+
min?: undefined;
|
|
814
|
+
max?: undefined;
|
|
815
|
+
};
|
|
816
|
+
required?: undefined;
|
|
817
|
+
showIf?: undefined;
|
|
777
818
|
})[];
|
|
778
819
|
isEdit: boolean;
|
|
779
820
|
run: (v: any, req: any, attrs?: any) => string;
|
|
@@ -1320,9 +1361,22 @@ declare const _default: {
|
|
|
1320
1361
|
attributes: {
|
|
1321
1362
|
options: string[];
|
|
1322
1363
|
min?: undefined;
|
|
1364
|
+
max?: undefined;
|
|
1323
1365
|
};
|
|
1324
1366
|
sublabel?: undefined;
|
|
1325
1367
|
showIf?: undefined;
|
|
1368
|
+
} | {
|
|
1369
|
+
type: string;
|
|
1370
|
+
name: string;
|
|
1371
|
+
label: string;
|
|
1372
|
+
sublabel: string;
|
|
1373
|
+
attributes: {
|
|
1374
|
+
min: number;
|
|
1375
|
+
max: number;
|
|
1376
|
+
options?: undefined;
|
|
1377
|
+
};
|
|
1378
|
+
required?: undefined;
|
|
1379
|
+
showIf?: undefined;
|
|
1326
1380
|
} | {
|
|
1327
1381
|
type: string;
|
|
1328
1382
|
name: string;
|
|
@@ -1330,6 +1384,7 @@ declare const _default: {
|
|
|
1330
1384
|
attributes: {
|
|
1331
1385
|
min: number;
|
|
1332
1386
|
options?: undefined;
|
|
1387
|
+
max?: undefined;
|
|
1333
1388
|
};
|
|
1334
1389
|
sublabel?: undefined;
|
|
1335
1390
|
required?: undefined;
|
|
@@ -1355,8 +1410,35 @@ declare const _default: {
|
|
|
1355
1410
|
attributes: {
|
|
1356
1411
|
options: string[];
|
|
1357
1412
|
min?: undefined;
|
|
1413
|
+
max?: undefined;
|
|
1358
1414
|
};
|
|
1359
1415
|
sublabel?: undefined;
|
|
1416
|
+
} | {
|
|
1417
|
+
type: string;
|
|
1418
|
+
name: string;
|
|
1419
|
+
label: string;
|
|
1420
|
+
sublabel: string;
|
|
1421
|
+
showIf: {
|
|
1422
|
+
style: string;
|
|
1423
|
+
};
|
|
1424
|
+
attributes: {
|
|
1425
|
+
options: string[];
|
|
1426
|
+
min?: undefined;
|
|
1427
|
+
max?: undefined;
|
|
1428
|
+
};
|
|
1429
|
+
required?: undefined;
|
|
1430
|
+
} | {
|
|
1431
|
+
type: string;
|
|
1432
|
+
name: string;
|
|
1433
|
+
label: string;
|
|
1434
|
+
sublabel: string;
|
|
1435
|
+
attributes: {
|
|
1436
|
+
options: string[];
|
|
1437
|
+
min?: undefined;
|
|
1438
|
+
max?: undefined;
|
|
1439
|
+
};
|
|
1440
|
+
required?: undefined;
|
|
1441
|
+
showIf?: undefined;
|
|
1360
1442
|
})[];
|
|
1361
1443
|
isEdit: boolean;
|
|
1362
1444
|
run: (v: any, req: any, attrs?: any) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../base-plugin/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../base-plugin/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;;;QAiyBrD,qBAAqB;;;QAGrB,qBAAqB;;;QAIrB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qsDhC;;;;eAIG;;;;;0BAKS,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG;;;QAc1E,uBAAuB;;QAEvB;;;WAGG;kBACO,GAAG;QAQb;;WAEG;yBACc,GAAG,GAAG;;;AAq1BzB,kBAAmD"}
|
|
@@ -461,6 +461,13 @@ const to_locale_string = {
|
|
|
461
461
|
options: ["decimal", "currency", "percent", "unit"],
|
|
462
462
|
},
|
|
463
463
|
},
|
|
464
|
+
{
|
|
465
|
+
type: "Integer",
|
|
466
|
+
name: "minimumFractionDigits",
|
|
467
|
+
label: "Min Fraction Digits",
|
|
468
|
+
sublabel: "Pad decimals to this many places (e.g. 2 → always show cents)",
|
|
469
|
+
attributes: { min: 0, max: 20 },
|
|
470
|
+
},
|
|
464
471
|
{
|
|
465
472
|
type: "Integer",
|
|
466
473
|
name: "maximumFractionDigits",
|
|
@@ -492,7 +499,24 @@ const to_locale_string = {
|
|
|
492
499
|
required: true,
|
|
493
500
|
showIf: { style: "currency" },
|
|
494
501
|
attributes: {
|
|
495
|
-
options: ["symbol", "code", "
|
|
502
|
+
options: ["symbol", "code", "narrowSymbol", "name"],
|
|
503
|
+
},
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
type: "String",
|
|
507
|
+
name: "currencySign",
|
|
508
|
+
label: "Currency sign",
|
|
509
|
+
sublabel: "Accounting: show negatives as (1,234.57) instead of -1,234.57",
|
|
510
|
+
showIf: { style: "currency" },
|
|
511
|
+
attributes: { options: ["standard", "accounting"] },
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
type: "String",
|
|
515
|
+
name: "signDisplay",
|
|
516
|
+
label: "Sign display",
|
|
517
|
+
sublabel: "always: show + on positives; exceptZero: show sign except on 0",
|
|
518
|
+
attributes: {
|
|
519
|
+
options: ["auto", "always", "exceptZero", "negative", "never"],
|
|
496
520
|
},
|
|
497
521
|
},
|
|
498
522
|
{
|
|
@@ -565,14 +589,19 @@ const to_locale_string = {
|
|
|
565
589
|
isEdit: false,
|
|
566
590
|
run: (v, req, attrs = {}) => {
|
|
567
591
|
const v1 = typeof v === "string" ? +v : v;
|
|
568
|
-
if (typeof v1 === "number") {
|
|
592
|
+
if (typeof v1 === "number" && !isNaN(v1)) {
|
|
569
593
|
const locale_ = attrs.locale || locale(req);
|
|
570
594
|
return v1.toLocaleString(locale_, {
|
|
571
595
|
style: attrs.style,
|
|
572
596
|
currency: attrs.currency,
|
|
573
597
|
currencyDisplay: attrs.currencyDisplay,
|
|
598
|
+
currencySign: attrs.currencySign || undefined,
|
|
574
599
|
unit: attrs.unit,
|
|
575
600
|
unitDisplay: attrs.unitDisplay,
|
|
601
|
+
signDisplay: attrs.signDisplay || undefined,
|
|
602
|
+
minimumFractionDigits: attrs.minimumFractionDigits === 0
|
|
603
|
+
? 0
|
|
604
|
+
: attrs.minimumFractionDigits || undefined,
|
|
576
605
|
maximumSignificantDigits: attrs.maximumSignificantDigits === 0
|
|
577
606
|
? 0
|
|
578
607
|
: attrs.maximumSignificantDigits || undefined,
|