@experium/findy-form 1.3.10 → 1.3.11
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.
|
@@ -159,14 +159,14 @@ var PersonalDataAgreementComponent = /*#__PURE__*/function (_Component) {
|
|
|
159
159
|
className: opd ? styles.formLink : styles.withoutOpd,
|
|
160
160
|
onClick: _this.open
|
|
161
161
|
};
|
|
162
|
-
var linkText = (0, _ramda.path)(['translations', 'labelLink', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.pathOr)(t('opdLink'), ['labelLink'], opdSettings), ['translations', 'labelLink', language], opdSettings);
|
|
163
|
-
var link = (0, _ramda.path)(['translations', 'link', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.path)(['link'], opdSettings), ['translations', 'link', language], opdSettings);
|
|
164
|
-
var opdText = (0, _ramda.pathOr)(['translations', 'text', pdaLanguage], opdSettings) || (0, _ramda.pathOr)(opd, ['translations', 'text', language], opdSettings);
|
|
162
|
+
var linkText = (0, _ramda.path)(['data', 'translations', 'labelLink', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.pathOr)(t('opdLink'), ['labelLink'], opdSettings), ['translations', 'labelLink', language], opdSettings);
|
|
163
|
+
var link = (0, _ramda.path)(['data', 'translations', 'link', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.path)(['link'], opdSettings), ['translations', 'link', language], opdSettings);
|
|
164
|
+
var opdText = (0, _ramda.pathOr)(['data', 'translations', 'text', pdaLanguage], opdSettings) || (0, _ramda.pathOr)(opd, ['translations', 'text', language], opdSettings);
|
|
165
165
|
var opdType = (0, _ramda.pathOr)('modal', ['linkType'], opdSettings);
|
|
166
|
-
return /*#__PURE__*/_react["default"].createElement("span", null, renderOpdLabel ? renderOpdLabel(modalLinkProps) : label !== 'opdLabelCustom' ? label : /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, (0, _ramda.path)(['translations', 'labelStart', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.pathOr)(t('opdLabel'), ['labelStart'], opdSettings), ['translations', 'labelStart', language], opdSettings), ' ', opdType === 'modal' ? /*#__PURE__*/_react["default"].createElement("span", modalLinkProps, linkText) : /*#__PURE__*/_react["default"].createElement("a", {
|
|
166
|
+
return /*#__PURE__*/_react["default"].createElement("span", null, renderOpdLabel ? renderOpdLabel(modalLinkProps) : label !== 'opdLabelCustom' ? label : /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, (0, _ramda.path)(['data', 'translations', 'labelStart', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.pathOr)(t('opdLabel'), ['labelStart'], opdSettings), ['translations', 'labelStart', language], opdSettings), ' ', opdType === 'modal' ? /*#__PURE__*/_react["default"].createElement("span", modalLinkProps, linkText) : /*#__PURE__*/_react["default"].createElement("a", {
|
|
167
167
|
href: "//".concat(link),
|
|
168
168
|
target: "_blank"
|
|
169
|
-
}, linkText), ' ', (0, _ramda.path)(['translations', 'labelEnd', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.pathOr)('.', ['labelEnd'], opdSettings), ['translations', 'labelEnd', language], opdSettings)), /*#__PURE__*/_react["default"].createElement(_reactResponsiveModal["default"], {
|
|
169
|
+
}, linkText), ' ', (0, _ramda.path)(['data', 'translations', 'labelEnd', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.pathOr)('.', ['labelEnd'], opdSettings), ['translations', 'labelEnd', language], opdSettings)), /*#__PURE__*/_react["default"].createElement(_reactResponsiveModal["default"], {
|
|
170
170
|
open: _this.state.opened,
|
|
171
171
|
onClose: _this.close,
|
|
172
172
|
classNames: {
|
|
@@ -277,7 +277,7 @@ var PersonalDataAgreementComponent = /*#__PURE__*/function (_Component) {
|
|
|
277
277
|
htmlAttrs: htmlAttrs,
|
|
278
278
|
html: _this2.props.htmlOpd || constructorOpd,
|
|
279
279
|
htmlOpdStyles: _this2.props.htmlOpdStyles,
|
|
280
|
-
acceptBtn: (0, _ramda.path)(['translations', 'acceptButtonLabel', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.path)(['acceptButtonLabel'], opdSettings), ['translations', 'acceptButtonLabel', language], opdSettings)
|
|
280
|
+
acceptBtn: (0, _ramda.path)(['data', 'translations', 'acceptButtonLabel', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.path)(['acceptButtonLabel'], opdSettings), ['translations', 'acceptButtonLabel', language], opdSettings)
|
|
281
281
|
});
|
|
282
282
|
}))));
|
|
283
283
|
});
|
package/package.json
CHANGED
|
@@ -67,9 +67,9 @@ class PersonalDataAgreementComponent extends Component {
|
|
|
67
67
|
className: opd ? styles.formLink : styles.withoutOpd,
|
|
68
68
|
onClick: this.open
|
|
69
69
|
};
|
|
70
|
-
const linkText = path(['translations', 'labelLink', pdaLanguage], opdSettings) || pathOr(pathOr(t('opdLink'), ['labelLink'], opdSettings), ['translations', 'labelLink', language], opdSettings);
|
|
71
|
-
const link = path(['translations', 'link', pdaLanguage], opdSettings) || pathOr(path(['link'], opdSettings), ['translations', 'link', language], opdSettings);
|
|
72
|
-
const opdText = pathOr(['translations', 'text', pdaLanguage], opdSettings) || pathOr(opd, ['translations', 'text', language], opdSettings);
|
|
70
|
+
const linkText = path(['data', 'translations', 'labelLink', pdaLanguage], opdSettings) || pathOr(pathOr(t('opdLink'), ['labelLink'], opdSettings), ['translations', 'labelLink', language], opdSettings);
|
|
71
|
+
const link = path(['data', 'translations', 'link', pdaLanguage], opdSettings) || pathOr(path(['link'], opdSettings), ['translations', 'link', language], opdSettings);
|
|
72
|
+
const opdText = pathOr(['data', 'translations', 'text', pdaLanguage], opdSettings) || pathOr(opd, ['translations', 'text', language], opdSettings);
|
|
73
73
|
const opdType = pathOr('modal', ['linkType'], opdSettings);
|
|
74
74
|
|
|
75
75
|
return <span>
|
|
@@ -78,14 +78,14 @@ class PersonalDataAgreementComponent extends Component {
|
|
|
78
78
|
label
|
|
79
79
|
) : (
|
|
80
80
|
<Fragment>
|
|
81
|
-
{ path(['translations', 'labelStart', pdaLanguage], opdSettings) || pathOr(pathOr(t('opdLabel'), ['labelStart'], opdSettings), ['translations', 'labelStart', language], opdSettings) }
|
|
81
|
+
{ path(['data', 'translations', 'labelStart', pdaLanguage], opdSettings) || pathOr(pathOr(t('opdLabel'), ['labelStart'], opdSettings), ['translations', 'labelStart', language], opdSettings) }
|
|
82
82
|
{ ' ' }
|
|
83
83
|
{ opdType === 'modal' ?
|
|
84
84
|
<span {...modalLinkProps}>{ linkText }</span> :
|
|
85
85
|
<a href={`//${link}`} target='_blank'>{ linkText }</a>
|
|
86
86
|
}
|
|
87
87
|
{ ' ' }
|
|
88
|
-
{ path(['translations', 'labelEnd', pdaLanguage], opdSettings) || pathOr(pathOr('.', ['labelEnd'], opdSettings), ['translations', 'labelEnd', language], opdSettings) }
|
|
88
|
+
{ path(['data', 'translations', 'labelEnd', pdaLanguage], opdSettings) || pathOr(pathOr('.', ['labelEnd'], opdSettings), ['translations', 'labelEnd', language], opdSettings) }
|
|
89
89
|
</Fragment>
|
|
90
90
|
)
|
|
91
91
|
}
|
|
@@ -197,7 +197,7 @@ class PersonalDataAgreementComponent extends Component {
|
|
|
197
197
|
html={this.props.htmlOpd || constructorOpd}
|
|
198
198
|
htmlOpdStyles={this.props.htmlOpdStyles}
|
|
199
199
|
acceptBtn={
|
|
200
|
-
path(['translations', 'acceptButtonLabel', pdaLanguage], opdSettings)
|
|
200
|
+
path(['data', 'translations', 'acceptButtonLabel', pdaLanguage], opdSettings)
|
|
201
201
|
|| pathOr(path(['acceptButtonLabel'], opdSettings), ['translations', 'acceptButtonLabel', language], opdSettings)
|
|
202
202
|
} />
|
|
203
203
|
)}
|