@saltcorn/data 0.9.3-beta.6 → 0.9.3-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 +1 -1
- package/dist/base-plugin/actions.d.ts.map +1 -1
- package/dist/base-plugin/actions.js +4 -2
- package/dist/base-plugin/actions.js.map +1 -1
- package/dist/base-plugin/index.d.ts +227 -227
- package/dist/base-plugin/viewtemplates/edit.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/edit.js +2 -0
- package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
- package/dist/migrations/202311231356.d.ts +2 -0
- package/dist/migrations/202311231356.d.ts.map +1 -0
- package/dist/migrations/202311231356.js +19 -0
- package/dist/migrations/202311231356.js.map +1 -0
- package/dist/models/fieldrepeat.js +3 -1
- package/dist/models/fieldrepeat.js.map +1 -1
- package/dist/tests/auxtest.test.js +16 -1
- package/dist/tests/auxtest.test.js.map +1 -1
- package/dist/utils.d.ts +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +17 -0
- package/dist/utils.js.map +1 -1
- package/package.json +7 -7
|
@@ -692,63 +692,45 @@ export const types: ({
|
|
|
692
692
|
export const viewtemplates: ({
|
|
693
693
|
name: string;
|
|
694
694
|
description: string;
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
view_to_create?: string | undefined;
|
|
699
|
-
create_view_display: string;
|
|
700
|
-
create_view_label?: string | undefined;
|
|
701
|
-
default_state?: object | undefined;
|
|
702
|
-
create_view_location?: string | undefined;
|
|
703
|
-
}, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
|
|
704
|
-
listQuery: any;
|
|
705
|
-
}) => Promise<any>;
|
|
706
|
-
view_quantity: string;
|
|
707
|
-
get_state_fields: (table_id: string, viewname: any, { columns }: {
|
|
695
|
+
get_state_fields: () => object[];
|
|
696
|
+
configuration_workflow: () => import("../models/workflow");
|
|
697
|
+
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
708
698
|
columns: object[];
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
699
|
+
layout: object;
|
|
700
|
+
}, state: object, extra: object, { distinctValuesQuery }: {
|
|
701
|
+
distinctValuesQuery: any;
|
|
702
|
+
}) => Promise<Layout>;
|
|
703
|
+
initial_config: () => Promise<object>;
|
|
704
|
+
display_state_form: boolean;
|
|
705
|
+
getStringsForI18n({ layout }: {
|
|
706
|
+
layout: any;
|
|
707
|
+
}): string[];
|
|
714
708
|
routes: {
|
|
715
|
-
run_action: (table_id:
|
|
716
|
-
|
|
717
|
-
layout: any;
|
|
718
|
-
}, body: object, { req, res }: {
|
|
719
|
-
req: object;
|
|
709
|
+
run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
|
|
710
|
+
req: any;
|
|
720
711
|
res: any;
|
|
721
|
-
}, {
|
|
722
|
-
|
|
723
|
-
}) => Promise<
|
|
712
|
+
}, { actionQuery }: {
|
|
713
|
+
actionQuery: any;
|
|
714
|
+
}) => Promise<any>;
|
|
724
715
|
};
|
|
725
|
-
|
|
726
|
-
default_state_form: ({ default_state }: object) => boolean;
|
|
727
|
-
getStringsForI18n({ columns, create_view_label }: {
|
|
728
|
-
columns: any;
|
|
729
|
-
create_view_label: any;
|
|
730
|
-
}): string[];
|
|
731
|
-
queries: ({ table_id, exttable_name, name, configuration: { columns, default_state }, req, }: {
|
|
716
|
+
queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
|
|
732
717
|
table_id: any;
|
|
733
|
-
|
|
734
|
-
name: any;
|
|
718
|
+
viewname: any;
|
|
735
719
|
configuration: {
|
|
736
720
|
columns: any;
|
|
737
|
-
default_state: any;
|
|
738
721
|
};
|
|
739
722
|
req: any;
|
|
723
|
+
res: any;
|
|
724
|
+
exttable_name: any;
|
|
740
725
|
}) => {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
726
|
+
actionQuery(state: any, rndid: any): Promise<{
|
|
727
|
+
json: any;
|
|
728
|
+
}>;
|
|
729
|
+
distinctValuesQuery(state: any): Promise<{
|
|
730
|
+
distinct_values: {};
|
|
731
|
+
role: any;
|
|
744
732
|
}>;
|
|
745
|
-
getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
746
733
|
};
|
|
747
|
-
configCheck: (view: any) => Promise<{
|
|
748
|
-
errors: string[];
|
|
749
|
-
warnings: string[];
|
|
750
|
-
}>;
|
|
751
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
752
734
|
} | {
|
|
753
735
|
name: string;
|
|
754
736
|
description: string;
|
|
@@ -899,6 +881,146 @@ export const viewtemplates: ({
|
|
|
899
881
|
warnings: string[];
|
|
900
882
|
}>;
|
|
901
883
|
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
884
|
+
} | {
|
|
885
|
+
name: string;
|
|
886
|
+
description: string;
|
|
887
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
888
|
+
run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
889
|
+
participant_field: string;
|
|
890
|
+
msg_relation: string;
|
|
891
|
+
msgsender_field: any;
|
|
892
|
+
msgview: string;
|
|
893
|
+
msgform: string;
|
|
894
|
+
participant_maxread_field: string;
|
|
895
|
+
}, state: object, { req, res }: {
|
|
896
|
+
req: object;
|
|
897
|
+
res: object;
|
|
898
|
+
}, { getRowQuery, updateQuery, optionsQuery }: {
|
|
899
|
+
getRowQuery: any;
|
|
900
|
+
updateQuery: any;
|
|
901
|
+
optionsQuery: any;
|
|
902
|
+
}) => Promise<div>;
|
|
903
|
+
get_state_fields: () => object[];
|
|
904
|
+
display_state_form: boolean;
|
|
905
|
+
routes: {
|
|
906
|
+
submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
907
|
+
participant_field: string;
|
|
908
|
+
msg_relation: string;
|
|
909
|
+
msgsender_field: any;
|
|
910
|
+
msgview: string;
|
|
911
|
+
msgform: string;
|
|
912
|
+
participant_maxread_field: string;
|
|
913
|
+
}, body: any, { req, res }: {
|
|
914
|
+
req: object;
|
|
915
|
+
res: object;
|
|
916
|
+
}, { submitAjaxQuery }: {
|
|
917
|
+
submitAjaxQuery: any;
|
|
918
|
+
}) => Promise<object>;
|
|
919
|
+
ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
|
|
920
|
+
participant_field: string;
|
|
921
|
+
participant_maxread_field: string;
|
|
922
|
+
}, body: any, { req, res }: {
|
|
923
|
+
req: object;
|
|
924
|
+
res: object;
|
|
925
|
+
}, { ackReadQuery }: {
|
|
926
|
+
ackReadQuery: any;
|
|
927
|
+
}) => Promise<void>;
|
|
928
|
+
fetch_older_msg: (table_id: any, viewname: any, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: object, body: object, { req, res }: string, { fetchOlderMsgQuery }: any) => Promise<object>;
|
|
929
|
+
};
|
|
930
|
+
noAutoTest: boolean;
|
|
931
|
+
authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
|
|
932
|
+
participant_field: object;
|
|
933
|
+
}, room_id: string, user: object) => Promise<object>;
|
|
934
|
+
virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
935
|
+
participant_field: any;
|
|
936
|
+
msg_relation: string;
|
|
937
|
+
msgsender_field: string;
|
|
938
|
+
msgview: string;
|
|
939
|
+
msgform: any;
|
|
940
|
+
participant_maxread_field: any;
|
|
941
|
+
}) => object[];
|
|
942
|
+
getStringsForI18n(): object[];
|
|
943
|
+
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
944
|
+
table_id: any;
|
|
945
|
+
viewname: any;
|
|
946
|
+
configuration: {
|
|
947
|
+
columns: any;
|
|
948
|
+
default_state: any;
|
|
949
|
+
};
|
|
950
|
+
req: any;
|
|
951
|
+
}) => {
|
|
952
|
+
getRowQuery(state_id: any, part_table_name: any, part_user_field: any, part_key_to_room: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
953
|
+
updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
|
|
954
|
+
submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
|
|
955
|
+
json: {
|
|
956
|
+
msgid: {
|
|
957
|
+
error: string;
|
|
958
|
+
} | {
|
|
959
|
+
success: any;
|
|
960
|
+
};
|
|
961
|
+
error?: undefined;
|
|
962
|
+
};
|
|
963
|
+
} | {
|
|
964
|
+
json: {
|
|
965
|
+
error: any;
|
|
966
|
+
msgid?: undefined;
|
|
967
|
+
};
|
|
968
|
+
}>;
|
|
969
|
+
ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
|
|
970
|
+
json: {
|
|
971
|
+
error: string;
|
|
972
|
+
success?: undefined;
|
|
973
|
+
};
|
|
974
|
+
} | {
|
|
975
|
+
json: {
|
|
976
|
+
success: string;
|
|
977
|
+
error?: undefined;
|
|
978
|
+
};
|
|
979
|
+
}>;
|
|
980
|
+
fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
981
|
+
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
982
|
+
};
|
|
983
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
984
|
+
} | {
|
|
985
|
+
name: string;
|
|
986
|
+
description: string;
|
|
987
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
988
|
+
run: (table_id: number, viewname: string, { show_view, order_field, descending, view_to_create, create_view_display, in_card, view_decoration, initial_open_accordions, title_formula, masonry_columns, rows_per_page, hide_pagination, create_view_label, create_view_location, create_link_style, create_link_size, always_create_view, include_fml, exclusion_relation, exclusion_where, empty_view, groupby, ...cols }: {
|
|
989
|
+
show_view: string;
|
|
990
|
+
order_field: void;
|
|
991
|
+
descending: boolean;
|
|
992
|
+
view_to_create?: string | undefined;
|
|
993
|
+
create_view_display: string;
|
|
994
|
+
in_card: boolean;
|
|
995
|
+
masonry_columns: string;
|
|
996
|
+
rows_per_page?: number | undefined;
|
|
997
|
+
hide_pagination: boolean;
|
|
998
|
+
create_view_label?: string | undefined;
|
|
999
|
+
create_view_location?: string | undefined;
|
|
1000
|
+
always_create_view: boolean;
|
|
1001
|
+
cols: any;
|
|
1002
|
+
}, state: object, extraArgs: any, { countRowsQuery }: {
|
|
1003
|
+
countRowsQuery: any;
|
|
1004
|
+
}) => Promise<div>;
|
|
1005
|
+
get_state_fields: (table_id: number, viewname: any, { show_view }: {
|
|
1006
|
+
show_view: any;
|
|
1007
|
+
}) => Promise<import("../models/field")>;
|
|
1008
|
+
display_state_form: boolean;
|
|
1009
|
+
getStringsForI18n({ create_view_label }: {
|
|
1010
|
+
create_view_label: any;
|
|
1011
|
+
}): string[] | Object[];
|
|
1012
|
+
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1013
|
+
table_id: any;
|
|
1014
|
+
viewname: any;
|
|
1015
|
+
configuration: {
|
|
1016
|
+
columns: any;
|
|
1017
|
+
default_state: any;
|
|
1018
|
+
};
|
|
1019
|
+
req: any;
|
|
1020
|
+
}) => {
|
|
1021
|
+
countRowsQuery(state: any): Promise<number>;
|
|
1022
|
+
};
|
|
1023
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
902
1024
|
} | {
|
|
903
1025
|
name: string;
|
|
904
1026
|
description: string;
|
|
@@ -977,179 +1099,81 @@ export const viewtemplates: ({
|
|
|
977
1099
|
name: string;
|
|
978
1100
|
description: string;
|
|
979
1101
|
configuration_workflow: (req: object) => import("../models/workflow");
|
|
980
|
-
run: (table_id: string, viewname: string, {
|
|
981
|
-
|
|
982
|
-
show_view: string;
|
|
983
|
-
subtables: object;
|
|
984
|
-
}, state: any, extraArgs: any, { getRowQuery }: {
|
|
985
|
-
getRowQuery: any;
|
|
986
|
-
}) => Promise<div>;
|
|
987
|
-
get_state_fields: (table_id: any, viewname: any, { list_view, show_view }: {
|
|
988
|
-
list_view: string;
|
|
989
|
-
show_view: any;
|
|
990
|
-
}) => Promise<object[]>;
|
|
991
|
-
display_state_form: ({ list_view, _omit_state_form }: {
|
|
992
|
-
list_view: string;
|
|
993
|
-
_omit_state_form: boolean;
|
|
994
|
-
}) => boolean;
|
|
995
|
-
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
996
|
-
table_id: any;
|
|
997
|
-
viewname: any;
|
|
998
|
-
configuration: {
|
|
999
|
-
columns: any;
|
|
1000
|
-
default_state: any;
|
|
1001
|
-
};
|
|
1002
|
-
req: any;
|
|
1003
|
-
}) => {
|
|
1004
|
-
getRowQuery(uniques: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1005
|
-
};
|
|
1006
|
-
connectedObjects: ({ list_view, subtables }: {
|
|
1007
|
-
list_view: any;
|
|
1008
|
-
subtables: any;
|
|
1009
|
-
}) => Promise<{
|
|
1010
|
-
embeddedViews: import("../models/view")[];
|
|
1011
|
-
}>;
|
|
1012
|
-
} | {
|
|
1013
|
-
name: string;
|
|
1014
|
-
description: string;
|
|
1015
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1016
|
-
run: (table_id: number, viewname: string, { show_view, order_field, descending, view_to_create, create_view_display, in_card, view_decoration, initial_open_accordions, title_formula, masonry_columns, rows_per_page, hide_pagination, create_view_label, create_view_location, create_link_style, create_link_size, always_create_view, include_fml, exclusion_relation, exclusion_where, empty_view, groupby, ...cols }: {
|
|
1017
|
-
show_view: string;
|
|
1018
|
-
order_field: void;
|
|
1019
|
-
descending: boolean;
|
|
1102
|
+
run: (table_id: string | number, viewname: string, { columns, view_to_create, create_view_display, create_view_label, default_state, create_view_location, create_link_style, create_link_size, }: {
|
|
1103
|
+
columns: object[];
|
|
1020
1104
|
view_to_create?: string | undefined;
|
|
1021
1105
|
create_view_display: string;
|
|
1022
|
-
in_card: boolean;
|
|
1023
|
-
masonry_columns: string;
|
|
1024
|
-
rows_per_page?: number | undefined;
|
|
1025
|
-
hide_pagination: boolean;
|
|
1026
1106
|
create_view_label?: string | undefined;
|
|
1107
|
+
default_state?: object | undefined;
|
|
1027
1108
|
create_view_location?: string | undefined;
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
}
|
|
1033
|
-
get_state_fields: (table_id: number, viewname: any, { show_view }: {
|
|
1034
|
-
show_view: any;
|
|
1035
|
-
}) => Promise<import("../models/field")>;
|
|
1036
|
-
display_state_form: boolean;
|
|
1037
|
-
getStringsForI18n({ create_view_label }: {
|
|
1038
|
-
create_view_label: any;
|
|
1039
|
-
}): string[] | Object[];
|
|
1040
|
-
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1041
|
-
table_id: any;
|
|
1042
|
-
viewname: any;
|
|
1043
|
-
configuration: {
|
|
1044
|
-
columns: any;
|
|
1045
|
-
default_state: any;
|
|
1046
|
-
};
|
|
1047
|
-
req: any;
|
|
1048
|
-
}) => {
|
|
1049
|
-
countRowsQuery(state: any): Promise<number>;
|
|
1050
|
-
};
|
|
1051
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1052
|
-
} | {
|
|
1053
|
-
name: string;
|
|
1054
|
-
description: string;
|
|
1055
|
-
get_state_fields: () => object[];
|
|
1056
|
-
configuration_workflow: () => import("../models/workflow");
|
|
1057
|
-
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
1109
|
+
}, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
|
|
1110
|
+
listQuery: any;
|
|
1111
|
+
}) => Promise<any>;
|
|
1112
|
+
view_quantity: string;
|
|
1113
|
+
get_state_fields: (table_id: string, viewname: any, { columns }: {
|
|
1058
1114
|
columns: object[];
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
display_state_form: boolean;
|
|
1065
|
-
getStringsForI18n({ layout }: {
|
|
1066
|
-
layout: any;
|
|
1067
|
-
}): string[];
|
|
1115
|
+
}) => Function;
|
|
1116
|
+
initial_config: Function;
|
|
1117
|
+
on_delete: (table_id: any, viewname: string, { default_state }: {
|
|
1118
|
+
default_state: any;
|
|
1119
|
+
}) => Promise<void>;
|
|
1068
1120
|
routes: {
|
|
1069
|
-
run_action: (table_id:
|
|
1070
|
-
|
|
1121
|
+
run_action: (table_id: number, viewname: any, { columns, layout }: {
|
|
1122
|
+
columns: object[];
|
|
1123
|
+
layout: any;
|
|
1124
|
+
}, body: object, { req, res }: {
|
|
1125
|
+
req: object;
|
|
1071
1126
|
res: any;
|
|
1072
|
-
}, {
|
|
1073
|
-
|
|
1074
|
-
}) => Promise<
|
|
1127
|
+
}, { getRowQuery }: {
|
|
1128
|
+
getRowQuery: any;
|
|
1129
|
+
}) => Promise<object>;
|
|
1075
1130
|
};
|
|
1076
|
-
|
|
1131
|
+
display_state_form: (opts: object) => boolean;
|
|
1132
|
+
default_state_form: ({ default_state }: object) => boolean;
|
|
1133
|
+
getStringsForI18n({ columns, create_view_label }: {
|
|
1134
|
+
columns: any;
|
|
1135
|
+
create_view_label: any;
|
|
1136
|
+
}): string[];
|
|
1137
|
+
queries: ({ table_id, exttable_name, name, configuration: { columns, default_state }, req, }: {
|
|
1077
1138
|
table_id: any;
|
|
1078
|
-
|
|
1139
|
+
exttable_name: any;
|
|
1140
|
+
name: any;
|
|
1079
1141
|
configuration: {
|
|
1080
1142
|
columns: any;
|
|
1143
|
+
default_state: any;
|
|
1081
1144
|
};
|
|
1082
1145
|
req: any;
|
|
1083
|
-
res: any;
|
|
1084
|
-
exttable_name: any;
|
|
1085
1146
|
}) => {
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
distinctValuesQuery(state: any): Promise<{
|
|
1090
|
-
distinct_values: {};
|
|
1091
|
-
role: any;
|
|
1147
|
+
listQuery(state: any, stateHash: any): Promise<{
|
|
1148
|
+
rows: import("@saltcorn/db-common/internal").Row[];
|
|
1149
|
+
rowCount: number;
|
|
1092
1150
|
}>;
|
|
1151
|
+
getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1093
1152
|
};
|
|
1153
|
+
configCheck: (view: any) => Promise<{
|
|
1154
|
+
errors: string[];
|
|
1155
|
+
warnings: string[];
|
|
1156
|
+
}>;
|
|
1157
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1094
1158
|
} | {
|
|
1095
1159
|
name: string;
|
|
1096
1160
|
description: string;
|
|
1097
1161
|
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1098
|
-
run: (table_id: string, viewname: string, {
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
msgform: string;
|
|
1104
|
-
participant_maxread_field: string;
|
|
1105
|
-
}, state: object, { req, res }: {
|
|
1106
|
-
req: object;
|
|
1107
|
-
res: object;
|
|
1108
|
-
}, { getRowQuery, updateQuery, optionsQuery }: {
|
|
1162
|
+
run: (table_id: string, viewname: string, { list_view, show_view, list_width, subtables }: {
|
|
1163
|
+
list_view: string;
|
|
1164
|
+
show_view: string;
|
|
1165
|
+
subtables: object;
|
|
1166
|
+
}, state: any, extraArgs: any, { getRowQuery }: {
|
|
1109
1167
|
getRowQuery: any;
|
|
1110
|
-
updateQuery: any;
|
|
1111
|
-
optionsQuery: any;
|
|
1112
1168
|
}) => Promise<div>;
|
|
1113
|
-
get_state_fields: (
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
msgform: string;
|
|
1122
|
-
participant_maxread_field: string;
|
|
1123
|
-
}, body: any, { req, res }: {
|
|
1124
|
-
req: object;
|
|
1125
|
-
res: object;
|
|
1126
|
-
}, { submitAjaxQuery }: {
|
|
1127
|
-
submitAjaxQuery: any;
|
|
1128
|
-
}) => Promise<object>;
|
|
1129
|
-
ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
|
|
1130
|
-
participant_field: string;
|
|
1131
|
-
participant_maxread_field: string;
|
|
1132
|
-
}, body: any, { req, res }: {
|
|
1133
|
-
req: object;
|
|
1134
|
-
res: object;
|
|
1135
|
-
}, { ackReadQuery }: {
|
|
1136
|
-
ackReadQuery: any;
|
|
1137
|
-
}) => Promise<void>;
|
|
1138
|
-
fetch_older_msg: (table_id: any, viewname: any, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: object, body: object, { req, res }: string, { fetchOlderMsgQuery }: any) => Promise<object>;
|
|
1139
|
-
};
|
|
1140
|
-
noAutoTest: boolean;
|
|
1141
|
-
authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
|
|
1142
|
-
participant_field: object;
|
|
1143
|
-
}, room_id: string, user: object) => Promise<object>;
|
|
1144
|
-
virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1145
|
-
participant_field: any;
|
|
1146
|
-
msg_relation: string;
|
|
1147
|
-
msgsender_field: string;
|
|
1148
|
-
msgview: string;
|
|
1149
|
-
msgform: any;
|
|
1150
|
-
participant_maxread_field: any;
|
|
1151
|
-
}) => object[];
|
|
1152
|
-
getStringsForI18n(): object[];
|
|
1169
|
+
get_state_fields: (table_id: any, viewname: any, { list_view, show_view }: {
|
|
1170
|
+
list_view: string;
|
|
1171
|
+
show_view: any;
|
|
1172
|
+
}) => Promise<object[]>;
|
|
1173
|
+
display_state_form: ({ list_view, _omit_state_form }: {
|
|
1174
|
+
list_view: string;
|
|
1175
|
+
_omit_state_form: boolean;
|
|
1176
|
+
}) => boolean;
|
|
1153
1177
|
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1154
1178
|
table_id: any;
|
|
1155
1179
|
viewname: any;
|
|
@@ -1159,38 +1183,14 @@ export const viewtemplates: ({
|
|
|
1159
1183
|
};
|
|
1160
1184
|
req: any;
|
|
1161
1185
|
}) => {
|
|
1162
|
-
getRowQuery(
|
|
1163
|
-
updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
|
|
1164
|
-
submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
|
|
1165
|
-
json: {
|
|
1166
|
-
msgid: {
|
|
1167
|
-
error: string;
|
|
1168
|
-
} | {
|
|
1169
|
-
success: any;
|
|
1170
|
-
};
|
|
1171
|
-
error?: undefined;
|
|
1172
|
-
};
|
|
1173
|
-
} | {
|
|
1174
|
-
json: {
|
|
1175
|
-
error: any;
|
|
1176
|
-
msgid?: undefined;
|
|
1177
|
-
};
|
|
1178
|
-
}>;
|
|
1179
|
-
ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
|
|
1180
|
-
json: {
|
|
1181
|
-
error: string;
|
|
1182
|
-
success?: undefined;
|
|
1183
|
-
};
|
|
1184
|
-
} | {
|
|
1185
|
-
json: {
|
|
1186
|
-
success: string;
|
|
1187
|
-
error?: undefined;
|
|
1188
|
-
};
|
|
1189
|
-
}>;
|
|
1190
|
-
fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1191
|
-
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
1186
|
+
getRowQuery(uniques: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1192
1187
|
};
|
|
1193
|
-
connectedObjects: (
|
|
1188
|
+
connectedObjects: ({ list_view, subtables }: {
|
|
1189
|
+
list_view: any;
|
|
1190
|
+
subtables: any;
|
|
1191
|
+
}) => Promise<{
|
|
1192
|
+
embeddedViews: import("../models/view")[];
|
|
1193
|
+
}>;
|
|
1194
1194
|
})[];
|
|
1195
1195
|
import fileviews = require("./fileviews");
|
|
1196
1196
|
import actions = require("./actions");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../base-plugin/viewtemplates/edit.js"],"names":[],"mappings":"AA6FA;;;GAGG;AAEH,4CAJW,MAAM,GACJ,QAAQ,CA8VjB;AAgCJ;;;;;;;;;;;GAWG;AACH,8BAXW,MAAM,YACN,MAAM,mBAIN,MAAM;IAEU,GAAG,EAAnB,MAAM;IACU,GAAG,EAAnB,MAAM;;;IACJ,QAAQ,IAAI,CAAC,CAYzB;AAED;;;;;;;;;GASG;AACH,kCATW,MAAM,YACN,MAAM;IAEE,OAAO;IACP,MAAM;wBAEd,MAAM;;;;IACJ,QAAQ,IAAI,EAAE,CAAC,CAyC3B;AA+ZD;;;;;;;;;;;;;;;;GAgBG;AACH,kCAhBW,MAAM,YACN,MAAM;IAEY,OAAO,EAAzB,MAAM,EAAE;IACQ,MAAM;IACN,KAAK,EAArB,MAAM;IACW,cAAc,EAA/B,OAAO;IACW,oBAAoB,EAAtC,MAAM,EAAE;UACR,MAAM;IAGU,GAAG,EAAnB,MAAM;IACU,GAAG,EAAnB,MAAM;IACU,QAAQ,EAAxB,MAAM;;;;;;;;iBACJ,QAAQ,IAAI,CAAC,CAuNzB;AA5uBD;;;;;;GAMG;AACH;IAHmB,OAAO;IACb,QAAQ,MAAM,EAAE,CAAC,CAQ7B;AAcD,uBAAuB;AACvB,sCAAuD;AA4xBvD;;;;;;GAMG;AACH;IALwB,IAAI,EAAjB,MAAM;IACO,QAAQ,EAArB,MAAM;IACO,GAAG,EAAhB,MAAM;;;IACJ,QAAQ,OAAO,CAAC,CAO5B;;;;AAED;;;;;;;;;;;GAWG;AACH,sCAXW,MAAM;IAGS,OAAO,EAAtB,MAAM,EAAE;IACA,MAAM;;IAGE,GAAG,EAAnB,MAAM;IACK,GAAG;;;IACZ,QAAQ,MAAM,CAAC,CAe3B;AAED;;;;;;;;;;;;;;;;;;;;;kBAmGC;;
|
|
1
|
+
{"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../base-plugin/viewtemplates/edit.js"],"names":[],"mappings":"AA6FA;;;GAGG;AAEH,4CAJW,MAAM,GACJ,QAAQ,CA8VjB;AAgCJ;;;;;;;;;;;GAWG;AACH,8BAXW,MAAM,YACN,MAAM,mBAIN,MAAM;IAEU,GAAG,EAAnB,MAAM;IACU,GAAG,EAAnB,MAAM;;;IACJ,QAAQ,IAAI,CAAC,CAYzB;AAED;;;;;;;;;GASG;AACH,kCATW,MAAM,YACN,MAAM;IAEE,OAAO;IACP,MAAM;wBAEd,MAAM;;;;IACJ,QAAQ,IAAI,EAAE,CAAC,CAyC3B;AA+ZD;;;;;;;;;;;;;;;;GAgBG;AACH,kCAhBW,MAAM,YACN,MAAM;IAEY,OAAO,EAAzB,MAAM,EAAE;IACQ,MAAM;IACN,KAAK,EAArB,MAAM;IACW,cAAc,EAA/B,OAAO;IACW,oBAAoB,EAAtC,MAAM,EAAE;UACR,MAAM;IAGU,GAAG,EAAnB,MAAM;IACU,GAAG,EAAnB,MAAM;IACU,QAAQ,EAAxB,MAAM;;;;;;;;iBACJ,QAAQ,IAAI,CAAC,CAuNzB;AA5uBD;;;;;;GAMG;AACH;IAHmB,OAAO;IACb,QAAQ,MAAM,EAAE,CAAC,CAQ7B;AAcD,uBAAuB;AACvB,sCAAuD;AA4xBvD;;;;;;GAMG;AACH;IALwB,IAAI,EAAjB,MAAM;IACO,QAAQ,EAArB,MAAM;IACO,GAAG,EAAhB,MAAM;;;IACJ,QAAQ,OAAO,CAAC,CAO5B;;;;AAED;;;;;;;;;;;GAWG;AACH,sCAXW,MAAM;IAGS,OAAO,EAAtB,MAAM,EAAE;IACA,MAAM;;IAGE,GAAG,EAAnB,MAAM;IACK,GAAG;;;IACZ,QAAQ,MAAM,CAAC,CAe3B;AAED;;;;;;;;;;;;;;;;;;;;;kBAmGC;;2BAuSY,MAAM;kCAEN,MAAM;yCAQN,OAAO;AASH;;;;;qBAEd;AACD;;;;GAIG;AACH;;aAEC;AAPD;;;;GAIG;AACH;;aAEC;AACQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmSP;;;;;AAGW;;;GA2DZ;AACiB,6HAEjB"}
|
|
@@ -1120,6 +1120,8 @@ const prepare = async (viewname, table, fields, { columns, layout, fixed, auto_s
|
|
|
1120
1120
|
}
|
|
1121
1121
|
const file_fields = form.fields.filter((f) => f.type === "File");
|
|
1122
1122
|
for (const field of file_fields) {
|
|
1123
|
+
if (!field.fieldviewObj?.isEdit)
|
|
1124
|
+
continue;
|
|
1123
1125
|
if (field.fieldviewObj?.setsFileId) {
|
|
1124
1126
|
//do nothing
|
|
1125
1127
|
}
|