@saltcorn/data 1.5.3 → 1.5.4
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/index.d.ts +213 -213
- package/dist/base-plugin/index.d.ts.map +1 -1
- package/dist/utils.d.ts +3 -3
- package/package.json +8 -8
|
@@ -596,127 +596,7 @@ export const types: ({
|
|
|
596
596
|
show: {
|
|
597
597
|
isEdit: boolean;
|
|
598
598
|
description: string;
|
|
599
|
-
run: (
|
|
600
|
-
};
|
|
601
|
-
checkboxes: {
|
|
602
|
-
isEdit: boolean;
|
|
603
|
-
description: string;
|
|
604
|
-
run: (v: any) => string;
|
|
605
|
-
};
|
|
606
|
-
TrueFalse: {
|
|
607
|
-
isEdit: boolean;
|
|
608
|
-
description: string;
|
|
609
|
-
run: (v: any) => "" | "True" | "False";
|
|
610
|
-
};
|
|
611
|
-
edit: {
|
|
612
|
-
isEdit: boolean;
|
|
613
|
-
description: string;
|
|
614
|
-
configFields: ({
|
|
615
|
-
name: string;
|
|
616
|
-
label: string;
|
|
617
|
-
type: string;
|
|
618
|
-
attributes: {
|
|
619
|
-
options: string[];
|
|
620
|
-
};
|
|
621
|
-
} | {
|
|
622
|
-
name: string;
|
|
623
|
-
label: string;
|
|
624
|
-
type: string;
|
|
625
|
-
attributes?: undefined;
|
|
626
|
-
})[];
|
|
627
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => string;
|
|
628
|
-
};
|
|
629
|
-
switch: {
|
|
630
|
-
isEdit: boolean;
|
|
631
|
-
description: string;
|
|
632
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => string;
|
|
633
|
-
};
|
|
634
|
-
show_with_html: {
|
|
635
|
-
configFields: {
|
|
636
|
-
input_type: string;
|
|
637
|
-
name: string;
|
|
638
|
-
label: string;
|
|
639
|
-
sublabel: string;
|
|
640
|
-
default: string;
|
|
641
|
-
attributes: {
|
|
642
|
-
mode: string;
|
|
643
|
-
};
|
|
644
|
-
}[];
|
|
645
|
-
isEdit: boolean;
|
|
646
|
-
description: string;
|
|
647
|
-
run: (v: any, req: any, attrs?: {}) => string;
|
|
648
|
-
};
|
|
649
|
-
tristate: {
|
|
650
|
-
isEdit: boolean;
|
|
651
|
-
description: string;
|
|
652
|
-
configFields: {
|
|
653
|
-
name: string;
|
|
654
|
-
label: string;
|
|
655
|
-
type: string;
|
|
656
|
-
}[];
|
|
657
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => string;
|
|
658
|
-
};
|
|
659
|
-
thumbs_up_down: {
|
|
660
|
-
isEdit: boolean;
|
|
661
|
-
description: string;
|
|
662
|
-
configFields: {
|
|
663
|
-
name: string;
|
|
664
|
-
label: string;
|
|
665
|
-
type: string;
|
|
666
|
-
required: boolean;
|
|
667
|
-
attributes: {
|
|
668
|
-
options: string[];
|
|
669
|
-
};
|
|
670
|
-
}[];
|
|
671
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => string;
|
|
672
|
-
};
|
|
673
|
-
};
|
|
674
|
-
attributes: object[];
|
|
675
|
-
readFromFormRecord: (rec: any, name: string) => boolean | null;
|
|
676
|
-
read: (v: object) => boolean | null;
|
|
677
|
-
readFromDB: (v: object) => object;
|
|
678
|
-
listAs: (v: object) => object;
|
|
679
|
-
validate: () => boolean;
|
|
680
|
-
} | {
|
|
681
|
-
name: string;
|
|
682
|
-
description: string;
|
|
683
|
-
sql_name: string;
|
|
684
|
-
js_type: string;
|
|
685
|
-
contract: () => Function;
|
|
686
|
-
attributes: object[];
|
|
687
|
-
fieldviews: {
|
|
688
|
-
show: {
|
|
689
|
-
isEdit: boolean;
|
|
690
|
-
description: string;
|
|
691
|
-
run: (d: any, req: any, attrs?: {}) => any;
|
|
692
|
-
};
|
|
693
|
-
showDay: {
|
|
694
|
-
isEdit: boolean;
|
|
695
|
-
description: string;
|
|
696
|
-
run: (d: any, req: any) => any;
|
|
697
|
-
};
|
|
698
|
-
format: {
|
|
699
|
-
isEdit: boolean;
|
|
700
|
-
description: string;
|
|
701
|
-
configFields: {
|
|
702
|
-
name: string;
|
|
703
|
-
label: string;
|
|
704
|
-
type: string;
|
|
705
|
-
help: {
|
|
706
|
-
topic: string;
|
|
707
|
-
};
|
|
708
|
-
}[];
|
|
709
|
-
run: (d: any, req: any, options: any) => string;
|
|
710
|
-
};
|
|
711
|
-
relative: {
|
|
712
|
-
isEdit: boolean;
|
|
713
|
-
description: string;
|
|
714
|
-
run: (d: any, req: any) => any;
|
|
715
|
-
};
|
|
716
|
-
yearsAgo: {
|
|
717
|
-
isEdit: boolean;
|
|
718
|
-
description: string;
|
|
719
|
-
run: (d: any, req: any) => string;
|
|
599
|
+
run: (s: any) => string;
|
|
720
600
|
};
|
|
721
601
|
show_with_html: {
|
|
722
602
|
configFields: {
|
|
@@ -737,33 +617,12 @@ export const types: ({
|
|
|
737
617
|
isEdit: boolean;
|
|
738
618
|
blockDisplay: boolean;
|
|
739
619
|
description: string;
|
|
740
|
-
configFields: {
|
|
741
|
-
label: string;
|
|
742
|
-
name: string;
|
|
743
|
-
type: string;
|
|
744
|
-
}[];
|
|
745
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => string;
|
|
746
|
-
};
|
|
747
|
-
editDay: {
|
|
748
|
-
isEdit: boolean;
|
|
749
|
-
blockDisplay: boolean;
|
|
750
|
-
description: string;
|
|
751
|
-
configFields: {
|
|
752
|
-
label: string;
|
|
753
|
-
name: string;
|
|
754
|
-
type: string;
|
|
755
|
-
}[];
|
|
756
620
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => string;
|
|
757
621
|
};
|
|
758
622
|
};
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
field: any;
|
|
762
|
-
}) => Date | import("@saltcorn/plain-date");
|
|
763
|
-
};
|
|
764
|
-
read: (v0: any, attrs: object) => object;
|
|
623
|
+
attributes: object[];
|
|
624
|
+
read: (v: object) => object;
|
|
765
625
|
validate: () => boolean;
|
|
766
|
-
equals: (a: any, b: any) => boolean;
|
|
767
626
|
} | {
|
|
768
627
|
name: string;
|
|
769
628
|
description: string;
|
|
@@ -1019,11 +878,40 @@ export const types: ({
|
|
|
1019
878
|
sql_name: string;
|
|
1020
879
|
js_type: string;
|
|
1021
880
|
contract: () => Function;
|
|
881
|
+
attributes: object[];
|
|
1022
882
|
fieldviews: {
|
|
1023
883
|
show: {
|
|
1024
884
|
isEdit: boolean;
|
|
1025
885
|
description: string;
|
|
1026
|
-
run: (
|
|
886
|
+
run: (d: any, req: any, attrs?: {}) => any;
|
|
887
|
+
};
|
|
888
|
+
showDay: {
|
|
889
|
+
isEdit: boolean;
|
|
890
|
+
description: string;
|
|
891
|
+
run: (d: any, req: any) => any;
|
|
892
|
+
};
|
|
893
|
+
format: {
|
|
894
|
+
isEdit: boolean;
|
|
895
|
+
description: string;
|
|
896
|
+
configFields: {
|
|
897
|
+
name: string;
|
|
898
|
+
label: string;
|
|
899
|
+
type: string;
|
|
900
|
+
help: {
|
|
901
|
+
topic: string;
|
|
902
|
+
};
|
|
903
|
+
}[];
|
|
904
|
+
run: (d: any, req: any, options: any) => string;
|
|
905
|
+
};
|
|
906
|
+
relative: {
|
|
907
|
+
isEdit: boolean;
|
|
908
|
+
description: string;
|
|
909
|
+
run: (d: any, req: any) => any;
|
|
910
|
+
};
|
|
911
|
+
yearsAgo: {
|
|
912
|
+
isEdit: boolean;
|
|
913
|
+
description: string;
|
|
914
|
+
run: (d: any, req: any) => string;
|
|
1027
915
|
};
|
|
1028
916
|
show_with_html: {
|
|
1029
917
|
configFields: {
|
|
@@ -1044,14 +932,193 @@ export const types: ({
|
|
|
1044
932
|
isEdit: boolean;
|
|
1045
933
|
blockDisplay: boolean;
|
|
1046
934
|
description: string;
|
|
935
|
+
configFields: {
|
|
936
|
+
label: string;
|
|
937
|
+
name: string;
|
|
938
|
+
type: string;
|
|
939
|
+
}[];
|
|
940
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => string;
|
|
941
|
+
};
|
|
942
|
+
editDay: {
|
|
943
|
+
isEdit: boolean;
|
|
944
|
+
blockDisplay: boolean;
|
|
945
|
+
description: string;
|
|
946
|
+
configFields: {
|
|
947
|
+
label: string;
|
|
948
|
+
name: string;
|
|
949
|
+
type: string;
|
|
950
|
+
}[];
|
|
951
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => string;
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
presets: {
|
|
955
|
+
Now: ({ field }: {
|
|
956
|
+
field: any;
|
|
957
|
+
}) => Date | import("@saltcorn/plain-date");
|
|
958
|
+
};
|
|
959
|
+
read: (v0: any, attrs: object) => object;
|
|
960
|
+
validate: () => boolean;
|
|
961
|
+
equals: (a: any, b: any) => boolean;
|
|
962
|
+
} | {
|
|
963
|
+
name: string;
|
|
964
|
+
description: string;
|
|
965
|
+
sql_name: string;
|
|
966
|
+
js_type: string;
|
|
967
|
+
contract: () => Function;
|
|
968
|
+
fieldviews: {
|
|
969
|
+
show: {
|
|
970
|
+
isEdit: boolean;
|
|
971
|
+
description: string;
|
|
972
|
+
run: (v: any, req: any) => string;
|
|
973
|
+
};
|
|
974
|
+
checkboxes: {
|
|
975
|
+
isEdit: boolean;
|
|
976
|
+
description: string;
|
|
977
|
+
run: (v: any) => string;
|
|
978
|
+
};
|
|
979
|
+
TrueFalse: {
|
|
980
|
+
isEdit: boolean;
|
|
981
|
+
description: string;
|
|
982
|
+
run: (v: any) => "" | "True" | "False";
|
|
983
|
+
};
|
|
984
|
+
edit: {
|
|
985
|
+
isEdit: boolean;
|
|
986
|
+
description: string;
|
|
987
|
+
configFields: ({
|
|
988
|
+
name: string;
|
|
989
|
+
label: string;
|
|
990
|
+
type: string;
|
|
991
|
+
attributes: {
|
|
992
|
+
options: string[];
|
|
993
|
+
};
|
|
994
|
+
} | {
|
|
995
|
+
name: string;
|
|
996
|
+
label: string;
|
|
997
|
+
type: string;
|
|
998
|
+
attributes?: undefined;
|
|
999
|
+
})[];
|
|
1000
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => string;
|
|
1001
|
+
};
|
|
1002
|
+
switch: {
|
|
1003
|
+
isEdit: boolean;
|
|
1004
|
+
description: string;
|
|
1005
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => string;
|
|
1006
|
+
};
|
|
1007
|
+
show_with_html: {
|
|
1008
|
+
configFields: {
|
|
1009
|
+
input_type: string;
|
|
1010
|
+
name: string;
|
|
1011
|
+
label: string;
|
|
1012
|
+
sublabel: string;
|
|
1013
|
+
default: string;
|
|
1014
|
+
attributes: {
|
|
1015
|
+
mode: string;
|
|
1016
|
+
};
|
|
1017
|
+
}[];
|
|
1018
|
+
isEdit: boolean;
|
|
1019
|
+
description: string;
|
|
1020
|
+
run: (v: any, req: any, attrs?: {}) => string;
|
|
1021
|
+
};
|
|
1022
|
+
tristate: {
|
|
1023
|
+
isEdit: boolean;
|
|
1024
|
+
description: string;
|
|
1025
|
+
configFields: {
|
|
1026
|
+
name: string;
|
|
1027
|
+
label: string;
|
|
1028
|
+
type: string;
|
|
1029
|
+
}[];
|
|
1030
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => string;
|
|
1031
|
+
};
|
|
1032
|
+
thumbs_up_down: {
|
|
1033
|
+
isEdit: boolean;
|
|
1034
|
+
description: string;
|
|
1035
|
+
configFields: {
|
|
1036
|
+
name: string;
|
|
1037
|
+
label: string;
|
|
1038
|
+
type: string;
|
|
1039
|
+
required: boolean;
|
|
1040
|
+
attributes: {
|
|
1041
|
+
options: string[];
|
|
1042
|
+
};
|
|
1043
|
+
}[];
|
|
1047
1044
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => string;
|
|
1048
1045
|
};
|
|
1049
1046
|
};
|
|
1050
1047
|
attributes: object[];
|
|
1051
|
-
|
|
1048
|
+
readFromFormRecord: (rec: any, name: string) => boolean | null;
|
|
1049
|
+
read: (v: object) => boolean | null;
|
|
1050
|
+
readFromDB: (v: object) => object;
|
|
1051
|
+
listAs: (v: object) => object;
|
|
1052
1052
|
validate: () => boolean;
|
|
1053
1053
|
})[];
|
|
1054
1054
|
export const viewtemplates: ({
|
|
1055
|
+
name: string;
|
|
1056
|
+
description: string;
|
|
1057
|
+
configuration_workflow: (req: object) => import("../models").Workflow;
|
|
1058
|
+
run: (table_id: string | number, viewname: string, { columns, layout, view_to_create, create_view_display, create_view_label, default_state, create_view_location, create_link_style, create_link_size, create_view_showif, }: {
|
|
1059
|
+
columns: object[];
|
|
1060
|
+
view_to_create?: string | undefined;
|
|
1061
|
+
create_view_display: string;
|
|
1062
|
+
create_view_label?: string | undefined;
|
|
1063
|
+
default_state?: object | undefined;
|
|
1064
|
+
create_view_location?: string | undefined;
|
|
1065
|
+
}, stateWithId?: object, extraOpts: object, { listQuery }: {
|
|
1066
|
+
listQuery: any;
|
|
1067
|
+
}) => Promise<any>;
|
|
1068
|
+
view_quantity: string;
|
|
1069
|
+
get_state_fields: (table_id: string, viewname: any, { columns }: {
|
|
1070
|
+
columns: object[];
|
|
1071
|
+
}) => Function;
|
|
1072
|
+
initial_config: Function;
|
|
1073
|
+
on_delete: (table_id: any, viewname: string, { default_state }: {
|
|
1074
|
+
default_state: any;
|
|
1075
|
+
}) => Promise<void>;
|
|
1076
|
+
routes: {
|
|
1077
|
+
run_action: (table_id: number, viewname: any, { columns, layout, default_state }: {
|
|
1078
|
+
columns: object[];
|
|
1079
|
+
layout: any;
|
|
1080
|
+
}, body: object, { req, res }: {
|
|
1081
|
+
req: object;
|
|
1082
|
+
res: any;
|
|
1083
|
+
}, { getRowQuery }: {
|
|
1084
|
+
getRowQuery: any;
|
|
1085
|
+
}) => Promise<object>;
|
|
1086
|
+
};
|
|
1087
|
+
default_state_form: ({ default_state }: object) => boolean;
|
|
1088
|
+
getStringsForI18n({ columns, layout, create_view_label }: {
|
|
1089
|
+
columns: any;
|
|
1090
|
+
create_view_label: any;
|
|
1091
|
+
}): string[];
|
|
1092
|
+
createBasicView: ({ table, viewname, template_view, template_table, all_views_created, }: {
|
|
1093
|
+
table: any;
|
|
1094
|
+
viewname: any;
|
|
1095
|
+
template_view: any;
|
|
1096
|
+
template_table: any;
|
|
1097
|
+
all_views_created: any;
|
|
1098
|
+
}) => Promise<any>;
|
|
1099
|
+
queries: ({ table_id, exttable_name, name, configuration: { columns, layout, default_state }, req, }: {
|
|
1100
|
+
table_id: any;
|
|
1101
|
+
exttable_name: any;
|
|
1102
|
+
name: any;
|
|
1103
|
+
configuration: {
|
|
1104
|
+
columns: any;
|
|
1105
|
+
layout: any;
|
|
1106
|
+
default_state: any;
|
|
1107
|
+
};
|
|
1108
|
+
req: any;
|
|
1109
|
+
}) => {
|
|
1110
|
+
listQuery(state: any, stateHash: any): Promise<{
|
|
1111
|
+
rows: import("@saltcorn/db-common/dbtypes").Row[];
|
|
1112
|
+
rowCount: number | undefined;
|
|
1113
|
+
}>;
|
|
1114
|
+
getRowQuery(id: any): Promise<import("@saltcorn/db-common/dbtypes").Row | null>;
|
|
1115
|
+
};
|
|
1116
|
+
configCheck: (view: any) => Promise<{
|
|
1117
|
+
errors: string[];
|
|
1118
|
+
warnings: string[];
|
|
1119
|
+
}>;
|
|
1120
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1121
|
+
} | {
|
|
1055
1122
|
name: string;
|
|
1056
1123
|
description: string;
|
|
1057
1124
|
configuration_workflow: (req: object) => import("../models").Workflow;
|
|
@@ -1228,73 +1295,6 @@ export const viewtemplates: ({
|
|
|
1228
1295
|
warnings: string[];
|
|
1229
1296
|
}>;
|
|
1230
1297
|
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1231
|
-
} | {
|
|
1232
|
-
name: string;
|
|
1233
|
-
description: string;
|
|
1234
|
-
configuration_workflow: (req: object) => import("../models").Workflow;
|
|
1235
|
-
run: (table_id: string | number, viewname: string, { columns, layout, view_to_create, create_view_display, create_view_label, default_state, create_view_location, create_link_style, create_link_size, create_view_showif, }: {
|
|
1236
|
-
columns: object[];
|
|
1237
|
-
view_to_create?: string | undefined;
|
|
1238
|
-
create_view_display: string;
|
|
1239
|
-
create_view_label?: string | undefined;
|
|
1240
|
-
default_state?: object | undefined;
|
|
1241
|
-
create_view_location?: string | undefined;
|
|
1242
|
-
}, stateWithId?: object, extraOpts: object, { listQuery }: {
|
|
1243
|
-
listQuery: any;
|
|
1244
|
-
}) => Promise<any>;
|
|
1245
|
-
view_quantity: string;
|
|
1246
|
-
get_state_fields: (table_id: string, viewname: any, { columns }: {
|
|
1247
|
-
columns: object[];
|
|
1248
|
-
}) => Function;
|
|
1249
|
-
initial_config: Function;
|
|
1250
|
-
on_delete: (table_id: any, viewname: string, { default_state }: {
|
|
1251
|
-
default_state: any;
|
|
1252
|
-
}) => Promise<void>;
|
|
1253
|
-
routes: {
|
|
1254
|
-
run_action: (table_id: number, viewname: any, { columns, layout, default_state }: {
|
|
1255
|
-
columns: object[];
|
|
1256
|
-
layout: any;
|
|
1257
|
-
}, body: object, { req, res }: {
|
|
1258
|
-
req: object;
|
|
1259
|
-
res: any;
|
|
1260
|
-
}, { getRowQuery }: {
|
|
1261
|
-
getRowQuery: any;
|
|
1262
|
-
}) => Promise<object>;
|
|
1263
|
-
};
|
|
1264
|
-
default_state_form: ({ default_state }: object) => boolean;
|
|
1265
|
-
getStringsForI18n({ columns, layout, create_view_label }: {
|
|
1266
|
-
columns: any;
|
|
1267
|
-
create_view_label: any;
|
|
1268
|
-
}): string[];
|
|
1269
|
-
createBasicView: ({ table, viewname, template_view, template_table, all_views_created, }: {
|
|
1270
|
-
table: any;
|
|
1271
|
-
viewname: any;
|
|
1272
|
-
template_view: any;
|
|
1273
|
-
template_table: any;
|
|
1274
|
-
all_views_created: any;
|
|
1275
|
-
}) => Promise<any>;
|
|
1276
|
-
queries: ({ table_id, exttable_name, name, configuration: { columns, layout, default_state }, req, }: {
|
|
1277
|
-
table_id: any;
|
|
1278
|
-
exttable_name: any;
|
|
1279
|
-
name: any;
|
|
1280
|
-
configuration: {
|
|
1281
|
-
columns: any;
|
|
1282
|
-
layout: any;
|
|
1283
|
-
default_state: any;
|
|
1284
|
-
};
|
|
1285
|
-
req: any;
|
|
1286
|
-
}) => {
|
|
1287
|
-
listQuery(state: any, stateHash: any): Promise<{
|
|
1288
|
-
rows: import("@saltcorn/db-common/dbtypes").Row[];
|
|
1289
|
-
rowCount: number | undefined;
|
|
1290
|
-
}>;
|
|
1291
|
-
getRowQuery(id: any): Promise<import("@saltcorn/db-common/dbtypes").Row | null>;
|
|
1292
|
-
};
|
|
1293
|
-
configCheck: (view: any) => Promise<{
|
|
1294
|
-
errors: string[];
|
|
1295
|
-
warnings: string[];
|
|
1296
|
-
}>;
|
|
1297
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1298
1298
|
} | {
|
|
1299
1299
|
name: string;
|
|
1300
1300
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../base-plugin/index.js"],"names":[],"mappings":"AAwCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAvorD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAjB3zM;;;;0CAGW,MAAM"}
|
package/dist/utils.d.ts
CHANGED
|
@@ -69,9 +69,9 @@ declare const _default: {
|
|
|
69
69
|
getSessionId: (req: Req) => string;
|
|
70
70
|
mergeActionResults: (result: ResultType, stepres: StepResType) => void;
|
|
71
71
|
urlStringToObject: (url: string) => any;
|
|
72
|
-
comparing: (f: ((o: any) => any) | string) => (a: any, b: any) =>
|
|
73
|
-
comparingCaseInsensitive: (k: string) => (a: any, b: any) =>
|
|
74
|
-
comparingCaseInsensitiveValue: (a: any, b: any) =>
|
|
72
|
+
comparing: (f: ((o: any) => any) | string) => (a: any, b: any) => 0 | 1 | -1;
|
|
73
|
+
comparingCaseInsensitive: (k: string) => (a: any, b: any) => 0 | 1 | -1;
|
|
74
|
+
comparingCaseInsensitiveValue: (a: any, b: any) => 0 | 1 | -1;
|
|
75
75
|
ppVal: (x: any) => any;
|
|
76
76
|
interpolate: (s: string, row: any, user?: any, errorLocation?: string) => string;
|
|
77
77
|
prepMobileRows: (rows: Row[], fields: Field[]) => Row[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/data",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "Data models for Saltcorn, open-source no-code platform",
|
|
5
5
|
"homepage": "https://saltcorn.com",
|
|
6
6
|
"scripts": {
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"!dist/tsconfig.ref.tsbuildinfo"
|
|
38
38
|
],
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@saltcorn/postgres": "1.5.
|
|
41
|
-
"@saltcorn/sqlite": "1.5.
|
|
40
|
+
"@saltcorn/postgres": "1.5.4",
|
|
41
|
+
"@saltcorn/sqlite": "1.5.4"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@saltcorn/types": "1.5.
|
|
45
|
-
"@saltcorn/markup": "1.5.
|
|
46
|
-
"@saltcorn/common-code": "1.5.
|
|
47
|
-
"@saltcorn/db-common": "1.5.
|
|
48
|
-
"@saltcorn/sqlite-mobile": "1.5.
|
|
44
|
+
"@saltcorn/types": "1.5.4",
|
|
45
|
+
"@saltcorn/markup": "1.5.4",
|
|
46
|
+
"@saltcorn/common-code": "1.5.4",
|
|
47
|
+
"@saltcorn/db-common": "1.5.4",
|
|
48
|
+
"@saltcorn/sqlite-mobile": "1.5.4",
|
|
49
49
|
"@saltcorn/plain-date": "0.2.5",
|
|
50
50
|
"acorn": "^8.14.0",
|
|
51
51
|
"assert": "^2.1.0",
|