@ledvance/group-ui-biz-bundle 1.0.154 → 1.0.155
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.
package/package.json
CHANGED
|
@@ -415,61 +415,63 @@ const TimeScheduleDetailPage = (props: { theme?: ThemeType }) => {
|
|
|
415
415
|
<Spacer height={cx(30)} />
|
|
416
416
|
|
|
417
417
|
{/* Apply for */}
|
|
418
|
-
|
|
419
|
-
<
|
|
420
|
-
{
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
{state.selectedSkill.length
|
|
425
|
-
|
|
426
|
-
{
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
418
|
+
{(!params.applyForDisabled && params.applyForList.length > 1) && (
|
|
419
|
+
<View style={styles.cardContainer}>
|
|
420
|
+
<Text style={styles.itemTitle}>
|
|
421
|
+
{I18n.getLang('timeschedule_add_schedule_subheadline_text')}
|
|
422
|
+
</Text>
|
|
423
|
+
<Spacer height={cx(10)} />
|
|
424
|
+
<View style={[styles.applyContent, { paddingTop: state.selectedSkill.length ? cx(10) : 0 }]}>
|
|
425
|
+
{state.selectedSkill.length === 0 ? (
|
|
426
|
+
<Text style={{ color: props.theme?.global.fontColor }}>
|
|
427
|
+
{I18n.getLang('timer_ceiling_fan_selectionfield_no_components_text')}
|
|
428
|
+
</Text>
|
|
429
|
+
) : (
|
|
430
|
+
state.selectedSkill.map(skill => (
|
|
431
|
+
<View
|
|
432
|
+
style={[styles.applyItem, { marginBottom: cx(10), borderRadius: 4 }]}
|
|
433
|
+
key={skill.dp}
|
|
434
|
+
>
|
|
435
|
+
<Text style={{ color: props.theme?.global.fontColor }}>{skill.key}</Text>
|
|
436
|
+
{showSelectedIcon && (
|
|
437
|
+
<TouchableOpacity
|
|
438
|
+
onPress={() => {
|
|
439
|
+
state.selectedSkill = state.selectedSkill.filter(s => skill.dp !== s.dp);
|
|
440
|
+
state.unSelectedSkill = [...state.unSelectedSkill, skill];
|
|
441
|
+
}}
|
|
442
|
+
style={{ paddingHorizontal: cx(5) }}
|
|
443
|
+
>
|
|
444
|
+
<Image
|
|
445
|
+
style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor }}
|
|
446
|
+
source={{ uri: res.ic_arrows_nav_clear }}
|
|
447
|
+
/>
|
|
448
|
+
</TouchableOpacity>
|
|
449
|
+
)}
|
|
450
|
+
</View>
|
|
451
|
+
))
|
|
452
|
+
)}
|
|
453
|
+
</View>
|
|
454
|
+
{state.unSelectedSkill.map((item: ApplyForItem) => {
|
|
455
|
+
return (
|
|
456
|
+
<TouchableOpacity
|
|
457
|
+
style={styles.applyItem}
|
|
458
|
+
key={item.dp}
|
|
459
|
+
onPress={() => {
|
|
460
|
+
state.selectedSkill = [...state.selectedSkill, item];
|
|
461
|
+
state.unSelectedSkill = state.unSelectedSkill.filter(s => item.dp !== s.dp);
|
|
462
|
+
}}
|
|
433
463
|
>
|
|
434
|
-
<Text style={{ color: props.theme?.global.fontColor }}>{
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
<Image
|
|
444
|
-
style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor }}
|
|
445
|
-
source={{ uri: res.ic_arrows_nav_clear }}
|
|
446
|
-
/>
|
|
447
|
-
</TouchableOpacity>
|
|
448
|
-
)}
|
|
449
|
-
</View>
|
|
450
|
-
))
|
|
451
|
-
)}
|
|
464
|
+
<Text style={{ color: props.theme?.global.fontColor }}>{item.key}</Text>
|
|
465
|
+
<Image
|
|
466
|
+
style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor }}
|
|
467
|
+
source={{ uri: res.device_panel_timer_add }}
|
|
468
|
+
/>
|
|
469
|
+
</TouchableOpacity>
|
|
470
|
+
);
|
|
471
|
+
})}
|
|
472
|
+
<Spacer />
|
|
452
473
|
</View>
|
|
453
|
-
|
|
454
|
-
return (
|
|
455
|
-
<TouchableOpacity
|
|
456
|
-
style={styles.applyItem}
|
|
457
|
-
key={item.dp}
|
|
458
|
-
onPress={() => {
|
|
459
|
-
state.selectedSkill = [...state.selectedSkill, item];
|
|
460
|
-
state.unSelectedSkill = state.unSelectedSkill.filter(s => item.dp !== s.dp);
|
|
461
|
-
}}
|
|
462
|
-
>
|
|
463
|
-
<Text style={{ color: props.theme?.global.fontColor }}>{item.key}</Text>
|
|
464
|
-
<Image
|
|
465
|
-
style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor }}
|
|
466
|
-
source={{ uri: res.device_panel_timer_add }}
|
|
467
|
-
/>
|
|
468
|
-
</TouchableOpacity>
|
|
469
|
-
);
|
|
470
|
-
})}
|
|
471
|
-
<Spacer />
|
|
472
|
-
</View>
|
|
474
|
+
)}
|
|
473
475
|
|
|
474
476
|
{/* device state */}
|
|
475
477
|
<Text style={[styles.itemTitle, styles.cardContainer]}>
|
|
@@ -101,6 +101,8 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
101
101
|
title={item.name || item.key}
|
|
102
102
|
color={getBlockColor(item)}
|
|
103
103
|
colorAlpha={1}
|
|
104
|
+
onText={I18n.getLang('routine_push_msg_on')}
|
|
105
|
+
offText={I18n.getLang('watchapp_entitystate_off')}
|
|
104
106
|
enable={item.enable}
|
|
105
107
|
setEnable={(enable: boolean) => {
|
|
106
108
|
state.applyForList = state.applyForList.map((apply, index) => {
|
|
@@ -264,6 +266,8 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
264
266
|
title={item.key}
|
|
265
267
|
color={getBlockColor(item.type)}
|
|
266
268
|
colorAlpha={1}
|
|
269
|
+
onText={I18n.getLang('routine_push_msg_on')}
|
|
270
|
+
offText={I18n.getLang('watchapp_entitystate_off')}
|
|
267
271
|
enable={item.enable}
|
|
268
272
|
setEnable={(enable: boolean) => {
|
|
269
273
|
state.applyForList[idx].enable = enable;
|
|
@@ -338,6 +342,8 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
338
342
|
title={state.applyForList[0]?.name || state.applyForList[0]?.key}
|
|
339
343
|
color={getBlockColor()}
|
|
340
344
|
colorAlpha={1}
|
|
345
|
+
onText={I18n.getLang('routine_push_msg_on')}
|
|
346
|
+
offText={I18n.getLang('watchapp_entitystate_off')}
|
|
341
347
|
enable={state.applyForList[0]?.enable}
|
|
342
348
|
setEnable={(enable: boolean) => {
|
|
343
349
|
state.applyForList[0].enable = enable;
|
|
@@ -421,6 +427,8 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
421
427
|
title={item.name || item.key}
|
|
422
428
|
color={getBlockColor(item.type)}
|
|
423
429
|
colorAlpha={1}
|
|
430
|
+
onText={I18n.getLang('routine_push_msg_on')}
|
|
431
|
+
offText={I18n.getLang('watchapp_entitystate_off')}
|
|
424
432
|
enable={item.enable}
|
|
425
433
|
setEnable={(enable: boolean) => {
|
|
426
434
|
state.applyForList[idx].enable = enable;
|