@saltcorn/data 0.9.1-beta.0 → 0.9.1-beta.2

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 (40) hide show
  1. package/dist/base-plugin/actions.d.ts +3 -0
  2. package/dist/base-plugin/actions.d.ts.map +1 -1
  3. package/dist/base-plugin/actions.js +1 -2
  4. package/dist/base-plugin/actions.js.map +1 -1
  5. package/dist/base-plugin/fieldviews.d.ts.map +1 -1
  6. package/dist/base-plugin/fieldviews.js +5 -0
  7. package/dist/base-plugin/fieldviews.js.map +1 -1
  8. package/dist/base-plugin/index.d.ts +227 -227
  9. package/dist/base-plugin/types.d.ts.map +1 -1
  10. package/dist/base-plugin/types.js +2 -0
  11. package/dist/base-plugin/types.js.map +1 -1
  12. package/dist/base-plugin/viewtemplates/edit.d.ts.map +1 -1
  13. package/dist/base-plugin/viewtemplates/edit.js +30 -6
  14. package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
  15. package/dist/base-plugin/viewtemplates/viewable_fields.d.ts.map +1 -1
  16. package/dist/base-plugin/viewtemplates/viewable_fields.js +3 -1
  17. package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
  18. package/dist/db/fixtures.d.ts.map +1 -1
  19. package/dist/db/fixtures.js +10 -0
  20. package/dist/db/fixtures.js.map +1 -1
  21. package/dist/models/file.d.ts.map +1 -1
  22. package/dist/models/file.js +1 -1
  23. package/dist/models/file.js.map +1 -1
  24. package/dist/models/index.d.ts +1 -1
  25. package/dist/models/page.d.ts +1 -0
  26. package/dist/models/page.d.ts.map +1 -1
  27. package/dist/models/page.js +7 -0
  28. package/dist/models/page.js.map +1 -1
  29. package/dist/plugin-helper.d.ts +1 -0
  30. package/dist/tests/exact_views.test.js +12 -12
  31. package/dist/tests/exact_views.test.js.map +1 -1
  32. package/dist/tests/fieldviews.test.js +2 -2
  33. package/dist/tests/fieldviews.test.js.map +1 -1
  34. package/dist/tests/models.test.js +16 -0
  35. package/dist/tests/models.test.js.map +1 -1
  36. package/dist/tests/page.test.d.ts +2 -0
  37. package/dist/tests/page.test.d.ts.map +1 -0
  38. package/dist/tests/page.test.js +26 -0
  39. package/dist/tests/page.test.js.map +1 -0
  40. package/package.json +7 -7
@@ -597,45 +597,63 @@ export const types: ({
597
597
  export const viewtemplates: ({
598
598
  name: string;
599
599
  description: string;
600
- get_state_fields: () => object[];
601
- configuration_workflow: () => import("../models/workflow");
602
- run: (table_id: number, viewname: string, { columns, layout }: {
600
+ configuration_workflow: (req: object) => import("../models/workflow");
601
+ 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, }: {
603
602
  columns: object[];
604
- layout: object;
605
- }, state: object, extra: object, { distinctValuesQuery }: {
606
- distinctValuesQuery: any;
607
- }) => Promise<Layout>;
608
- initial_config: () => Promise<object>;
609
- display_state_form: boolean;
610
- getStringsForI18n({ layout }: {
611
- layout: any;
612
- }): string[];
603
+ view_to_create?: string | undefined;
604
+ create_view_display: string;
605
+ create_view_label?: string | undefined;
606
+ default_state?: object | undefined;
607
+ create_view_location?: string | undefined;
608
+ }, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
609
+ listQuery: any;
610
+ }) => Promise<any>;
611
+ view_quantity: string;
612
+ get_state_fields: (table_id: string, viewname: any, { columns }: {
613
+ columns: object[];
614
+ }) => Function;
615
+ initial_config: Function;
616
+ on_delete: (table_id: any, viewname: string, { default_state }: {
617
+ default_state: any;
618
+ }) => Promise<void>;
613
619
  routes: {
614
- run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
615
- req: any;
620
+ run_action: (table_id: number, viewname: any, { columns, layout }: {
621
+ columns: object[];
622
+ layout: any;
623
+ }, body: object, { req, res }: {
624
+ req: object;
616
625
  res: any;
617
- }, { actionQuery }: {
618
- actionQuery: any;
619
- }) => Promise<any>;
626
+ }, { getRowQuery }: {
627
+ getRowQuery: any;
628
+ }) => Promise<object>;
620
629
  };
621
- queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
630
+ display_state_form: (opts: object) => boolean;
631
+ default_state_form: ({ default_state }: object) => boolean;
632
+ getStringsForI18n({ columns, create_view_label }: {
633
+ columns: any;
634
+ create_view_label: any;
635
+ }): string[];
636
+ queries: ({ table_id, exttable_name, name, configuration: { columns, default_state }, req, }: {
622
637
  table_id: any;
623
- viewname: any;
638
+ exttable_name: any;
639
+ name: any;
624
640
  configuration: {
625
641
  columns: any;
642
+ default_state: any;
626
643
  };
627
644
  req: any;
628
- res: any;
629
- exttable_name: any;
630
645
  }) => {
631
- actionQuery(state: any, rndid: any): Promise<{
632
- json: any;
633
- }>;
634
- distinctValuesQuery(state: any): Promise<{
635
- distinct_values: {};
636
- role: any;
646
+ listQuery(state: any, stateHash: any): Promise<{
647
+ rows: import("@saltcorn/db-common/internal").Row[];
648
+ rowCount: number;
637
649
  }>;
650
+ getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
638
651
  };
652
+ configCheck: (view: any) => Promise<{
653
+ errors: string[];
654
+ warnings: string[];
655
+ }>;
656
+ connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
639
657
  } | {
640
658
  name: string;
641
659
  description: string;
@@ -785,146 +803,6 @@ export const viewtemplates: ({
785
803
  warnings: string[];
786
804
  }>;
787
805
  connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
788
- } | {
789
- name: string;
790
- description: string;
791
- configuration_workflow: (req: object) => import("../models/workflow");
792
- run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
793
- participant_field: string;
794
- msg_relation: string;
795
- msgsender_field: any;
796
- msgview: string;
797
- msgform: string;
798
- participant_maxread_field: string;
799
- }, state: object, { req, res }: {
800
- req: object;
801
- res: object;
802
- }, { getRowQuery, updateQuery, optionsQuery }: {
803
- getRowQuery: any;
804
- updateQuery: any;
805
- optionsQuery: any;
806
- }) => Promise<div>;
807
- get_state_fields: () => object[];
808
- display_state_form: boolean;
809
- routes: {
810
- submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
811
- participant_field: string;
812
- msg_relation: string;
813
- msgsender_field: any;
814
- msgview: string;
815
- msgform: string;
816
- participant_maxread_field: string;
817
- }, body: any, { req, res }: {
818
- req: object;
819
- res: object;
820
- }, { submitAjaxQuery }: {
821
- submitAjaxQuery: any;
822
- }) => Promise<object>;
823
- ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
824
- participant_field: string;
825
- participant_maxread_field: string;
826
- }, body: any, { req, res }: {
827
- req: object;
828
- res: object;
829
- }, { ackReadQuery }: {
830
- ackReadQuery: any;
831
- }) => Promise<void>;
832
- 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>;
833
- };
834
- noAutoTest: boolean;
835
- authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
836
- participant_field: object;
837
- }, room_id: string, user: object) => Promise<object>;
838
- virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
839
- participant_field: any;
840
- msg_relation: string;
841
- msgsender_field: string;
842
- msgview: string;
843
- msgform: any;
844
- participant_maxread_field: any;
845
- }) => object[];
846
- getStringsForI18n(): object[];
847
- queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
848
- table_id: any;
849
- viewname: any;
850
- configuration: {
851
- columns: any;
852
- default_state: any;
853
- };
854
- req: any;
855
- }) => {
856
- 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>;
857
- updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
858
- submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
859
- json: {
860
- msgid: {
861
- error: string;
862
- } | {
863
- success: any;
864
- };
865
- error?: undefined;
866
- };
867
- } | {
868
- json: {
869
- error: any;
870
- msgid?: undefined;
871
- };
872
- }>;
873
- ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
874
- json: {
875
- error: string;
876
- success?: undefined;
877
- };
878
- } | {
879
- json: {
880
- success: string;
881
- error?: undefined;
882
- };
883
- }>;
884
- fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
885
- optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
886
- };
887
- connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
888
- } | {
889
- name: string;
890
- description: string;
891
- configuration_workflow: (req: object) => import("../models/workflow");
892
- 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, empty_view, ...cols }: {
893
- show_view: string;
894
- order_field: name;
895
- descending: boolean;
896
- view_to_create?: string | undefined;
897
- create_view_display: string;
898
- in_card: boolean;
899
- masonry_columns: string;
900
- rows_per_page?: number | undefined;
901
- hide_pagination: boolean;
902
- create_view_label?: string | undefined;
903
- create_view_location?: string | undefined;
904
- always_create_view: boolean;
905
- cols: any;
906
- }, state: object, extraArgs: any, { countRowsQuery }: {
907
- countRowsQuery: any;
908
- }) => Promise<div>;
909
- get_state_fields: (table_id: number, viewname: any, { show_view }: {
910
- show_view: any;
911
- }) => Promise<import("../models/field")>;
912
- display_state_form: boolean;
913
- getStringsForI18n({ create_view_label }: {
914
- create_view_label: any;
915
- }): string[] | Object[];
916
- queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
917
- table_id: any;
918
- viewname: any;
919
- configuration: {
920
- columns: any;
921
- default_state: any;
922
- };
923
- req: any;
924
- }) => {
925
- countRowsQuery(state: any): Promise<number>;
926
- };
927
- connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
928
806
  } | {
929
807
  name: string;
930
808
  description: string;
@@ -999,66 +877,6 @@ export const viewtemplates: ({
999
877
  warnings: string[];
1000
878
  }>;
1001
879
  connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1002
- } | {
1003
- name: string;
1004
- description: string;
1005
- configuration_workflow: (req: object) => import("../models/workflow");
1006
- 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, }: {
1007
- columns: object[];
1008
- view_to_create?: string | undefined;
1009
- create_view_display: string;
1010
- create_view_label?: string | undefined;
1011
- default_state?: object | undefined;
1012
- create_view_location?: string | undefined;
1013
- }, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
1014
- listQuery: any;
1015
- }) => Promise<any>;
1016
- view_quantity: string;
1017
- get_state_fields: (table_id: string, viewname: any, { columns }: {
1018
- columns: object[];
1019
- }) => Function;
1020
- initial_config: Function;
1021
- on_delete: (table_id: any, viewname: string, { default_state }: {
1022
- default_state: any;
1023
- }) => Promise<void>;
1024
- routes: {
1025
- run_action: (table_id: number, viewname: any, { columns, layout }: {
1026
- columns: object[];
1027
- layout: any;
1028
- }, body: object, { req, res }: {
1029
- req: object;
1030
- res: any;
1031
- }, { getRowQuery }: {
1032
- getRowQuery: any;
1033
- }) => Promise<object>;
1034
- };
1035
- display_state_form: (opts: object) => boolean;
1036
- default_state_form: ({ default_state }: object) => boolean;
1037
- getStringsForI18n({ columns, create_view_label }: {
1038
- columns: any;
1039
- create_view_label: any;
1040
- }): string[];
1041
- queries: ({ table_id, exttable_name, name, configuration: { columns, default_state }, req, }: {
1042
- table_id: any;
1043
- exttable_name: any;
1044
- name: any;
1045
- configuration: {
1046
- columns: any;
1047
- default_state: any;
1048
- };
1049
- req: any;
1050
- }) => {
1051
- listQuery(state: any, stateHash: any): Promise<{
1052
- rows: import("@saltcorn/db-common/internal").Row[];
1053
- rowCount: number;
1054
- }>;
1055
- getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
1056
- };
1057
- configCheck: (view: any) => Promise<{
1058
- errors: string[];
1059
- warnings: string[];
1060
- }>;
1061
- connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1062
880
  } | {
1063
881
  name: string;
1064
882
  description: string;
@@ -1095,6 +913,188 @@ export const viewtemplates: ({
1095
913
  }) => Promise<{
1096
914
  embeddedViews: import("../models/view")[];
1097
915
  }>;
916
+ } | {
917
+ name: string;
918
+ description: string;
919
+ configuration_workflow: (req: object) => import("../models/workflow");
920
+ 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, empty_view, ...cols }: {
921
+ show_view: string;
922
+ order_field: name;
923
+ descending: boolean;
924
+ view_to_create?: string | undefined;
925
+ create_view_display: string;
926
+ in_card: boolean;
927
+ masonry_columns: string;
928
+ rows_per_page?: number | undefined;
929
+ hide_pagination: boolean;
930
+ create_view_label?: string | undefined;
931
+ create_view_location?: string | undefined;
932
+ always_create_view: boolean;
933
+ cols: any;
934
+ }, state: object, extraArgs: any, { countRowsQuery }: {
935
+ countRowsQuery: any;
936
+ }) => Promise<div>;
937
+ get_state_fields: (table_id: number, viewname: any, { show_view }: {
938
+ show_view: any;
939
+ }) => Promise<import("../models/field")>;
940
+ display_state_form: boolean;
941
+ getStringsForI18n({ create_view_label }: {
942
+ create_view_label: any;
943
+ }): string[] | Object[];
944
+ queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
945
+ table_id: any;
946
+ viewname: any;
947
+ configuration: {
948
+ columns: any;
949
+ default_state: any;
950
+ };
951
+ req: any;
952
+ }) => {
953
+ countRowsQuery(state: any): Promise<number>;
954
+ };
955
+ connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
956
+ } | {
957
+ name: string;
958
+ description: string;
959
+ get_state_fields: () => object[];
960
+ configuration_workflow: () => import("../models/workflow");
961
+ run: (table_id: number, viewname: string, { columns, layout }: {
962
+ columns: object[];
963
+ layout: object;
964
+ }, state: object, extra: object, { distinctValuesQuery }: {
965
+ distinctValuesQuery: any;
966
+ }) => Promise<Layout>;
967
+ initial_config: () => Promise<object>;
968
+ display_state_form: boolean;
969
+ getStringsForI18n({ layout }: {
970
+ layout: any;
971
+ }): string[];
972
+ routes: {
973
+ run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
974
+ req: any;
975
+ res: any;
976
+ }, { actionQuery }: {
977
+ actionQuery: any;
978
+ }) => Promise<any>;
979
+ };
980
+ queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
981
+ table_id: any;
982
+ viewname: any;
983
+ configuration: {
984
+ columns: any;
985
+ };
986
+ req: any;
987
+ res: any;
988
+ exttable_name: any;
989
+ }) => {
990
+ actionQuery(state: any, rndid: any): Promise<{
991
+ json: any;
992
+ }>;
993
+ distinctValuesQuery(state: any): Promise<{
994
+ distinct_values: {};
995
+ role: any;
996
+ }>;
997
+ };
998
+ } | {
999
+ name: string;
1000
+ description: string;
1001
+ configuration_workflow: (req: object) => import("../models/workflow");
1002
+ run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
1003
+ participant_field: string;
1004
+ msg_relation: string;
1005
+ msgsender_field: any;
1006
+ msgview: string;
1007
+ msgform: string;
1008
+ participant_maxread_field: string;
1009
+ }, state: object, { req, res }: {
1010
+ req: object;
1011
+ res: object;
1012
+ }, { getRowQuery, updateQuery, optionsQuery }: {
1013
+ getRowQuery: any;
1014
+ updateQuery: any;
1015
+ optionsQuery: any;
1016
+ }) => Promise<div>;
1017
+ get_state_fields: () => object[];
1018
+ display_state_form: boolean;
1019
+ routes: {
1020
+ submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
1021
+ participant_field: string;
1022
+ msg_relation: string;
1023
+ msgsender_field: any;
1024
+ msgview: string;
1025
+ msgform: string;
1026
+ participant_maxread_field: string;
1027
+ }, body: any, { req, res }: {
1028
+ req: object;
1029
+ res: object;
1030
+ }, { submitAjaxQuery }: {
1031
+ submitAjaxQuery: any;
1032
+ }) => Promise<object>;
1033
+ ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
1034
+ participant_field: string;
1035
+ participant_maxread_field: string;
1036
+ }, body: any, { req, res }: {
1037
+ req: object;
1038
+ res: object;
1039
+ }, { ackReadQuery }: {
1040
+ ackReadQuery: any;
1041
+ }) => Promise<void>;
1042
+ 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>;
1043
+ };
1044
+ noAutoTest: boolean;
1045
+ authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
1046
+ participant_field: object;
1047
+ }, room_id: string, user: object) => Promise<object>;
1048
+ virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
1049
+ participant_field: any;
1050
+ msg_relation: string;
1051
+ msgsender_field: string;
1052
+ msgview: string;
1053
+ msgform: any;
1054
+ participant_maxread_field: any;
1055
+ }) => object[];
1056
+ getStringsForI18n(): object[];
1057
+ queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
1058
+ table_id: any;
1059
+ viewname: any;
1060
+ configuration: {
1061
+ columns: any;
1062
+ default_state: any;
1063
+ };
1064
+ req: any;
1065
+ }) => {
1066
+ 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>;
1067
+ updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
1068
+ submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
1069
+ json: {
1070
+ msgid: {
1071
+ error: string;
1072
+ } | {
1073
+ success: any;
1074
+ };
1075
+ error?: undefined;
1076
+ };
1077
+ } | {
1078
+ json: {
1079
+ error: any;
1080
+ msgid?: undefined;
1081
+ };
1082
+ }>;
1083
+ ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
1084
+ json: {
1085
+ error: string;
1086
+ success?: undefined;
1087
+ };
1088
+ } | {
1089
+ json: {
1090
+ success: string;
1091
+ error?: undefined;
1092
+ };
1093
+ }>;
1094
+ fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
1095
+ optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
1096
+ };
1097
+ connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1098
1098
  })[];
1099
1099
  import fileviews = require("./fileviews");
1100
1100
  import actions = require("./actions");
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../base-plugin/types.js"],"names":[],"mappings":";gBAoWa,MAAM;oBAEN,MAAM;;IAQL,+CA6EX;IAMS;;gBAK+D;;;;;YAehE,6BAAyB;;;;;;;YAKzB,mCACiE;;;;;;;;YAKjE,mCAA+C;;;;;;;;;;;;;;YAc/C,4DAIJ;;;;;;;;;;;;;;;YAkBI,yDAGG;;;;;;;;YAUH,yDAAmE;;;;;;;;YAWnE,mCAA6B;;;;;;;;;YAYpB;;;;;;;;;;;;;;;;;;;;;iBAmCb;;YACI,6FAyEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiDH,6FAyCF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyCE,6FAqBF;;;;;;;;;;YAWE,8FAgBF;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AY;;;;;;;;YAeb,oCAMG;;;;;;;;;;;YAWH,8FAWD;;;;;;wBAGG,MAAM,EAAE;;IAMb,0CAOL;;IAIS,sCAET"}
@@ -510,6 +510,7 @@ const string = {
510
510
  disabled: attrs.disabled,
511
511
  onChange: attrs.onChange,
512
512
  onBlur: attrs.onChange,
513
+ autocomplete: "off",
513
514
  }, required || attrs.force_required
514
515
  ? getStrOptions(v, attrs.options)
515
516
  : [
@@ -527,6 +528,7 @@ const string = {
527
528
  id: `input${text_attr(nm)}`,
528
529
  onChange: attrs.onChange,
529
530
  onBlur: attrs.onChange,
531
+ autocomplete: "off",
530
532
  "data-selected": v,
531
533
  "data-calc-options": encodeURIComponent(JSON.stringify(attrs.calcOptions)),
532
534
  }, option({ value: "" }, ""))