@tap-payments/auth-jsconnect 2.4.63-test → 2.4.64-test
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.
|
@@ -68,8 +68,6 @@ var BrandInfo = function (_a) {
|
|
|
68
68
|
var readOnly = useFormErrorAndUpdateReadOnly(methods, originalReadOnly, noneEditable);
|
|
69
69
|
var dataVerified = useDataVerified(data_verification, ['logo', 'name.en', 'name.ar', 'segment.teams', 'segment.type']);
|
|
70
70
|
var getFelids = useExcludeReadOnlyFelids(methods, readOnly).getFelids;
|
|
71
|
-
console.log('brand kit noneEditable', noneEditable);
|
|
72
|
-
console.log('brand kit readOnly', readOnly);
|
|
73
71
|
var isBrandNameVerified = dataVerified['name.en'] && dataVerified['name.ar'] && ((name === null || name === void 0 ? void 0 : name.en) === watch('brandName') || (name === null || name === void 0 ? void 0 : name.ar) === watch('brandName'));
|
|
74
72
|
var isSegmentVerified = dataVerified['segment.type'] && ((_b = resSegment === null || resSegment === void 0 ? void 0 : resSegment.type) === null || _b === void 0 ? void 0 : _b.id) === ((_c = watch('segment')) === null || _c === void 0 ? void 0 : _c.id);
|
|
75
73
|
var isTeamSizeVerified = dataVerified['segment.teams'] && ((_d = resSegment === null || resSegment === void 0 ? void 0 : resSegment.team) === null || _d === void 0 ? void 0 : _d.id) === ((_e = watch('teamSize')) === null || _e === void 0 ? void 0 : _e.id);
|
|
@@ -48,7 +48,6 @@ var Segments = function (_a) {
|
|
|
48
48
|
}
|
|
49
49
|
}, [segmentsList]);
|
|
50
50
|
var onOpenList = function (event) {
|
|
51
|
-
console.log('readOnly', readOnly);
|
|
52
51
|
if (readOnly)
|
|
53
52
|
return;
|
|
54
53
|
console.log('onOpenList segments');
|
|
@@ -60,7 +59,6 @@ var Segments = function (_a) {
|
|
|
60
59
|
onListClose === null || onListClose === void 0 ? void 0 : onListClose();
|
|
61
60
|
};
|
|
62
61
|
var onSelectItem = function (segment) {
|
|
63
|
-
console.log('onSelectItem segments', segment);
|
|
64
62
|
onCloseList();
|
|
65
63
|
segmentControl.field.onChange(segment);
|
|
66
64
|
};
|
|
@@ -48,7 +48,6 @@ var TeamSize = function (_a) {
|
|
|
48
48
|
}
|
|
49
49
|
}, [teamSizesList]);
|
|
50
50
|
var onOpenList = function (event) {
|
|
51
|
-
console.log('readOnly', readOnly);
|
|
52
51
|
if (readOnly)
|
|
53
52
|
return;
|
|
54
53
|
console.log('onOpenList teamSize');
|
|
@@ -60,7 +59,6 @@ var TeamSize = function (_a) {
|
|
|
60
59
|
onListClose === null || onListClose === void 0 ? void 0 : onListClose();
|
|
61
60
|
};
|
|
62
61
|
var onSelectItem = function (teamSize) {
|
|
63
|
-
console.log('onSelectItem teamSize', teamSize);
|
|
64
62
|
onCloseList();
|
|
65
63
|
teamSizeControl.field.onChange(teamSize);
|
|
66
64
|
};
|
|
@@ -18,10 +18,11 @@ export var InputStyled = styled(Input)(function (_a) {
|
|
|
18
18
|
return ({
|
|
19
19
|
'& .MuiInputBase-input': {
|
|
20
20
|
cursor: readOnly ? 'default' : 'pointer',
|
|
21
|
-
WebkitTextFillColor: 'inherit'
|
|
21
|
+
WebkitTextFillColor: 'inherit',
|
|
22
|
+
caretColor: 'transparent'
|
|
22
23
|
}
|
|
23
24
|
});
|
|
24
25
|
});
|
|
25
26
|
export default function InputSelect(props) {
|
|
26
|
-
return _jsx(InputStyled, __assign({
|
|
27
|
+
return _jsx(InputStyled, __assign({}, props));
|
|
27
28
|
}
|