@ledvance/ui-biz-bundle 1.1.140 → 1.1.142
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 +1 -1
- package/src/modules/mood/MixMood/RecommendMixMoodItem.tsx +1 -1
- package/src/modules/mood/RecommendMoodItem.tsx +1 -1
- package/src/newModules/mood/RecommendMoodItem.tsx +1 -1
- package/src/newModules/powerOnBehavior/LightBehaviorPage.tsx +52 -14
- package/src/newModules/sleepWakeUp/SleepWakeUpDetailPage.tsx +3 -3
package/package.json
CHANGED
|
@@ -82,7 +82,10 @@ const LightBehaviorPage = (props: { theme?: ThemeType }) => {
|
|
|
82
82
|
content: I18n.getLang('groups_settings_power_on_behavior_secondbox_status_value1_description'),
|
|
83
83
|
value: PowerMemoryMode.Default,
|
|
84
84
|
onPress: (value) => {
|
|
85
|
-
state.powerMemory
|
|
85
|
+
state.powerMemory = {
|
|
86
|
+
...state.powerMemory,
|
|
87
|
+
type: value
|
|
88
|
+
}
|
|
86
89
|
setPowerMemory(state.powerMemory).then()
|
|
87
90
|
}
|
|
88
91
|
}, {
|
|
@@ -90,7 +93,10 @@ const LightBehaviorPage = (props: { theme?: ThemeType }) => {
|
|
|
90
93
|
content: I18n.getLang('groups_settings_power_on_behavior_secondbox_status_value2_description'),
|
|
91
94
|
value: PowerMemoryMode.Last,
|
|
92
95
|
onPress: (value) => {
|
|
93
|
-
state.powerMemory
|
|
96
|
+
state.powerMemory = {
|
|
97
|
+
...state.powerMemory,
|
|
98
|
+
type: value
|
|
99
|
+
}
|
|
94
100
|
setPowerMemory(state.powerMemory).then()
|
|
95
101
|
}
|
|
96
102
|
}, {
|
|
@@ -98,7 +104,10 @@ const LightBehaviorPage = (props: { theme?: ThemeType }) => {
|
|
|
98
104
|
content: I18n.getLang('groups_settings_power_on_behavior_secondbox_status_value3_description'),
|
|
99
105
|
value: PowerMemoryMode.Custom,
|
|
100
106
|
onPress: (value) => {
|
|
101
|
-
state.powerMemory
|
|
107
|
+
state.powerMemory = {
|
|
108
|
+
...state.powerMemory,
|
|
109
|
+
type: value
|
|
110
|
+
}
|
|
102
111
|
setPowerMemory(state.powerMemory).then()
|
|
103
112
|
}
|
|
104
113
|
}]} />
|
|
@@ -114,34 +123,63 @@ const LightBehaviorPage = (props: { theme?: ThemeType }) => {
|
|
|
114
123
|
isColorMode={state.powerMemory.isColor}
|
|
115
124
|
reserveSV={true}
|
|
116
125
|
setIsColorMode={async isColorMode => {
|
|
117
|
-
state.powerMemory
|
|
126
|
+
state.powerMemory = {
|
|
127
|
+
...state.powerMemory,
|
|
128
|
+
isColor: isColorMode,
|
|
129
|
+
}
|
|
118
130
|
}}
|
|
119
131
|
h={state.powerMemory.hue} s={state.powerMemory.sat} v={state.powerMemory.val}
|
|
120
132
|
onHSVChange={(h, s, v) => {
|
|
121
|
-
state.powerMemory
|
|
122
|
-
|
|
123
|
-
|
|
133
|
+
state.powerMemory = {
|
|
134
|
+
...state.powerMemory,
|
|
135
|
+
isColor: true,
|
|
136
|
+
hue: h,
|
|
137
|
+
sat: s,
|
|
138
|
+
val: v,
|
|
139
|
+
}
|
|
124
140
|
}}
|
|
125
141
|
onHSVChangeComplete={async (h, s, v) => {
|
|
126
|
-
state.powerMemory
|
|
127
|
-
|
|
128
|
-
|
|
142
|
+
state.powerMemory = {
|
|
143
|
+
...state.powerMemory,
|
|
144
|
+
isColor: true,
|
|
145
|
+
hue: h,
|
|
146
|
+
sat: s,
|
|
147
|
+
val: v,
|
|
148
|
+
}
|
|
129
149
|
await setPowerMemory(state.powerMemory)
|
|
130
150
|
}}
|
|
131
151
|
colorTemp={state.powerMemory.temperature}
|
|
132
152
|
brightness={state.powerMemory.bright}
|
|
133
153
|
onCCTChange={cct => {
|
|
134
|
-
state.powerMemory
|
|
154
|
+
state.powerMemory ={
|
|
155
|
+
...state.powerMemory,
|
|
156
|
+
isColor: false,
|
|
157
|
+
temperature: cct,
|
|
158
|
+
}
|
|
135
159
|
}}
|
|
136
160
|
onCCTChangeComplete={async cct => {
|
|
137
|
-
state.powerMemory
|
|
161
|
+
state.powerMemory = {
|
|
162
|
+
...state.powerMemory,
|
|
163
|
+
isColor: false,
|
|
164
|
+
temperature: cct,
|
|
165
|
+
}
|
|
166
|
+
console.log('cct', cct, state.powerMemory);
|
|
138
167
|
await setPowerMemory(state.powerMemory)
|
|
139
168
|
}}
|
|
140
169
|
onBrightnessChange={brightness => {
|
|
141
|
-
state.powerMemory
|
|
170
|
+
state.powerMemory = {
|
|
171
|
+
...state.powerMemory,
|
|
172
|
+
isColor: false,
|
|
173
|
+
bright: brightness,
|
|
174
|
+
}
|
|
142
175
|
}}
|
|
143
176
|
onBrightnessChangeComplete={async brightness => {
|
|
144
|
-
state.powerMemory
|
|
177
|
+
state.powerMemory = {
|
|
178
|
+
...state.powerMemory,
|
|
179
|
+
isColor: false,
|
|
180
|
+
bright: brightness,
|
|
181
|
+
}
|
|
182
|
+
console.log('brightness', brightness, state.powerMemory);
|
|
145
183
|
await setPowerMemory(state.powerMemory)
|
|
146
184
|
}} />
|
|
147
185
|
</View>
|
|
@@ -567,8 +567,8 @@ const SleepWakeUpDetailPage = (props: { theme?: ThemeType }) => {
|
|
|
567
567
|
</View>
|
|
568
568
|
{/* Summary */}
|
|
569
569
|
<Summary
|
|
570
|
-
frequency={loopText(state.sleepWakeUp.weeks, parseTimer(state.sleepWakeUp
|
|
571
|
-
time={`${convertMinutesTo12HourFormat(state.sleepWakeUp
|
|
570
|
+
frequency={loopText(state.sleepWakeUp.weeks, parseTimer(getEndTime(state.sleepWakeUp) * 60))}
|
|
571
|
+
time={`${convertMinutesTo12HourFormat(getStartTime(state.sleepWakeUp), is24HourClock)} - ${convertMinutesTo12HourFormat(getEndTime(state.sleepWakeUp), is24HourClock)}`}
|
|
572
572
|
actions={(
|
|
573
573
|
<View>
|
|
574
574
|
<Text style={{ fontSize: cx(12), color: props.theme?.global.fontColor }}>
|
|
@@ -594,7 +594,7 @@ const SleepWakeUpDetailPage = (props: { theme?: ThemeType }) => {
|
|
|
594
594
|
<View style={styles.filletCorner}>
|
|
595
595
|
<Text style={styles.rightTitle}>
|
|
596
596
|
{convertMinutesTo12HourFormat(
|
|
597
|
-
state.sleepWakeUp
|
|
597
|
+
getEndTime(state.sleepWakeUp),
|
|
598
598
|
is24HourClock
|
|
599
599
|
)}
|
|
600
600
|
</Text>
|