@ledvance/ui-biz-bundle 1.1.32 → 1.1.34

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
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.32",
7
+ "version": "1.1.34",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -1,4 +1,4 @@
1
- import React, { useCallback, useEffect, useMemo } from 'react'
1
+ import React, { useCallback, useMemo } from 'react'
2
2
  import I18n from '@ledvance/base/src/i18n'
3
3
  import { useNavigation, useRoute } from '@react-navigation/native'
4
4
  import Page from '@ledvance/base/src/components/Page'
@@ -46,8 +46,6 @@ const FlagEditPage = () => {
46
46
  colorPaintBucketSelected: false,
47
47
  loading: false
48
48
  })
49
- useEffect(() => {
50
- }, [])
51
49
 
52
50
  const getButtonStatus = () => {
53
51
  return (params.mode === 'edit' && isEqual(state.mood, params.currentMood)) ||
@@ -57,10 +55,10 @@ const FlagEditPage = () => {
57
55
  }
58
56
 
59
57
  const getColorBlockColor = useCallback((isMainLight?: boolean) => {
60
- if(isMainLight){
58
+ if (isMainLight) {
61
59
  return cctToColor(state.currentWhiteNode.colorTemp, Math.max(...[state.currentWhiteNode.brightness, 50]))
62
60
  }
63
- const { h, s, v} = state.currentNode
61
+ const { h, s, v } = state.currentNode
64
62
  return hsv2Hex(h, s, v)
65
63
  }, [state.currentNode, state.currentWhiteNode])
66
64
 
@@ -70,7 +68,7 @@ const FlagEditPage = () => {
70
68
 
71
69
  return (
72
70
  <Page
73
- backText={I18n.getLang('mesh_device_detail_mode')}
71
+ backText={I18n.getLang('Feature_devicepanel_flags')}
74
72
  showBackDialog={true}
75
73
  loading={state.loading}
76
74
  backDialogTitle={
@@ -109,7 +107,7 @@ const FlagEditPage = () => {
109
107
  tipColor={nameRepeat ? '#f00' : undefined}
110
108
  tipIcon={nameRepeat ? res.ic_text_field_input_error : undefined}
111
109
  errorText={I18n.getLang(nameRepeat ? 'string_light_pp_field_sm_add_error1' : 'add_new_dynamic_mood_alert_text')} />
112
- {params.moduleParams.isSupportMixScene && <><Card style={styles.adjustCard}>
110
+ {(params.moduleParams.isSupportMixScene || params.moduleParams.isCeilingLight) && <><Card style={styles.adjustCard}>
113
111
  <Spacer height={cx(16)} />
114
112
  <View style={styles.lightLine}>
115
113
  <Text style={styles.light}>
@@ -160,11 +158,11 @@ const FlagEditPage = () => {
160
158
  <Spacer height={cx(16)} />
161
159
  <View style={styles.lightLine}>
162
160
  <Text style={styles.light}>
163
- {I18n.getLang(params.moduleParams.isSupportMixScene ? 'light_sources_tile_sec_lighting_headline' : 'light_sources_tile_tw_lighting_headline')}
161
+ {I18n.getLang(params.moduleParams.isSupportMixScene ? 'light_sources_tile_sec_lighting_headline' : params.moduleParams.isCeilingLight ? 'ceiling_light_title_lighting_headline' : 'light_sources_tile_tw_lighting_headline')}
164
162
  </Text>
165
163
  </View>
166
164
  <Spacer height={cx(10)} />
167
- {!params.moduleParams.isStripLight && <>
165
+ {(!params.moduleParams.isStripLight && !params.moduleParams.isCeilingLight) && <>
168
166
  <LdvSlider
169
167
  title={I18n.getLang('add_new_dynamic_mood_lights_field_speed_topic_text')}
170
168
  value={state.mood.speed}