@ledvance/base 1.2.6 → 1.2.8

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/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.2.6",
7
+ "version": "1.2.8",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@reduxjs/toolkit": "^1.8.6",
@@ -39,6 +39,7 @@ interface DrawToolViewProps extends PropsWithChildren<ViewProps> {
39
39
  isSupportBrightness?: boolean
40
40
  isColorMode?: boolean
41
41
  setIsColorMode: (isColorMode: boolean) => void
42
+ blockColor?: string
42
43
  h: number
43
44
  s: number
44
45
  v: number
@@ -163,7 +164,7 @@ const DrawToolView = (props: DrawToolViewProps) => {
163
164
  </View>
164
165
  <LdvSwitch
165
166
  title={I18n.getLang('light_sources_tile_tw_lighting_headline')}
166
- color={getBlockColor()}
167
+ color={props.blockColor || getBlockColor()}
167
168
  colorAlpha={1}
168
169
  enable={false}
169
170
  showSwitch={false}
@@ -17,12 +17,13 @@ interface LdvPickerViewProps {
17
17
  style?: StyleProp<ViewStyle> | undefined,
18
18
  unit?: string[]
19
19
  minutesStep?: number
20
+ maxHour?: number // 不包含关系
20
21
  }
21
22
 
22
23
  const LdvPickerView = (props: LdvPickerViewProps) => {
23
24
 
24
- const {hour, minute, unit, setHour, setMinute, minutesStep = 1} = props
25
- const hours = useMemo(() => _.times(24, (n) => _.padStart(n.toString(), 2, '0')), [])
25
+ const {hour, minute, unit, setHour, setMinute, minutesStep = 1, maxHour = 24} = props
26
+ const hours = useMemo(() => _.times(maxHour, (n) => _.padStart(n.toString(), 2, '0')), [])
26
27
  const minutes = useMemo(() => _.times(60 / minutesStep, (n) => _.padStart((n * minutesStep).toString(), 2, '0')) , [props.minutesStep])
27
28
  return (
28
29
  <View style={[styles.pickerContainer, props.style]}>
@@ -6419,7 +6419,7 @@ export default {
6419
6419
  edit_wakeupschedule_headline_text: "Modifier l'horaire de réveil",
6420
6420
  edit_sleepschedule_headline_text: "Modifier l'horaire de coucher",
6421
6421
  edit_trigger_time_headline_text: "Modifier l'heure de déclenchement",
6422
- edit_trigger_time_button_delete_text: "Delete trigger time",
6422
+ edit_trigger_time_button_delete_text: "Supprimer l'horaire",
6423
6423
  motion_detection_time_schedule_notifications_warning_text: "The maximum number of time schedules is reached.",
6424
6424
  bio_ryhthm_reset_description_text: "Voulez-vous vraiment réinitialiser les paramètres du rythme biologique ?",
6425
6425
  timeschedule_add_schedule_devicestate_sec_warning_text: "Une ambiance est toujours appliquée à l'éclairage et au ventilateur. Veuillez ajouter un ventilateur dans la section « APPLIQUER POUR » pour sélectionner une ambiance.",
@@ -1,51 +0,0 @@
1
- @ColumnInfo(name = "device_id")
2
- val deviceId: String,
3
- @ColumnInfo(name = "device_name")
4
- val deviceName: String,
5
- @ColumnInfo(name = "cat_id")
6
- val catId: String,
7
- @ColumnInfo(name = "channel_no")
8
- val channelNo: Int,
9
- @ColumnInfo(name = "device_category")
10
- val deviceCategory: String,
11
- @ColumnInfo(name = "device_image")
12
- val deviceImage: String,
13
- @ColumnInfo(name = "tuya_device_id")
14
- val tuyaDeviceId: String,
15
- // deviceType 对应 ProductInfo 的 productId
16
- @ColumnInfo(name = "device_type")
17
- val deviceType: String,
18
- @ColumnInfo(name = "offline_time")
19
- val offlineTime: String,
20
- @ColumnInfo(name = "rn_package")
21
- val rnPackage: String?,
22
- @ColumnInfo(name = "status")
23
- val status: Int,
24
- @ColumnInfo(name = "create_time")
25
- val createTime: String,
26
- @ColumnInfo(name = "version")
27
- val version: String,
28
- @ColumnInfo(name = "user_id")
29
- val userId: String,
30
- @ColumnInfo(name = "family_id")
31
- val familyId: Long,
32
- @ColumnInfo(name = "room_id")
33
- val roomId: Long,
34
- @ColumnInfo(name = "room_name")
35
- val roomName: String,
36
- @ColumnInfo(name = "is_shared")
37
- val isShared: Int,
38
- @ColumnInfo(name = "local_index")
39
- val localIndex: String,
40
- @ColumnInfo(name = "resource_category")
41
- val resourceCategory: String,
42
- @ColumnInfo(name = "resource_id")
43
- val resourceId: String,
44
- @ColumnInfo(name = "resource_identifier")
45
- val resourceIdentifier: String,
46
- @ColumnInfo(name = "resource_type")
47
- val resourceType: Int,
48
- @ColumnInfo(name = "index")
49
- val index: Int = 0,
50
- @ColumnInfo(name = "switch_state")
51
- val switchState: Boolean = true