@lideralia/alife-uikit 1.1.361 → 1.1.367
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.
|
@@ -37,7 +37,8 @@ var Checkbox = function Checkbox(props) {
|
|
|
37
37
|
isDisabled = props.isDisabled,
|
|
38
38
|
name = props.name,
|
|
39
39
|
label = props.label,
|
|
40
|
-
labelPosition = props.labelPosition
|
|
40
|
+
labelPosition = props.labelPosition,
|
|
41
|
+
isActiveCheckbox = props.isActiveCheckbox;
|
|
41
42
|
|
|
42
43
|
var _useState = (0, _react.useState)(defaultChecked),
|
|
43
44
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -63,7 +64,10 @@ var Checkbox = function Checkbox(props) {
|
|
|
63
64
|
setChecked(!isChecked);
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
if (action)
|
|
67
|
+
if (action) {
|
|
68
|
+
action(name, !isChecked, !isChecked);
|
|
69
|
+
isActiveCheckbox(isChecked);
|
|
70
|
+
}
|
|
67
71
|
},
|
|
68
72
|
title: name,
|
|
69
73
|
zIndex: 2
|
|
@@ -44,7 +44,7 @@ var renderInviteToLine = function renderInviteToLine(_ref) {
|
|
|
44
44
|
action: function action() {
|
|
45
45
|
return actionInvite();
|
|
46
46
|
},
|
|
47
|
-
marginBottom:
|
|
47
|
+
marginBottom: 1
|
|
48
48
|
}, _react.default.createElement(_Icon.Icon, {
|
|
49
49
|
marginRight: 3,
|
|
50
50
|
sizeIcon: "display24"
|
|
@@ -116,7 +116,10 @@ var FamilyHomeWithoutContentSection = function FamilyHomeWithoutContentSection(_
|
|
|
116
116
|
content = _ref3$line.content,
|
|
117
117
|
userGroup = _ref3$line.userGroup,
|
|
118
118
|
customColor = _ref3.customColor,
|
|
119
|
-
customTextColor = _ref3.customTextColor
|
|
119
|
+
customTextColor = _ref3.customTextColor,
|
|
120
|
+
showActionVideo = _ref3.showActionVideo,
|
|
121
|
+
showActionQuote = _ref3.showActionQuote,
|
|
122
|
+
showActionPicture = _ref3.showActionPicture;
|
|
120
123
|
return _react.default.createElement(_react.default.Fragment, null, userGroup >= 2 && !(content !== null && content !== void 0 && content.length) && _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_Layout.Box, {
|
|
121
124
|
width: "100%",
|
|
122
125
|
maxHeight: "153px",
|
|
@@ -131,7 +134,7 @@ var FamilyHomeWithoutContentSection = function FamilyHomeWithoutContentSection(_
|
|
|
131
134
|
textAlign: "center"
|
|
132
135
|
}, noContentDescription || _react.default.createElement(_PlaceholderLoad.PlaceholderLoad, {
|
|
133
136
|
height: "22px"
|
|
134
|
-
})), _react.default.createElement(_Button.Button, {
|
|
137
|
+
})), showActionPicture && _react.default.createElement(_Button.Button, {
|
|
135
138
|
backgroundColor: customColor,
|
|
136
139
|
colorType: customColor || "blue",
|
|
137
140
|
color: customTextColor,
|
|
@@ -140,7 +143,7 @@ var FamilyHomeWithoutContentSection = function FamilyHomeWithoutContentSection(_
|
|
|
140
143
|
return actionPicture();
|
|
141
144
|
},
|
|
142
145
|
marginTop: 3,
|
|
143
|
-
marginBottom: 1,
|
|
146
|
+
marginBottom: showActionVideo && showActionQuote ? 1 : 18,
|
|
144
147
|
justifyContent: "flex-start",
|
|
145
148
|
fullWidth: true
|
|
146
149
|
}, _react.default.createElement(_Icon.Icon, {
|
|
@@ -148,7 +151,7 @@ var FamilyHomeWithoutContentSection = function FamilyHomeWithoutContentSection(_
|
|
|
148
151
|
sizeIcon: "display24"
|
|
149
152
|
}, _react.default.createElement(_IconCamera.default, null)), actionPictureLabel || _react.default.createElement(_PlaceholderLoad.PlaceholderLoad, {
|
|
150
153
|
height: "22px"
|
|
151
|
-
})), _react.default.createElement(_Button.Button, {
|
|
154
|
+
})), showActionVideo && _react.default.createElement(_Button.Button, {
|
|
152
155
|
backgroundColor: customColor,
|
|
153
156
|
colorType: customColor || "blue",
|
|
154
157
|
color: customTextColor,
|
|
@@ -164,7 +167,7 @@ var FamilyHomeWithoutContentSection = function FamilyHomeWithoutContentSection(_
|
|
|
164
167
|
sizeIcon: "display24"
|
|
165
168
|
}, _react.default.createElement(_IconVideo.default, null)), actionVideoLabel || _react.default.createElement(_PlaceholderLoad.PlaceholderLoad, {
|
|
166
169
|
height: "22px"
|
|
167
|
-
})), _react.default.createElement(_Button.Button, {
|
|
170
|
+
})), showActionQuote && _react.default.createElement(_Button.Button, {
|
|
168
171
|
backgroundColor: customColor,
|
|
169
172
|
colorType: customColor || "blue",
|
|
170
173
|
color: customTextColor,
|
|
@@ -194,7 +197,10 @@ FamilyHomeWithoutContentSection.defaultProps = {
|
|
|
194
197
|
actionPictureLabel: null,
|
|
195
198
|
noContentDescription: null,
|
|
196
199
|
customColor: "",
|
|
197
|
-
customTextColor: ""
|
|
200
|
+
customTextColor: "",
|
|
201
|
+
showActionVideo: true,
|
|
202
|
+
showActionQuote: true,
|
|
203
|
+
showActionPicture: true
|
|
198
204
|
};
|
|
199
205
|
|
|
200
206
|
var FamilyHomeWithContentSection = function FamilyHomeWithContentSection(_ref4) {
|
|
@@ -210,12 +216,15 @@ var FamilyHomeWithContentSection = function FamilyHomeWithContentSection(_ref4)
|
|
|
210
216
|
customTextColor = _ref4.customTextColor,
|
|
211
217
|
_ref4$line = _ref4.line,
|
|
212
218
|
content = _ref4$line.content,
|
|
213
|
-
userGroup = _ref4$line.userGroup
|
|
219
|
+
userGroup = _ref4$line.userGroup,
|
|
220
|
+
showActionVideo = _ref4.showActionVideo,
|
|
221
|
+
showActionQuote = _ref4.showActionQuote,
|
|
222
|
+
showActionPicture = _ref4.showActionPicture;
|
|
214
223
|
return _react.default.createElement(_react.default.Fragment, null, userGroup >= 2 && content && _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_FamilyZone.FamilyGridMini, {
|
|
215
224
|
elements: content,
|
|
216
225
|
customColor: customColor,
|
|
217
226
|
customTextColor: customTextColor
|
|
218
|
-
}), _react.default.createElement(_Button.Button, {
|
|
227
|
+
}), showActionPicture && _react.default.createElement(_Button.Button, {
|
|
219
228
|
backgroundColor: customColor,
|
|
220
229
|
colorType: customColor || "blue",
|
|
221
230
|
color: customTextColor,
|
|
@@ -224,7 +233,7 @@ var FamilyHomeWithContentSection = function FamilyHomeWithContentSection(_ref4)
|
|
|
224
233
|
return actionPicture();
|
|
225
234
|
},
|
|
226
235
|
marginTop: 3,
|
|
227
|
-
marginBottom: 1,
|
|
236
|
+
marginBottom: showActionVideo && showActionQuote ? 1 : 18,
|
|
228
237
|
justifyContent: "flex-start",
|
|
229
238
|
fullWidth: true
|
|
230
239
|
}, _react.default.createElement(_Icon.Icon, {
|
|
@@ -232,7 +241,7 @@ var FamilyHomeWithContentSection = function FamilyHomeWithContentSection(_ref4)
|
|
|
232
241
|
sizeIcon: "display24"
|
|
233
242
|
}, _react.default.createElement(_IconCamera.default, null)), actionPictureLabel || _react.default.createElement(_PlaceholderLoad.PlaceholderLoad, {
|
|
234
243
|
height: "22px"
|
|
235
|
-
})), _react.default.createElement(_Button.Button, {
|
|
244
|
+
})), showActionVideo && _react.default.createElement(_Button.Button, {
|
|
236
245
|
backgroundColor: customColor,
|
|
237
246
|
colorType: customColor || "blue",
|
|
238
247
|
color: customTextColor,
|
|
@@ -248,7 +257,7 @@ var FamilyHomeWithContentSection = function FamilyHomeWithContentSection(_ref4)
|
|
|
248
257
|
sizeIcon: "display24"
|
|
249
258
|
}, _react.default.createElement(_IconVideo.default, null)), actionVideoLabel || _react.default.createElement(_PlaceholderLoad.PlaceholderLoad, {
|
|
250
259
|
height: "22px"
|
|
251
|
-
})), _react.default.createElement(_Button.Button, {
|
|
260
|
+
})), showActionQuote && _react.default.createElement(_Button.Button, {
|
|
252
261
|
backgroundColor: customColor,
|
|
253
262
|
colorType: customColor || "blue",
|
|
254
263
|
color: customTextColor,
|
|
@@ -277,5 +286,8 @@ FamilyHomeWithContentSection.defaultProps = {
|
|
|
277
286
|
actionVideoLabel: null,
|
|
278
287
|
actionPictureLabel: null,
|
|
279
288
|
customColor: "",
|
|
280
|
-
customTextColor: ""
|
|
289
|
+
customTextColor: "",
|
|
290
|
+
showActionVideo: true,
|
|
291
|
+
showActionQuote: true,
|
|
292
|
+
showActionPicture: true
|
|
281
293
|
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.ModalConfirmation = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Modal = require("../../molecules/Modal");
|
|
13
|
+
|
|
14
|
+
var _Layout = require("../../atoms/Layout");
|
|
15
|
+
|
|
16
|
+
var _Button = require("../../atoms/Button");
|
|
17
|
+
|
|
18
|
+
var _Typography = require("../../atoms/Typography");
|
|
19
|
+
|
|
20
|
+
var _Icons = require("../../atoms/Icons");
|
|
21
|
+
|
|
22
|
+
var _Icon = require("../../atoms/Icon");
|
|
23
|
+
|
|
24
|
+
var ModalConfirmation = function ModalConfirmation(_ref) {
|
|
25
|
+
var id = _ref.id,
|
|
26
|
+
isOpen = _ref.isOpen,
|
|
27
|
+
onModalClose = _ref.onModalClose,
|
|
28
|
+
onModalBack = _ref.onModalBack,
|
|
29
|
+
title = _ref.title,
|
|
30
|
+
body = _ref.body,
|
|
31
|
+
confirmationButton = _ref.confirmationButton,
|
|
32
|
+
buttons = _ref.buttons;
|
|
33
|
+
return _react.default.createElement(_Modal.Modal, {
|
|
34
|
+
width: "339px",
|
|
35
|
+
height: "auto",
|
|
36
|
+
id: id,
|
|
37
|
+
isOpen: isOpen,
|
|
38
|
+
hasError: 0,
|
|
39
|
+
title: title,
|
|
40
|
+
onModalClose: onModalClose,
|
|
41
|
+
marginX: 0,
|
|
42
|
+
marginY: 0,
|
|
43
|
+
onModalBack: onModalBack || function () {},
|
|
44
|
+
backWithButton: 0,
|
|
45
|
+
closeWithButton: true
|
|
46
|
+
}, _react.default.createElement(_Modal.Modal.Content, null, _react.default.createElement(_Typography.Text, {
|
|
47
|
+
sizeText: "display14",
|
|
48
|
+
as: "p",
|
|
49
|
+
color: "black84",
|
|
50
|
+
style: {
|
|
51
|
+
marginBottom: "18px"
|
|
52
|
+
}
|
|
53
|
+
}, body), _react.default.createElement(_Layout.Grid, {
|
|
54
|
+
gridTemplateColumns: "1fr 1fr",
|
|
55
|
+
gridTemplateRows: "1fr",
|
|
56
|
+
gridColumnGap: 3
|
|
57
|
+
}, _react.default.createElement(_Button.Button, {
|
|
58
|
+
colorType: "green",
|
|
59
|
+
action: function action() {
|
|
60
|
+
return confirmationButton(true);
|
|
61
|
+
}
|
|
62
|
+
}, _react.default.createElement(_Icon.Icon, {
|
|
63
|
+
sizeIcon: "display24",
|
|
64
|
+
color: "white",
|
|
65
|
+
style: {
|
|
66
|
+
marginRight: "13px"
|
|
67
|
+
}
|
|
68
|
+
}, _react.default.createElement(_Icons.IconCheckCircle, null)), " ", buttons.confirm), _react.default.createElement(_Button.Button, {
|
|
69
|
+
colorType: "red",
|
|
70
|
+
action: function action() {
|
|
71
|
+
return confirmationButton(false);
|
|
72
|
+
}
|
|
73
|
+
}, _react.default.createElement(_Icon.Icon, {
|
|
74
|
+
sizeIcon: "display24",
|
|
75
|
+
color: "white",
|
|
76
|
+
style: {
|
|
77
|
+
marginRight: "13px"
|
|
78
|
+
}
|
|
79
|
+
}, _react.default.createElement(_Icons.IconCloseCircle, null)), " ", buttons.cancel))));
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
exports.ModalConfirmation = ModalConfirmation;
|
|
83
|
+
|
|
84
|
+
_Modal.Modal.Actions = function (_ref2) {
|
|
85
|
+
var children = _ref2.children;
|
|
86
|
+
return _react.default.createElement(_Layout.Box, {
|
|
87
|
+
paddingX: 3,
|
|
88
|
+
paddingBottom: 3,
|
|
89
|
+
width: "100%"
|
|
90
|
+
}, children);
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
ModalConfirmation.defaultProps = {
|
|
94
|
+
title: "Confirmación",
|
|
95
|
+
body: "¿Quitar permiso a zona familiar?",
|
|
96
|
+
buttons: {
|
|
97
|
+
confirm: "Si",
|
|
98
|
+
cancel: "No"
|
|
99
|
+
},
|
|
100
|
+
hasError: false,
|
|
101
|
+
onModalClose: function onModalClose() {},
|
|
102
|
+
onModalBack: function onModalBack() {}
|
|
103
|
+
};
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.ModalParticipants = void 0;
|
|
11
|
+
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
|
|
14
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
|
+
|
|
16
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
+
|
|
18
|
+
var _Layout = require("../../atoms/Layout");
|
|
19
|
+
|
|
20
|
+
var _Modal = require("../../molecules/Modal");
|
|
21
|
+
|
|
22
|
+
var _Typography = require("../../atoms/Typography");
|
|
23
|
+
|
|
24
|
+
var _Card = require("../../atoms/Card");
|
|
25
|
+
|
|
26
|
+
var _Icon = require("../../atoms/Icon");
|
|
27
|
+
|
|
28
|
+
var _Icons = require("../../atoms/Icons");
|
|
29
|
+
|
|
30
|
+
var _Avatar = require("../../atoms/Avatar");
|
|
31
|
+
|
|
32
|
+
var _Button = require("../../atoms/Button");
|
|
33
|
+
|
|
34
|
+
var _Confirmation = require("./Confirmation");
|
|
35
|
+
|
|
36
|
+
var _excluded = ["id", "isOpen", "isOpenConfirmation", "onModalClose", "onModalBack", "title", "listparticipants", "isAdmin", "actionRemoveContent", "confirmationButton", "action", "me"];
|
|
37
|
+
|
|
38
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
39
|
+
|
|
40
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
41
|
+
|
|
42
|
+
var ParticipantItem = function ParticipantItem(props) {
|
|
43
|
+
var participant = props.participant,
|
|
44
|
+
isAdmin = props.isAdmin,
|
|
45
|
+
actionRemoveContent = props.actionRemoveContent,
|
|
46
|
+
id = props.id,
|
|
47
|
+
line_id = props.line_id,
|
|
48
|
+
avatarImage = props.avatarImage,
|
|
49
|
+
user_role = props.user_role,
|
|
50
|
+
me = props.me,
|
|
51
|
+
user_id = props.user_id;
|
|
52
|
+
return _react.default.createElement(_Card.Card, (0, _extends2.default)({
|
|
53
|
+
backgroundColor: "black06"
|
|
54
|
+
}, props, {
|
|
55
|
+
width: "95%",
|
|
56
|
+
marginY: "3px",
|
|
57
|
+
style: {
|
|
58
|
+
boxShadow: "none",
|
|
59
|
+
borderRadius: "12px"
|
|
60
|
+
}
|
|
61
|
+
}), _react.default.createElement(_Layout.Flex, {
|
|
62
|
+
padding: "6px",
|
|
63
|
+
width: "100%",
|
|
64
|
+
alignItems: "center",
|
|
65
|
+
justifyContent: "flex-start"
|
|
66
|
+
}, _react.default.createElement(_Layout.GridItem, {
|
|
67
|
+
gridArea: "avatar",
|
|
68
|
+
marginRight: 1
|
|
69
|
+
}, _react.default.createElement(_Avatar.Avatar, {
|
|
70
|
+
width: "36px",
|
|
71
|
+
height: "36px",
|
|
72
|
+
src: avatarImage,
|
|
73
|
+
alt: participant,
|
|
74
|
+
styleImg: {
|
|
75
|
+
objectFit: 'cover'
|
|
76
|
+
}
|
|
77
|
+
})), _react.default.createElement(_Typography.Text, {
|
|
78
|
+
sizeText: "display13",
|
|
79
|
+
color: "black",
|
|
80
|
+
fontWeight: "normal",
|
|
81
|
+
style: {
|
|
82
|
+
whiteSpace: "nowrap",
|
|
83
|
+
textOverflow: "ellipsis"
|
|
84
|
+
},
|
|
85
|
+
overflow: "hidden",
|
|
86
|
+
width: "200px"
|
|
87
|
+
}, participant), user_role != 4 && me.user_role > user_role && me.user_id != user_id && _react.default.createElement(_Icon.Icon, {
|
|
88
|
+
sizeIcon: "display24",
|
|
89
|
+
color: "black60",
|
|
90
|
+
onClick: function onClick() {
|
|
91
|
+
return actionRemoveContent(id, line_id);
|
|
92
|
+
},
|
|
93
|
+
style: {
|
|
94
|
+
cursor: "pointer"
|
|
95
|
+
}
|
|
96
|
+
}, _react.default.createElement(_Icons.IconClose, null))));
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
var ModalParticipants = function ModalParticipants(_ref) {
|
|
100
|
+
var id = _ref.id,
|
|
101
|
+
isOpen = _ref.isOpen,
|
|
102
|
+
isOpenConfirmation = _ref.isOpenConfirmation,
|
|
103
|
+
onModalClose = _ref.onModalClose,
|
|
104
|
+
onModalBack = _ref.onModalBack,
|
|
105
|
+
title = _ref.title,
|
|
106
|
+
listparticipants = _ref.listparticipants,
|
|
107
|
+
isAdmin = _ref.isAdmin,
|
|
108
|
+
_actionRemoveContent = _ref.actionRemoveContent,
|
|
109
|
+
confirmationButton = _ref.confirmationButton,
|
|
110
|
+
action = _ref.action,
|
|
111
|
+
me = _ref.me,
|
|
112
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
113
|
+
(0, _react.useEffect)(function () {}, [action]);
|
|
114
|
+
return !action ? _react.default.createElement(_Modal.Modal, {
|
|
115
|
+
width: "339px",
|
|
116
|
+
height: "414px",
|
|
117
|
+
id: id,
|
|
118
|
+
isOpen: isOpen,
|
|
119
|
+
duration: 100,
|
|
120
|
+
hasError: 0,
|
|
121
|
+
title: title,
|
|
122
|
+
onModalClose: onModalClose,
|
|
123
|
+
marginX: 0,
|
|
124
|
+
marginY: 0,
|
|
125
|
+
onModalBack: onModalBack || function () {},
|
|
126
|
+
backWithButton: 0,
|
|
127
|
+
closeWithButton: true
|
|
128
|
+
}, _react.default.createElement(_Modal.Modal.Content, null, _react.default.createElement(_Layout.Box, {
|
|
129
|
+
overflowY: "scroll",
|
|
130
|
+
maxHeight: "315px"
|
|
131
|
+
}, _react.default.createElement(_Layout.Flex, {
|
|
132
|
+
width: "100%",
|
|
133
|
+
minWidth: "100%",
|
|
134
|
+
height: "100%",
|
|
135
|
+
flexDirection: "column",
|
|
136
|
+
justifyContent: "space-evenly",
|
|
137
|
+
alignItems: "center"
|
|
138
|
+
}, listparticipants === null || listparticipants === void 0 ? void 0 : listparticipants.map(function (participant) {
|
|
139
|
+
var _participant$user_fol, _participant$user_fol3, _participant$user_fol4, _participant$owner_us;
|
|
140
|
+
|
|
141
|
+
return (participant === null || participant === void 0 ? void 0 : (_participant$user_fol = participant.user_follows_line) === null || _participant$user_fol === void 0 ? void 0 : _participant$user_fol.user_role) >= 2 && _react.default.createElement(ParticipantItem, {
|
|
142
|
+
key: participant === null || participant === void 0 ? void 0 : participant.id,
|
|
143
|
+
participant: participant === null || participant === void 0 ? void 0 : participant.full_name,
|
|
144
|
+
isAdmin: isAdmin,
|
|
145
|
+
actionRemoveContent: function actionRemoveContent() {
|
|
146
|
+
var _participant$user_fol2;
|
|
147
|
+
|
|
148
|
+
return _actionRemoveContent(participant === null || participant === void 0 ? void 0 : participant.user_id, participant === null || participant === void 0 ? void 0 : (_participant$user_fol2 = participant.user_follows_line) === null || _participant$user_fol2 === void 0 ? void 0 : _participant$user_fol2.line_id);
|
|
149
|
+
},
|
|
150
|
+
id: participant === null || participant === void 0 ? void 0 : participant.id,
|
|
151
|
+
line_id: participant === null || participant === void 0 ? void 0 : (_participant$user_fol3 = participant.user_follows_line) === null || _participant$user_fol3 === void 0 ? void 0 : _participant$user_fol3.line_id,
|
|
152
|
+
user_role: participant === null || participant === void 0 ? void 0 : (_participant$user_fol4 = participant.user_follows_line) === null || _participant$user_fol4 === void 0 ? void 0 : _participant$user_fol4.user_role,
|
|
153
|
+
user_id: participant === null || participant === void 0 ? void 0 : participant.user_id,
|
|
154
|
+
avatarImage: participant === null || participant === void 0 ? void 0 : (_participant$owner_us = participant.owner_user) === null || _participant$owner_us === void 0 ? void 0 : _participant$owner_us.profile_pic_url,
|
|
155
|
+
me: me
|
|
156
|
+
});
|
|
157
|
+
}))))) : _react.default.createElement(_Confirmation.ModalConfirmation, {
|
|
158
|
+
isOpen: isOpenConfirmation,
|
|
159
|
+
confirmationButton: confirmationButton,
|
|
160
|
+
onModalClose: onModalClose,
|
|
161
|
+
onModalBack: onModalBack
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
exports.ModalParticipants = ModalParticipants;
|
|
166
|
+
|
|
167
|
+
_Modal.Modal.Actions = function (_ref2) {
|
|
168
|
+
var children = _ref2.children;
|
|
169
|
+
return _react.default.createElement(_Layout.Box, {
|
|
170
|
+
paddingX: 3,
|
|
171
|
+
paddingBottom: 3,
|
|
172
|
+
width: "100%"
|
|
173
|
+
}, children);
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
ModalParticipants.defaultProps = {
|
|
177
|
+
hasError: false,
|
|
178
|
+
errorMessage: "",
|
|
179
|
+
onModalClose: function onModalClose() {},
|
|
180
|
+
onModalBack: function onModalBack() {},
|
|
181
|
+
actionRemoveContent: null,
|
|
182
|
+
action: false
|
|
183
|
+
};
|
|
@@ -67,11 +67,21 @@ var ModalRegister = function ModalRegister(_ref) {
|
|
|
67
67
|
prefixDefault = _useState2[0],
|
|
68
68
|
setPrefixDefault = _useState2[1];
|
|
69
69
|
|
|
70
|
+
var _useState3 = (0, _react.useState)(true),
|
|
71
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
72
|
+
activeCheckbox = _useState4[0],
|
|
73
|
+
setActiveCheckbox = _useState4[1];
|
|
74
|
+
|
|
70
75
|
(0, _react.useEffect)(function () {
|
|
71
76
|
if (prefix != null && (prefix === null || prefix === void 0 ? void 0 : prefix.defaultValue) != null) {
|
|
72
77
|
setPrefixDefault(prefix === null || prefix === void 0 ? void 0 : prefix.defaultValue);
|
|
73
78
|
}
|
|
74
79
|
}, [prefix]);
|
|
80
|
+
|
|
81
|
+
var _isActiveCheckbox = function isActiveCheckbox(value) {
|
|
82
|
+
setActiveCheckbox(value);
|
|
83
|
+
};
|
|
84
|
+
|
|
75
85
|
return _react.default.createElement(_Modal.Modal, {
|
|
76
86
|
width: "339px",
|
|
77
87
|
id: id,
|
|
@@ -145,6 +155,9 @@ var ModalRegister = function ModalRegister(_ref) {
|
|
|
145
155
|
id: idCheckInput,
|
|
146
156
|
action: function action(name, value) {
|
|
147
157
|
return actionInput(name, value);
|
|
158
|
+
},
|
|
159
|
+
isActiveCheckbox: function isActiveCheckbox(value) {
|
|
160
|
+
return _isActiveCheckbox(value);
|
|
148
161
|
}
|
|
149
162
|
})), lastLineHaveCompanyOption && _react.default.createElement(_Layout.Box, {
|
|
150
163
|
marginBottom: 3
|
|
@@ -169,7 +182,8 @@ var ModalRegister = function ModalRegister(_ref) {
|
|
|
169
182
|
action: function action(e) {
|
|
170
183
|
e.preventDefault();
|
|
171
184
|
actionButton.action();
|
|
172
|
-
}
|
|
185
|
+
},
|
|
186
|
+
disabled: activeCheckbox
|
|
173
187
|
}, actionButton.label)))), _react.default.createElement(_Modal.Modal.Footer, null, _react.default.createElement(_Typography.Text, {
|
|
174
188
|
sizeText: "display14",
|
|
175
189
|
color: "black36"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lideralia/alife-uikit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.367",
|
|
4
4
|
"description": "Librería y documentación de componentes, basada en el Design System de Alife.",
|
|
5
5
|
"homepage": "https://github.com/lideralia/alife-frontend-components#readme",
|
|
6
6
|
"bugs": {
|