0
+ ? darkMode
+ ? "1px solid rgba(255,120,117,0.34)"
+ : "1px solid rgba(245,34,45,0.18)"
+ : darkMode
+ ? "1px solid rgba(255,214,102,0.24)"
+ : "1px solid rgba(250,173,20,0.18)",
+ background: connectionProtectionEnabledCount > 0
+ ? darkMode
+ ? "linear-gradient(180deg, rgba(255,120,117,0.12) 0%, rgba(255,120,117,0.05) 100%)"
+ : "linear-gradient(180deg, rgba(255,245,245,0.96) 0%, rgba(255,240,240,0.92) 100%)"
+ : darkMode
+ ? "linear-gradient(180deg, rgba(255,214,102,0.10) 0%, rgba(255,214,102,0.04) 100%)"
+ : "linear-gradient(180deg, rgba(255,251,230,0.98) 0%, rgba(255,247,214,0.94) 100%)",
+ boxShadow: darkMode
+ ? "inset 0 1px 0 rgba(255,255,255,0.04)"
+ : "inset 0 1px 0 rgba(255,255,255,0.92)",
+ }}
>
- {t("connection.modal.field.readOnly.checkbox")}
-
-
+
+
+
+ {t("connection.modal.field.readOnly.label")}
+
+
+ {t("connection.modal.field.readOnly.help")}
+
+
+
+ {t("connection.modal.field.readOnly.compatibility")}
+
+
+
+ {[
+ {
+ field: "restrictDataEdit",
+ checked: restrictDataEdit,
+ label: t(
+ "connection.modal.field.readOnly.option.dataEdit.label",
+ ),
+ help: t(
+ "connection.modal.field.readOnly.option.dataEdit.help",
+ ),
+ },
+ {
+ field: "restrictStructureEdit",
+ checked: restrictStructureEdit,
+ label: t(
+ "connection.modal.field.readOnly.option.structureEdit.label",
+ ),
+ help: t(
+ "connection.modal.field.readOnly.option.structureEdit.help",
+ ),
+ },
+ {
+ field: "restrictScriptExecution",
+ checked: restrictScriptExecution,
+ label: t(
+ "connection.modal.field.readOnly.option.scriptExecution.label",
+ ),
+ help: t(
+ "connection.modal.field.readOnly.option.scriptExecution.help",
+ ),
+ },
+ {
+ field: "restrictDataImport",
+ checked: restrictDataImport,
+ label: t(
+ "connection.modal.field.readOnly.option.dataImport.label",
+ ),
+ help: t(
+ "connection.modal.field.readOnly.option.dataImport.help",
+ ),
+ },
+ ].map((item) => (
+
+ setChoiceFieldValue(item.field, !item.checked)
+ }
+ style={{
+ padding: 14,
+ borderRadius: 14,
+ border: item.checked
+ ? darkMode
+ ? "1px solid rgba(255,120,117,0.22)"
+ : "1px solid rgba(245,34,45,0.14)"
+ : darkMode
+ ? "1px solid rgba(255,255,255,0.08)"
+ : "1px solid rgba(5,5,5,0.08)",
+ background: item.checked
+ ? darkMode
+ ? "rgba(255,120,117,0.08)"
+ : "rgba(255,241,240,0.92)"
+ : darkMode
+ ? "rgba(255,255,255,0.02)"
+ : "rgba(255,255,255,0.9)",
+ cursor: "pointer",
+ }}
+ >
+
+
event.stopPropagation()}
+ >
+
+
+ clearConnectionTestResultForChoice()
+ }
+ style={{
+ marginInlineStart: 0,
+ }}
+ />
+
+
+
+
+ {item.label}
+
+
+ {item.help}
+
+
+
+
+ ))}
+
+
+ {t("connection.modal.field.readOnly.summary.title")}
+
+
+ {connectionProtectionEnabledCount > 0
+ ? t(
+ "connection.modal.field.readOnly.summary.selected",
+ { count: connectionProtectionEnabledCount },
+ )
+ : t(
+ "connection.modal.field.readOnly.summary.empty",
+ )}
+
+
+ {t("connection.modal.field.readOnly.tip")}
+