@ledvance/base 1.3.49 → 1.3.51

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.
@@ -15,6 +15,7 @@ export interface NativeProps {
15
15
  role: 0 | 1 | 2 | 3
16
16
  deviceInfo: DeviceInfo
17
17
  uaGroupInfo: UAGroupInfo
18
+ initialDps: any
18
19
  timeSchedule?: boolean
19
20
  energieverbrauch?: object
20
21
  moods: any[]
@@ -112,6 +113,7 @@ const nativePropsSlice = createSlice({
112
113
  state.deviceInfo.pId = action.payload.deviceInfo.pId
113
114
  }
114
115
  state.deviceInfo.dps = { ...state.deviceInfo.dps, ...action.payload.deviceInfo.dps }
116
+ state.initialDps = { ...state.initialDps, ...action.payload.initialDps }
115
117
  },
116
118
  setGroupNativeProps: (state, action: PayloadAction<NativeProps>) => {
117
119
  state.uaGroupInfo.tyGroupId = action.payload.uaGroupInfo.tyGroupId
@@ -250,6 +252,11 @@ function useDp<T, R extends any>(dp: string): [T, (value: T) => Promise<Result<R
250
252
  return [dpValue, setDp]
251
253
  }
252
254
 
255
+ function useInitialDp<T>(dp: string): T {
256
+ const dpValue = useSelector(store => store.ldvModules.initialDps[dp])
257
+ return dpValue
258
+ }
259
+
253
260
  function useGroupDp<T>(dp: string): [T] {
254
261
  const dpValue = useSelector(store => store.ldvModules.uaGroupInfo.dps[dp])
255
262
  return [dpValue]
@@ -498,6 +505,7 @@ export {
498
505
  useDeviceId,
499
506
  useDeviceInfo,
500
507
  useDp,
508
+ useInitialDp,
501
509
  useGroupId,
502
510
  useGroupDp,
503
511
  useScaledDp,
package/src/res/index.ts CHANGED
@@ -173,4 +173,8 @@ export default {
173
173
  sd_card: 'sd_card',
174
174
  cloud: 'cloud',
175
175
  smart_phone: 'smartphone',
176
+ shutter_stop: 'rn_button_stop',
177
+ shutter_open: 'rn_button_open',
178
+ shutter_close: 'rn_button_close',
179
+ ic_checked: 'ic_marked_circleoutline',
176
180
  }
package/translateKey.txt CHANGED
@@ -1077,4 +1077,33 @@ timer_switch1_active_timer_field_description_on_text
1077
1077
  timer_switch2_active_timer_field_description_on_text
1078
1078
  timer_switch_active_timer_field_description_off_text
1079
1079
  timer_switch1_active_timer_field_description_off_text
1080
- timer_switch2_active_timer_field_description_off_text
1080
+ timer_switch2_active_timer_field_description_off_text
1081
+ switch_active_timer_field_small_off_text
1082
+ switch1_active_timer_field_small_off_text
1083
+ switch2_active_timer_field_small_off_text
1084
+ switch_active_timer_field_small_on_text
1085
+ switch1_active_timer_field_small_on_text
1086
+ switch2_active_timer_field_small_on_text
1087
+ curtain_control_title
1088
+ curtain_control_headline_text
1089
+ curtain_summary_action_txt_1
1090
+ curtain_summary_action_txt_2
1091
+ curtain_motor_steering
1092
+ curtain_motor_steering_tip
1093
+ curtain_motor_steering1
1094
+ curtain_motor_steering1_description
1095
+ curtain_motor_steering2
1096
+ curtain_motor_steering2_description
1097
+ curation_calibration_nextbtn_text
1098
+ curation_calibration_callibrate_btn_text
1099
+ curtain_intelligent_calibration
1100
+ curtain_intelligent_calibration_step1
1101
+ curtain_intelligent_calibration_step2
1102
+ curtain_fast_calibration
1103
+ curtain_fast_calibration_step1
1104
+ curtain_fast_calibration_step2
1105
+ curtain_fast_toast_text
1106
+ curtain_calibration_success_text
1107
+ curtain_calibration_failed_text
1108
+ curtain_calibration_progress_text
1109
+ curtain_calibration_tryagin_text