@ledvance/base 1.2.0 → 1.2.2
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/api/native.ts +3 -3
- package/src/components/ApplyForDeviceItem.d.ts +2 -2
- package/src/components/ApplyForDeviceItem.tsx +2 -2
- package/src/components/DrawToolView.tsx +2 -1
- package/src/components/Stepper.tsx +2 -1
- package/src/components/UATabTitle.tsx +1 -1
- package/src/i18n/strings.ts +725 -696
- package/src/models/modules/NativePropsSlice.tsx +15 -0
- package/.temp/uaDevInfo.txt +0 -51
|
@@ -15,6 +15,7 @@ export interface NativeProps {
|
|
|
15
15
|
uaGroupInfo: UAGroupInfo
|
|
16
16
|
timeSchedule?: boolean
|
|
17
17
|
energieverbrauch?: object
|
|
18
|
+
moods: any[]
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export interface DeviceInfo {
|
|
@@ -46,6 +47,7 @@ const initialState: NativeProps = {
|
|
|
46
47
|
},
|
|
47
48
|
timeSchedule: false,
|
|
48
49
|
energieverbrauch: {},
|
|
50
|
+
moods: []
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
// energy generation
|
|
@@ -100,6 +102,9 @@ const nativePropsSlice = createSlice({
|
|
|
100
102
|
setEnergieverbrauch(state, action: PayloadAction<any>) {
|
|
101
103
|
state.energieverbrauch = action.payload
|
|
102
104
|
},
|
|
105
|
+
setMoods(state, action: PayloadAction<any>) {
|
|
106
|
+
state.moods = action.payload
|
|
107
|
+
}
|
|
103
108
|
},
|
|
104
109
|
})
|
|
105
110
|
|
|
@@ -201,6 +206,15 @@ const useTimeSchedule = (): [v: boolean | undefined, f: any] => {
|
|
|
201
206
|
return [dps, setTimeScheduleFn]
|
|
202
207
|
}
|
|
203
208
|
|
|
209
|
+
const useMoods = (): [any[], (v:any[]) => void] =>{
|
|
210
|
+
const dps = useSelector(store => store.ldvModules.moods)
|
|
211
|
+
const dispatch = useDispatch()
|
|
212
|
+
const setTimeScheduleFn = (value: any[]) => {
|
|
213
|
+
dispatch(setTimeSchedule(value))
|
|
214
|
+
}
|
|
215
|
+
return [dps, setTimeScheduleFn]
|
|
216
|
+
}
|
|
217
|
+
|
|
204
218
|
const useEnergieverbrauch = () => {
|
|
205
219
|
const dps = useSelector(store => store.ldvModules.energieverbrauch)
|
|
206
220
|
const dispatch = useDispatch()
|
|
@@ -293,5 +307,6 @@ export {
|
|
|
293
307
|
useFamilyName,
|
|
294
308
|
useRole,
|
|
295
309
|
useTimeSchedule,
|
|
310
|
+
useMoods,
|
|
296
311
|
useEnergieverbrauch,
|
|
297
312
|
}
|
package/.temp/uaDevInfo.txt
DELETED
|
@@ -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
|